/* ═══════════════════════════════════════════════════════════════
   Kitanda — homepage (cinematic / motion-rich)
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO ────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; display: flex; align-items: center; }
.hero-wall {
  position: absolute; inset: -10% 0 0; z-index: -3;
  background: url('assets/app_dark.png') center top / cover no-repeat;
  opacity: .38; will-change: transform;
}
/* drifting aurora blobs */
.aurora { position: absolute; inset: -20%; z-index: -2; overflow: hidden; }
.aurora span {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  mix-blend-mode: screen; will-change: transform;
}
.aurora .a1 { width: 580px; height: 580px; left: -4%; top: -2%;  background: radial-gradient(circle, #8B5CF6, transparent 64%); opacity: .85; animation: drift 22s ease-in-out infinite; }
.aurora .a2 { width: 520px; height: 520px; right: -4%; top: 10%; background: radial-gradient(circle, #6366F1, transparent 66%); opacity: .78; animation: drift 28s ease-in-out infinite reverse; }
.aurora .a3 { width: 480px; height: 480px; left: 26%; bottom: -12%; background: radial-gradient(circle, #D946EF, transparent 68%); opacity: .6; animation: drift 32s ease-in-out infinite; }
.aurora .a4 { width: 380px; height: 380px; right: 20%; bottom: 2%; background: radial-gradient(circle, #D2AF62, transparent 70%); opacity: .34; animation: drift 26s ease-in-out infinite 1.5s; }
/* pointer-follow glow */
.hero[data-glow]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px 380px at var(--mx,50%) var(--my,30%), rgba(159,103,255,.16), transparent 70%);
  transition: background .2s linear;
}
.hero-veil { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(11,9,18,.05) 0%, rgba(11,9,18,.28) 58%, var(--bg) 100%); }

.hero-inner { display: grid; grid-template-columns: 1.04fr .96fr; gap: 56px; align-items: center; width: 100%; padding: 120px 0 90px; }

/* kinetic headline — pure-CSS entrance (auto-plays, no JS dependency) */
.kinetic { font-size: clamp(44px, 6vw, 76px); line-height: 1.0; margin: 22px 0 0; }
.kinetic .line { display: block; overflow: hidden; padding-bottom: .08em; }
.kinetic .w { display: inline-block; margin-right: .22em; opacity: 0; animation: rise-word .9s var(--ease) both; }
.kinetic .w:last-child { margin-right: 0; }
.kinetic em { font-style: italic; color: var(--gold); }

.hero .lead { margin-top: 26px; max-width: 520px; font-size: 19px; opacity: 0; animation: fade-up .8s var(--ease) .5s both; }
.hero-cta  { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; opacity: 0; animation: fade-up .8s var(--ease) .65s both; }
.hero-meta { display: flex; align-items: center; gap: 26px; margin-top: 44px; opacity: 0; animation: fade-up .8s var(--ease) .8s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .kinetic .w, .hero .lead, .hero-cta, .hero-meta { opacity: 1 !important; animation: none !important; }
}
.hero-meta .stat .n { font-size: 26px; font-weight: 800; letter-spacing: -.6px; font-variant-numeric: tabular-nums; }
.hero-meta .stat .l { font-size: 12.5px; color: var(--fg2); margin-top: 3px; }
.hero-meta .sep { width: 1px; height: 38px; background: var(--border); }

/* shimmering primary button */
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  background-size: 220% 100%; animation: shimmer 4.5s linear infinite;
}

/* scroll cue */
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--fg3); font-size: 11px;
  letter-spacing: 1.5px; text-transform: uppercase; opacity: 0; animation: fade-up 1s ease 1.4s both; }
.scroll-cue .mouse { width: 22px; height: 36px; border: 1.5px solid var(--border-2); border-radius: 999px; position: relative; }
.scroll-cue .mouse::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; border-radius: 999px;
  background: var(--fg2); transform: translateX(-50%); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, 0); } 30% { opacity: 1; } 60% { opacity: 1; transform: translate(-50%, 10px); } 100% { opacity: 0; transform: translate(-50%, 10px); } }

