/* Massive AI — homepage stylesheet
   Tokens lifted from titan.massiveai.dev for cross-property consistency.
   Brand-kit owners can swap the :root block to retheme the entire page. */

:root {
  --bg-deep:        #050816;
  --bg-primary:     #0a0e1f;
  --bg-secondary:   #0d1229;
  --bg-card:        #0e1430;
  --bg-card-hover:  #141b3c;

  --text-primary:   #e8edf5;
  --text-secondary: #8892b0;
  --text-dim:       #5a6380;

  --cyan:           #00d4ff;
  --cyan-dim:       #0099bb;
  --cyan-glow:      rgba(0, 212, 255, 0.3);
  --cyan-soft:      rgba(0, 212, 255, 0.12);

  --green:  #10b981;
  --blue:   #3b82f6;
  --purple: #8b5cf6;
  --amber:  #f59e0b;

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  --radius-card: 24px;
  --container: 1240px;
  --gutter: clamp(24px, 6vw, 80px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background:
    radial-gradient(1400px circle at 72% 28%,  rgba(0, 212, 255, 0.09), transparent 55%),
    radial-gradient(1200px circle at 12% -8%,  rgba(0, 212, 255, 0.10), transparent 55%),
    radial-gradient(900px  circle at 105% 12%, rgba(139, 92, 246, 0.07), transparent 55%),
    radial-gradient(1100px circle at 80% 105%, rgba(0, 212, 255, 0.06), transparent 60%),
    var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 160ms ease;
}
a:hover { color: var(--text-primary); }
a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: var(--bg-deep);
  padding: 8px 12px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

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

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

/* Header — no border, just blurred glass */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(180deg, rgba(5, 8, 22, 0.85), rgba(5, 8, 22, 0.55));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text-primary); }
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: block;
  filter: drop-shadow(0 0 18px rgba(0, 212, 255, 0.28));
}
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
  font-size: 0.9375rem;
}
.site-nav a {
  color: var(--text-secondary);
  font-weight: 500;
}
.site-nav a:hover { color: var(--text-primary); }
.site-nav .nav-cta {
  color: var(--cyan);
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cyan-soft);
  transition: background 200ms ease, box-shadow 200ms ease, color 200ms ease;
}
.site-nav .nav-cta:hover {
  color: var(--bg-deep);
  background: var(--cyan);
  box-shadow: 0 0 28px var(--cyan-glow);
}


/* ============================================================
   Sections — full-bleed, no narrow gradient stripes.
   Alternating sections use a slightly lifted dark fill so the
   art layers have something to read against, but no hard edges.
   ============================================================ */
.section,
.hero {
  position: relative;
  overflow: hidden;
}
.section > .container,
.hero > .container {
  position: relative;
  z-index: 1;
}
.section {
  padding: clamp(96px, 14vw, 176px) 0;
}
.section-alt {
  background:
    linear-gradient(180deg,
      rgba(13, 18, 41, 0) 0%,
      rgba(13, 18, 41, 0.85) 18%,
      rgba(13, 18, 41, 0.85) 82%,
      rgba(13, 18, 41, 0) 100%
    );
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: clamp(96px, 14vw, 184px) 0 clamp(96px, 14vw, 168px);
  text-align: left;
  min-height: clamp(580px, 78vh, 940px);
  background:
    linear-gradient(
      108deg,
      rgba(5, 8, 22, 0.96) 0%,
      rgba(5, 8, 22, 0.88) 34%,
      rgba(5, 8, 22, 0.60) 58%,
      rgba(5, 8, 22, 0.30) 100%
    ),
    radial-gradient(ellipse at 72% 40%, rgba(0, 212, 255, 0.09), transparent 58%),
    url('art/sentinel.webp') center 20% / cover no-repeat;
}
.hero-logo {
  width: clamp(140px, 18vw, 240px);
  aspect-ratio: 1 / 1;
  margin: 0 0 44px;
  position: relative;
}
.hero-logo::before {
  content: '';
  position: absolute;
  inset: -55%;
  background: radial-gradient(closest-side, rgba(0, 212, 255, 0.30), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.hero-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 28px;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 48px rgba(0, 212, 255, 0.22));
}
@media (prefers-reduced-motion: no-preference) {
  .hero-logo img {
    animation: hero-logo-breathe 6s ease-in-out infinite;
  }
}
@keyframes hero-logo-breathe {
  0%, 100% { filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 48px rgba(0, 212, 255, 0.22)); }
  50%      { filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 64px rgba(0, 212, 255, 0.42)); }
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.5vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 28px;
  max-width: 18ch;
}
.hero-sub {
  font-size: clamp(1.0625rem, 1.4vw, 1.3125rem);
  color: var(--text-secondary);
  margin: 0 0 44px;
  max-width: 60ch;
  line-height: 1.65;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

/* ============================================================
   Buttons — pill-shaped, no visible borders, glow on hover
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 160ms ease;
  text-decoration: none;
  border: 0;
}
.btn-primary {
  background: var(--cyan);
  color: var(--bg-deep);
  box-shadow: 0 12px 36px rgba(0, 212, 255, 0.18);
}
.btn-primary:hover {
  background: var(--text-primary);
  color: var(--bg-deep);
  box-shadow: 0 18px 56px rgba(0, 212, 255, 0.32);
  transform: translateY(-1px);
}
.btn-ghost {
  background: var(--cyan-soft);
  color: var(--text-primary);
}
.btn-ghost:hover {
  background: rgba(0, 212, 255, 0.22);
  color: var(--cyan);
}

/* ============================================================
   Section titles
   ============================================================ */
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--text-primary);
  margin: 0 0 44px;
  max-width: 24ch;
}
.section-sub {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0 0 32px;
  max-width: 56ch;
}

/* ============================================================
   Product cards — borderless, glass-like, lift + glow on hover
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)) ,
    var(--bg-card);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  transition: background 240ms ease, transform 240ms ease, box-shadow 240ms ease;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}
.card:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)) ,
    var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--cyan-soft),
    0 0 48px rgba(0, 212, 255, 0.12);
}
.card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.625rem;
  margin: 0 0 6px;
  color: var(--text-primary);
}
.card-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin: 0 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.card-body {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin: 0 0 22px;
}
.card-link {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cyan);
}
.card-link:hover {
  color: var(--text-primary);
}

/* ============================================================
   How-we-work grid
   ============================================================ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.how-item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  margin: 0 0 10px;
  color: var(--text-primary);
}
.how-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 36ch;
}

/* ============================================================
   Customer row (text fallback until Pao ships logos)
   ============================================================ */
.use-case-grid {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2px;
}
.use-case-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px 32px;
  background: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  transition: background 200ms ease;
}
.use-case-item:hover { background: var(--bg-card-hover); }
.use-case-item:hover .use-case-label { color: var(--cyan); }
.use-case-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-primary);
  transition: color 200ms ease;
}
.use-case-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { text-align: left; }
.cta-band .section-title { max-width: 18ch; margin-bottom: 28px; }
.cta-band .section-sub { margin-bottom: 36px; }

/* ============================================================
   Footer — borderless, just a quiet sliver
   ============================================================ */
.site-footer {
  padding: 40px 0 56px;
  margin-top: 48px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin: 0;
}
.footer-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  gap: 14px;
  align-items: center;
}
.footer-meta a { color: var(--text-secondary); }
.footer-meta a:hover { color: var(--cyan); }
.footer-meta span { color: var(--text-dim); }

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
