/* ==========================================================================
   IARVIS (iarvisapp.com) — Futuristic Dark SaaS Design System
   ========================================================================== */

:root {
  --bg-obsidian: #050814;
  --bg-surface: #0a1024;
  --bg-card: rgba(13, 20, 44, 0.72);
  --bg-card-hover: rgba(18, 28, 60, 0.88);
  --bg-glass: rgba(9, 14, 32, 0.78);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #22d3ee;
  --accent-cyan-soft: rgba(34, 211, 238, 0.14);
  --accent-indigo: #6366f1;
  --accent-indigo-soft: rgba(99, 102, 241, 0.16);
  --accent-violet: #a855f7;
  --accent-amber: #f59e0b;
  --accent-amber-soft: rgba(245, 158, 11, 0.14);
  --accent-emerald: #10b981;
  --accent-emerald-soft: rgba(16, 185, 129, 0.14);

  --border-subtle: rgba(148, 163, 184, 0.14);
  --border-glow: rgba(34, 211, 238, 0.35);

  --gradient-brand: linear-gradient(135deg, #22d3ee 0%, #6366f1 55%, #a855f7 100%);
  --gradient-text: linear-gradient(90deg, #ffffff 0%, #a5f3fc 50%, #c4b5fd 100%);
  --shadow-glow: 0 0 40px -10px rgba(34, 211, 238, 0.25);
  --shadow-card: 0 20px 50px -15px rgba(2, 6, 23, 0.7);

  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container-max: 1220px;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, select {
  font-family: inherit;
}

/* Subtle Neural Grid & Ambient Background */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.14), transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.12), transparent 38%),
    radial-gradient(circle at 50% 85%, rgba(168, 85, 247, 0.09), transparent 45%),
    var(--bg-obsidian);
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 85%);
  pointer-events: none;
}

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

/* ==========================================================================
   Top Construction Banner
   ========================================================================== */
.construction-bar {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.12), rgba(34, 211, 238, 0.12), rgba(99, 102, 241, 0.12));
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
  padding: 9px 16px;
  font-size: 0.82rem;
  position: relative;
  z-index: 60;
  backdrop-filter: blur(12px);
}

.construction-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  text-align: center;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-amber);
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulse-ring 2s infinite;
  flex-shrink: 0;
}

