/* ============================================================
   Synchro Tech — Landing styles
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --color-primary: #C8102E;
  --color-primary-dark: #8A0A1F;
  --color-primary-50: #FCEBEE;
  --color-bg: #FFFFFF;
  --color-bg-soft: #F5F5F5;
  --color-bg-dark: #1A1A1A;
  --color-text: #0F0F0F;
  --color-text-soft: #3A3A3A;
  --color-text-muted: #6A6A6A;
  --color-border: #E5E5E5;
  --color-border-soft: #EEEEEE;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 20px;

  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 6px 28px rgba(0, 0, 0, 0.08);
  --shadow-nav: 0 1px 0 rgba(0, 0, 0, 0.04), 0 4px 18px rgba(0, 0, 0, 0.04);

  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1200px;
  --container-narrow: 720px;
  --nav-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* ---------- Utilities ---------- */
.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; top: -40px; left: 16px;
  background: var(--color-primary); color: #fff;
  padding: 10px 16px; border-radius: 6px;
  text-decoration: none; z-index: 1000;
  font-weight: 600; font-size: 0.875rem;
}
.skip-link:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.container-narrow { max-width: var(--container-narrow); }

/* ---------- Focus ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- NAV ---------- */
.site-nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  transition: background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom-color: var(--color-border);
  box-shadow: var(--shadow-nav);
}
.nav-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand { display: inline-flex; align-items: center; text-decoration: none; }
.nav-logo { height: 32px; width: auto; }
@media (min-width: 720px) { .nav-logo { height: 36px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.875rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 120ms ease, box-shadow 200ms ease, border-color 180ms ease;
  white-space: nowrap;
}
.btn-sm { padding: 0.625rem 1.125rem; font-size: 0.875rem; }
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-on-dark {
  background: #fff;
  color: var(--color-primary);
}
.btn-on-dark:hover { background: var(--color-primary-50); }
.btn-spinner {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: none;
  animation: spin 700ms linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.7; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: clamp(3rem, 8vh, 6rem) 0 clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}
@supports (height: 90dvh) {
  @media (max-width: 720px) { .hero { min-height: 90dvh; } }
}
.hero-inner { width: 100%; text-align: left; }
@media (min-width: 720px) { .hero-inner { text-align: center; } }

.launch-badge {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--color-text);
}
.hero-sub {
  margin: 0 auto 1.25rem;
  font-size: clamp(1.125rem, 1.6vw, 1.375rem);
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  max-width: 640px;
}
@media (max-width: 719px) { .hero-sub { margin-left: 0; margin-right: 0; } }

.hero-body {
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text-soft);
  max-width: 540px;
}
@media (max-width: 719px) { .hero-body { margin-left: 0; margin-right: 0; } }

/* ---------- Forms ---------- */
.notify-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 719px) {
  .notify-form { margin-left: 0; margin-right: 0; }
}
.notify-form .field { flex: 1; min-width: 0; }
.notify-form input[type="email"] {
  width: 100%;
  padding: 0.875rem 1.125rem;
  font: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.notify-form input[type="email"]::placeholder { color: var(--color-text-muted); }
.notify-form input[type="email"]:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-50);
}
.notify-form input[type="email"][aria-invalid="true"] {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-50);
}

.field-error {
  margin: 0.4rem 0 0;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--color-primary);
  min-height: 1em;
}
.field-error-on-dark { color: #FF8A9A; }

.form-success {
  padding: 1rem 1.25rem;
  background: var(--color-primary-50);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  color: var(--color-primary-dark);
  font-weight: 500;
  text-align: center;
}
.form-success p { margin: 0; }
.form-success-on-dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}

@media (min-width: 560px) {
  .notify-form {
    flex-direction: row;
    align-items: flex-start;
  }
  .notify-form .btn { flex-shrink: 0; height: 50px; }
  .notify-form input[type="email"] { height: 50px; padding-top: 0; padding-bottom: 0; }
}
.notify-form--final input[type="email"] {
  background: #fff;
  border-color: rgba(255,255,255,0.15);
}
.notify-form--final input[type="email"]:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.35);
}

.privacy-note {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  max-width: 520px;
}
@media (min-width: 720px) { .privacy-note { margin-left: auto; margin-right: auto; } }
.privacy-note-on-dark { color: rgba(255,255,255,0.6); }

/* ---------- Scroll cue ---------- */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(1rem, 4vh, 2.5rem);
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 160ms ease;
}
.scroll-cue:hover { color: var(--color-text); }
.scroll-cue-chev { width: 22px; height: 22px; animation: scrollCueBounce 1.8s var(--ease-out-soft) infinite; }
@keyframes scrollCueBounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue-chev { animation: none; }
}

/* ---------- Generic section ---------- */
.section {
  padding: clamp(4rem, 10vh, 8rem) 0;
  background: var(--color-bg);
}
.section-soft { background: var(--color-bg-soft); }
.section-dark {
  background: var(--color-bg-dark);
  color: #fff;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
}
.eyebrow-on-dark { color: #FF8A9A; }
.section-title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
}
.section-title-on-dark { color: #fff; }
.section-sub {
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-soft);
  max-width: 560px;
}
.section-sub-on-dark { color: rgba(255,255,255,0.75); }

/* ---------- Grids ---------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
@media (min-width: 600px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Cards (pillars) ---------- */
.card {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 200ms ease, transform 200ms ease, border-color 200ms ease;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
  border-color: var(--color-border);
}
.card-icon {
  width: 48px; height: 48px;
  margin-bottom: 1.25rem;
}
.card-title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.card-body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-soft);
}

/* ---------- Tiles (curriculum) ---------- */
.tile {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: box-shadow 200ms ease, transform 200ms ease;
  overflow: hidden;
}
.tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--color-primary);
}
.tile:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.tile-icon { width: 40px; height: 40px; margin-bottom: 1rem; }
.tile-title {
  margin: 0 0 0.4rem;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.tile-body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-soft);
}

/* ---------- Audience ---------- */
.audience-grid { gap: clamp(1rem, 2.5vw, 1.5rem); }
.audience-block {
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 3px solid var(--color-primary);
  background: transparent;
}
.audience-title {
  margin: 0 0 0.4rem;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text);
}
.audience-body {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--color-text-soft);
}

/* ---------- Two-col (transition) ---------- */
.two-col {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .two-col { grid-template-columns: 60fr 40fr; }
}
.two-col-text .eyebrow,
.two-col-text .section-title { display: block; }
.two-col-text .section-title { text-align: left; }
.prose {
  margin: 1rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-soft);
}
.two-col-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.illus { max-width: 360px; width: 100%; height: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: #FAFAFA;
  border-top: 1px solid var(--color-border);
  padding-top: clamp(2.5rem, 6vh, 4rem);
  color: var(--color-text-soft);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: clamp(2rem, 5vh, 3rem);
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-logo { height: 28px; width: auto; margin-bottom: 0.85rem; }
.footer-tagline {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
}
.footer-meta { margin: 0; font-size: 0.875rem; color: var(--color-text-soft); }
.footer-meta-soft { margin: 0.25rem 0 0.85rem; font-size: 0.8125rem; color: var(--color-text-muted); }
.footer-heading {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text);
}
.footer-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}
.footer-link:hover { text-decoration: underline; }
.footer-cta { margin-top: 0.5rem; }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 1.25rem 0 1.5rem;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.legal {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.legal-soft { color: var(--color-text-muted); }

/* ---------- Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms var(--ease-out-soft), transform 600ms var(--ease-out-soft);
  transition-delay: 0ms;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}
