/* ── Reset & base ──────────────────────────────────────────────────────────── */

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

:root {
  --bg:          #06080e;
  --bg-deep:     #03040a;
  --card:        #0d1018;
  --border:      rgba(255,255,255,0.07);
  --green:       #22c55e;
  --green-dim:   rgba(34,197,94,0.18);
  --cyan:        #67e8f9;
  --cyan-dim:    rgba(103,232,249,0.15);
  --purple:      #a78bfa;
  --purple-dim:  rgba(167,139,250,0.15);
  --text:        #e8eaed;
  --text-muted:  #6b7280;
  --text-subtle: #374151;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ── Keyframes ─────────────────────────────────────────────────────────────── */

@keyframes pulse-ring {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50%       { opacity: 0.60; transform: scale(1.05); }
}

@keyframes pulse-ring-2 {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(1.08); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1; }
}

@keyframes shimmer {
  0%   { background-position: -300% center; }
  100% { background-position:  300% center; }
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes grid-drift {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(60px); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── Background treatment ──────────────────────────────────────────────────── */

.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Deep radial centre bloom */
.bg-layer::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%,  rgba(34,197,94,0.055)  0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 72% 68%,  rgba(103,232,249,0.040) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 28% 70%,  rgba(167,139,250,0.040) 0%, transparent 55%),
    linear-gradient(180deg, #03040a 0%, #06080e 40%, #04060c 100%);
}

/* Subtle grid */
.bg-layer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, rgba(0,0,0,0.6) 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, rgba(0,0,0,0.6) 0%, transparent 70%);
  animation: grid-drift 18s linear infinite alternate;
}


/* ── Layout ────────────────────────────────────────────────────────────────── */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* ── Nav ───────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--border);
  background: rgba(3,4,10,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}

.nav-brand-x,
.nav-brand-a {
  font-size: 14px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-brand-sep {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.nav-brand-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 2px;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid rgba(34,197,94,0.22);
  background: rgba(34,197,94,0.07);
  font-size: 11px;
  font-weight: 600;
  color: #4ade80;
  letter-spacing: 0.04em;
}

.nav-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: dot-blink 2s ease-in-out infinite;
}


/* ── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  text-align: center;
}

/* Central orb visual */
.orb-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 52px;
  animation: float 4.2s ease-in-out infinite;
}

.orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.orb-ring-1 {
  width: 190px; height: 190px;
  border-color: rgba(34,197,94,0.14);
  animation: pulse-ring   3.4s ease-in-out infinite;
}
.orb-ring-2 {
  width: 158px; height: 158px;
  border-color: rgba(103,232,249,0.18);
  animation: pulse-ring   3.4s ease-in-out infinite 0.8s;
}
.orb-ring-3 {
  width: 126px; height: 126px;
  border-color: rgba(167,139,250,0.22);
  animation: pulse-ring-2 3.4s ease-in-out infinite 1.6s;
}

.orb-body {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 38% 34%,
    rgba(74,222,128,0.38)  0%,
    rgba(34,211,238,0.24) 32%,
    rgba(139,92,246,0.32) 62%,
    rgba(3,4,10,0.82)     100%
  );
  box-shadow:
    0 0 52px rgba(74,222,128,0.22),
    0 0 110px rgba(34,211,238,0.13),
    0 0 180px rgba(139,92,246,0.09);
  animation: glow-breathe 3.2s ease-in-out infinite;
}

.orb-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(74,222,128,0.92) 0%,
    rgba(34,211,238,0.52) 52%,
    transparent 100%
  );
  box-shadow: 0 0 14px rgba(74,222,128,0.65);
}

/* SVG neural lines inside orb */
.orb-svg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0.22;
}


/* ── Hero text ─────────────────────────────────────────────────────────────── */

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
  animation: fade-up 0.7s ease both;
  animation-delay: 0.1s;
}

.hero-headline {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.03em;
  color: var(--text);
  max-width: 860px;
  margin: 0 auto 20px;
  animation: fade-up 0.7s ease both;
  animation-delay: 0.2s;
}

/* Gradient word inside headline */
.hero-headline .accent {
  background: linear-gradient(135deg, #4ade80 0%, #67e8f9 45%, #a78bfa 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 40px;
  animation: fade-up 0.7s ease both;
  animation-delay: 0.3s;
}


/* ── CTA buttons ───────────────────────────────────────────────────────────── */

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  animation: fade-up 0.7s ease both;
  animation-delay: 0.45s;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #03040a;
  background: linear-gradient(135deg, #4ade80 0%, #34d399 100%);
  box-shadow:
    0 0 24px rgba(74,222,128,0.30),
    0 2px 8px rgba(0,0,0,0.40);
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 38px rgba(74,222,128,0.45),
    0 6px 16px rgba(0,0,0,0.45);
  opacity: 0.95;
}

.btn-primary:active {
  transform: translateY(0);
}

/* Arrow icon inside primary button */
.btn-primary-arrow {
  display: inline-block;
  font-size: 15px;
  transition: transform 0.18s ease;
}

.btn-primary:hover .btn-primary-arrow {
  transform: translateX(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  color: var(--text);
  border-color: rgba(103,232,249,0.30);
  background: rgba(103,232,249,0.05);
}

/* Brain icon dot for secondary button */
.btn-secondary-icon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--purple);
  opacity: 0.7;
  flex-shrink: 0;
  animation: dot-blink 2.6s ease-in-out infinite 0.4s;
}


/* ── Stats strip ───────────────────────────────────────────────────────────── */

.stats-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 64px;
  padding: 0 24px;
  animation: fade-up 0.7s ease both;
  animation-delay: 0.6s;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 40px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-value.green  { color: #4ade80; }
.stat-value.cyan   { color: var(--cyan); }
.stat-value.purple { color: var(--purple); }

.stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}


/* ── Feature pills ─────────────────────────────────────────────────────────── */

.feature-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding: 0 24px;
  animation: fade-up 0.7s ease both;
  animation-delay: 0.75s;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-dot.green  { background: #4ade80; }
.pill-dot.cyan   { background: var(--cyan); }
.pill-dot.purple { background: var(--purple); }
.pill-dot.amber  { background: #fbbf24; }


/* ── Footer ────────────────────────────────────────────────────────────────── */

.footer {
  position: relative;
  z-index: 1;
  padding: 24px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
}

.footer-copy {
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}


/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .nav {
    padding: 0 20px;
  }

  .hero {
    padding: 72px 20px 48px;
  }

  .orb-wrap {
    width: 160px;
    height: 160px;
    margin-bottom: 40px;
  }

  .orb-ring-1 { width: 152px; height: 152px; }
  .orb-ring-2 { width: 126px; height: 126px; }
  .orb-ring-3 { width: 100px; height: 100px; }
  .orb-body   { width: 80px;  height: 80px;  }

  .stat-item {
    padding: 14px 22px;
  }

  .stats-strip {
    gap: 0;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .stats-strip {
    flex-direction: column;
    gap: 0;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    width: 100%;
    max-width: 220px;
  }

  .stat-item:last-child {
    border-bottom: none;
  }
}