.pulse-dot--cyan {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.construction-bar__tag {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fbbf24;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.construction-bar__text {
  color: var(--text-primary);
  opacity: 0.92;
}

.construction-bar__progress {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 8, 20, 0.65);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #fde68a;
}

.construction-bar__link {
  color: var(--accent-cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.construction-bar__link:hover {
  color: #ffffff;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 20, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition), border-color var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(99, 102, 241, 0.22));
  border: 1px solid rgba(34, 211, 238, 0.4);
  display: grid;
  place-items: center;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.2);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.08em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand__domain {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  opacity: 0.85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  transition: width var(--transition);
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-btn:hover {
  color: var(--text-primary);
}

.lang-btn.active {
  background: var(--gradient-brand);
  color: #030712;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.35);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.93rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn--primary {
  background: var(--gradient-brand);
  color: #030712;
  font-weight: 700;
  box-shadow: 0 10px 30px -10px rgba(34, 211, 238, 0.55);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(34, 211, 238, 0.72);
}

.btn--secondary {
  background: rgba(15, 23, 42, 0.72);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 76px 0 88px;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid;
}

.pill-badge--amber {
  background: var(--accent-amber-soft);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.pill-badge--cyan {
  background: var(--accent-cyan-soft);
  border-color: rgba(34, 211, 238, 0.35);
  color: #67e8f9;
}

.hero__title {
  font-size: clamp(2.35rem, 4.3vw, 3.7rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.12rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 590px;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.hero__telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.telemetry-item {
  background: rgba(13, 20, 44, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.telemetry-item__value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-cyan);
  display: block;
}

.telemetry-item__label {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Hero Visual Frame */
.hero__visual {
  position: relative;
}

.holo-frame {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 10px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.25), rgba(99, 102, 241, 0.16), rgba(15, 23, 42, 0.6));
  box-shadow: var(--shadow-glow), var(--shadow-card);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.holo-frame__inner {
  position: relative;
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  background: #040712;
}

.holo-frame__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: contrast(1.04) saturate(1.06);
}

.holo-frame__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(5, 8, 20, 0.92) 100%);
  pointer-events: none;
}

.hud-card {
  position: absolute;
  background: rgba(8, 13, 30, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 15px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  z-index: 2;
}

.hud-card--top {
  top: -16px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #a5f3fc;
  animation: float-slow 5s ease-in-out infinite;
}

.hud-card--bottom {
  bottom: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hud-build-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-build-meta__title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hud-build-meta__desc {
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
}

.hud-progress-ring {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.4);
  padding: 6px 12px;
  border-radius: 999px;
  flex-shrink: 0;
}

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

/* ==========================================================================
   Section Scaffolding
   ========================================================================== */
.section {
  padding: 88px 0;
  position: relative;
}

.section--alt {
  background: linear-gradient(180deg, rgba(10, 16, 36, 0.45), rgba(5, 8, 20, 0.25));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 54px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ==========================================================================
   Construction Notice Panel
   ========================================================================== */
.build-notice {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(13, 20, 44, 0.85) 55%, rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-card);
}

.build-notice__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fde68a;
  margin-bottom: 8px;
}

.build-notice__text {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.build-meter {
  background: rgba(5, 8, 20, 0.68);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.build-meter__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.build-meter__pct {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gradient-brand);
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.build-meter__sub {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Visual Pillars Showcase (3 Generated Images)
   ========================================================================== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.pillar-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #040712;
}

.pillar-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pillar-card:hover .pillar-card__media img {
  transform: scale(1.05);
}

.pillar-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(5, 8, 20, 0.82);
  border: 1px solid rgba(34, 211, 238, 0.38);
  color: #a5f3fc;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.pillar-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pillar-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pillar-card__desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* ==========================================================================
   Modules Explorer (8 Modules)
   ========================================================================== */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}

.filter-tab {
  background: rgba(13, 20, 44, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: rgba(34, 211, 238, 0.4);
}

.filter-tab.active {
  background: var(--gradient-brand);
  color: #030712;
  border-color: transparent;
  box-shadow: 0 6px 22px -6px rgba(34, 211, 238, 0.5);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  backdrop-filter: blur(16px);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition);
}

.module-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.module-card:hover::before {
  opacity: 1;
}

.module-card.hidden {
  display: none;
}

.module-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.module-card__id-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(34, 211, 238, 0.3);
  display: grid;
  place-items: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.module-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 2px;
}

.module-title {
  font-size: 1.24rem;
  font-weight: 700;
  line-height: 1.25;
}

.status-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
  border: 1px solid;
}

.status-badge--beta {
  background: var(--accent-emerald-soft);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.status-badge--dev {
  background: var(--accent-cyan-soft);
  border-color: rgba(34, 211, 238, 0.4);
  color: #67e8f9;
}

.status-badge--qa {
  background: var(--accent-indigo-soft);
  border-color: rgba(99, 102, 241, 0.45);
  color: #a5b4fc;
}

.status-badge--arch {
  background: var(--accent-amber-soft);
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
}

.module-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.module-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px 14px;
}

.module-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-primary);
  opacity: 0.9;
}

.module-features li::before {
  content: '▹';
  color: var(--accent-cyan);
  font-weight: 700;
  flex-shrink: 0;
}

.module-card__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.module-progress {
  flex: 1;
}

.module-progress__label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.module-progress .progress-track {
  height: 6px;
}

.btn-spec {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: #a5f3fc;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-spec:hover {
  background: var(--accent-cyan);
  color: #030712;
}

/* ==========================================================================
   Interactive Architecture Flow
   ========================================================================== */
.arch-flow {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  backdrop-filter: blur(14px);
}

.arch-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.arch-step {
  background: rgba(5, 8, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-primary);
  position: relative;
}

.arch-step:hover,
.arch-step.active {
  border-color: var(--accent-cyan);
  background: rgba(34, 211, 238, 0.08);
  box-shadow: 0 0 24px -8px rgba(34, 211, 238, 0.4);
}

.arch-step__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  margin-bottom: 6px;
  display: block;
}

