/* Astrokedi vitrin ------------------------------------------------------- */

@font-face { font-family: "Fraunces"; font-weight: 400; font-display: swap;
  src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-weight: 400; font-display: swap;
  src: url("../fonts/fraunces-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap;
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-weight: 600; font-display: swap;
  src: url("../fonts/fraunces-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fraunces"; font-weight: 700; font-display: swap;
  src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fraunces"; font-weight: 700; font-display: swap;
  src: url("../fonts/fraunces-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --night: #0B0A1A;
  --night-2: #141130;
  --night-3: #1B1640;
  --line: rgba(244, 239, 255, .12);
  --line-2: rgba(244, 239, 255, .22);
  --ink: #F4EFFF;
  --muted: #B4ACD0;
  --gold: #FFC857;
  --gold-2: #FA9E38;
  --pink: #FF9EB3;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --gutter: clamp(16px, 5vw, 72px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(120% 80% at 50% 0%, var(--night-3) 0%, var(--night) 60%) fixed, var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px;
  background: var(--gold); color: var(--night); border-radius: 8px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.hl { color: var(--gold); }

/* ---- Yıldız alanı ---- */
.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: background .4s, backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 10, 26, .72);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--serif); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.brand img { transition: transform .5s var(--ease-back); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; position: relative; transition: color .2s; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.nav nav a:hover { color: var(--ink); }
.nav nav a:hover::after { transform: scaleX(1); }
@media (max-width: 760px) { .nav nav { display: none; } }

/* ---- Butonlar ---- */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease-out), box-shadow .35s, background .25s, border-color .25s, color .25s;
  cursor: pointer; isolation: isolate; overflow: hidden;
}
.btn svg { width: 20px; height: 20px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

.btn-gold { background: var(--gold); color: var(--night);
  box-shadow: 0 0 0 0 rgba(255, 200, 87, .0), 0 10px 30px -10px rgba(255, 200, 87, .55); }
.btn-gold:hover { box-shadow: 0 0 0 6px rgba(255, 200, 87, .15), 0 16px 40px -10px rgba(255, 200, 87, .75); }
/* parıltı geçişi */
.btn-gold::before {
  content: ""; position: absolute; inset: -20% auto -20% -40%; width: 30%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-20deg) translateX(-150%);
  animation: shine 4.5s ease-in-out infinite 1.8s;
}
@keyframes shine { 0%, 70% { transform: skewX(-20deg) translateX(-150%); } 100% { transform: skewX(-20deg) translateX(650%); } }

.btn-ghost { color: var(--ink); border: 1px solid var(--line-2); background: rgba(244, 239, 255, .03); }
.btn-ghost:hover { border-color: rgba(255, 200, 87, .6); background: rgba(255, 200, 87, .06); }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 24px;
  padding: 110px var(--gutter) 90px;
  max-width: 1320px; margin: 0 auto;
}
.hero-text { position: relative; z-index: 2; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 26px; }
.hero h1 { font-size: clamp(44px, 6.6vw, 92px); font-weight: 700; }
.lead { margin-top: 24px; max-width: 40ch; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.mascot { position: relative; aspect-ratio: 1; width: 100%; max-width: 540px; justify-self: center; cursor: pointer; }
.mascot-rive, .mascot-lottie { position: absolute; inset: 0; width: 100%; height: 100%; }
.mascot-lottie svg { width: 100% !important; height: 100% !important; }
.mascot.is-bump .mascot-lottie { animation: bump .6s var(--ease-back); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.06) translateY(-10px); } 100% { transform: scale(1); } }

.hero-meteor { position: absolute; top: 70px; left: 8%; width: min(640px, 70vw); aspect-ratio: 2 / 1; pointer-events: none; z-index: 1; opacity: .9; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px;
  border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px;
  background: var(--gold); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(16px); opacity: 0; } }

