/* fishigo. — landing site
   Archival-buttermax: the app's own flat inks + paper, Fraunces display,
   IBM Plex Mono data. Scroll is the timeline; each scene floods a new
   flat field from the same family. No gradients, no glass (brief §6). */

/* ---------- fonts (self-hosted, same files as the app) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/Fraunces-Italic-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("assets/fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("assets/fonts/IBMPlexMono-SemiBold.ttf") format("truetype");
  font-weight: 600; font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  --murekkep: #16303D;
  --murekkep-koyu: #0F222C;
  --kagit: #EDE5D1;
  --kagit-koyu: #DCD1B6;
  --cizgi: #28414E;
  --muhur: #C2402F;
  --pirinc: #8F6F26;
  --pirinc-parlak: #B9932F;

  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* live scene colorway — JS recolors the nav from these */
  --field: var(--murekkep);
  --ink: var(--kagit);
  --pop: var(--muhur);

  --ease: cubic-bezier(.2,.9,.3,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
body {
  background: var(--murekkep-koyu);
  color: var(--kagit);
  font-family: var(--mono);
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.loading { overflow: hidden; height: 100vh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--muhur); color: var(--kagit); }

.mono { font-family: var(--mono); }
.disp { font-family: var(--display); font-weight: 900; font-optical-sizing: auto; }
.ital { font-style: italic; }

/* label: the little mono caps the app uses everywhere */
.label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(9px, 1vw, 11px);
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .62;
}

/* ---------- loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--murekkep-koyu);
  display: grid; place-items: center;
  transition: transform 1s var(--ease);
}
#loader.done { transform: translateY(-101%); }
.loader-inner { text-align: center; width: min(80vw, 360px); }
.loader-fish { width: 96px; height: 42px; margin: 0 auto 26px; color: var(--kagit); }
.loader-fish path {
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-dasharray: 320; stroke-dashoffset: 320;
  animation: draw 1.6s var(--ease) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.loader-bar {
  height: 2px; background: var(--cizgi); margin: 18px 0 12px; overflow: hidden;
}
.loader-bar span { display: block; height: 100%; width: 0; background: var(--kagit); }
#loader .label { display: flex; justify-content: space-between; }
#loader .num { opacity: 1; font-weight: 600; }

/* ---------- nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(16px, 4vw, 40px);
  color: var(--nav-ink, var(--kagit));
  transition: color .5s var(--ease);
  mix-blend-mode: normal;
}
.brand { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -.01em; }
.brand .dot { color: var(--muhur); }
.nav-right { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 20px); }

.langtog {
  display: inline-flex; border: 1.4px solid currentColor; border-radius: 999px;
  overflow: hidden; font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .06em;
}
.langtog button {
  background: none; border: 0; color: inherit; cursor: pointer;
  padding: 5px 11px; font: inherit; opacity: .5; transition: opacity .2s, background .2s;
}
.langtog button.on { opacity: 1; background: currentColor; }
.langtog button.on span { color: var(--field); }
.langtog button:not(.on):hover { opacity: .85; }

.sndtog {
  width: 34px; height: 34px; border-radius: 999px; border: 1.4px solid currentColor;
  background: none; color: inherit; cursor: pointer;
  display: grid; place-items: center; gap: 2px;
}
.sndtog .eq { display: flex; align-items: flex-end; gap: 2px; height: 13px; }
.sndtog .eq i { width: 2.5px; background: currentColor; height: 40%; border-radius: 2px; }
.sndtog.on .eq i { animation: eq 1s var(--ease) infinite alternate; }
.sndtog .eq i:nth-child(2){ animation-delay: .18s; height: 80%; }
.sndtog .eq i:nth-child(3){ animation-delay: .36s; height: 55%; }
@keyframes eq { to { height: 100%; } }

.appstore {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1.5px solid currentColor; border-radius: 999px;
  padding: 8px 16px; font-family: var(--mono); font-weight: 600;
  font-size: 12px; letter-spacing: .04em; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease);
}
.appstore:hover { background: currentColor; transform: translateY(-1px); }
.appstore:hover span { color: var(--field); }
.appstore:hover svg { fill: var(--field); }
.appstore svg { width: 15px; height: 15px; fill: currentColor; }
.nav .appstore { display: none; }
@media (min-width: 720px){ .nav .appstore { display: inline-flex; } }

/* ---------- edge factoids ---------- */
.edge {
  position: fixed; top: 50%; z-index: 40;
  font-family: var(--mono); font-weight: 600; font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  writing-mode: vertical-rl; color: var(--nav-ink, var(--kagit));
  opacity: .5; transition: color .5s var(--ease); pointer-events: none;
}
.edge.l { left: 14px; transform: translateY(-50%) rotate(180deg); }
.edge.r { right: 14px; transform: translateY(-50%); }
@media (max-width: 1024px){ .edge { display: none; } }

