/*
 * 1MLX Design System — Base Stylesheet
 * Version: 1.0.0
 * © 2026 1MLXOPS LLC. All Rights Reserved.
 *
 * Shared across all marketing/pitch pages.
 * Dashboard pages use their own embedded styles.
 */

/* ======================================================================
   Design Tokens
   ====================================================================== */
:root {
  --ink: #1f2937;
  --muted: #6b7280;
  --blue: #2a80b9;
  --blue-strong: #1f6a99;
  --blue-light: #e8f1f8;
  --line: #e5e7eb;
  --panel: #ffffff;
  --page: #f7f8fb;
  --green: #059669;
  --green-light: #ecfdf5;
  --gold: #d97706;
  --gold-light: #fffbeb;
  --red: #dc2626;
  --red-soft: #fef2f2;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 20px rgba(31,41,55,0.08);
  --shadow-lg: 0 12px 40px rgba(31,41,55,0.12);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1280px;
}

/* ======================================================================
   Reset & Base
   ====================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
  color: var(--ink);
  background: var(--page);
  font-family: var(--font);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-strong); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

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

.skip-link {
  position: absolute; top: -100%; left: 16px; background: var(--blue);
  color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); z-index: 9999; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ======================================================================
   Buttons
   ====================================================================== */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 32px; border-radius: var(--radius); font-weight: 600;
  text-decoration: none; border: 2px solid transparent; box-shadow: var(--shadow);
  transition: all 0.2s; font-size: 16px; cursor: pointer; font-family: var(--font);
}
.button--primary { background: var(--blue); color: #fff; }
.button--primary:hover { background: var(--blue-strong); color: #fff; }
.button--secondary { background: var(--panel); color: var(--blue); border-color: var(--line); }
.button--secondary:hover { border-color: var(--blue); color: var(--blue-strong); }
.button--danger { background: var(--red); color: #fff; }
.button--danger:hover { background: #b91c1c; color: #fff; }
.button--sm { padding: 10px 20px; font-size: 14px; }
.button--lg { padding: 20px 40px; font-size: 18px; }
.button--full { width: 100%; }

/* ======================================================================
   Site Header (Marketing Pages)
   ====================================================================== */
.site-header {
  background: var(--panel); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); position: sticky; top: 0; z-index: 100;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; gap: 32px;
}
.site-logo {
  font-size: 28px; font-weight: 700; color: var(--blue);
  text-decoration: none; white-space: nowrap; letter-spacing: -0.5px;
}
.site-logo:hover { color: var(--blue-strong); }

/* Primary Nav */
.primary-nav { display: flex; gap: 28px; align-items: center; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; align-items: center; }
.primary-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; transition: color 0.2s; }
.primary-nav a:hover { color: var(--blue); }

/* Nav Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.nav-dropdown > a::after {
  content: ''; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid currentColor; margin-top: 1px; transition: transform 0.2s;
}
.nav-dropdown:hover > a::after { transform: rotate(180deg); }
.nav-dropdown__menu {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: #ffffff; border: 1px solid var(--line); border-radius: 8px;
  box-shadow: 0 12px 40px rgba(31,41,55,0.12); padding: 8px 0;
  min-width: 200px; z-index: 200; margin-top: 0; padding-top: 20px;
}
.nav-dropdown__menu::before {
  content: ''; position: absolute; top: -12px; left: 0; right: 0;
  height: 20px; background: transparent;
}
.nav-dropdown:hover .nav-dropdown__menu { display: block; }
.nav-dropdown__menu a { display: block; padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav-dropdown__menu a:hover { background: var(--page); color: var(--blue); }

/* Header CTA */
.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--radius); font-weight: 600;
  text-decoration: none; background: var(--blue); color: #fff; border: none;
  box-shadow: var(--shadow); transition: 0.2s; white-space: nowrap; font-size: 15px;
}
.header-cta:hover { background: var(--blue-strong); color: #fff; }

/* Menu Toggle (mobile) */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); }
.menu-toggle svg { width: 24px; height: 24px; display: block; }
.mobile-nav { display: none; }

/* ======================================================================
   Hero (Homepage)
   ====================================================================== */
