/* Yayın "yakında" sayfası. Renkler apps/web/app/tokens.css koyu temasıyla, düzen apps/web/app/login/page.tsx ile aynı. */
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    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: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #121212;
  --paper-raised: #191919;
  --paper-sunken: #212121;
  --paper-deep: #0c0c0c;
  --ink: #fafafa;
  --ink-muted: #a8a8a8;
  --ink-subtle: #919191;
  --rule: #272727;
  --rule-strong: #707070;
  --accent: #8fd3ae;
  --accent-ink: #08130d;
  --pub-fg: #8fd3ae;
  --pub-bg: #15261d;
  --pend-fg: #b8bdc6;
  --pend-bg: #25272b;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}
p, h1, h2, h3, ul, ol { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.mono { font-family: var(--mono); }

.wrap { position: relative; z-index: 1; width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }

/* Arka plan: yavaş kayan nane parıltısı + soluk ızgara (karşılama sayfalarındaki tek istisna) */
.bg { position: absolute; inset: 0 0 auto 0; height: 46rem; pointer-events: none; overflow: hidden; }
.glow {
  position: absolute; top: -10rem; left: 50%; width: 64rem; height: 34rem; margin-left: -32rem;
  border-radius: 9999px; background: radial-gradient(closest-side, rgb(143 211 174 / 0.2), transparent);
  animation: drift 18s ease-in-out infinite;
}
.grid {
  position: absolute; inset: 0; opacity: 0.7;
  background-image: linear-gradient(to right, rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(60% 70% at 50% 0%, #000 30%, transparent 78%);
}

/* Üst çubuk */
.top { height: 4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.625rem; font-weight: 600; letter-spacing: -0.02em; font-size: 0.95rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.brand-mark svg { width: 14px; height: 14px; }
.nav { display: none; gap: 1.5rem; font-size: 0.875rem; margin-left: auto; margin-right: 1.5rem; }
.nav a { color: var(--ink-muted); text-decoration: none; position: relative; }
.nav a:hover { color: var(--ink); }
.lang { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-muted); text-decoration: none; padding: 0.375rem 0.625rem; border: 1px solid var(--rule); border-radius: 8px; }
.lang:hover { color: var(--ink); border-color: #3a3a3a; }

/* Kahraman */
.hero { padding-top: 3.5rem; padding-bottom: 4rem; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem; border: 1px solid var(--rule); border-radius: 9999px;
  background: rgb(25 25 25 / 0.7); font-family: var(--mono); font-size: 0.75rem; color: var(--ink-muted);
}
.dot { position: relative; width: 8px; height: 8px; }
.dot::before, .dot::after { content: ""; position: absolute; inset: 0; border-radius: 9999px; background: var(--accent); }
.dot::before { animation: ping-dot 2.4s cubic-bezier(0, 0, 0.2, 1) infinite; }
h1 {
  margin: 1.5rem auto 0; max-width: 48rem;
  font-size: 2.5rem; line-height: 1.04; font-weight: 600; letter-spacing: -0.045em;
}
h1 span, .h2-big span { color: var(--accent); }
.lead { margin: 1.5rem auto 0; max-width: 36rem; font-size: 1rem; line-height: 1.6; color: var(--ink-muted); }
.cta { margin-top: 2.25rem; display: flex; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem; height: 2.75rem; padding: 0 1.375rem;
  border-radius: 9999px; font-size: 0.9375rem; font-weight: 500; text-decoration: none;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #e4e4e4; }

/* Ürün önizlemesi (dekoratif, yalnızca CSS animasyonu) */
.pv { position: relative; max-width: 56rem; margin: 3.5rem auto 0; text-align: left; }
.pv-halo { position: absolute; inset: -2.5rem -2.5rem -1.5rem; z-index: -1; border-radius: 2rem; background: radial-gradient(40rem 16rem at 50% 0%, rgb(143 211 174 / 0.16), transparent 70%); }
.pv-window { overflow: hidden; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper-deep); }
.pv-chrome { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1rem; border-bottom: 1px solid var(--rule); }
.pv-lights { display: flex; gap: 6px; }
.pv-lights i { width: 10px; height: 10px; border-radius: 9999px; background: var(--paper-sunken); }
.pv-path { font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-subtle); }
.pv-grid { display: grid; }
.pv-side { display: none; border-right: 1px solid var(--rule); padding: 0.75rem; }
.pv-side-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; font-size: 0.75rem; font-weight: 600; }
.pv-side-brand span { width: 20px; height: 20px; border-radius: 6px; background: var(--accent); }
.pv-side li { padding: 0.375rem 0.5rem; font-size: 0.75rem; color: var(--ink-muted); border-radius: 6px; margin-bottom: 4px; }
.pv-side li.on { background: var(--paper-sunken); color: var(--ink); font-weight: 500; }
.pv-content { position: relative; min-width: 0; padding: 1rem; }
.pv-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1rem; }
.pv-head p:first-child { font-size: 0.875rem; font-weight: 600; }
.pv-head .mono { font-size: 0.6875rem; color: var(--ink-subtle); }
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.625rem; margin-bottom: 1rem; }
.pv-stat { border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-raised); padding: 0.5rem 0.75rem; }
.pv-stat p:first-child { font-size: 0.6875rem; color: var(--ink-muted); }
.pv-num { position: relative; height: 1.5rem; margin-top: 2px; font-family: var(--mono); font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.pv-num.accent { color: var(--pub-fg); }
.pv-num span { position: absolute; inset: 0; }
.pv-num span:first-child { opacity: 0; }
.pv-list { border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-raised); }
.pv-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; column-gap: 0.75rem; padding: 0.625rem 0.75rem; }
.pv-row + .pv-row { border-top: 1px solid var(--rule); }
.pv-time { font-family: var(--mono); font-size: 0.75rem; color: var(--ink-muted); }
.pv-main { min-width: 0; }
.pv-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8125rem; font-weight: 500; }
.pv-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pbadge { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border: 1px solid var(--rule); border-radius: 9999px; background: var(--paper-deep); font-size: 0.6875rem; font-weight: 500; white-space: nowrap; }
.pbadge-logo { width: 12px; height: 12px; flex-shrink: 0; }
.pv-status { position: relative; display: block; width: 7rem; height: 1.5rem; }
.sbadge { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 9999px; font-family: var(--mono); font-size: 0.75rem; font-weight: 500; white-space: nowrap; opacity: 0; }
.sbadge i { width: 6px; height: 6px; border-radius: 9999px; }
.sbadge.pending { background: var(--pend-bg); color: var(--pend-fg); }
.sbadge.pending i { border: 1px solid currentColor; }
.sbadge.published { background: var(--pub-bg); color: var(--pub-fg); opacity: 1; }
.sbadge.published i { background: currentColor; }
.pv-bar { grid-column: span 3; display: block; height: 2px; margin-top: 0.5rem; overflow: hidden; border-radius: 9999px; background: var(--paper-sunken); }
.pv-bar span { display: block; height: 100%; transform-origin: left; border-radius: 9999px; background: var(--accent); }
.pv-toast { position: absolute; right: 1rem; bottom: 1rem; display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 0.75rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-raised); font-size: 0.75rem; opacity: 0; }
.pv-toast .sub { margin-left: 0.5rem; font-size: 0.6875rem; color: var(--ink-muted); }
.pv-check { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 9999px; background: var(--accent); color: var(--accent-ink); }
.pv-check svg { width: 12px; height: 12px; }

