/* =========================================================================
   MMIGLIORE IBIS AI — MODERN SOVEREIGN AI ARCHITECTURE WEBSITE
   Clean, Responsive, Editorial & Scroll-Driven Storytelling
   ========================================================================= */

:root {
  --bg: #07080a;
  --bg-elev: #0e1015;
  --bg-card: rgba(255, 255, 255, 0.028);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.085);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f6fa;
  --text-2: #a1a8b8;
  --text-3: #6b7280;

  --accent: #38bdf8;
  --accent-2: #818cf8;
  --gold: #eab308;
  --green: #34d399;
  --red: #f87171;

  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background-color: transparent;
  line-height: 1.65;
  min-height: 100vh;
  position: relative;
}

/* 3D Scroll-Scrubbed Video Frame Background */
#bg-scroll-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(56, 189, 248, 0.05), transparent 70%);
}

.hero, .section, .site-footer {
  position: relative;
  z-index: 2;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

#hero-logo-3d {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 245, 255, 0.65);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.65), 0 0 38px rgba(0, 240, 255, 0.45), 0 0 18px rgba(255, 210, 60, 0.35);
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.lang-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  height: 38px;
  padding: 0 34px 0 14px;
  border-radius: 999px;
  background-color: rgba(14, 22, 38, 0.56);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393c5fd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 12px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 6px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  color: #f4f7fc;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: 0.01em;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.lang-select:hover,
.lang-select:focus {
  background-color: rgba(20, 32, 54, 0.72);
  border-color: rgba(56, 189, 248, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 0 20px rgba(56, 189, 248, 0.22);
}

.lang-select option {
  background: #0b101b;
  color: #f4f6fa;
}

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

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

/* =========================================================================
   TOP NAVIGATION (Glassmorphic, Responsive)
   ========================================================================= */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  z-index: 100;
  background: rgba(7, 8, 10, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 7px;
  border-radius: 99px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13.5px;
  color: var(--text-2);
}

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

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

.lang-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px;
  font-family: var(--font-mono);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  backdrop-filter: blur(18px) saturate(165%);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.26) 0%, rgba(99, 102, 241, 0.28) 100%);
  border-color: rgba(56, 189, 248, 0.56);
  color: #f8fafc;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 6px 22px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(56, 189, 248, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.38) 0%, rgba(129, 140, 248, 0.38) 100%);
  border-color: rgba(125, 211, 252, 0.85);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 26px rgba(0, 0, 0, 0.42),
    0 0 30px rgba(56, 189, 248, 0.42);
  transform: translateY(-1px);
}

.nav-actions .btn-primary {
  height: 38px;
  padding: 0 18px;
  font-size: 13px;
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 20px rgba(0, 0, 0, 0.32);
}

.btn-secondary:hover {
  background: rgba(24, 34, 56, 0.68);
  border-color: rgba(56, 189, 248, 0.42);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.18), rgba(245, 158, 11, 0.12));
  border-color: rgba(234, 179, 8, 0.46);
  color: #fef08a;
  box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.2), 0 6px 20px rgba(0, 0, 0, 0.32), 0 0 18px rgba(234, 179, 8, 0.14);
}

.btn-gold:hover {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.28), rgba(245, 158, 11, 0.2));
  border-color: rgba(250, 204, 21, 0.72);
  box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.32), 0 0 24px rgba(234, 179, 8, 0.28);
  transform: translateY(-1px);
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */
.hero {
  padding: 136px 0 84px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 900px;
  margin: 0 auto 22px;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
  color: var(--text-2);
  max-width: 700px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

/* VERIFIED METRICS STRIP */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 980px;
  margin: 0 auto;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: left;
}

.metric-val {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-family: var(--font-mono);
}

.metric-lbl {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 4px;
}

/* =========================================================================
   SCROLL-DRIVEN ARCHITECTURAL JOURNEY (APPLE-STYLE STICKY STAGE)
   ========================================================================= */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-head p {
  font-size: 1rem;
  color: var(--text-2);
}

.journey-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 44px;
  align-items: start;
}

.journey-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.journey-step {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  opacity: 0.52;
  transition: opacity 0.25s, border-color 0.25s, background 0.25s;
  cursor: pointer;
}

.journey-step.active {
  opacity: 1;
  background: rgba(56, 189, 248, 0.05);
  border-color: rgba(56, 189, 248, 0.42);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 8px;
}

.journey-step h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.journey-step p {
  font-size: 0.94rem;
  color: var(--text-2);
  margin-bottom: 12px;
}

.formula-pill {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #bae6fd;
  background: rgba(7, 8, 10, 0.85);
  border: 1px solid var(--border-strong);
  padding: 10px 12px;
  border-radius: 10px;
  overflow-x: auto;
}

.journey-stage-col {
  position: sticky;
  top: 88px;
}

.stage-frame {
  background: #0a0c10;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.stage-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-2);
  background: #0d0f14;
}

#journey-canvas {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  display: block;
}

.stage-progress-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.stage-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.2s ease-out;
}

/* =========================================================================
   CINEMA VIDEO SECTION
   ========================================================================= */
.video-frame {
  max-width: 980px;
  margin: 0 auto;
  background: #0a0c10;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
}

.video-frame video {
  width: 100%;
  display: block;
  background: #05070a;
}

/* =========================================================================
   LIVE SINGLE-SLOT CHAT SANDBOX
   ========================================================================= */
.chat-shell {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
}

