/* Yakında — the standalone placeholder served on the domain until the app
   ships. Same tokens as app/globals.css, copied rather than imported: this
   folder deploys on its own and must not depend on the Next build. */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-variable.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

:root {
  --bg: #1a1917;
  --surface: #232220;
  --border: #3a3733;
  --text: #e9e4da;
  --text-muted: #9b958a;
  --accent: #45908f;
  --radius: 8px;
  --measure: 68ch;
  --ease: cubic-bezier(0, 0, 0.2, 1);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  padding-inline: 24px;
}

.site-header,
.site-footer {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
}

/* ---- Header ---------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 24px;
}

.site-header svg {
  width: 40px;
  height: auto;
  color: var(--text-muted);
  opacity: 0.6;
}

.brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---- Stage ---------------------------------------------------------------- */

.stage {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding-block: 40px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* The empty-state motif of the app: crisp glyphs over a blurred copy in gök,
   two layers so the halo keeps its own strength (see TurkMotif.tsx). */
.motif {
  position: relative;
  width: min(340px, 72%);
  aspect-ratio: 2238 / 746;
  margin-bottom: 44px;
}

.motif svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.motif .glyphs {
  color: var(--text-muted);
  opacity: 0.5;
}

.motif .halo {
  color: var(--accent);
  opacity: 0.4;
  filter: blur(14px);
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lede {
  margin: 16px 0 0;
  max-width: var(--measure);
  color: var(--text);
}

/* Streaming: every word is in the page from the start, so nothing reflows and
   screen readers get the whole sentence; script only lifts the veil word by
   word. Without script (or with reduced motion) the text is simply there. */
.streaming .lede .word {
  opacity: 0;
}

.streaming .lede .word.shown {
  opacity: 1;
  transition: opacity 120ms var(--ease);
}

/* ---- Status: the wolf from the app's thinking indicator ------------------- */

.status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

/* Black silhouette on transparency, used as a mask over the text colour so it
   reads on the dark stone. It breathes because it reports a state: the
   product is being prepared (§12.4). */
.wolf {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background-color: var(--text);
  -webkit-mask: url("kurt.png") center / contain no-repeat;
  mask: url("kurt.png") center / contain no-repeat;
  animation: wolf-breathe 2.6s ease-in-out infinite;
}

@keyframes wolf-breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

/* The script counts the dots up (". → .. → ...") and swaps the line. A
   hidden dot keeps its width, so the line never jitters. Without script the
   status reads a plain "Hazırlanıyor...". */
.dots .off {
  opacity: 0;
}

.quip {
  transition: opacity 120ms var(--ease);
}

.quip.fading {
  opacity: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Models: the left rule the app puts beside a reply -------------------- */

.models-title {
  margin: 56px 0 16px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.models {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.models li {
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

.models strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.models span {
  color: var(--text-muted);
}

/* ---- Footer --------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
}

/* ---- Narrow screens ------------------------------------------------------- */

@media (max-width: 560px) {
  body {
    padding-inline: 16px;
  }

  .stage {
    padding-block: 24px 48px;
  }

  .motif {
    margin-bottom: 32px;
  }

  h1 {
    font-size: 28px;
  }

  .models-title {
    margin-top: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wolf {
    animation: none;
  }

  .quip {
    transition: none;
  }

  .streaming .lede .word {
    opacity: 1;
  }
}
