/* =================
   BASE & TOKENS
   ================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

.flagship-body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020713;
  color: #E3ECF8;
  line-height: 1.6;
}

/* Design tokens */

:root {
  --bg-main: #020713;
  --bg-alt: #050c1a;
  --bg-strip: #040a16;
  --bg-card: #07111f;

  --cyan: #00E5FF;
  --cyan-soft: rgba(0, 229, 255, 0.14);
  --aqua: #3AF2D7;
  --accent: #30FF80;

  --text-main: #E3ECF8;
  --text-muted: #9AA5C2;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 72px;

  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.6);
  --shadow-strong: 0 28px 90px rgba(0, 0, 0, 0.9);
}

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 2.25rem;
}

section {
  padding: var(--spacing-3xl) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.strip {
  background: var(--bg-strip);
}

/* =================
   TYPOGRAPHY
   ================= */

h1, h2, h3, h4 {
  font-family: "Sora", system-ui, sans-serif;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.5rem, 3vw + 1.5rem, 3.8rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 2.3vw + 1.2rem, 2.7rem);
}

h3 {
  font-size: 1.2rem;
}

h4 {
  font-size: 1rem;
}

p {
  margin: 0 0 0.85em;
}

.eyebrow,
.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 0.6rem;
}

.section-sub {
  max-width: 640px;
  color: var(--text-muted);
}

/* =================
   NAVBAR
   ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(2,7,19,0.96), rgba(2,7,19,0.84), transparent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-main);
}

.brand-mark {
  font-family: "Sora", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.9rem;
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 18px;
  margin-left: auto;
  margin-right: 18px;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding: 3px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.18s ease-out;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  gap: 10px;
}

/* =================
   BUTTONS
   ================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.94rem;
  font-weight: 600;
  font-family: "Sora", system-ui, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease-out;
}

.btn-primary {
  background: var(--cyan);
  color: #001B44;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.8);
}

.btn-secondary {
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  border: 1px solid var(--cyan-soft);
}

.btn-secondary:hover {
  background: rgba(0, 229, 255, 0.16);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan-soft);
}

.btn-outline:hover {
  background: rgba(0, 229, 255, 0.08);
}

/* =================
   HERO
   ================= */

.hero-flagship {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-3xl) 0 var(--spacing-3xl);
  background:
    radial-gradient(circle at top left, rgba(0,229,255,0.24), transparent 55%),
    radial-gradient(circle at bottom right, rgba(58,242,215,0.18), transparent 60%),
    radial-gradient(circle at center, rgba(15,23,42,0.9), #020713 70%);
}

.hero-flagship::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, #020713 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-sub {
  max-width: 520px;
  color: var(--text-muted);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1.1rem 0 1.4rem;
}

.pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,229,255,0.26);
  background: rgba(3, 11, 25, 0.96);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 0.8rem;
}

.hero-micro {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hero image + glow */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  height: 70%;
  max-width: 520px;
  max-height: 520px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.7), transparent 70%);
  filter: blur(14px);
  opacity: 0.85;
  z-index: 0;
  pointer-events: none;
}

.hero-image-link,
.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image {
  width: 100%;
  max-width: 540px;
  height: auto;
  border-radius: var(--radius-xl);
  object-fit: cover;
  box-shadow: var(--shadow-strong);
}

/* subtle hover lift on desktop only */
@media (hover: hover) and (pointer: fine) {
  .hero-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 70px rgba(0, 229, 255, 0.75);
    filter: saturate(1.08);
  }
}

/* =================
   GENERIC SECTIONS
   ================= */

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: flex-start;
}

.engine-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: center;
}

.hero-bullets,
.engine-list {
  padding-left: 1.4rem;
  margin: 0 0 0.8rem;
}

.hero-bullets li + li,
.engine-list li + li {
  margin-top: 0.45rem;
}

.col-visual img,
.engine-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-image-robot {
  max-width: 420px;
  width: 100%;
  border-radius: 1.7rem;
  object-fit: cover;
  filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.5));
}

/* =================
   CARDS & GRIDS
   ================= */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 229, 255, 0.16);
  padding: 18px 18px 16px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.card-soft {
  background: rgba(7, 17, 31, 0.94);
  border-color: rgba(0, 229, 255, 0.12);
}

.card-wide {
  grid-column: span 2;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 1.4rem;
}

.pillars-domains .card {
  min-height: 180px;
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 1.6rem;
}

.text-link {
  font-size: 0.9rem;
  color: var(--cyan);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Strip / chips */

.strip-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: center;
}

.strip-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.chip-card {
  padding: 14px 14px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), rgba(15,23,42,0.96));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.6);
}

/* Resource / three column blocks */

.three-column {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

/* Final CTA */

.final-cta {
  background:
    radial-gradient(circle at top, rgba(0,229,255,0.2), transparent 60%),
    radial-gradient(circle at bottom, rgba(58,242,215,0.16), transparent 55%),
    #020713;
}

.final-cta-inner {
  text-align: center;
  max-width: 720px;
}

.final-cta-inner p {
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: var(--spacing-2xl) 0;
  background: #01040c;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px;
  font-size: 0.85rem;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li + li {
  margin-top: 0.25rem;
}

.footer-grid a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--cyan);
}

/* =================
   RESPONSIVE
   ================= */

@media (max-width: 960px) {
  .nav-links {
    display: none; /* keep simple, no hamburger yet */
  }

  .nav-cta {
    margin-left: auto;
  }

  .hero-grid,
  .engine-grid,
  .two-column,
  .strip-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-flagship {
    padding-top: var(--spacing-2xl);
  }

  .hero-visual {
    order: -1;
    margin-bottom: 18px;
  }

  .hero-image {
    max-width: 360px;
  }

  .hero-image-robot {
    max-width: 320px;
    margin-top: 1.4rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
  }

  section {
    padding: var(--spacing-2xl) 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .nav-cta {
    display: none;
  }
}