/* Bölümler */
.section { padding-top: 5rem; padding-bottom: 5rem; scroll-margin-top: 2rem; }
.kicker { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.025em; text-transform: uppercase; color: var(--accent); }
.h2, .h2-big { margin-top: 0.75rem; max-width: 36rem; font-size: 1.875rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.035em; }
.h2-big { max-width: 42rem; }
.section-text { margin-top: 1.25rem; max-width: 40rem; font-size: 1rem; line-height: 1.6; color: var(--ink-muted); }
.section-text.small { margin-top: 1rem; font-size: 0.875rem; }
.cards3 { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.card { border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-raised); padding: 1.25rem; }
.card h3 { font-size: 1rem; font-weight: 600; letter-spacing: -0.02em; }
.card p { margin-top: 0.375rem; font-size: 0.875rem; line-height: 1.55; color: var(--ink-muted); }
.steps { margin-top: 2.5rem; }
.steps .card { padding: 1.5rem; }
.steps h3 { margin-top: 1rem; font-size: 1.125rem; }
.steps p { margin-top: 0.5rem; }
.step-no { font-family: var(--mono); font-size: 0.875rem; color: var(--accent); }

/* Fan-out çizimi */
.fo-frame { margin-top: 3rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-deep); padding: 1.25rem; }
.fo { display: grid; align-items: center; gap: 1.5rem; }
.fo-source { width: 10rem; margin: 0 auto; }
.fo-video { position: relative; aspect-ratio: 9 / 14; overflow: hidden; border: 1px solid var(--rule); border-radius: 8px; background: radial-gradient(circle at 30% 20%, rgb(143 211 174 / 0.28), transparent 60%), var(--paper-deep); }
.fo-play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 9999px; background: var(--ink); color: var(--paper); }
.fo-play svg { width: 16px; height: 16px; transform: translateX(1px); }
.fo-meta { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 2rem 0.75rem 0.625rem; background: linear-gradient(to top, var(--paper-deep), transparent); font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-muted); }
.fo-once { margin-top: 0.75rem; text-align: center; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-muted); }
.fo-lines { display: none; width: 100%; }
.fo-targets { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.fo-target { display: flex; align-items: center; gap: 0.75rem; height: 64px; padding: 0 0.75rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-raised); }
.fo-logo { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper-deep); }
.fo-svg { width: 18px; height: 18px; }
.fo-body { flex: 1; min-width: 0; }
.fo-name { display: block; font-size: 0.75rem; font-weight: 600; }
.fo-text { display: block; height: 1.25rem; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8125rem; color: var(--ink-muted); }
.fo-count { display: none; flex-shrink: 0; font-family: var(--mono); font-size: 0.6875rem; color: var(--ink-subtle); font-variant-numeric: tabular-nums; }

