/* Para Cetveli lansman sitesi — "erimekte olan para".
   Zemin neredeyse siyah, kırık beyaz metin, tek vurgu eski altın; soluk kırmızı yalnız kayıp için.
   Serif: Instrument Serif (başlık ve gövde). Mono: JetBrains Mono (rakamlar, alanlar, düğmeler). */

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-400-normal-latin.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+20A0-20CF, U+2122, U+2212; }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-400-normal-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-400-italic-latin.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+20A0-20CF, U+2122, U+2212; }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url(/assets/fonts/instrument-serif-400-italic-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin.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+20A0-20CF, U+2122, U+2212; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url(/assets/fonts/jetbrains-mono-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+A720-A7FF; }

:root {
  --bg: #0A0A0B; --surface: #121214; --ink: #ECE7DD; --mute: #8E887C; --gold: #C9A24A; --gold-dim: #7A6330; --gold-mute: #9A7D3C; --loss: #B5443A;
  --line: rgba(236, 231, 221, .12); --gold-glow: rgba(201, 162, 74, .14);
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --measure: 34rem; --gutter: clamp(1.5rem, 6vw, 3rem); --ruler: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1); --slow: 1.6s;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font: 400 clamp(1.125rem, 1rem + .4vw, 1.3rem)/1.55 var(--serif); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; max-width: var(--measure); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--bg); }

/* Film greni: sabit, hareketsiz bir doku */
.grain::before {
  content: ""; position: fixed; inset: -20%; z-index: 40; pointer-events: none; opacity: .07; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px;
}

/* Sol kenardaki cetvel: milimetrik çizgiler; kaydırıldıkça altınla dolar */
.ruler { position: fixed; left: 0; top: 0; bottom: 0; width: var(--ruler); z-index: 30; pointer-events: none; }
.ruler::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 12px); background-size: 6px 100%; background-repeat: no-repeat; }
.ruler::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, var(--gold-dim) 0 1px, transparent 1px 60px); background-size: 11px 100%; background-repeat: no-repeat; opacity: .9; }
.ruler__fill { position: absolute; left: 0; top: 0; width: 2px; height: calc(var(--progress, 0) * 100%); background: var(--gold); transition: height .12s linear; }
@media (prefers-reduced-motion: reduce) { .ruler__fill { transition: none; } }

main { display: block; }
.sec { position: relative; min-height: 100svh; padding: clamp(4rem, 12vh, 8rem) var(--gutter) clamp(4rem, 10vh, 7rem) calc(var(--gutter) + var(--ruler)); display: flex; flex-direction: column; justify-content: center; }
.sec > .inner { width: 100%; max-width: 68rem; margin: 0 auto; }