/* ---------- cursor trail canvas ---------- */
#trail { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
@media (max-width: 1024px){ #trail { display: none; } }

/* ---------- scene scaffold ---------- */
.scene {
  position: relative;
  background: var(--field); color: var(--ink);
  overflow: clip;
  padding: clamp(90px, 12vh, 150px) clamp(20px, 5vw, 72px);
  min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
}
.scene--full { min-height: 100vh; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; }

/* wave divider — fill = the NEXT scene's field */
.wave { display: block; width: 100%; height: 70px; margin-bottom: -1px; }
.wave svg { display: block; width: 100%; height: 100%; }

/* section kicker */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 600; font-size: 12px;
  letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px;
}
.kicker::before { content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .6; }
.kicker .no { color: var(--pop); }

.h-xl { font-family: var(--display); font-weight: 900; line-height: .9;
  font-size: clamp(44px, 9vw, 132px); letter-spacing: -.02em; font-optical-sizing: auto; }
.h-lg { font-family: var(--display); font-weight: 900; line-height: .92;
  font-size: clamp(34px, 6.5vw, 88px); letter-spacing: -.015em; font-optical-sizing: auto; }
.lede { font-family: var(--mono); font-size: clamp(14px, 1.5vw, 17px); line-height: 1.65;
  max-width: 46ch; opacity: .82; }
.lede .hl { color: var(--pop); opacity: 1; }

/* reveal-on-scroll */
.rev { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rev.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
#hero { --field: var(--murekkep); --ink: var(--kagit); --pop: var(--muhur);
  justify-content: flex-start; padding-top: clamp(120px, 18vh, 220px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 900px){ .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 20px; } }
.hero-word { font-family: var(--display); font-weight: 900; font-optical-sizing: auto;
  font-size: clamp(78px, 20vw, 300px); line-height: .82; letter-spacing: -.03em; }
.hero-word .dot { color: var(--muhur); }
.hero-sub { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; }
.hero-tag { font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(20px, 2.6vw, 34px); }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.badge-store {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--kagit); color: var(--murekkep-koyu);
  border-radius: 13px; padding: 12px 20px 12px 16px; cursor: pointer;
  transition: transform .2s var(--ease); border: 1.5px solid var(--kagit);
}
.badge-store:hover { transform: translateY(-2px); }
.badge-store svg { width: 26px; height: 26px; fill: var(--murekkep-koyu); }
.badge-store .t1 { font-family: var(--mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; display:block; }
.badge-store .t2 { font-family: var(--display); font-weight: 800; font-size: 18px; line-height: 1.05; display:block; }
.count-note { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; opacity: .7; }
.count-note b { color: var(--muhur); font-weight: 600; }

/* spinning seal badge */
.seal { position: absolute; color: var(--kagit); animation: spin 18s linear infinite; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal .fishmark { fill: var(--muhur); }
@keyframes spin { to { transform: rotate(360deg); } }
#hero .seal { width: clamp(90px, 11vw, 150px); right: clamp(20px, 6vw, 90px); top: clamp(84px, 12vh, 150px); }
@media (max-width: 900px){ #hero .seal { top: 76px; right: 18px; width: 84px; } }

/* ---------- phone mockup ---------- */
.phone {
  position: relative; width: min(300px, 74vw); aspect-ratio: 1320 / 2868;
  background: #0a161d; border-radius: 42px; padding: 9px;
  border: 1px solid var(--cizgi);
  box-shadow: 0 0 0 2px rgba(0,0,0,.25);
}
.phone .scr { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: var(--murekkep-koyu); }
.phone .scr img { width: 100%; height: 100%; object-fit: cover; }
.phone .island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 33%; height: 22px; background: #050d12; border-radius: 999px; z-index: 2; }
.hero-phone { justify-self: center; }
@media (min-width: 900px){ .hero-phone { justify-self: end; } }

/* ---------- scene: teşhis ---------- */
#teshis { --field: var(--murekkep-koyu); --ink: var(--kagit); --pop: var(--muhur); }
.teshis-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px){ .teshis-grid { grid-template-columns: .8fr 1.2fr; } }
.steps { display: flex; flex-direction: column; gap: 2px; margin-top: 30px; }
.step { display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--cizgi); }
.step:last-child { border-bottom: 1px solid var(--cizgi); }
.step .n { font-family: var(--mono); font-weight: 600; color: var(--pirinc-parlak); font-size: 13px; }
.step .st { font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2.4vw, 28px); }
.step .sd { font-family: var(--mono); font-size: 12px; opacity: .6; margin-top: 2px; }
.phone-stamp-wrap { position: relative; justify-self: center; }