.chat-messages {
  min-height: 260px;
  max-height: 440px;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-composer {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: rgba(7, 8, 10, 0.6);
}

.chat-composer textarea {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  outline: none;
}

.chat-composer textarea:focus { border-color: var(--accent); }

/* =========================================================================
   DONATIONS, SPONSORSHIPS & COLLABORATIONS (100% OWNER IP)
   ========================================================================= */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tier-card.featured {
  border-color: rgba(234, 179, 8, 0.45);
  background: rgba(234, 179, 8, 0.04);
}

.tier-price {
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.tier-card p { font-size: 0.9rem; color: var(--text-2); }

.owner-banner {
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.9rem;
  color: var(--text-2);
  max-width: 820px;
  margin: 0 auto 32px;
  text-align: center;
}

.form-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 28px;
}

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

.field {
  width: 100%;
  background: #07080a;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.field:focus { border-color: var(--accent); }

/* =========================================================================
   LEGAL & FOOTER
   ========================================================================= */
.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-size: 0.88rem;
  color: var(--text-2);
}

.legal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.legal-box h3 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 13px;
  color: var(--text-3);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================================================================
   RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   ========================================================================= */
/* =========================================================================
   UNIVERSAL MODERN GLASSMORPHISM & 100% RESPONSIVE RULES (ALL COMPONENTS)
   ========================================================================= */
.hero-eyebrow,
.metric-card,
.journey-step,
.stage-frame,
.video-frame,
.chat-shell,
.tier-card,
.owner-banner,
.form-card,
.legal-box,
.site-footer {
  background: rgba(12, 16, 26, 0.46) !important;
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 48px rgba(0, 0, 0, 0.42);
}

.metric-card:hover,
.tier-card:hover,
.legal-box:hover {
  background: rgba(18, 24, 38, 0.58) !important;
  border-color: rgba(56, 189, 248, 0.34);
  transform: translateY(-2px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.journey-step.active {
  background: rgba(14, 28, 44, 0.62) !important;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow:
    inset 0 1px 0 rgba(56, 189, 248, 0.25),
    0 20px 54px rgba(0, 0, 0, 0.5);
}

.field,
.chat-composer textarea {
  background: rgba(7, 10, 16, 0.62) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Bulletproof Responsiveness (320px -> 4K) */
html, body { overflow-x: clip; }
.container, .journey-layout, .metrics-strip, .support-grid, .legal-grid, .form-grid, .chat-shell, .stage-frame {
  min-width: 0;
}
.formula-pill, .chat-messages, .metric-val {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .journey-layout { grid-template-columns: 1fr; gap: 28px; }
  .journey-stage-col { position: relative; top: 0; order: -1; }
  .support-grid { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .brand-tag { display: none; }
  .nav-actions .btn { padding: 7px 12px; font-size: 12px; }
  .hero { padding: 98px 0 54px; }
  .section { padding: 56px 0; }
  .journey-step { padding: 20px; }
  .form-card { padding: 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .chat-composer { flex-direction: column; }
  .chat-composer .btn { width: 100%; }
  .metrics-strip { grid-template-columns: 1fr; }
}

/* =========================================================================
   IBIS STUDIO SHOWCASE, TRANSPARENT FUNDING & FOUNDER TRUST SECTIONS
   ========================================================================= */
.studio-showcase {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.studio-window,
.studio-plan-card,
.funding-card,
.founder-card {
  background: rgba(12, 16, 26, 0.5) !important;
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 48px rgba(0, 0, 0, 0.44);
}

.studio-window { overflow: hidden; }

.studio-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 10, 18, 0.55);
  font-size: 12.5px;
  color: var(--text-2);
}

.studio-dots { display: flex; gap: 7px; }
.studio-dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.studio-dots span:nth-child(1) { background: #ef4444; }
.studio-dots span:nth-child(2) { background: #eab308; }
.studio-dots span:nth-child(3) { background: #22c55e; }

.studio-title-text { font-family: var(--font-mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
}

.studio-mock-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 220px;
}

.studio-sidebar-mock {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(7, 10, 18, 0.35);
}

.mock-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 4px; }
.mock-item { font-size: 12.5px; color: var(--text-2); padding: 7px 10px; border-radius: 8px; }
.mock-item.active { background: rgba(56, 189, 248, 0.14); color: #e0f2fe; border: 1px solid rgba(56, 189, 248, 0.32); }

.studio-main-mock {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-badge-row { display: flex; flex-wrap: wrap; gap: 8px; }
.mock-chip { font-family: var(--font-mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.12); }
.mock-chip.cyan { color: #7dd3fc; background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.3); }
.mock-chip.gold { color: #fde047; background: rgba(234, 179, 8, 0.12); border-color: rgba(234, 179, 8, 0.3); }
.mock-chip.green { color: #6ee7b7; background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.3); }

.mock-chat-bubble { font-size: 13px; padding: 11px 14px; border-radius: 12px; line-height: 1.5; }
.mock-chat-bubble.user { align-self: flex-end; max-width: 82%; background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.28); color: #f8fafc; }
.mock-chat-bubble.ai { align-self: flex-start; max-width: 92%; background: rgba(15, 23, 42, 0.65); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text); }
.mock-think { font-family: var(--font-mono); font-size: 11.5px; color: #94a3b8; margin-bottom: 6px; padding-left: 9px; border-left: 2px solid rgba(56, 189, 248, 0.4); }

.studio-compare-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}

.studio-plan-card { padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.studio-plan-card.featured { border-color: rgba(56, 189, 248, 0.45); }

.price-sub { font-size: 14px; font-weight: 400; color: var(--text-2); }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 14px 0 22px; color: var(--text-2); font-size: 14px; }
.feature-list li::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.studio-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }

.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
  color: var(--text-2);
}
.compare-row:last-child { border-bottom: none; }
.compare-row .good { color: #6ee7b7; font-weight: 500; text-align: right; }
.compare-row .bad { color: #fca5a5; text-align: right; }

/* TRANSPARENT FUNDING CARD */
.funding-card { padding: 24px 26px; margin-bottom: 24px; }
.funding-top { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
.funding-numbers { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.funding-numbers strong { font-size: 28px; color: #f8fafc; font-family: var(--font-mono); }
.funding-sep, #funding-target { font-size: 17px; color: var(--text-2); font-family: var(--font-mono); }
.funding-sub { font-size: 13px; color: var(--text-2); margin-left: 6px; }
.funding-split-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.split-pill { font-family: var(--font-mono); font-size: 11.5px; padding: 5px 12px; border-radius: 999px; }
.split-pill.cyan { background: rgba(56, 189, 248, 0.14); border: 1px solid rgba(56, 189, 248, 0.35); color: #7dd3fc; }
.split-pill.gold { background: rgba(234, 179, 8, 0.14); border: 1px solid rgba(234, 179, 8, 0.35); color: #fde047; }

.funding-bar-track { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-bottom: 14px; }
.funding-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #38bdf8, #818cf8, #eab308); transition: width 0.5s ease; }
.owner-note-inline { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* 5-TIER HIGH CONVERSION GRID */
.tiers-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.tiers-grid-5 .tier-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 16px;
  gap: 10px;
}

.tiers-grid-5 .tier-price { font-size: 26px; font-weight: 700; margin: 2px 0; }
.tiers-grid-5 .tier-card p { font-size: 13px; color: var(--text-2); flex: 1; }
.tiers-grid-5 .btn { width: 100%; padding: 9px 12px; font-size: 12.5px; }

.direct-pay-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

/* FOUNDER TRUST SECTION */
.founder-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.founder-card { padding: 26px; }
.founder-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.founder-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.28);
}
.founder-role { font-size: 13px; color: var(--accent); margin-top: 2px; }
.founder-bio { font-size: 14.5px; color: var(--text-2); line-height: 1.7; margin-bottom: 18px; }

.social-links-row { display: flex; flex-wrap: wrap; gap: 8px; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #e2e8f0;
  transition: border-color 0.2s, transform 0.15s;
}
.social-pill:hover { border-color: rgba(56, 189, 248, 0.7); transform: translateY(-1px); }

.milestone-list { display: flex; flex-direction: column; gap: 16px; }
.milestone-item { display: flex; gap: 12px; align-items: flex-start; }
.ms-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex-shrink: 0; box-shadow: 0 0 10px var(--accent); }
.ms-sub { font-size: 13px; color: var(--text-2); margin-top: 2px; }

@media (max-width: 1120px) {
  .tiers-grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .studio-mock-body { grid-template-columns: 1fr; }
  .studio-sidebar-mock { border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); flex-direction: row; flex-wrap: wrap; }
  .studio-compare-grid, .founder-grid { grid-template-columns: 1fr; }
  .tiers-grid-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .tiers-grid-5 { grid-template-columns: 1fr; }
}


/* =========================================================================
   BUILD IN PUBLIC · SEZIONI ONESTE, PROGRESSO NATIVO & MONETIZZAZIONE REALE
   ========================================================================= */

.hero-clean {
  min-height: 82dvh;
  display: flex;
  align-items: center;
}

.hero-title-fluid {
  font-size: clamp(1.95rem, 1.35rem + 2.4vw, 3.45rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  max-width: 900px;
  margin: 0 auto 20px;
}

/* Mobile Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Pre-Training Progress Card + Native <progress> */
.pretrain-card {
  background: rgba(14, 18, 28, 0.72);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  margin-bottom: 28px;
}

.pretrain-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.pretrain-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.pretrain-counter {
  font-size: clamp(1.4rem, 1.15rem + 1.2vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.pretrain-pct-wrap {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.pretrain-pct {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem);
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
}

.pretrain-updated {
  font-size: 0.8rem;
  color: var(--text-2);
}

/* Native <progress> styled per modern-web-guidance (separate vendor pseudo-elements) */
progress.ibis-progress {
  --progress-bar-radius: 999px;
  --progress-bar-track: rgba(255, 255, 255, 0.08);
  --progress-bar-fill: linear-gradient(90deg, #38bdf8 0%, #818cf8 55%, #eab308 100%);
  appearance: none;
  -webkit-appearance: none;
  border: 0 solid;
  overflow: clip;
  display: block;
  inline-size: 100%;
  block-size: 16px;
  border-radius: var(--progress-bar-radius);
  background: var(--progress-bar-track);
  box-shadow: inset 0 1px 3px rgb(0 0 0 / 0.45);
  margin-bottom: 18px;
}

progress.ibis-progress::-webkit-progress-bar {
  background: transparent;
}

progress.ibis-progress::-webkit-progress-value {
  background: var(--progress-bar-fill);
  border-radius: var(--progress-bar-radius);
  transition: inline-size 0.35s ease;
}

progress.ibis-progress::-moz-progress-bar {
  background: var(--progress-bar-fill);
  border-radius: var(--progress-bar-radius);
  transition: inline-size 0.35s ease;
}

.pretrain-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.pretrain-note {
  font-size: 0.94rem;
  color: var(--text-2);
  line-height: 1.65;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

/* Reality vs Roadmap Grid */
.reality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.reality-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.reality-card.ready {
  border-color: rgba(52, 211, 153, 0.28);
}

.reality-card.roadmap {
  border-color: rgba(234, 179, 8, 0.28);
}

.reality-head {
  margin-bottom: 12px;
}

.reality-head h3 {
  margin-top: 10px;
  font-size: 1.25rem;
}

.reality-intro {
  font-size: 0.92rem;
  color: var(--text-2);
  margin-bottom: 14px;
}

.reality-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.reality-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.91rem;
  color: var(--text-2);
  line-height: 1.55;
}

.reality-list li strong {
  color: var(--text);
}

.reality-card.ready .reality-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.reality-card.roadmap .reality-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Status Chips */
.status-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-chip.green {
  background: rgba(52, 211, 153, 0.14);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.32);
}

.status-chip.cyan {
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.32);
}

.status-chip.gold {
  background: rgba(234, 179, 8, 0.14);
  color: var(--gold);
  border: 1px solid rgba(234, 179, 8, 0.34);
}

.status-chip.muted {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.split-pill.green {
  background: rgba(52, 211, 153, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

/* 3. Story / Founder Grid */
.story-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.founder-media-card,
.story-copy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.founder-media-slot {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1px dashed rgba(56, 189, 248, 0.42);
  background: rgba(10, 14, 24, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.founder-media-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-placeholder {
  text-align: center;
  padding: 24px 18px;
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.55;
}

.media-placeholder strong {
  display: block;
  color: var(--text);
  margin-bottom: 8px;
  font-size: 0.96rem;
}

.media-placeholder code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 6px;
  border-radius: 5px;
}

.placeholder-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.founder-caption {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.founder-caption span {
  font-size: 0.84rem;
  color: var(--text-2);
}

.story-copy-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.story-copy-card h3 {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem);
  line-height: 1.25;
}

.story-copy-card p {
  color: var(--text-2);
  font-size: 0.96rem;
}

.story-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* 4. Proof of Work */
.proof-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 36px;
}

.proof-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.proof-card-head h3 {
  margin-top: 8px;
  font-size: 1.15rem;
}

.proof-media-slot {
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px dashed var(--border-strong);
  background: rgba(10, 14, 24, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proof-desc {
  font-size: 0.89rem;
  color: var(--text-2);
}

.proof-subhead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 22px;
}

.proof-subhead h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.proof-subhead p {
  font-size: 0.92rem;
  color: var(--text-2);
}

.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ba-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ba-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ba-prompt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 8px 10px;
  border-radius: 8px;
}

.ba-output {
  font-size: 0.89rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* 5. Architecture Compact Grid */
.arch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.arch-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}

.arch-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.arch-card p {
  font-size: 0.88rem;
  color: var(--text-2);
}

/* 6. Transparent Donations */
.donate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

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

.donate-card.featured {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(56, 189, 248, 0.06);
}

.donate-tag {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-2);
}

.donate-tag.gold { color: var(--gold); }
.donate-tag.cyan { color: var(--accent); }

.donate-amount {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.donate-card h3 {
  font-size: 1.12rem;
}

.donate-card p {
  font-size: 0.91rem;
  color: var(--text-2);
  flex: 1;
}

.donate-direct-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 12px;
}

.donate-footnote {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-3);
}

.donate-footnote code {
  font-family: var(--font-mono);
  color: var(--text-2);
}

/* 7. Services / Work With Me */
.section-services {
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-card h3 {
  font-size: 1.1rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-2);
  flex: 1;
}

.form-head {
  margin-bottom: 18px;
}

.form-head h3 {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.form-head p {
  font-size: 0.9rem;
  color: var(--text-2);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.form-status {
  font-size: 0.88rem;
  color: var(--text-2);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-admin {
  opacity: 0.55;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .arch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .donate-grid,
  .services-grid,
  .ba-grid {
    grid-template-columns: 1fr;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .founder-media-slot {
    max-width: 360px;
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .reality-grid,
  .proof-media-grid,
  .arch-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 12px;
    padding: 18px 24px 22px;
    background: rgba(7, 8, 10, 0.96);
    border-bottom: 1px solid var(--border-strong);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .nav-links.is-open {
    display: flex;
  }

  .pretrain-card {
    padding: 20px;
  }

  .pretrain-pct-wrap {
    align-items: flex-start;
    text-align: left;
  }
}


/* =========================================================================
   IBIS SAAS WEBAPP + 3D EXPLODED VIEW + ACCESSIBLE NATIVE DIALOGS (v11)
   ========================================================================= */

.btn-sm {
  padding: 8px 16px;
  font-size: 0.86rem;
}

.btn-xs {
  padding: 5px 11px;
  font-size: 0.78rem;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.link-btn:hover {
  color: #7dd3fc;
}

.saas-toast {
  margin-top: 86px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  background: rgba(14, 18, 28, 0.92);
  backdrop-filter: blur(12px);
}

.saas-toast.toast-ok {
  border-color: rgba(52, 211, 153, 0.45);
  color: #a7f3d0;
}

.saas-toast.toast-error {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
}

/* --- 3D EXPLODED VIEW (Real IBIS Studio Screenshots) --- */
.exploded-section {
  padding-bottom: 48px;
}

.exploded-controls {
  display: inline-flex;
  gap: 8px;
  margin-top: 20px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.pill-btn {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-2);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.pill-btn.active {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
}

@media (prefers-reduced-motion: no-preference) {
  .exploded-track {
    position: relative;
    height: 210vh;
    margin-top: 12px;
  }

  .exploded-sticky {
    position: sticky;
    top: 72px;
    height: calc(100vh - 88px);
    min-height: 540px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1400px;
    overflow: hidden;
  }

  .exploded-stage {
    --stage-rx: 8deg;
    --stage-ry: -6deg;
    position: relative;
    width: min(740px, 86vw);
    aspect-ratio: 16 / 10;
    transform-style: preserve-3d;
    transform: rotateX(var(--stage-rx)) rotateY(var(--stage-ry));
    will-change: transform;
  }

  .ex-layer {
    position: absolute;
    inset: 0;
    margin: 0;
    transform-style: preserve-3d;
    will-change: transform, opacity;
  }

  .ex-layer-1 { z-index: 4; }
  .ex-layer-2 { z-index: 3; }
  .ex-layer-3 { z-index: 2; }
  .ex-layer-4 { z-index: 1; }

  .ex-callout {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(10, 14, 24, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.32);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  .exploded-stage.is-exploded .ex-callout {
    opacity: 1;
  }

  .ex-callout-left {
    right: calc(100% + 18px);
  }

  .ex-callout-right {
    left: calc(100% + 18px);
  }

  .ex-core-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 10px;
    border-radius: 999px;
    background: rgba(7, 10, 18, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 36px rgba(56, 189, 248, 0.35);
    opacity: 0;
    pointer-events: none;
    will-change: transform, opacity;
  }

  .ex-core-badge img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
  }

  .ex-core-badge span {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #e0f2fe;
    white-space: nowrap;
  }
}

.ex-frame {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0b0e15;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
}

.ex-frame-front {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.72), 0 0 42px rgba(56, 189, 248, 0.14);
}

.ex-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ex-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.ex-title {
  margin-left: 8px;
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-2);
}

.ex-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ex-callout strong {
  display: block;
  font-size: 0.86rem;
  color: var(--text);
  margin-bottom: 3px;
}

.ex-callout span {
  display: block;
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.4;
}

/* Reduced Motion Static Fallback: Clean 2x2 Showcase Grid */
@media (prefers-reduced-motion: reduce) {
  .exploded-controls,
  .ex-core-badge {
    display: none;
  }

  .exploded-track {
    height: auto;
    max-width: var(--max-w);
    margin: 24px auto 0;
    padding: 0 20px;
  }

  .exploded-stage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }

  .ex-layer {
    position: static;
    margin: 0;
  }

  .ex-callout {
    position: static;
    transform: none;
    width: auto;
    margin-top: 10px;
    opacity: 1;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border);
  }
}

@media (max-width: 1120px) {
  .ex-callout {
    display: none;
  }
}

/* --- PRICING GRID (4 TIERS) --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.pricing-card.featured {
  border-color: rgba(234, 179, 8, 0.55);
  background: linear-gradient(180deg, rgba(234, 179, 8, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #0b0d12;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0 10px;
  flex-wrap: wrap;
}

.price-main {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.price-old {
  font-size: 1rem;
  color: var(--text-3);
  text-decoration: line-through;
}

.price-period {
  font-size: 0.86rem;
  color: var(--text-2);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-2);
  min-height: 44px;
}

.pricing-features {
  list-style: none;
  margin: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.pricing-features li::before {
  content: "✓ ";
  color: var(--green);
  font-weight: 700;
}

.pricing-btn {
  width: 100%;
  justify-content: center;
}

.pricing-footnote {
  text-align: center;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--text-2);
}

/* --- DONATIONS BOX --- */
.donation-box {
  max-width: 680px;
  margin: 0 auto;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px);
  text-align: center;
}

.donation-mode-toggle {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

.donation-presets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}

.amount-btn {
  min-width: 86px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.amount-btn.active,
.amount-btn:hover {
  border-color: rgba(234, 179, 8, 0.65);
  background: rgba(234, 179, 8, 0.14);
}

.custom-amount-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.86rem;
  color: var(--text-2);
}

.custom-amount-wrap input {
  width: 78px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

.donation-form,
.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.donation-form .field,
.waitlist-form .field {
  flex: 1 1 240px;
}

.center-status {
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
}

.form-status.is-error {
  color: var(--red);
}

.form-status.is-ok {
  color: var(--green);
}

/* --- WAITLIST CARD --- */
.waitlist-card {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(129, 140, 248, 0.05));
  border: 1px solid rgba(56, 189, 248, 0.28);
}

/* --- NATIVE <dialog> MODALS (Modern Web Guidance Compliant) --- */
dialog.saas-dialog {
  margin: auto;
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: #0d111a;
  color: var(--text);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.78);
}

dialog.saas-dialog.saas-dialog-wide {
  width: min(680px, calc(100vw - 32px));
}

dialog.saas-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

dialog.saas-dialog:modal {
  overscroll-behavior: contain;
}

dialog.saas-dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(4, 6, 12, 0.76);
  backdrop-filter: blur(8px);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dialog-header h3 {
  margin-top: 8px;
  font-size: 1.35rem;
}

.dialog-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.dialog-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.dialog-lead {
  color: var(--text-2);
  font-size: 0.94rem;
}

.dialog-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-label {
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 500;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-2);
}

.checkbox-row input[type="checkbox"] {
  margin-top: 4px;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* --- USER DASHBOARD --- */
.dashboard-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dash-meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

@media (max-width: 560px) {
  .dash-meta-row {
    grid-template-columns: 1fr;
  }
}

.dash-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 2px;
}

.dash-section h4 {
  font-size: 0.96rem;
  margin-bottom: 10px;
}

.dash-licenses-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-license-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-license-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.dash-key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.dash-key-code {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: #7dd3fc;
  word-break: break-all;
}

.dash-hw-line {
  font-size: 0.8rem;
}

.dash-download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.07);
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.muted-text {
  color: var(--text-2);
  font-size: 0.88rem;
}

.legal-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 6px;
  font-size: 0.9rem;
  color: var(--text-2);
}

.legal-scroll h4 {
  color: var(--text);
  margin-top: 6px;
}


/* --- ULTRA-MODERN STUDIO POLISH (v12) --- */
.bg-vignette {
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(56, 189, 248, 0.08), transparent 65%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(4, 6, 12, 0.72), transparent 72%);
}

.hero-title-fluid {
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 68%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.metric-card,
.arch-card,
.pretrain-card,
.pricing-card,
.donation-box,
.waitlist-card {
  background: linear-gradient(180deg, rgba(16, 22, 36, 0.72), rgba(9, 13, 22, 0.78));
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    0 20px 50px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(36, 29, 14, 0.76), rgba(10, 13, 22, 0.84));
  border-color: rgba(234, 179, 8, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(254, 240, 138, 0.28),
    0 24px 64px rgba(0, 0, 0, 0.56),
    0 0 42px rgba(234, 179, 8, 0.10);
}


/* --- ARCHITECTURAL AI STUDIO REDESIGN (v13 — Linear / Apple Pro Aesthetic) --- */
.site-nav {
  background: rgba(6, 7, 10, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand img {
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.brand-tag {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.hero {
  padding: 152px 0 76px;
}

.hero-eyebrow {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  letter-spacing: 0.04em;
}

.hero h1,
.hero-title-fluid {
  font-size: clamp(2.6rem, 5.8vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 1.04;
  background: linear-gradient(180deg, #ffffff 15%, #e2e8f0 65%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-primary {
  background: #f8fafc;
  border-color: #ffffff;
  color: #06070a;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 28px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #06070a;
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.14);
  color: #f1f5f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
  box-shadow: none;
  backdrop-filter: none;
}

.btn-ghost:hover {
  color: #ffffff;
}

.ex-frame {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #07090e;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.78),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.ex-frame-front {
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow:
    0 42px 110px rgba(0, 0, 0, 0.85),
    0 0 60px rgba(56, 189, 248, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}


/* --- HERO 3D GLASS LOGO MEDALLION & KEYNOTE 3D APP SHOWCASE (v14) --- */
.hero-logo-3d-shell {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(15, 23, 42, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    0 20px 50px rgba(0, 0, 0, 0.65),
    0 0 44px rgba(56, 189, 248, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.hero-logo-3d-ring {
  position: absolute;
  inset: -10px;
  border-radius: 34px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22), rgba(99, 102, 241, 0.10) 55%, transparent 72%);
  z-index: -1;
  pointer-events: none;
}

.hero-logo-3d-img {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-logo-3d-shell {
    animation: ibisLogoFloat 5.5s ease-in-out infinite;
  }
  @keyframes ibisLogoFloat {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-6px) rotateX(5deg); }
  }
}

/* 2-Column Interactive 3D Showcase */
.showcase-section {
  padding-top: 28px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: 36px;
  align-items: center;
  margin-top: 38px;
}

@media (max-width: 980px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.showcase-stage-wrap {
  perspective: 1400px;
}

.showcase-3d-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.6;
  transform-style: preserve-3d;
  transform: rotateX(2deg) rotateY(-4deg);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sc-card {
  position: absolute;
  inset: 0;
  margin: 0;
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
  will-change: transform, opacity;
}

.ex-dot.dot-r { background: #ef4444; }
.ex-dot.dot-y { background: #eab308; }
.ex-dot.dot-g { background: #22c55e; }

.ex-pill {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.28);
  padding: 2px 8px;
  border-radius: 999px;
}

.ex-frame img {
  object-fit: contain;
  background: #07090e;
}

.showcase-caption-bar {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(12, 16, 26, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(16px);
}

.showcase-caption-bar img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
}

.showcase-caption-bar strong {
  display: block;
  font-size: 0.94rem;
  color: #f8fafc;
  margin-bottom: 2px;
}

.showcase-caption-bar span {
  display: block;
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.45;
}

/* Interactive Story Step Cards (Right Column) */
.showcase-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-step {
  appearance: none;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(14, 19, 30, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: var(--font-sans);
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.sc-step:hover {
  background: rgba(20, 28, 44, 0.72);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateX(3px);
}

.sc-step.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(15, 23, 42, 0.86));
  border-color: rgba(56, 189, 248, 0.52);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.sc-step-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.sc-step-body h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 4px;
}

.sc-step-body p {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.45;
  margin-bottom: 8px;
}

.sc-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #a7f3d0;
  background: rgba(52, 211, 153, 0.10);
  border: 1px solid rgba(52, 211, 153, 0.24);
  padding: 2px 8px;
  border-radius: 999px;
}


.beta-pass-wrap {
  max-width: 480px;
  margin: 28px auto 12px;
}
.beta-pass-wrap[hidden],
.pricing-grid[hidden] {
  display: none;
}


/* --- KINETIC MATH OVERLAY & FOUNDER MANIFESTO BENTO (v15) --- */
#bg-math-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.bento-manifesto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 920px;
  margin: 0 auto 28px;
}

@media (max-width: 780px) {
  .bento-manifesto {
    grid-template-columns: 1fr;
  }
}

.bento-card {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 22, 36, 0.76), rgba(9, 13, 22, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 18px 44px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.bento-wide {
  grid-column: 1 / -1;
}

.bento-card h3 {
  font-size: 1.25rem;
  margin: 12px 0 10px;
  color: #f8fafc;
}

.bento-card p {
  font-size: 0.92rem;
  color: var(--text-2);
  line-height: 1.55;
}

.bento-sub {
  margin-top: 10px;
  color: #cbd5e1;
}

.bento-stat {
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.bento-card strong {
  display: block;
  color: #f8fafc;
  margin-bottom: 4px;
}


/* --- FOLDABLE (Galaxy Z Fold Cover 280px+ / Unfolded) & PWA SAFE AREAS --- */
[hidden] { display: none !important; }

.site-nav {
  padding-top: env(safe-area-inset-top);
  background: rgba(6, 10, 16, 0.78);
  backdrop-filter: blur(24px) saturate(170%);
  -webkit-backdrop-filter: blur(24px) saturate(170%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

/* PURE CIRCULAR HERO LOGO (ZERO SQUARE BOX) + GOLD & EMERALD HALO */
.hero-logo-3d-shell {
  width: 96px !important;
  height: 96px !important;
  border-radius: 50% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: inline-grid !important;
  place-items: center !important;
  margin: 0 auto 20px !important;
  position: relative;
}
.hero-logo-3d-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50% !important;
  background: conic-gradient(from 0deg, rgba(250, 204, 21, 0.85), rgba(16, 185, 129, 0.85), rgba(250, 204, 21, 0.2), rgba(16, 185, 129, 0.85), rgba(250, 204, 21, 0.85));
  filter: blur(5px);
  opacity: 0.7;
  pointer-events: none;
  animation: ibisRingSpin 9s linear infinite;
}
@keyframes ibisRingSpin {
  to { transform: rotate(360deg); }
}
.hero-logo-3d-img,
.brand img,
.showcase-caption-bar img,
.footer-brand img {
  border-radius: 50% !important;
  object-fit: cover !important;
}
.hero-logo-3d-img {
  position: relative;
  z-index: 2;
  width: 92px !important;
  height: 92px !important;
  border: 2px solid rgba(250, 204, 21, 0.65) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65), 0 0 28px rgba(16, 185, 129, 0.35) !important;
}

/* UNIFIED PRO GLASSMORPHISM ACROSS CLIENT COMPONENTS */
.hero-eyebrow,
.metric-card,
.pricing-card,
.bento-card,
.donation-box,
.waitlist-form,
.sc-step,
.showcase-caption-bar,
.modal-box {
  background: linear-gradient(155deg, rgba(16, 24, 36, 0.68), rgba(8, 12, 20, 0.82)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 40px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: blur(22px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(165%) !important;
}
.hero-eyebrow {
  border-color: rgba(52, 211, 153, 0.28) !important;
}
.pricing-card.featured,
.beta-pass-wrap .pricing-card {
  border-color: rgba(250, 204, 21, 0.45) !important;
  box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.22), 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 32px rgba(234, 179, 8, 0.14) !important;
}

/* CLEAN SINGLE-LINE MOBILE HEADER & RESPONSIVE TOUCH CONTROLS */
.brand { min-width: 0; }
.brand span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-actions .btn { white-space: nowrap; flex-shrink: 0; }

@media (max-width: 720px) {
  .site-nav { height: calc(58px + env(safe-area-inset-top)); }
  .nav-inner { gap: 8px; padding: 0 12px; }
  .brand { gap: 7px; font-size: 0.88rem; }
  .brand-tag { display: none !important; }
  .nav-actions { gap: 6px; }
  .nav-actions .btn {
    height: 36px;
    padding: 0 12px;
    font-size: 0.78rem;
  }
  .hero { padding: 98px 0 56px; }
  .hero-eyebrow { font-size: 0.68rem; padding: 6px 12px; line-height: 1.35; }
  .metrics-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-card { padding: 14px 12px; }
  .btn { min-height: 44px; }
}

@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .brand span:first-of-type { font-size: 0.8rem; }
  .nav-actions .btn { padding: 0 9px; font-size: 0.72rem; }
  .hero h1, .hero-title-fluid { font-size: 1.9rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .donation-presets { gap: 8px; }
  .amount-btn { min-width: 70px; padding: 10px 12px; font-size: 0.9rem; }
}

/* --- v17: HIGH-CONTRAST HERO TYPOGRAPHY + PRO 3D SHOWCASE CAROUSEL & LIGHTBOX --- */
.hero .container {
  position: relative;
}
.hero .container::before {
  content: "";
  position: absolute;
  inset: -24px -12px;
  z-index: -1;
  border-radius: 36px;
  background: radial-gradient(ellipse 78% 68% at 50% 45%, rgba(4, 8, 14, 0.78) 0%, rgba(4, 8, 14, 0.42) 55%, transparent 100%);
  pointer-events: none;
}
.hero h1,
.hero-title-fluid {
  background: linear-gradient(180deg, #ffffff 42%, #fef08a 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  filter: drop-shadow(0 3px 16px rgba(0, 0, 0, 0.92));
}
.hero-lead {
  color: #f1f5f9 !important;
  font-weight: 450;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 1px 3px rgba(0, 0, 0, 0.9);
}
.hero-lead strong {
  color: #fde047 !important;
  font-weight: 700;
}

/* SLEEK SINGLE-LINE MACOS BAR INSIDE 3D SHOWCASE CARDS */
.ex-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  height: 34px !important;
  padding: 0 12px !important;
  background: rgba(9, 13, 22, 0.95) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10) !important;
  flex-wrap: nowrap !important;
}
.ex-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.ex-dot { width: 8px !important; height: 8px !important; border-radius: 50%; display: inline-block; }
.ex-title {
  font-family: var(--font-mono);
  font-size: 0.72rem !important;
  color: #e2e8f0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0;
  flex: 1;
}
.ex-pill {
  font-size: 0.64rem !important;
  color: #fde047 !important;
  background: rgba(234, 179, 8, 0.14) !important;
  border: 1px solid rgba(234, 179, 8, 0.35) !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.ex-frame {
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: #070a10 !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65) !important;
}
.ex-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* INTERACTIVE THUMBNAILS + PREV/NEXT + ZOOM BAR */
.sc-nav-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.sc-arrow-btn,
.sc-zoom-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 22, 34, 0.75);
  color: #f8fafc;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  backdrop-filter: blur(14px);
}
.sc-zoom-btn {
  border-color: rgba(250, 204, 21, 0.4);
  color: #fde047;
}
.sc-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.sc-thumb {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #070a10;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
  aspect-ratio: 16 / 10;
}
.sc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sc-thumb.active {
  opacity: 1;
  border-color: #34d399;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.45);
  transform: translateY(-1px);
}

/* MOBILE EXPLODED MODE: CLEAN VERTICAL 3D GALLERY SO ALL 4 SCREENS ARE 100% VISIBLE */
@media (max-width: 900px) {
  .showcase-3d-stage[data-mode="exploded"] {
    aspect-ratio: auto !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .showcase-3d-stage[data-mode="exploded"] .sc-card {
    position: relative !important;
    inset: auto !important;
    transform: perspective(900px) rotateX(2deg) !important;
    opacity: 1 !important;
    z-index: 1 !important;
  }
}

/* FULLSCREEN LIGHTBOX */
.modal-lightbox {
  max-width: min(96vw, 1180px);
  width: 100%;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 10, 18, 0.96);
  color: #f8fafc;
}
.modal-lightbox::backdrop {
  background: rgba(2, 5, 10, 0.84);
  backdrop-filter: blur(10px);
}
.lightbox-inner { padding: 14px; }
.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.lightbox-inner img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: block;
}

/* v18: CLEAN WAITLIST FORM (NO DOUBLE INNER BOX) & OAUTH STACK */
.waitlist-box {
  background: linear-gradient(155deg, rgba(16, 24, 36, 0.72), rgba(8, 12, 20, 0.86)) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 22px !important;
  padding: 28px 20px !important;
  backdrop-filter: blur(22px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(165%) !important;
}
.waitlist-form {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: row;
  gap: 10px;
  max-width: 480px;
  margin: 22px auto 0 !important;
}
.waitlist-form .field {
  flex: 1;
  min-height: 48px;
  border-radius: 14px;
}
.waitlist-form .btn {
  min-height: 48px;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .waitlist-form {
    flex-direction: column !important;
  }
  .waitlist-form .field,
  .waitlist-form .btn {
    width: 100% !important;
  }
}
#oauth-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
#oauth-buttons-row .btn {
  flex: 1 1 130px;
  min-height: 42px;
}

/* v19: CINEMATIC AUTO-PLAYING GUIDED TOUR + VIRTUAL CURSOR + MULTI-OS DOWNLOAD */
.tour-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 920px) {
  .tour-layout { grid-template-columns: 1fr; gap: 18px; }
}
.tour-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #060910;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}
.tour-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px 10px;
  background: rgba(8, 12, 20, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tour-seg {
  height: 3.5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.tour-seg-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #34d399, #fde047);
  border-radius: 99px;
}
.tour-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #05070c;
}
.tour-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.65s ease, transform 4.5s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.tour-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  cursor: zoom-in;
}
.tour-cursor {
  position: absolute;
  left: 62%;
  top: 46%;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  transition: left 1.1s cubic-bezier(0.22, 1, 0.36, 1), top 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 0.16s ease;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.85));
}
.tour-cursor.clicking { transform: scale(0.84); }
.tour-cursor-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #05070c;
  background: linear-gradient(135deg, #fde047, #34d399);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}
.tour-ripple {
  position: absolute;
  left: 62%;
  top: 46%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 2px solid #fde047;
  box-shadow: 0 0 14px #34d399;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}
.tour-ripple.pop {
  animation: tourRipplePop 0.75s ease-out forwards;
}
@keyframes tourRipplePop {
  0% { transform: scale(0.5); opacity: 0.95; }
  100% { transform: scale(3.4); opacity: 0; }
}
.tour-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(9, 13, 22, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.tour-ctrl-btn {
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.42);
  background: rgba(52, 211, 153, 0.14);
  color: #a7f3d0;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}
.tour-step-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-2);
}
.tour-ctrl-right { display: flex; gap: 6px; }
.mt-10 { margin-top: 10px; }

/* MULTI-OS DOWNLOAD GRID */
.os-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 820px) { .os-grid { grid-template-columns: 1fr; } }
.os-card { display: flex; flex-direction: column; gap: 8px; }
.os-card code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  color: #fde047;
  background: rgba(250, 204, 21, 0.1);
  padding: 1px 6px;
  border-radius: 6px;
}
.os-req {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: #a7f3d0;
  margin-top: auto;
}

/* v20: ZERO OVERFLOW TOUR ON MOBILE, WORKING HAMBURGER MENU & PRO SAAS LOGIN */
.brand-name-full { font-weight: 700; white-space: nowrap; }
.brand-name-full em { font-style: normal; color: #fde047; font-weight: 700; margin-left: 3px; }
@media (max-width: 440px) {
  .brand-name-full { font-size: 0.78rem; }
}

.tour-layout > *,
.tour-player-wrap,
.tour-frame,
.tour-viewport,
.showcase-caption-bar {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
.tour-controls { flex-wrap: nowrap; padding: 8px 10px; }
.tour-ctrl-btn { padding: 4px 10px; font-size: 0.72rem; white-space: nowrap; }
.tour-step-counter { font-size: 0.68rem; white-space: nowrap; }
.tour-ctrl-right .sc-arrow-btn,
.tour-ctrl-right .sc-zoom-btn { width: 32px; height: 32px; font-size: 1rem; }

/* MOBILE GLASS HAMBURGER MENU */
@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: fixed;
    top: calc(58px + env(safe-area-inset-top));
    left: 10px;
    right: 10px;
    z-index: 120;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(8, 12, 22, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(26px) saturate(180%);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
  }
  .nav-links.open { display: flex !important; }
  .nav-links a {
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.94rem;
    font-weight: 600;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.03);
  }
  .nav-links a:hover { background: rgba(52, 211, 153, 0.16); color: #a7f3d0; }
}

/* PRO SAAS LOGIN / REGISTER MODAL */
.auth-dialog-pro { max-width: 430px !important; width: calc(100% - 24px) !important; }
.auth-head-brand { display: flex; align-items: center; gap: 12px; }
.auth-head-logo { border-radius: 50%; border: 1.5px solid rgba(250, 204, 21, 0.6); flex-shrink: 0; }
.oauth-stack { display: flex; flex-direction: column; gap: 9px; margin: 14px 0 4px; }
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 13px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.oauth-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.oauth-google { background: #ffffff; color: #0f172a; border-color: #e2e8f0; }
.oauth-github { background: #161b22; color: #f8fafc; border-color: rgba(255, 255, 255, 0.22); }
.oauth-facebook { background: #1877f2; color: #ffffff; border-color: #1877f2; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  color: var(--text-2);
  font-size: 0.74rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.btn-full { width: 100%; }

/* v21: PERFECT RESPONSIVE LIGHTBOX GLASS + ZERO-ELLIPSIS MOBILE BRAND + NO OVERFLOW */
html, body, main, section { max-width: 100vw; overflow-x: clip; }

@media (max-width: 560px) {
  .brand-desktop-prefix { display: none; }
  .brand-name-full { font-size: 0.94rem; letter-spacing: -0.01em; }
  .brand-name-full em { margin-left: 0; }
}

.modal-lightbox {
  margin: auto !important;
  width: calc(100vw - 20px) !important;
  max-width: 1080px !important;
  max-height: 90dvh !important;
  padding: 0 !important;
  border-radius: 20px !important;
  background: linear-gradient(155deg, rgba(16, 24, 38, 0.92), rgba(7, 10, 18, 0.96)) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(26px) saturate(175%) !important;
  -webkit-backdrop-filter: blur(26px) saturate(175%) !important;
  overflow: hidden !important;
}
.modal-lightbox .lightbox-inner {
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 10px;
}
.modal-lightbox .lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}
.modal-lightbox .lightbox-head strong {
  font-size: 0.94rem;
  color: #f8fafc;
  line-height: 1.3;
}
.modal-lightbox .dialog-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.modal-lightbox .dialog-close:hover {
  background: rgba(248, 113, 113, 0.22);
  border-color: rgba(248, 113, 113, 0.5);
}
.modal-lightbox img {
  width: 100%;
  max-height: 74dvh;
  object-fit: contain;
  border-radius: 12px;
  background: #05070c;
}

/* v22: SLEEK AUTH HEADER + FULL-WIDTH DONATION FORM WITH SUPPORTER MESSAGE */
.auth-head-brand { align-items: center; }
.auth-head-brand h3 { margin: 0; font-size: 1.18rem; letter-spacing: -0.02em; }
.donation-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  max-width: 440px;
  margin: 18px auto 0 !important;
}
.donation-form .field,
.donation-form .btn {
  width: 100% !important;
  min-height: 46px;
}
.donation-msg-area {
  min-height: 68px !important;
  resize: vertical;
  line-height: 1.45;
  padding-top: 10px;
}
.lang-select-sm {
  height: 30px !important;
  padding: 0 26px 0 10px !important;
  font-size: 0.74rem !important;
}

/* v23: MODERN EDITORIAL ACCENT LABELS (NO MORE UGLY BULKY BLUE OVAL PILLS!) */
.status-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: transparent !important;
  border: none !important;
  border-left: 2.5px solid #34d399 !important;
  border-radius: 0 !important;
  padding: 1px 0 1px 10px !important;
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #a7f3d0 !important;
  box-shadow: none !important;
  line-height: 1.35 !important;
}
.status-chip.gold {
  border-left-color: #fde047 !important;
  color: #fef08a !important;
}
.status-chip.cyan {
  border-left-color: #34d399 !important;
  color: #6ee7b7 !important;
}
.status-chip.green {
  border-left-color: #10b981 !important;
  color: #a7f3d0 !important;
}

/* v24: 120FPS SILK-SMOOTH SCROLL (ZERO GPU STALL) + CRISP DONATION INPUTS */
#bg-scroll-canvas,
#bg-math-canvas {
  transform: translateZ(0);
  will-change: transform;
}

/* Remove heavy per-card backdrop-filter blur on scrolling body cards (keeps sleek dark glass look at 0ms GPU cost) */
.hero-eyebrow,
.metric-card,
.pricing-card,
.bento-card,
.donation-box,
.waitlist-box,
.sc-step,
.showcase-caption-bar,
.arch-card,
.pretrain-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: linear-gradient(155deg, rgba(13, 19, 32, 0.88), rgba(7, 10, 18, 0.94)) !important;
}

/* Fix donation email & message inputs (prevent vertical flex:1 square stretch!) */
.donation-form input.field {
  flex: none !important;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
}
.donation-form textarea.field {
  flex: none !important;
  height: 78px !important;
  min-height: 78px !important;
  max-height: 140px !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
}

/* v25: ULTRA-CRISP READABILITY ACROSS ALL SECTIONS (HIGH-CONTRAST OBSIDIAN SCRIM + PEARL/GOLD INK) */
.section-head {
  position: relative;
  padding: 22px 18px !important;
  border-radius: 26px;
  background: radial-gradient(ellipse 90% 82% at 50% 50%, rgba(4, 7, 13, 0.88) 0%, rgba(4, 7, 13, 0.62) 62%, transparent 100%);
}
.section-head .eyebrow {
  color: #fde047 !important;
  font-weight: 700 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}
.section-head h2 {
  color: #ffffff !important;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.95);
}
.section-head p {
  color: #f1f5f9 !important;
  font-weight: 450 !important;
  line-height: 1.65 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.96), 0 1px 3px rgba(0, 0, 0, 0.9);
}
.section-head p strong {
  color: #fde047 !important;
  font-weight: 700;
}
.arch-card p,
.bento-card p,
.pretrain-note,
.sc-step-body p,
.showcase-caption-bar span {
  color: #e2e8f0 !important;
}

/* v26: MAINTENANCE OVERLAY WITH COUNTDOWN + CLIENT PROFILE FORM */
.maint-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: radial-gradient(ellipse 80% 60% at 50% 35%, rgba(12, 22, 34, 0.94), rgba(4, 7, 13, 0.98));
}
.maint-card {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 32px 24px;
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(16, 24, 38, 0.92), rgba(7, 10, 18, 0.96));
  border: 1px solid rgba(250, 204, 21, 0.28);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.maint-logo {
  border-radius: 50%;
  border: 2px solid rgba(250, 204, 21, 0.65);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.35);
}
.maint-card h1 { font-size: 1.55rem; color: #ffffff; line-height: 1.2; }
.maint-card p { color: #e2e8f0; font-size: 0.92rem; line-height: 1.55; }
.maint-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  margin: 6px 0;
}
.cd-box {
  padding: 10px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.cd-box strong { display: block; font-family: var(--font-mono); font-size: 1.35rem; color: #fde047; }
.cd-box span { font-size: 0.68rem; color: #94a3b8; text-transform: uppercase; }
.maint-foot { font-size: 0.76rem !important; color: #94a3b8 !important; }
.maint-foot a { color: #6ee7b7; }
.dash-profile-row { display: flex; gap: 8px; align-items: center; }
@media (max-width: 520px) { .dash-profile-row { flex-direction: column; } .dash-profile-row .btn { width: 100%; } }

/* v27: LIVE PRE-TRAINING BENCHMARKS & TELEMETRY WIDGET */
.bench-live-wrap {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}
.bench-live-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 0.84rem;
}
.bench-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  flex-shrink: 0;
}
.bench-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #fde047;
}
.bench-kpi-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.bench-kpi {
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.bench-kpi span { display: block; font-size: 0.72rem; color: #94a3b8; }
.bench-kpi strong { display: block; font-family: var(--font-mono); font-size: 1.05rem; color: #f8fafc; margin-top: 2px; }
.bench-bars { display: flex; flex-direction: column; gap: 10px; }
.bench-bar-top { display: flex; justify-content: space-between; font-size: 0.78rem; color: #e2e8f0; margin-bottom: 4px; }
.bench-track { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.bench-fill { height: 100%; border-radius: 99px; transition: width 0.6s ease; }
.bench-fill-em { background: linear-gradient(90deg, #10b981, #34d399); }
.bench-fill-gold { background: linear-gradient(90deg, #eab308, #fde047); }
.bench-fill-cyan { background: linear-gradient(90deg, #38bdf8, #818cf8); }
.bench-fill-muted { background: rgba(148, 163, 184, 0.42); }
.bench-chart-title { font-size: 0.74rem; font-family: var(--font-mono); color: #94a3b8; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.c-gold-txt { color: #fde047; }
.c-em-txt { color: #34d399; }
.mt-14 { margin-top: 14px; }
.donation-alt-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 6px;
}
.donation-alt-links .btn { flex: 1 1 110px; min-height: 38px !important; }

/* v31: VERIFIED STAR REVIEWS */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.review-card {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(13, 19, 32, 0.88), rgba(7, 10, 18, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.11);
}
.review-stars { color: #fde047; font-size: 1rem; letter-spacing: 2px; margin-bottom: 6px; }
.review-author { font-weight: 700; color: #f8fafc; font-size: 0.9rem; }
.review-text { color: #e2e8f0; font-size: 0.86rem; margin-top: 6px; line-height: 1.5; }
.review-composer-card { max-width: 520px; margin: 0 auto; text-align: center; }
.star-picker { display: flex; justify-content: center; gap: 6px; margin-bottom: 4px; }
.star-btn {
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  padding: 2px 4px;
}
.star-btn.active { color: #fde047; }

/* v34: ALIGNED FOOTER LINKS & LANGUAGE SELECTOR */
.footer-links {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 12px 16px !important;
}
.lang-select-sm {
  margin: 0 !important;
  vertical-align: middle !important;
}