h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.012em; line-height: 1.06; margin: 0 0 1.25rem; max-width: 18ch; }
h2 { font-size: clamp(2.2rem, 2rem + 3vw, 3.75rem); }
.lead { color: var(--mute); font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }
.ital { font-style: italic; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.meta { font: 400 .78rem/1.5 var(--mono); color: var(--gold-mute); letter-spacing: .02em; }
.mt-1 { margin-top: 1rem; } .mt-15 { margin-top: 1.5rem; } .mt-2 { margin-top: 2rem; }

/* Sisten çıkar gibi belirme (görünüme girince; bir kez) */
.reveal { opacity: 0; filter: blur(10px); transform: translateY(6px); transition: opacity var(--slow) var(--ease), filter var(--slow) var(--ease), transform var(--slow) var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-in { opacity: 1; filter: blur(0); transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; filter: none; transform: none; transition: none; } }

/* 1 · Açılış: yapışkan sahne, kaydırdıkça rakam erir */
.hero { min-height: 100svh; padding: 0; }
.hero__track { height: 220svh; }
.hero__stage { position: sticky; top: 0; height: 100svh; display: grid; place-items: center; text-align: center; padding: 0 var(--gutter) 0 calc(var(--gutter) + var(--ruler)); overflow: hidden; }
.hero__engrave { position: absolute; inset: 0; margin: auto; width: min(92vmin, 760px); height: min(92vmin, 760px); opacity: .22; pointer-events: none; }
.hero__engrave path { fill: none; stroke: var(--gold); stroke-width: .5; vector-effect: non-scaling-stroke; }
.hero__body { position: relative; display: grid; gap: 1.25rem; justify-items: center; }
.hero__num {
  max-width: none; white-space: nowrap;
  font: 500 clamp(4.25rem, min(17vw, 24svh), 11rem)/1 var(--mono); color: var(--gold); letter-spacing: -.045em; font-variant-numeric: tabular-nums;
  transform-origin: 50% 100%; transform: scale(calc(1 - .32 * var(--melt, 0)));
  filter: blur(calc(var(--melt, 0) * 1.4px));
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--melt, 0) * 46%), transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--melt, 0) * 46%), transparent 100%);
  will-change: transform, filter;
}
.hero__drips { display: flex; gap: 14px; height: 56px; align-items: flex-start; justify-content: center; margin-top: -.6rem; opacity: var(--melt, 0); }
.hero__drips i { display: block; width: 3px; border-radius: 2px; background: var(--gold); height: calc(var(--h) * var(--melt, 0)); transform-origin: top; opacity: .85; }
.hero__drips i:nth-child(2n) { background: var(--gold-dim); }
.hero__drips i:nth-child(1) { --h: 22px; } .hero__drips i:nth-child(2) { --h: 38px; } .hero__drips i:nth-child(3) { --h: 16px; } .hero__drips i:nth-child(4) { --h: 46px; } .hero__drips i:nth-child(5) { --h: 28px; }
.hero__caps { position: relative; display: grid; min-height: 3.6em; }
.hero__caps > p { grid-area: 1 / 1; margin: 0 auto; max-width: 22ch; color: var(--mute); font-size: clamp(1.2rem, 1rem + 1.2vw, 1.6rem); transition: opacity .3s linear; }
#hero-cap { opacity: calc(1 - var(--melt, 0) * 2); }
#hero-cap2 { opacity: calc(var(--melt, 0) * 2 - 1); }
.hero__loss { color: var(--loss); font: 500 1rem var(--mono); opacity: calc(var(--melt, 0) * 2 - 1.2); letter-spacing: -.02em; }
.hero__src { opacity: calc(var(--melt, 0) * 2 - 1.2); }
.hero__hint { position: absolute; left: 50%; bottom: max(1.25rem, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; justify-items: center; gap: .5rem; color: var(--gold-mute); font: 400 .72rem var(--mono); letter-spacing: .14em; opacity: calc(1 - var(--melt, 0) * 3); }
.hero__hint::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--gold-dim), transparent); }
@media (prefers-reduced-motion: reduce) {
  .hero__track { height: auto; } .hero__stage { position: static; min-height: 100svh; }
  .hero__num { transform: none; filter: none; mask-image: none; -webkit-mask-image: none; }
  .hero__drips { display: none; } #hero-cap, #hero-cap2 { position: static; opacity: 1; grid-area: auto; } .hero__loss, .hero__src { opacity: 1; } .hero__hint { display: none; }
}

