/* Kazım Erol Yegenaga — project design system.
   Theme tokens, base typography, focus, CSS-only state (FAQ icon,
   sticky bar) and scroll-reveal motion. Everything else is Tailwind. */

:root {
  /* Palette — near-black with a blue accent. */
  --ink: #05070a;
  --panel: #0a111a;
  --panel-2: #0b1622;
  --bone: #eef3f8;
  --muted: #9aa9b8;
  --muted-dim: #6e7c8b;
  --accent: #4da3ff;
  --accent-2: #8fcbff;
  --accent-soft: rgba(77, 163, 255, 0.12);
  --line: rgba(143, 203, 255, 0.14);
  --line-2: rgba(143, 203, 255, 0.3);
  --glow: rgba(77, 163, 255, 0.22);
  --glow-color: rgba(77, 163, 255, 0.42);

  /* Type */
  --font-display: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background-color: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

::selection {
  background-color: var(--accent);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Faint star layer for the hero atmosphere. */
.starfield {
  background-image:
    radial-gradient(1px 1px at 18% 26%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 72% 14%, rgba(255, 255, 255, 0.22), transparent),
    radial-gradient(1px 1px at 44% 68%, rgba(143, 203, 255, 0.32), transparent),
    radial-gradient(1px 1px at 86% 54%, rgba(255, 255, 255, 0.18), transparent),
    radial-gradient(1px 1px at 28% 88%, rgba(255, 255, 255, 0.16), transparent);
  background-size: 260px 260px;
  background-repeat: repeat;
}

/* Scroll reveal (JS adds .js and .is-in) */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.75s var(--ease-out) var(--d, 0ms),
    transform 0.75s var(--ease-out) var(--d, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* FAQ — native <details>, styled open state */
.faq > summary {
  list-style: none;
  cursor: pointer;
}

.faq > summary::-webkit-details-marker {
  display: none;
}

.faq .faq-plus {
  transition: transform 0.25s var(--ease-out);
}

.faq[open] .faq-plus {
  transform: rotate(45deg);
}

.faq[open] > summary .faq-q {
  color: var(--accent-2);
}

/* Sticky mobile CTA */
.sticky-cta {
  transform: translateY(115%);
  transition: transform 0.35s var(--ease-out);
}

.sticky-cta[data-visible="true"] {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sticky-cta,
  .faq .faq-plus {
    transition: none;
  }
}