@media (max-width: 900px) {
  .eyebrow { font-size: 11px; letter-spacing: .1em; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 96px; gap: 8px; }
  .hero-text { order: 2; }
  .mascot { order: 1; max-width: min(380px, 78vw); }
  .lead { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .scroll-cue { display: none; }
}

/* Başlık: kelime kelime yükselme (JS kelimelere böler) */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
[data-split] .w > span { display: inline-block; transform: translateY(110%); }
.is-ready [data-split] .w > span { animation: rise 1.1s var(--ease-out) forwards; animation-delay: calc(.25s + var(--i) * .07s); }
@keyframes rise { to { transform: translateY(0); } }

/* ---- Bölümler ---- */
.section { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(64px, 9vw, 120px) var(--gutter); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.kicker { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.section h2 { font-size: clamp(34px, 4.6vw, 60px); }

/* Kartlar */
/* Masaüstünde satır başına 4 kart: 5. kart alt satıra, 9. kart bir alta geçer */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1080px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  --px: 50%; --py: 50%;
  position: relative; padding: 30px 26px 28px; border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(27, 22, 64, .7), rgba(20, 17, 48, .55));
  border: 1px solid var(--line);
  transition: transform .5s var(--ease-out), border-color .3s;
  overflow: hidden;
}
.card::before { /* imleci takip eden ışık */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(320px circle at var(--px) var(--py), rgba(255, 200, 87, .13), transparent 60%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(255, 200, 87, .35); }
.card:hover::before { opacity: 1; }
.card-ic { width: 52px; height: 52px; margin-bottom: 22px; color: var(--gold); }
.card-ic svg { width: 100%; height: 100%; transition: transform .8s var(--ease-out); }
.card:hover .card-ic svg { transform: rotate(-12deg) scale(1.08); }
.card h3 { font-size: 23px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

/* Adımlar */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; z-index: 1; }
.step { position: relative; padding-top: 8px; }
/* adımları bağlayan çizgi: görünüme girince soldan sağa çizilir */
.steps::before { content: ""; position: absolute; left: 28px; right: calc(33.33% - 28px); top: 36px; height: 1px; z-index: -1;
  background: linear-gradient(90deg, var(--gold), rgba(255, 200, 87, .25));
  transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out) .3s; }
.steps.is-in::before { transform: scaleX(1); }
.step-no { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  font: 700 22px/1 var(--serif); color: var(--night); background: var(--gold); margin-bottom: 22px;
  box-shadow: 0 0 0 8px rgba(255, 200, 87, .1), 0 0 0 1px rgba(255, 200, 87, .4); }
.step h3 { font-size: 24px; margin-bottom: 8px; }
.step p { color: var(--muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before { left: 28px; right: auto; top: 36px; bottom: 60px; width: 1px; height: auto;
    background: linear-gradient(180deg, var(--gold), rgba(255, 200, 87, .25)); transform: scaleY(0); transform-origin: top; }
  .steps.is-in::before { transform: scaleY(1); }
}

/* Birimler: Yıldız Tozu · Meteor · AstroMama */
.section-lead { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 52ch; }
.units-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.unit {
  --accent: var(--gold); --accent-rgb: 255, 200, 87;
  position: relative; text-align: center; padding: 18px 26px 32px; border-radius: var(--r-lg);
  background: radial-gradient(90% 60% at 50% 0%, rgba(var(--accent-rgb), .10), transparent 70%),
              linear-gradient(180deg, rgba(27, 22, 64, .75), rgba(20, 17, 48, .55));
  border: 1px solid var(--line); transition: transform .5s var(--ease-out), border-color .3s, box-shadow .5s;
}
.unit-meteor { --accent: #FF8A4C; --accent-rgb: 255, 138, 76; }
.unit-mama { --accent: #CCC2F2; --accent-rgb: 204, 194, 242; }
.unit:hover { transform: translateY(-8px); border-color: rgba(var(--accent-rgb), .45);
  box-shadow: 0 24px 60px -30px rgba(var(--accent-rgb), .55); }
.unit-art { width: min(230px, 100%); aspect-ratio: 1; margin: 0 auto 6px; transition: transform .8s var(--ease-back); }
.unit:hover .unit-art { transform: scale(1.06); }
.unit h3 { font-size: 26px; margin-bottom: 10px; color: var(--accent); }
.unit p { color: var(--muted); font-size: 16px; max-width: 32ch; margin: 0 auto; }
.units-cta { margin-top: 36px; text-align: center; }
@media (max-width: 900px) { .units-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } .unit-art { width: 190px; } }

/* Son çağrı */
.final { padding: 40px var(--gutter) clamp(90px, 12vw, 150px); }
.final-card {
  position: relative; max-width: 980px; margin: 0 auto; text-align: center;
  padding: clamp(48px, 7vw, 80px) clamp(20px, 5vw, 60px);
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(255, 200, 87, .12), transparent 60%),
    linear-gradient(180deg, rgba(27, 22, 64, .85), rgba(15, 13, 38, .85));
  overflow: hidden;
}
.final-cat { width: 170px; height: 170px; margin: -10px auto 10px; }
.final h2 { font-size: clamp(34px, 5vw, 62px); margin-bottom: 14px; }
.final p { color: var(--muted); margin-bottom: 32px; font-size: 18px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 34px var(--gutter); display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 18px; color: var(--muted); font-size: 14px; max-width: 1320px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 700 18px/1 var(--serif); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ---- Görünüme girince belirme ---- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---- Hareketi azalt ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-split] .w > span { transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .btn-gold::before { display: none; }
}