.arch-step__title {
  font-size: 0.96rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.arch-step__mod {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.arch-detail {
  background: rgba(5, 8, 20, 0.78);
  border: 1px solid rgba(34, 211, 238, 0.25);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.arch-detail__info h4 {
  font-size: 1.12rem;
  color: #a5f3fc;
  margin-bottom: 6px;
}

.arch-detail__info p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  max-width: 720px;
}

.arch-detail__tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-indigo-soft);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
}

/* ==========================================================================
   Roadmap Timeline
   ========================================================================== */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.roadmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roadmap-card--active {
  border-color: rgba(34, 211, 238, 0.45);
  box-shadow: 0 0 32px -12px rgba(34, 211, 238, 0.35);
}

.roadmap-phase {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.roadmap-title {
  font-size: 1.14rem;
  font-weight: 700;
}

.roadmap-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.roadmap-list {
  list-style: none;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roadmap-list li {
  font-size: 0.85rem;
  color: var(--text-primary);
  opacity: 0.88;
  display: flex;
  gap: 8px;
}

.roadmap-list li::before {
  content: '•';
  color: var(--accent-indigo);
  font-weight: 900;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: rgba(34, 211, 238, 0.4);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  text-align: left;
  padding: 20px 24px;
  font-size: 1.02rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent-cyan);
  transition: transform var(--transition);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer__inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ==========================================================================
   Early Access / Waitlist CTA
   ========================================================================== */
.waitlist-box {
  background: linear-gradient(135deg, rgba(13, 20, 44, 0.92), rgba(20, 27, 58, 0.86));
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: var(--radius-xl);
  padding: 46px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.waitlist-form {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-input {
  width: 100%;
  background: rgba(5, 8, 20, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 13px 16px;
  color: var(--text-primary);
  font-size: 0.94rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}

.form-feedback {
  padding: 14px 16px;
  border-radius: 11px;
  background: var(--accent-emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #a7f3d0;
  font-size: 0.9rem;
  display: none;
}

.form-feedback.visible {
  display: block;
}

/* ==========================================================================
   Modal for Module Technical Specs
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 650px;
  background: #0b1228;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-close:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.modal-meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.modal-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.modal-desc {
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.modal-block {
  background: rgba(5, 8, 20, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 16px;
}

.modal-block h5 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.modal-block ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.modal-block li {
  font-size: 0.92rem;
  color: var(--text-primary);
  display: flex;
  gap: 8px;
}

.modal-block li::before {
  content: '→';
  color: var(--accent-indigo);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 46px 0 32px;
  background: rgba(4, 7, 18, 0.9);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1040px) {
  .hero__grid,
  .build-notice,
  .waitlist-box {
    grid-template-columns: 1fr;
  }

  .pillars-grid {
    grid-template-columns: 1fr 1fr;
  }

  .arch-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-links,
  .nav-cta-desktop {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(5, 8, 20, 0.97);
    border-bottom: 1px solid var(--border-subtle);
    padding: 24px;
    gap: 18px;
    z-index: 49;
  }

  .modules-grid,
  .pillars-grid,
  .roadmap-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero__telemetry {
    grid-template-columns: 1fr;
  }

  .module-features {
    grid-template-columns: 1fr;
  }

  .waitlist-box {
    padding: 28px 22px;
  }
}