/* floating cover cluster */
.cluster { position: relative; height: 500px; perspective: 1200px; }
.cluster .cover { position: absolute; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.cluster .cv1 { width: 224px; left: 84px; top: 46px;  z-index: 3; --rot: 0deg;  animation: floaty 7s ease-in-out infinite; }
.cluster .cv2 { width: 172px; left: 0;    top: 168px; z-index: 2; --rot:-7deg; transform: rotate(-7deg); animation: floaty-2 9s ease-in-out infinite .4s; }
.cluster .cv3 { width: 172px; right: 4px; top: 150px; z-index: 2; --rot: 7deg; transform: rotate(7deg);  animation: floaty-2 8s ease-in-out infinite .9s; }
.cluster .float-card {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 11px;
  background: rgba(20,21,36,.92); backdrop-filter: blur(12px);
  border: 1px solid var(--border-2); border-radius: 16px; padding: 11px 15px;
  box-shadow: var(--shadow-floating); max-width: 256px;
}
.cluster .fc-top { top: 6px; right: -18px; animation: floaty 6s ease-in-out infinite .2s; }
.cluster .fc-bot { bottom: 8px; left: 6px;  animation: floaty 7.5s ease-in-out infinite 1.1s; }
.float-card .ava { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.float-card .fc-line { font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.float-card .fc-sub { font-size: 11.5px; color: var(--fg3); margin-top: 1px; }

/* ── MARQUEE ─────────────────────────────────────────────────── */
.marquee-band { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #0c0c14, #0a0a0f); position: relative; }
.marquee-band::before, .marquee-band::after { content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none; }
.marquee-band::before { left: 0;  background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-band::after  { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.marquee { overflow: hidden; }
.marquee-row { display: flex; gap: 14px; width: max-content; will-change: transform; }
.spine { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; font-size: 14px; color: var(--fg2); }
.spine b { color: var(--fg1); font-weight: 700; }
.spine .dot { width: 7px; height: 7px; border-radius: 999px; }

/* ── SECTION HEADER ──────────────────────────────────────────── */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.sec-head .lead { margin-top: 14px; max-width: 540px; }

/* ── TUTORIAL (Nasıl çalışır) ────────────────────────────────── */
.tut { position: relative; }
.tut-line { display: none; }
.tut-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; z-index: 1; }
.tut-step { text-align: center; position: relative; }
/* clean connector segment from this node to the next */
.tut-step:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; height: 2px; z-index: 0;
  left: calc(50% + 42px); width: calc(100% - 84px + 26px);
  background: var(--border); border-radius: 999px; transition: background .5s var(--ease);
}
.tut-step.lit:not(:last-child)::after { background: linear-gradient(90deg, var(--purple), var(--purple-lt)); }
html.pm .tut-step.lit:not(:last-child)::after { background: linear-gradient(90deg, var(--gold), #e3c279); }
.tut-step .node { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border-2); margin: 0 auto 22px; position: relative; z-index: 1;
  box-shadow: var(--shadow-surface); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.tut-step .node .material-icons-round { font-size: 28px; color: var(--purple-lt); }
.tut-step:hover .node { transform: translateY(-4px); border-color: var(--purple-lt); }
.tut-step .idx { position: absolute; top: -8px; right: 50%; margin-right: -40px; width: 24px; height: 24px; border-radius: 999px;
  background: var(--purple); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); z-index: 2; }
.tut-step h3 { font-size: 18px; font-weight: 800; letter-spacing: -.2px; margin: 0 0 8px; }
.tut-step p { font-size: 14.5px; line-height: 1.55; color: var(--fg2); margin: 0; }
.tut-step:last-child .node .material-icons-round { color: var(--gold); }
.tut-step:last-child .idx { background: var(--gold); color: #1a1407; }

/* ── FEATURED GRID ───────────────────────────────────────────── */
.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.book { display: flex; flex-direction: column; gap: 14px; }
.book .cover-wrap { transition: transform var(--dur) var(--ease); }
.book:hover .cover { box-shadow: 0 26px 52px rgba(0,0,0,.62); }
.book .meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.book .b-title { font-weight: 700; font-size: 15.5px; letter-spacing: -.2px; }
.book .b-author { font-size: 13px; color: var(--fg2); margin-top: 3px; }
.book .b-tag { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: .4px; text-transform: uppercase; }

/* ── VALUE PROPS ─────────────────────────────────────────────── */
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prop { padding: 32px; position: relative; overflow: hidden; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.prop:hover { transform: translateY(-5px); border-color: var(--border-2); }
.prop .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background: rgba(124,58,237,.16); color: var(--purple-lt); margin-bottom: 20px; }
.prop .ic .material-icons-round { font-size: 27px; }
.prop h3 { margin: 0 0 9px; font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.prop p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--fg2); }

/* ── COMMUNITY SPLIT ─────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feed-stack { display: flex; flex-direction: column; gap: 14px; }
.post { padding: 20px 22px; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.post:hover { transform: translateY(-3px); border-color: var(--border-2); }
.post-head { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.post-head .ava { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 14px; }
.post-head .nm { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 7px; }
.post-head .sub { font-size: 12px; color: var(--fg3); margin-top: 1px; }
.post p { margin: 0; font-size: 14.5px; line-height: 1.55; color: #d9d5e6; }
.post .quote { font-family: var(--font-display); font-style: italic; font-size: 17px; line-height: 1.5; color: #efeaf7; }
.post-foot { display: flex; gap: 22px; margin-top: 14px; color: var(--fg3); font-size: 13px; }
.post-foot span { display: inline-flex; align-items: center; gap: 6px; }
.post-foot .material-icons-round { font-size: 17px; }

/* ── RANK LADDER ─────────────────────────────────────────────── */
.ranks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.rank { padding: 26px 22px; position: relative; overflow: hidden; transition: transform var(--dur) var(--ease); }
.rank:hover { transform: translateY(-5px); }
.rank .glow { position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 999px; filter: blur(40px); opacity: .5; animation: pulse-glow 4s ease-in-out infinite; }
.rank .lvl { font-size: 11px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--fg3); }
.rank h3 { font-family: var(--font-display); font-size: 23px; margin: 10px 0 6px; letter-spacing: -.3px; }
.rank p { margin: 0; font-size: 13px; color: var(--fg2); line-height: 1.5; }
.rank .xp { margin-top: 16px; font-size: 12px; font-weight: 700; color: var(--fg2); }
.rank .bar { height: 6px; border-radius: 999px; background: var(--border); margin-top: 8px; overflow: hidden; }
.rank .bar i { display: block; height: 100%; border-radius: 999px; width: 0; transition: width 1.3s var(--ease); }
.rank.in .bar i { width: var(--fill, 50%); }

/* ── PRESTIGE ────────────────────────────────────────────────── */
.prestige { position: relative; overflow: hidden; border-radius: var(--r-xl);
  background: var(--grad-prestige); border: 1px solid var(--gold-soft); padding: 62px 56px; }
.prestige::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(80% 120% at 100% 0%, rgba(210,175,98,.18), transparent 60%); }
.prestige::after { content: ""; position: absolute; top: -50%; left: -60%; width: 60%; height: 200%;
  background: linear-gradient(105deg, transparent, rgba(255,231,176,.10), transparent); transform: rotate(8deg);
  animation: sheen 7s ease-in-out infinite; }
@keyframes sheen { 0% { left: -60%; } 55%,100% { left: 130%; } }
.prestige-inner { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; z-index: 1; }
.prestige h2 { font-family: var(--font-display); font-size: 42px; letter-spacing: -.6px; margin: 16px 0 0; color: var(--gold); }
.prestige .lead { color: #d8cdb4; margin-top: 18px; }
.prestige ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; }
.prestige li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #efe6d2; }
.prestige li .material-icons-round { color: var(--gold); font-size: 20px; }
.prestige-card { background: rgba(7,7,8,.62); border: 1px solid var(--gold-soft); border-radius: var(--r-lg); padding: 28px; text-align: center; }
.prestige-card .price { font-family: var(--font-display); font-size: 46px; color: var(--gold); letter-spacing: -1px; }
.prestige-card .per { font-size: 14px; color: #c0b194; }

/* ── CLOSER ──────────────────────────────────────────────────── */
.closer { text-align: center; padding: 120px 0; position: relative; overflow: hidden; }
.closer .glowfield { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 60% at 50% 40%, rgba(124,58,237,.16), transparent 70%); }
.closer h2 { font-size: clamp(34px, 5vw, 56px); max-width: 760px; margin: 0 auto; line-height: 1.03; }
.closer .lead { margin: 22px auto 0; max-width: 520px; }
.closer-cta { display: flex; gap: 14px; justify-content: center; margin-top: 34px; }

@media (max-width: 1080px) {
  .hero { min-height: 0; }
  /* Dar ekranda tek kolon → sola yapışmasın, ortala ve dengele */
  .hero-inner { grid-template-columns: 1fr; padding: 100px 0 66px; gap: 0; text-align: center; justify-items: center; }
  .hero-inner > div:first-child { max-width: 640px; margin: 0 auto; }
  .hero-inner .eyebrow { display: inline-flex; }
  .hero-inner .lead { margin-left: auto; margin-right: auto; }
  .hero-inner .hero-cta { justify-content: center; }
  .hero-inner .hero-meta { justify-content: center; }
  .cluster { display: none; }
  .scroll-cue { display: none; }
}
@media (max-width: 920px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .props, .ranks, .tut-steps { grid-template-columns: 1fr 1fr; }
  .tut-step::after { display: none !important; }
  .split, .prestige-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  .book-grid, .props, .ranks, .tut-steps { grid-template-columns: 1fr; }
  .hero-meta { gap: 16px; }
}

/* ── Cursor orb ──────────────────────────────────────────────── */
.cursor-orb {
  position: fixed; top: 0; left: 0; width: 26px; height: 26px; border-radius: 999px;
  pointer-events: none; z-index: 90; mix-blend-mode: screen; opacity: 0;
  background: radial-gradient(circle, rgba(159,103,255,.9), rgba(159,103,255,0) 70%);
  transition: opacity .4s ease, width .25s var(--ease), height .25s var(--ease);
  will-change: transform;
}
.cursor-orb.on { opacity: 1; }
.cursor-orb.press { width: 46px; height: 46px; }
@media (hover: none) { .cursor-orb { display: none; } }

/* ── Particle host ───────────────────────────────────────────── */
.particles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.particles canvas { width: 100%; height: 100%; display: block; }

/* ── Pinned horizontal showcase ──────────────────────────────── */
/* ── Horizontal showcase carousel ────────────────────────────── */
.showcase { background: linear-gradient(180deg, var(--bg), #0c0c16 14%, #0c0c16 86%, var(--bg)); overflow: hidden; }
:root[data-flavor="light"] .showcase { background: linear-gradient(180deg, var(--bg), #EFEDF7 14%, #EFEDF7 86%, var(--bg)); }
:root[data-flavor="prestige"] .showcase { background: linear-gradient(180deg, var(--bg), #0d0b07 14%, #0d0b07 86%, var(--bg)); }
.rail-nav { display: flex; gap: 10px; }
.rail-btn { width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface-2);
  color: var(--fg1); display: grid; place-items: center; cursor: pointer; transition: all var(--dur) var(--ease); }
.rail-btn:hover { border-color: var(--purple); background: rgba(139,92,246,.12); transform: translateY(-2px); }
html.pm .rail-btn:hover { border-color: var(--gold); background: rgba(210,175,98,.12); }
.rail-btn:disabled { opacity: .35; cursor: default; transform: none; border-color: var(--border); background: var(--surface-2); }
.rail-btn .material-icons-round { font-size: 20px; }
.show-rail { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(40px, calc((100vw - var(--maxw)) / 2 + 40px)) 30px;
  scrollbar-width: none; -ms-overflow-style: none; cursor: grab; scroll-behavior: smooth; }
.show-rail::-webkit-scrollbar { display: none; }
.show-rail.dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.show-rail.dragging a { pointer-events: none; }
.show-card { position: relative; flex: 0 0 auto; width: 300px; scroll-snap-align: center; transition: transform var(--dur) var(--ease); }
.show-card:hover { transform: translateY(-6px); }
.show-card .cover { width: 300px; height: 450px; aspect-ratio: auto; }
.show-card .meta { margin-top: 18px; }
.show-card .meta .b-tag { font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: .5px; text-transform: uppercase; }
.show-card .meta h3 { font-family: var(--font-display); font-size: 24px; margin: 6px 0 4px; letter-spacing: -.3px; }
.show-card .meta p { margin: 0; color: var(--fg2); font-size: 14px; }
.show-card.lg { width: 360px; }
.show-card.lg .cover { width: 360px; height: 540px; }
.show-prog { height: 3px; border-radius: 999px; background: var(--border); overflow: hidden; margin-top: 8px; }
.show-prog i { display: block; height: 100%; width: 24%; border-radius: 999px; background: linear-gradient(90deg, var(--purple), var(--gold)); transition: transform .15s linear, width .15s linear; transform-origin: 0 50%; }

/* ── Cover marquee (image ribbon) ────────────────────────────── */
.mq-cover { flex: 0 0 auto; width: 118px; border-radius: 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 10px 22px rgba(0,0,0,.4); transition: transform var(--dur) var(--ease); }
.mq-cover .cover { width: 118px; }
.marquee:hover .mq-cover { opacity: .55; }
.mq-cover:hover { opacity: 1 !important; transform: translateY(-6px); }

/* ── Tutorial scrub lit states ───────────────────────────────── */
.tut-step .node { transition: transform .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease), background .45s var(--ease); }
.tut-step .node .material-icons-round { transition: color .45s var(--ease), transform .45s var(--ease); }
.tut-step.lit .node { border-color: var(--purple-lt); background: rgba(124,58,237,.14); box-shadow: 0 0 0 6px rgba(124,58,237,.10), var(--shadow-floating); transform: translateY(-6px) scale(1.04); }
.tut-step.lit .node .material-icons-round { transform: scale(1.08); }
.tut-step:last-child.lit .node { border-color: var(--gold); background: rgba(210,175,98,.14); box-shadow: 0 0 0 6px rgba(210,175,98,.12), var(--shadow-floating); }
.tut-step .idx { transition: transform .45s var(--ease); }
.tut-step.lit .idx { transform: scale(1.15); }

/* ── Animated gradient text ──────────────────────────────────── */
.grad-text {
  background: linear-gradient(100deg, var(--fg1) 20%, var(--purple-lt) 42%, var(--gold) 58%, var(--fg1) 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-flow 7s linear infinite;
}
@keyframes grad-flow { 0% { background-position: 0% 0; } 100% { background-position: 220% 0; } }
@media (prefers-reduced-motion: reduce) { .grad-text { animation: none; } }

/* ── Clip-path image reveal ──────────────────────────────────── */
.clip-rev .cover { clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); }
.clip-rev.in .cover { clip-path: inset(0 0 0% 0); }
@media (prefers-reduced-motion: reduce) { .clip-rev .cover { clip-path: none !important; } }

@media (max-width: 920px) {
  .show-card { width: 240px; }
  .show-card .cover { width: 240px; height: 360px; }
  .show-card.lg { width: 240px; }
  .show-card.lg .cover { width: 240px; height: 360px; }
  .show-rail { gap: 20px; padding-left: 22px; padding-right: 22px; }
  .rail-nav { display: none; }
}