/* ---------- scene: balıkdeks (paper, inverted) ---------- */
#deks { --field: var(--kagit); --ink: var(--murekkep); --pop: var(--muhur); }
.deks-head { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.deks-count { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 7vw, 92px); line-height: .9; }
.deks-count .of { color: var(--pirinc); }
.deks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 560px){ .deks-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px){ .deks-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; } }
.tile {
  border: 1.5px solid var(--murekkep); border-radius: 3px;
  aspect-ratio: 1.9 / 1; padding: 10px 10px 8px; display: flex; flex-direction: column;
  justify-content: space-between; background: transparent; position: relative; overflow: hidden;
}
.tile.caught { background: var(--murekkep); }
.tile.pop { transform: scale(1.04); }
.tile svg { width: 100%; height: 66%; }
.tile .sil { fill: none; stroke: var(--murekkep); stroke-width: 1.6;
  stroke-dasharray: 2.2 3.2; stroke-linecap: round; opacity: .5;
  transition: opacity .45s var(--ease); }
.tile.caught .sil { fill: var(--kagit); stroke: none; opacity: 1; }
.tile .nm { font-family: var(--mono); font-weight: 600; font-size: 9px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--murekkep); text-align: center; opacity: .8; }
.tile.caught .nm { color: var(--kagit); opacity: 1; }
.tile.epik { border-color: var(--muhur); }
.tile.efsanevi { border-color: var(--pirinc); }
.tile .rar { position: absolute; top: 6px; right: 7px; width: 5px; height: 5px; border-radius: 999px; }
.tile.epik .rar { background: var(--muhur); }
.tile.efsanevi .rar { background: var(--pirinc); }
.deks-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.leg { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.leg i { width: 9px; height: 9px; border-radius: 999px; display: inline-block; }

/* ---------- scene: yasallık ---------- */
#yasa { --field: var(--murekkep); --ink: var(--kagit); --pop: var(--muhur); }
.yasa-grid { display: grid; grid-template-columns: 1fr; gap: 46px; align-items: center; }
@media (min-width: 900px){ .yasa-grid { grid-template-columns: 1.15fr .85fr; } }
.legal-stamps { display: flex; gap: 26px; flex-wrap: wrap; justify-content: center; }
.lstamp {
  border: 3px solid; border-radius: 8px; padding: 22px 26px; text-align: center;
  transform: rotate(-6deg); font-family: var(--mono);
}
.lstamp.ok { color: var(--pirinc-parlak); transform: rotate(-6deg); }
.lstamp.no { color: var(--muhur); transform: rotate(5deg); }
.lstamp .big { font-family: var(--display); font-weight: 900; font-size: clamp(30px, 4vw, 52px); line-height: 1; display: block; }
.lstamp .sm { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .8; margin-top: 6px; display:block; }
.chiprow { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.chip { display: flex; align-items: flex-start; gap: 13px; }
.chip .dot { flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--pop); margin-top: 7px; }
.chip b { font-family: var(--display); font-weight: 800; font-size: 17px; }
.chip p { font-family: var(--mono); font-size: 12.5px; opacity: .66; line-height: 1.55; }

/* ---------- scene: koşullar ---------- */
#kosul { --field: var(--murekkep-koyu); --ink: var(--kagit); --pop: var(--pirinc-parlak); }
.kosul-grid { display: grid; grid-template-columns: 1fr; gap: 46px; align-items: center; }
@media (min-width: 900px){ .kosul-grid { grid-template-columns: .9fr 1.1fr; } }
.score-card { border: 1px solid var(--cizgi); border-radius: 4px; padding: 34px; text-align: center; }
.score-num { font-family: var(--display); font-weight: 900; font-size: clamp(80px, 13vw, 150px); line-height: .85; color: var(--kagit); }
.score-phrase { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3vw, 34px); margin-top: 6px; }
.solunar { margin-top: 26px; display: grid; gap: 2px; }
.sol-row { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--cizgi);
  font-family: var(--mono); font-size: 13px; }