.hero {
  background: var(--ink); color: #fff;
  padding: 80px 24px 72px; text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(42,128,185,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.hero__kicker {
  display: inline-block; font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.6); margin-bottom: 24px; letter-spacing: 0.3px;
}
.hero__headline {
  font-size: 46px; font-weight: 900; line-height: 1.1; margin: 0 0 28px;
  letter-spacing: -1px; color: #fff;
}
.hero__subhead {
  font-size: 19px; color: rgba(255,255,255,0.72); margin: 0 0 48px;
  line-height: 1.65; max-width: 720px; margin-left: auto; margin-right: auto;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Paper Hero (Article Pages) */
.paper-hero {
  background: var(--ink); color: #fff;
  padding: 64px 24px 56px; text-align: center;
  position: relative; overflow: hidden;
}
.paper-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(42,128,185,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.paper-hero--red::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(220,38,38,0.12) 0%, transparent 70%);
}
.paper-hero__inner { max-width: 780px; margin: 0 auto; position: relative; z-index: 1; }
.paper-hero__kicker {
  font-size: 16px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--red); margin-bottom: 20px;
}
.paper-hero__title {
  font-size: 40px; font-weight: 900; line-height: 1.12;
  margin: 0 0 24px; letter-spacing: -1px;
}
.paper-hero__subtitle {
  font-size: 18px; color: rgba(255,255,255,0.7);
  line-height: 1.65; max-width: 640px; margin: 0 auto; font-style: italic;
}

/* ======================================================================
   Trust Band
   ====================================================================== */
.trust-bar {
  background: var(--panel); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 18px 0;
}

/* ======================================================================
   Content Sections (Homepage)
   ====================================================================== */
.danger-section { padding: 80px 0; background: var(--panel); border-bottom: 1px solid var(--line); }
.danger-section__inner { max-width: 780px; margin: 0 auto; }
.danger-section__kicker {
  font-size: 16px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--red); margin-bottom: 16px;
}
.danger-section__title {
  font-size: 38px; font-weight: 800; line-height: 1.12; margin: 0 0 28px;
  letter-spacing: -0.5px; color: var(--ink);
}
.danger-section__body { font-size: 18px; color: var(--ink); line-height: 1.75; margin: 0 0 24px; }
.danger-section__body + .danger-section__body { padding-top: 24px; border-top: 1px solid var(--line); }
.danger-section__cta { margin-top: 36px; }

