/* ============================================================
   Nova Cortex Labs — Launch Site Stylesheet
   Design tokens derived directly from the approved NCL brand
   board (colors, typeface, "Neural Horizon" hero treatment).
   ============================================================ */

@font-face {
  font-family: 'Exo 2';
  src: url('../assets/fonts/Exo2-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('../assets/fonts/Exo2-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('../assets/fonts/Exo2-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('../assets/fonts/Exo2-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Exo 2';
  src: url('../assets/fonts/Exo2-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  /* Approved brand palette — do not alter without design sign-off */
  --ncl-blue: #0066FF;
  --ncl-cyan: #00C6FF;
  --deep-navy: #0A0F1A;
  --steel-gray: #A6ACB3;
  --light-gray: #E6E9EE;
  --white: #FFFFFF;

  /* Derived tones for layout rhythm (not in the swatch board itself,
     but mixed only from approved colors so nothing introduces an
     off-brand hue) */
  --navy-raised: #10192B;
  --navy-line: #1C2740;

  --font-display: 'Exo 2', sans-serif;
  --font-body: 'Exo 2', sans-serif;

  --max-width: 1180px;
  --radius: 14px;

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

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--deep-navy);
  color: var(--light-gray);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ncl-blue);
  color: white;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ncl-cyan);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ncl-cyan);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  color: var(--white);
  margin: 0 0 40px;
  max-width: 26ch;
  line-height: 1.15;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 128px 32px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--navy-line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  height: 28px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--light-gray);
  transition: color 0.2s var(--ease);
}
.main-nav a:hover { color: var(--ncl-cyan); }

.nav-cta {
  background: var(--ncl-blue);
  color: white !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--ncl-cyan); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--light-gray);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 0 32px;
  min-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-glow {
  position: absolute;
  left: 50%;
  bottom: -20%;
  width: 140%;
  height: 60%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,102,255,0.35) 0%, rgba(0,198,255,0.14) 35%, rgba(10,15,26,0) 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 780px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  margin: 0 0 28px;
  color: var(--white);
}
.hero-headline .line {
  display: block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: rise 0.9s var(--ease) forwards;
}
.hero-headline .line:nth-child(2) { animation-delay: 0.12s; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--steel-gray);
  max-width: 58ch;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(90deg, var(--ncl-blue), var(--ncl-cyan));
  color: white;
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--navy-line);
  color: var(--light-gray);
}
.btn-ghost:hover { border-color: var(--ncl-cyan); color: var(--ncl-cyan); }

/* ---------- Products / Flagship ---------- */

.products { background: var(--deep-navy); }

.products-intro {
  color: var(--steel-gray);
  font-size: 1.05rem;
  max-width: 62ch;
  margin: -12px 0 40px;
}

.flagship-card {
  background: var(--navy-raised);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 40px 36px;
  margin-bottom: 28px;
  transition: border-color 0.25s var(--ease);
}
.flagship-card:hover { border-color: var(--ncl-blue); }

.product-mark-link {
  display: inline-block;
}

.product-mark {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
}

.flagship-heading-link {
  color: inherit;
  text-decoration: none;
}
.flagship-heading-link:hover { text-decoration: underline; }

.flagship-cta {
  display: inline-block;
  margin-top: 20px;
}

.flagship-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 0 6px;
}

.product-tagline {
  color: var(--ncl-cyan);
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0 0 14px;
}

.product-desc {
  color: var(--steel-gray);
  font-size: 0.96rem;
  margin: 0;
  max-width: 62ch;
}

.educator-callout {
  background: linear-gradient(135deg, rgba(0,102,255,0.14), rgba(0,198,255,0.07));
  border: 1px solid var(--ncl-blue);
  border-radius: var(--radius);
  padding: 36px 36px;
}
.educator-callout h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--white);
  margin: 0 0 12px;
}
.educator-callout p {
  color: var(--light-gray);
  max-width: 62ch;
  margin: 0 0 22px;
}
.educator-callout .btn { border: none; cursor: pointer; }

/* ---------- Principles ---------- */

.principles { background: var(--navy-raised); border-top: 1px solid var(--navy-line); border-bottom: 1px solid var(--navy-line); }

.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 32px 28px;
}

.principle h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white);
  margin: 0 0 8px;
}
.principle p {
  color: var(--steel-gray);
  font-size: 0.93rem;
  margin: 0;
}

/* ---------- Contact ---------- */

.contact { background: var(--deep-navy); }

.contact-inner {
  text-align: center;
  max-width: 640px;
}

.contact-sub {
  color: var(--steel-gray);
  margin: 0 0 32px;
}

.email-cta {
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
}

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

.site-footer {
  border-top: 1px solid var(--navy-line);
  padding: 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--steel-gray);
  font-size: 0.85rem;
}
.footer-icon { width: 31px; height: 31px; opacity: 0.8; flex-shrink: 0; }
.footer-text p { margin: 0; }
.footer-flagship { margin-top: 4px !important; color: var(--steel-gray); opacity: 0.85; }

/* ============================================================
   Responsive — mobile
   ============================================================ */

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .section-inner { padding: 64px 24px; }

  .main-nav ul {
    position: fixed;
    top: 64px;
    right: 0;
    left: 0;
    background: var(--deep-navy);
    border-bottom: 1px solid var(--navy-line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s var(--ease);
  }
  .main-nav ul.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav li { padding: 12px 0; border-bottom: 1px solid var(--navy-line); }
  .main-nav li:last-child { border-bottom: none; }
  .nav-cta { display: inline-block; margin-top: 8px; text-align: center; }

  .nav-toggle { display: flex; }

  .hero { min-height: 76vh; padding-top: 40px; padding-bottom: 40px; }
}
