/* ============================================================
   Crewia landing — Warm Premium Navy
   Palette: bg #0E1526 / #121A2F · text light · orange #F0A04B
   (times/emphasis/CTA) · teal #5BC8AF (icons/accents)
   Mobile-first. No framework.
   ============================================================ */

:root {
  --bg: #0e1526;
  --bg-2: #121a2f;
  --panel: #16203a;
  --panel-2: #1b2744;
  --border: #24314f;
  --text: #eaeff7;
  --text-muted: #9aa7bd;
  --text-dim: #6f7d96;
  --orange: #f0a04b;
  --orange-hi: #f6b268;
  --teal: #5bc8af;
  --teal-dim: #3f9d87;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --gap: clamp(1rem, 4vw, 2rem);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji", sans-serif;
}

* {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 600px at 50% -10%, #172445 0%, rgba(23, 36, 69, 0) 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 5vw, 2.5rem);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
}

/* ---- accessibility helpers ---- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: #1a1205;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

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

/* ---- header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(14, 21, 38, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--teal);
  vertical-align: middle;
}
.lang-toggle {
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;
}
.lang-toggle:hover {
  border-color: var(--teal-dim);
  background: var(--panel-2);
}
.lang-toggle:active {
  transform: translateY(1px);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  transition: transform 0.06s ease, box-shadow 0.2s ease, filter 0.15s ease;
}
.btn-primary {
  background: linear-gradient(180deg, var(--orange-hi), var(--orange));
  color: #241505;
  box-shadow: 0 10px 24px -10px rgba(240, 160, 75, 0.7);
}
.btn-primary:hover {
  filter: brightness(1.04);
}
.btn-primary:active {
  transform: translateY(1px);
}
.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  background: var(--panel-2);
  color: var(--text-dim);
  box-shadow: none;
  cursor: not-allowed;
  filter: none;
}

/* ---- hero ---- */
.hero {
  padding-block: clamp(3.5rem, 12vw, 7rem) clamp(2.5rem, 8vw, 4.5rem);
  text-align: center;
}
.hero-inner {
  max-width: 60ch;
  margin-inline: auto;
}
.hero-title {
  font-size: clamp(2.3rem, 5vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 13ch;
  margin: 0 auto 1.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #c7d2e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto 2.25rem;
}
.hero-cta {
  font-size: 1.05rem;
  padding-inline: 2rem;
}

/* ---- features ---- */
.features {
  padding-block: clamp(1rem, 6vw, 3rem);
}
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(2.5rem, 8vw, 5rem);
}
.feature {
  display: grid;
  gap: clamp(1.25rem, 5vw, 2.5rem);
  align-items: center;
}
.feature-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-body {
  max-width: 46ch;
}
.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(91, 200, 175, 0.12);
  color: var(--teal);
  border: 1px solid rgba(91, 200, 175, 0.4);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.feature-title {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 0.6rem;
}
.feature-text {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

/* desktop: alternate image / text side by side */
@media (min-width: 760px) {
  .feature {
    grid-template-columns: 1fr 1fr;
  }
  .feature:nth-child(even) .feature-media {
    order: 2;
  }
}

/* ---- waitlist ---- */
.waitlist {
  padding-block: clamp(3.5rem, 11vw, 6.5rem);
  margin-top: clamp(2rem, 8vw, 4rem);
  /* clear the sticky header (~60px) + breathing room so the hero CTA
     anchor lands the whole form in view, not just the top edge. */
  scroll-margin-top: 84px;
}
.waitlist-inner {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
  background: linear-gradient(180deg, rgba(27, 39, 68, 0.6), rgba(18, 26, 47, 0.6));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.75rem, 6vw, 3rem);
  box-shadow: var(--shadow);
}
.waitlist-title {
  font-size: clamp(1.5rem, 5.5vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 0.75rem;
}
.waitlist-sub {
  color: var(--text-muted);
  margin: 0 auto 1.75rem;
  max-width: 44ch;
}

/* Brevo iframe sits inside a rounded card matching the navy design.
   The white Brevo form blends into the white card surface; the navy
   section shows the subtle border + radius around it. Iframe itself
   is left as-is (its own inline max-width:100% keeps it responsive). */
.brevo-card {
  max-width: 560px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* Fill the card width and give the iframe enough height that the WHOLE
   Brevo form (email + consent + submit) shows without internal scroll.
   Taller on mobile where fields/consent stack and wrap. Erdinç: nudge
   these if the real form clips or leaves too much white space. */
.brevo-iframe {
  display: block;
  width: 100%;
  height: 460px;
  border: 0;
}
@media (max-width: 480px) {
  .brevo-iframe {
    height: 540px;
  }
}

/* ---- footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem;
  margin-top: clamp(2rem, 8vw, 4rem);
}
.footer-text {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0;
}