/* Benefits / How It Works */
.benefits-section { padding: 56px 0; background: var(--page); border-bottom: 1px solid var(--line); }
.benefits-section__inner { max-width: 780px; margin: 0 auto; }
.benefits-section__kicker {
  font-size: 16px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--green); margin-bottom: 12px;
}
.benefits-section__title {
  font-size: 38px; font-weight: 800; line-height: 1.12;
  margin: 0 0 36px; letter-spacing: -0.5px; color: var(--ink);
}
.benefit { display: grid; grid-template-columns: 64px 1fr; gap: 0 24px; margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.benefit:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.benefit__number { font-size: 40px; font-weight: 900; color: var(--blue); line-height: 1; padding-top: 4px; }
.benefit__title { font-size: 22px; font-weight: 800; color: var(--ink); margin: 0 0 12px; }
.benefit__text { font-size: 17px; color: var(--ink); line-height: 1.75; margin: 0; grid-column: 2; }

/* Tour */
.tour-section { padding: 80px 0; background: var(--panel); border-bottom: 1px solid var(--line); }
.tour-section__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.tour-section__title { font-size: 38px; font-weight: 800; line-height: 1.12; margin: 0 0 20px; letter-spacing: -0.5px; color: var(--ink); }
.tour-section__body { font-size: 18px; color: var(--muted); line-height: 1.7; margin: 0 0 40px; }
.tour-section__widget { background: var(--page); border: 1px solid var(--line); border-radius: var(--radius); padding: 48px 32px; text-align: center; }
.tour-section__prompt { font-size: 17px; color: var(--ink); font-style: italic; margin: 0 0 24px; line-height: 1.6; }
.tour-section__options { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* CTA Close */
.cta-section { padding: 64px 24px; background: linear-gradient(135deg, var(--blue) 0%, var(--blue-strong) 100%); text-align: center; color: #fff; }
.cta-section__title { font-size: 32px; font-weight: 800; margin: 0 0 16px; }
.cta-section__desc { font-size: 18px; color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 32px; line-height: 1.6; }
.cta-section .button--secondary { background: #fff; color: var(--blue-strong); border-color: #fff; }
.cta-section .button--secondary:hover { background: rgba(255,255,255,0.9); }

/* Bad Cadet Section */
.badcadet-section { padding: 64px 0; background: var(--panel); border-bottom: 1px solid var(--line); }
.badcadet-section__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.badcadet-section__kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--red); margin-bottom: 16px; }
.badcadet-section__title { font-size: 32px; font-weight: 800; line-height: 1.2; margin: 0 0 20px; letter-spacing: -0.5px; color: var(--ink); }
.badcadet-section__body { font-size: 17px; color: var(--ink); line-height: 1.75; margin: 0 0 32px; }

/* ======================================================================
   Article Layout (About, What's Missing, Incumbent, AI Perspective)
   ====================================================================== */
.article-body {
  max-width: 780px; margin: 0 auto; padding: 56px 24px;
}
.article-body h2 {
  font-size: 26px; font-weight: 800; color: var(--ink);
  margin: 48px 0 20px; letter-spacing: -0.3px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 20px; font-weight: 700; color: var(--ink); margin: 36px 0 16px;
}
.article-body p {
  font-size: 17px; color: var(--ink); line-height: 1.8; margin: 0 0 20px;
}
.article-body ul, .article-body ol {
  margin: 0 0 20px; padding-left: 24px;
}
.article-body li {
  font-size: 17px; color: var(--ink); line-height: 1.8; margin-bottom: 8px;
}

/* Callout Box */
.callout {
  padding: 28px 32px; border-radius: var(--radius-sm);
  margin: 32px 0;
}
.callout--blue { background: var(--blue-light); border-left: 4px solid var(--blue); }
.callout--red { background: var(--red-soft); border-left: 4px solid var(--red); }
.callout--gold { background: var(--gold-light); border-left: 4px solid var(--gold); }
.callout--green { background: var(--green-light); border-left: 4px solid var(--green); }

/* ======================================================================
   Email Gate
   ====================================================================== */
.gate-wrapper {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; background: var(--page); padding: 24px;
}
.gate-panel {
  max-width: 560px; width: 100%; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 40px 36px;
}
.gate-panel h2 { font-size: 24px; font-weight: 700; color: var(--ink); margin: 0 0 8px; text-align: center; }
.gate-panel .gate-subtitle { font-size: 15px; color: var(--muted); text-align: center; margin: 0 0 28px; line-height: 1.6; }
.gate-panel .form-group { margin-bottom: 20px; }
.gate-panel label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.gate-panel input, .gate-panel textarea, .gate-panel select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px; font-family: var(--font); color: var(--ink); background: var(--panel);
  transition: border-color 0.2s;
}
.gate-panel input:focus, .gate-panel textarea:focus { border-color: var(--blue); outline: none; }
.gate-panel textarea { resize: vertical; min-height: 80px; }
.gate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.gate-error { display: none; margin-top: 24px; padding: 20px 24px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--page); }
.gate-error h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.gate-error p { font-size: 15px; color: var(--muted); margin: 0 0 20px; line-height: 1.6; }
.gate-success { display: none; text-align: center; margin-top: 24px; padding: 24px; background: var(--green-light); border: 1px solid #a7f3d0; border-radius: var(--radius-sm); }
.gate-success p { font-size: 16px; font-weight: 600; color: #065f46; margin: 0; }

/* ======================================================================
   Footer
   ====================================================================== */
.site-footer { background: var(--ink); color: #fff; padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; text-align: center; }
.footer-col__title { font-size: 16px; font-weight: 700; margin: 0 0 16px; color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); text-decoration: none; transition: color 0.2s; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-bottom p { margin: 0; }

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 768px) {
  .hero__headline { font-size: 32px; }
  .hero__subhead { font-size: 17px; }
  .hero { padding: 56px 24px 48px; }
  .paper-hero__title { font-size: 28px; }
  .danger-section__title, .benefits-section__title, .tour-section__title { font-size: 28px; }

  .benefit { grid-template-columns: 48px 1fr; gap: 0 16px; }
  .benefit__number { font-size: 32px; }
  .benefit__title { font-size: 19px; }

  .primary-nav, .header-cta-desktop { display: none !important; }
  .menu-toggle { display: block; }
  .mobile-nav {
    display: block; position: fixed; inset: 0;
    background: rgba(31,41,55,0.5); z-index: 200;
    visibility: hidden; opacity: 0; transition: all 0.3s;
  }
  .mobile-nav.is-active { visibility: visible; opacity: 1; }
  .mobile-nav__panel {
    position: absolute; right: 0; top: 0; bottom: 0; width: 300px;
    background: var(--panel); box-shadow: var(--shadow-lg); padding: 24px;
    transform: translateX(100%); transition: transform 0.3s;
  }
  .mobile-nav.is-active .mobile-nav__panel { transform: translateX(0); }
  .mobile-nav__close { text-align: right; margin-bottom: 24px; }
  .mobile-nav__close button { background: none; border: none; cursor: pointer; color: var(--ink); padding: 4px; }
  .mobile-nav ul { list-style: none; padding: 0; margin: 0; }
  .mobile-nav li { border-bottom: 1px solid var(--line); }
  .mobile-nav a { display: block; padding: 14px 0; color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
  .mobile-nav a:hover { color: var(--blue); }
  .mobile-nav__cta {
    display: block; margin-top: 24px; padding: 14px 24px;
    background: var(--blue); color: #fff; border-radius: var(--radius);
    text-align: center; font-weight: 600; font-size: 16px; text-decoration: none;
  }
  .mobile-nav__cta:hover { background: var(--blue-strong); color: #fff; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .trust-bar { overflow-x: auto; }
  .tour-section__options { flex-direction: column; align-items: center; }
  .gate-row { grid-template-columns: 1fr; }
}