/* Platformlar */
.pl-frame { border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-deep); padding: 2rem; }
.pl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 2.5rem; }
.pl-grid li { display: flex; flex-direction: column; gap: 1.25rem; padding: 1rem; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-raised); transition: border-color 0.2s; }
.pl-grid li:hover { border-color: var(--rule-strong); }
.pl-logo { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper-deep); }
.pl-svg { width: 24px; height: 24px; }
.pl-name { font-size: 0.875rem; font-weight: 600; letter-spacing: -0.02em; }

/* Kapanış */
.closing { padding-top: 2.5rem; padding-bottom: 6rem; text-align: center; }
.closing h2 { margin-top: 1.5rem; font-size: 1.875rem; font-weight: 600; letter-spacing: -0.04em; }
.closing p:last-child { margin-top: 0.75rem; color: var(--ink-muted); }

.foot { position: relative; z-index: 1; border-top: 1px solid var(--rule); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; padding-top: 1.5rem; padding-bottom: 1.5rem; font-size: 0.875rem; color: var(--ink-subtle); }
.foot a { color: var(--ink-muted); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* Hareket */
.rise { animation: rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.flow { animation: flow 1.2s linear infinite; }
.reveal { transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal[data-pending="true"] { opacity: 0; transform: translateY(16px); }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(2.5%, 4%, 0) scale(1.06); } }
@keyframes ping-dot { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes pv-row { 0% { opacity: 0; transform: translateY(10px); } 6%, 93% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes pv-pending { 0%, 28% { opacity: 1; } 32%, 100% { opacity: 0; } }
@keyframes pv-publishing { 0%, 28% { opacity: 0; } 32%, 52% { opacity: 1; } 56%, 100% { opacity: 0; } }
@keyframes pv-published { 0%, 54% { opacity: 0; } 58%, 93% { opacity: 1; } 100% { opacity: 0; } }
@keyframes pv-bar { 0%, 30% { transform: scaleX(0); } 54%, 100% { transform: scaleX(1); } }
@keyframes pv-toast { 0%, 55% { opacity: 0; transform: translateY(12px) scale(0.97); } 60%, 90% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes pv-count-a { 0%, 57% { opacity: 1; } 59%, 100% { opacity: 0; } }
@keyframes pv-count-b { 0%, 57% { opacity: 0; } 59%, 93% { opacity: 1; } 96%, 100% { opacity: 0; } }

@media (max-width: 639px) {
  .pv-row { grid-template-columns: 2.5rem minmax(0, 1fr) auto; column-gap: 0.5rem; }
  .pv-status { width: 6.5rem; }
  .sbadge { padding: 0 8px; font-size: 0.6875rem; }
}
@media (min-width: 640px) {
  h1 { font-size: 3.75rem; }
  .pl-grid { grid-template-columns: repeat(3, 1fr); }
  .fo-count { display: block; }
}
@media (min-width: 768px) {
  .wrap { padding-left: 2rem; padding-right: 2rem; }
  .nav { display: flex; }
  .hero { padding-top: 6rem; }
  h1 { font-size: 4.5rem; }
  .lead { font-size: 1.125rem; }
  .pv { margin-top: 4rem; }
  .pv-grid { grid-template-columns: 10.5rem minmax(0, 1fr); }
  .pv-side { display: block; }
  .pv-content { padding: 1.25rem; }
  .pv-toast { right: 1.25rem; }
  .h2 { font-size: 2.25rem; }
  .h2-big { font-size: 3rem; line-height: 1.05; }
  .section-text { font-size: 1.125rem; }
  .section-text.small { font-size: 0.875rem; }
  .cards3 { grid-template-columns: repeat(3, 1fr); }
  .fo-frame { padding: 2.5rem; }
  .fo { grid-template-columns: 11rem 5rem minmax(0, 1fr); gap: 0; }
  .fo-source { width: 100%; }
  .fo-lines { display: block; }
  .pl-frame { padding: 3rem; }
  .closing h2 { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .pl-grid { grid-template-columns: repeat(5, 1fr); }
}

/* Azaltılmış hareket: son durum kalır */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal[data-pending="true"] { opacity: 1; transform: none; }
  .fo-dot { display: none; }
}