/* 2 · İtiraf: zaman makinesi */
.tm { display: grid; gap: 1.75rem; max-width: 40rem; }
.tm__fields { display: grid; gap: .25rem; }
.field { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.field label { font: 400 .82rem var(--mono); color: var(--mute); }
.field input, .field select { background: none; border: 0; padding: 0; width: 100%; text-align: right; font: 500 1.4rem var(--mono); color: var(--ink); letter-spacing: -.02em; -webkit-appearance: none; appearance: none; border-radius: 0; }
.field select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' fill='none' stroke='%237A6330' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right center; padding-right: 1.2rem; }
.field select option { color: #000; }
.field:focus-within { border-color: var(--gold); }
.tm__result { display: grid; gap: .55rem; padding-top: .5rem; }
.tm__value { font: 500 clamp(3rem, 2rem + 7vw, 5.5rem)/1 var(--mono); color: var(--gold); letter-spacing: -.045em; font-variant-numeric: tabular-nums; min-height: 1em; }
.tm__value[data-state="empty"] { color: var(--gold-dim); }
.tm__loss { color: var(--loss); font: 500 1.05rem var(--mono); letter-spacing: -.02em; }
.tm__sentence { color: var(--mute); font-style: italic; }
.btns { display: grid; gap: .6rem; padding-top: .5rem; }
@media (min-width: 560px) { .btns { grid-template-columns: 1fr 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 52px; padding: 0 1.25rem; border: 1px solid var(--gold); background: var(--gold); color: var(--bg); font: 600 .9rem var(--mono); letter-spacing: .01em; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn:hover { background: #d8b35f; border-color: #d8b35f; }
.btn:disabled { opacity: .5; cursor: default; }
.btn--ghost { background: none; color: var(--gold); border-color: var(--gold-dim); }
.btn--ghost:hover { background: rgba(201, 162, 74, .08); color: var(--gold); border-color: var(--gold); }

/* 3 · Perde: iPhone çerçeveleri */
.phones { display: grid; gap: clamp(4rem, 14vh, 8rem); }
.phone { margin: 0; display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.phone__frame { position: relative; width: min(262px, 66vw); aspect-ratio: 393 / 852; padding: 8px; border-radius: 44px; background: #0E0E10; border: 1px solid rgba(201, 162, 74, .42); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 0 90px var(--gold-glow), 0 40px 80px -30px rgba(0, 0, 0, .9); }
.phone__frame::before { content: ""; position: absolute; inset: -18% -30%; z-index: -1; background: radial-gradient(closest-side, rgba(201, 162, 74, .16), transparent 70%); }
.phone__frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; background: #fff; }
.phone figcaption { max-width: 24ch; color: var(--mute); font-size: clamp(1.1rem, 1rem + .6vw, 1.3rem); }
.phone figcaption b { display: block; font-weight: 400; color: var(--ink); }
.phone .meta { display: block; margin-top: .6rem; }
@media (min-width: 900px) {
  .phones { grid-template-columns: repeat(3, 1fr); align-items: start; gap: 2rem; }
  .phone:nth-child(2) { --delay: .35s; } .phone:nth-child(3) { --delay: .7s; }
}

/* 4 · Söz */
.vows { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 40rem; margin-top: 1.5rem; }
.vow { display: grid; align-content: start; gap: .8rem; justify-items: start; color: var(--mute); font-size: 1rem; line-height: 1.3; }
.vow i { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold-dim); color: var(--gold); }
.vow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* 5 · Davet */
.wl { display: grid; gap: 1.5rem; max-width: 36rem; margin-top: 2rem; }
.wl__email { display: grid; gap: .4rem; }
.wl__email input { background: none; border: 0; border-bottom: 1px solid var(--gold-dim); border-radius: 0; padding: .9rem 0; font: 500 1.25rem var(--mono); color: var(--ink); width: 100%; -webkit-appearance: none; }
.wl__email input::placeholder { color: var(--gold-mute); }
.wl__email input:focus { border-color: var(--gold); outline: none; }
.wl__consent { display: grid; grid-template-columns: 20px 1fr; gap: .85rem; align-items: start; color: var(--mute); font-size: .95rem; line-height: 1.45; }
.wl__consent input { width: 20px; height: 20px; margin: .2rem 0 0; accent-color: var(--gold); }
.wl__consent a { color: var(--ink); border-bottom: 1px solid var(--gold-dim); }
.wl__status { min-height: 1.5em; font: 400 .9rem var(--mono); color: var(--mute); }
.wl__status[data-kind="err"] { color: var(--loss); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Kayıttan sonra: ekran kararır, tek kart */
.veil { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 1.25rem; background: rgba(5, 5, 6, .94); opacity: 0; pointer-events: none; transition: opacity .9s var(--ease); }
.veil.is-on { opacity: 1; pointer-events: auto; }
.card { width: min(100%, 26rem); display: grid; gap: 1.1rem; padding: 1.75rem; background: var(--surface); border: 1px solid var(--gold-dim); box-shadow: 0 0 120px rgba(201, 162, 74, .08); transform: translateY(12px); transition: transform 1s var(--ease) .2s; }
.veil.is-on .card { transform: none; }
.card__pos { font: 500 clamp(3rem, 2rem + 6vw, 4.5rem)/1 var(--mono); color: var(--gold); letter-spacing: -.045em; }
.card__link { display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center; padding: .7rem .85rem; border: 1px solid var(--line); font: 400 .82rem var(--mono); color: var(--ink); }
.card__link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__link button { background: none; border: 0; padding: 0; color: var(--gold); font: 500 .82rem var(--mono); cursor: pointer; }
.share { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.share .btn { height: 44px; font-size: .8rem; padding: 0 .5rem; }
.card .meta { color: var(--mute); }
.card__close { justify-self: start; background: none; border: 0; padding: 0; color: var(--mute); font: 400 .85rem var(--mono); cursor: pointer; border-bottom: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .veil, .card { transition: none; } }

/* 6 · Alt */
.foot { min-height: 0; padding-top: 3rem; padding-bottom: max(2.5rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 1.1rem; font: 400 .82rem/1.6 var(--mono); color: var(--mute); }
.foot nav { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; }
.foot nav a:hover { color: var(--ink); }
.foot .meta { max-width: 44rem; }
.mark { display: inline-grid; grid-auto-flow: column; gap: 3px; align-items: end; height: 14px; cursor: pointer; background: none; border: 0; padding: 0; color: var(--gold); }
.mark i { display: block; width: 2px; background: currentColor; }
.mark i:nth-child(1) { height: 6px; } .mark i:nth-child(2) { height: 10px; } .mark i:nth-child(3) { height: 14px; } .mark i:nth-child(4) { height: 8px; } .mark i:nth-child(5) { height: 11px; }

/* Gizli kapı */
dialog.secret { background: var(--surface); color: var(--ink); border: 1px solid var(--gold); padding: 1.75rem; width: min(92vw, 26rem); font-family: var(--serif); }
dialog.secret::backdrop { background: rgba(5, 5, 6, .85); }
dialog.secret h3 { margin: 0 0 .6rem; font: 400 1.6rem/1.1 var(--serif); }
dialog.secret .num { color: var(--gold); }
dialog.secret .row { display: flex; gap: .6rem; margin-top: 1.2rem; }

/* Yasal / davet sayfaları */
.doc { max-width: 42rem; margin: 0 auto; padding: 4rem var(--gutter) 5rem calc(var(--gutter) + var(--ruler)); }
.doc .top { display: flex; align-items: center; gap: .75rem; margin-bottom: 3rem; font: 400 .85rem var(--mono); color: var(--mute); }
.doc h1 { font-size: clamp(2rem, 1.6rem + 2.5vw, 3rem); }
.doc .legal h2 { font-size: 1.6rem; margin: 2.2rem 0 .6rem; }
.doc .legal h3, .doc .legal h4 { font-size: 1.25rem; font-weight: 400; margin: 1.6rem 0 .4rem; }
.doc .legal p, .doc .legal li { color: #CFC9BD; max-width: 100%; }
.doc .legal ul, .doc .legal ol { padding-left: 1.2rem; }
.doc .legal table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1rem 0; }
.doc .legal th, .doc .legal td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc .legal a { color: var(--gold); }
.doc .legal code { font-family: var(--mono); font-size: .9em; color: var(--gold); }
.doc .legal blockquote { margin: 1rem 0; padding-left: 1rem; border-left: 2px solid var(--gold-dim); color: var(--mute); }
.doc .btn { margin-top: 1.5rem; }