.sol-row .maj { color: var(--pirinc-parlak); font-weight: 600; }
.sol-row .tag { letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.disc { font-family: var(--mono); font-size: 11px; opacity: .5; margin-top: 22px; line-height: 1.6; }

/* ---------- scene: noktan (privacy) ---------- */
#nokta { --field: var(--murekkep); --ink: var(--kagit); --pop: var(--muhur); }
.nokta-grid { display: grid; grid-template-columns: 1fr; gap: 46px; align-items: center; }
@media (min-width: 900px){ .nokta-grid { grid-template-columns: 1.1fr .9fr; } }
.no-list { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }
.no-item { display: flex; align-items: center; gap: 13px; font-family: var(--mono); font-size: 14px; }
.no-item .x { color: var(--muhur); font-weight: 700; font-size: 18px; }
.no-item .y { color: var(--pirinc-parlak); font-weight: 700; font-size: 18px; }

/* ---------- footer / cta ---------- */
#son { --field: var(--kagit); --ink: var(--murekkep); --pop: var(--muhur); min-height: auto; }
.son-cta { text-align: center; }
.countdown { display: inline-flex; gap: clamp(10px, 3vw, 34px); margin: 30px 0 34px; }
.cd-unit { text-align: center; }
.cd-num { font-family: var(--display); font-weight: 900; font-size: clamp(38px, 7vw, 78px); line-height: .9; }
.cd-lab { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; margin-top: 46px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
.footer-links a { border-bottom: 1px solid transparent; padding-bottom: 2px; }
.footer-links a:hover { border-color: currentColor; }
.finelaw { font-family: var(--mono); font-size: 11px; opacity: .5; margin-top: 26px; text-align: center; line-height: 1.6; max-width: 60ch; margin-left: auto; margin-right: auto; }
.footmark { font-family: var(--display); font-weight: 900; font-size: clamp(60px, 22vw, 280px); line-height: .8;
  text-align: center; margin-top: 40px; letter-spacing: -.03em; opacity: .96; }
.footmark .dot { color: var(--muhur); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor;
  padding: 14px 0; margin: 8px 0; }
.marquee .track { display: inline-flex; white-space: nowrap; will-change: transform;
  animation: marq 26s linear infinite; }
.marquee .track span { font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: clamp(20px, 3vw, 34px); padding: 0 26px; }
.marquee .track .star { color: var(--muhur); font-style: normal; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  #loader { display: none !important; }
  body.loading { overflow: auto; height: auto; }
  .rev { opacity: 1; transform: none; transition: none; }
  .seal, .marquee .track, .sndtog.on .eq i { animation: none; }
  .loader-fish path { stroke-dashoffset: 0; animation: none; }
  * { scroll-behavior: auto !important; }
}
