/* ==========================================================================
   Eon Marketing Website - Core Foundation Styles
   Themes: Jarvis HUD & Glass
   ========================================================================== */

:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --morph: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- JARVIS tokens ---------- */
[data-theme="jarvis"] {
  --radius: 4px;
  --radius-lg: 6px;
  --bg: #04070c;
  --text: #d8f6ff;
  --muted: #6fa3b3;
  --accent: #34e4ff;
  --accent-2: #ffb547;
  --accent-soft: rgba(52, 228, 255, 0.12);
  --line: rgba(52, 228, 255, 0.28);
  --panel: rgba(6, 22, 32, 0.62);
  --panel-border: rgba(52, 228, 255, 0.35);
  --user-bubble: rgba(52, 228, 255, 0.12);
  --user-text: #e9fbff;
  --bot-bubble: rgba(255, 181, 71, 0.06);
  --danger: #ff5f6d;
  --font-display: "Orbitron", "Segoe UI", sans-serif;
  --font-body: "Rajdhani", "Segoe UI", sans-serif;
  --glow: 0 0 18px rgba(52, 228, 255, 0.45);

  --pill: 4px;
  --label-font: "Orbitron", "Rajdhani", "Roboto Flex", sans-serif;
  --label-case: uppercase;
  --label-spacing: 0.16em;
  --hud-label-spacing: 0.25em;
  --hud-label-size: 11px;
  --title-spacing: 0.12em;
  --title-weight: 700;
  --title-shadow: 0 0 18px rgba(52, 228, 255, 0.5);
  --title-size: clamp(22px, 3.5vw, 26px);
  --btn-bg: #34e4ff;
  --btn-bg-hover: #7ef0ff;
  --btn-text: #031018;
  --btn-glow: 0 0 22px rgba(52, 228, 255, 0.45);
  --btn-size: 13px;
  --panel-blur: none;
  --panel-shadow: inset 0 0 40px rgba(52, 228, 255, 0.05);
  --brackets: block;
  --word-grad: linear-gradient(180deg, #fff 35%, #34e4ff);
  --word-font: "Orbitron", "Rajdhani", "Roboto Flex", "Noto Sans JP", "Noto Sans KR", "Noto Sans Tamil", "Noto Sans Arabic", sans-serif;
  --word-case: uppercase;
  --word-spacing: 0.08em;
  --nav-bg: rgba(3, 10, 16, 0.6);
  --nav-line: 1px solid var(--line);
  --nav-blur: none;

  font-size: 16.5px;
  letter-spacing: 0.02em;
}

/* ---------- GLASS tokens ---------- */
[data-theme="glass"] {
  --radius: 22px;
  --radius-lg: 32px;
  --bg: #050308;
  --text: #f6f2fc;
  --muted: rgba(235, 225, 250, 0.66);
  --accent: #c7a8ff;
  --accent-2: #9d6bff;
  --accent-soft: rgba(177, 140, 255, 0.14);
  --line: rgba(255, 255, 255, 0.1);
  --panel: rgba(255, 255, 255, 0.045);
  --panel-border: rgba(255, 255, 255, 0.09);
  --user-bubble: linear-gradient(135deg, #b794ff, #8a5cf6);
  --user-text: #14072e;
  --bot-bubble: rgba(255, 255, 255, 0.07);
  --danger: #ffb4ab;
  --font-display: "Roboto Flex", "Segoe UI Variable", "Segoe UI", sans-serif;
  --font-body: "Roboto Flex", "Segoe UI Variable", "Segoe UI", sans-serif;
  --glow: 0 12px 40px rgba(20, 0, 60, 0.35);

  --pill: 999px;
  --label-font: "Roboto Flex", "Segoe UI Variable", "Segoe UI", sans-serif;
  --label-case: none;
  --label-spacing: 0;
  --hud-label-spacing: 0;
  --hud-label-size: 13px;
  --title-spacing: -0.025em;
  --title-weight: 800;
  --title-shadow: none;
  --title-size: clamp(28px, 4.5vw, 34px);
  --btn-bg: #b794ff;
  --btn-bg-hover: #c7a8ff;
  --btn-text: #14072e;
  --btn-glow: 0 12px 40px rgba(20, 0, 60, 0.35);
  --btn-size: 16px;
  --panel-blur: blur(30px) saturate(170%);
  --panel-shadow: 0 12px 40px rgba(20, 0, 60, 0.35);
  --brackets: none;
  --word-grad: linear-gradient(180deg, #ffffff 35%, #b9a0f5);
  --word-font: "Roboto Flex", "Noto Sans Devanagari", "Noto Sans JP", "Noto Sans KR", "Noto Sans Tamil", "Noto Sans Arabic", sans-serif;
  --word-case: none;
  --word-spacing: -0.03em;
  --nav-bg: transparent;
  --nav-line: 1px solid transparent;
  --nav-blur: blur(20px);

  font-size: 16px;
  letter-spacing: normal;
}

/* Theme root base presentation. Page sections (data-theme-root) stay see-through so the fixed .site-bg (grid or
   purple blobs) shows behind the whole page; <html data-page> paints the base colour. Standalone blocks with a fixed
   look (preview cards, test columns) paint their own background. */
[data-theme] {
  color: var(--text);
  font-family: var(--font-body);
}
[data-theme]:not([data-theme-root]) {
  background: var(--bg);
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  overflow-x: clip;
}

html {
  color-scheme: dark;
  background: #04070c;
  -webkit-font-smoothing: antialiased;
}

html[data-page="glass"] {
  background: #050308;
}

img, svg {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ---------- Backgrounds ---------- */
.hud-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 45%, rgba(52, 228, 255, 0.14), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(255, 181, 71, 0.06), transparent 50%),
    linear-gradient(rgba(52, 228, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(52, 228, 255, 0.05) 1px, transparent 1px) 0 0 / 40px 40px;
}

.hud-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px);
}

.glass-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.glass-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  animation: drift 26s ease-in-out infinite alternate;
}

.glass-bg .b1 {
  width: 560px;
  height: 560px;
  background: #5b21b6;
  top: -220px;
  left: -180px;
  opacity: 0.45;
}

.glass-bg .b2 {
  width: 520px;
  height: 520px;
  background: #3b0f7a;
  bottom: -260px;
  right: -160px;
  opacity: 0.4;
  animation-delay: -8s;
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.12); }
  100% { transform: translate(-40px, 70px) scale(0.92); }
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.site-bg .hud-bg,
.site-bg .glass-bg {
  transition: opacity 0.6s ease;
}

[data-page="jarvis"] .site-bg .glass-bg,
.site[data-theme="jarvis"] .site-bg .glass-bg,
[data-theme="jarvis"].site .site-bg .glass-bg,
[data-theme="jarvis"] .site-bg .glass-bg {
  opacity: 0;
}

[data-page="glass"] .site-bg .hud-bg,
.site[data-theme="glass"] .site-bg .hud-bg,
[data-theme="glass"].site .site-bg .hud-bg,
[data-theme="glass"] .site-bg .hud-bg {
  opacity: 0;
}

/* ---------- Arc Reactor (Jarvis Orb) ---------- */
.reactor {
  position: relative;
  width: var(--size, 260px);
  aspect-ratio: 1;
}

.reactor > * {
  position: absolute;
  border-radius: 50%;
}

.reactor .r1 {
  inset: 0;
  border: 2px dashed rgba(52, 228, 255, 0.5);
  animation: spin 30s linear infinite;
}

.reactor .r2 {
  inset: 9%;
  border: 6px solid transparent;
  border-top-color: #34e4ff;
  border-bottom-color: #34e4ff;
  filter: drop-shadow(0 0 6px #34e4ff);
  animation: spin 8s linear infinite reverse;
}

.reactor .r3 {
  inset: 20%;
  border: 1px solid rgba(52, 228, 255, 0.28);
  border-left: 3px solid #ffb547;
  border-right: 3px solid #ffb547;
  animation: spin 12s linear infinite;
}

.reactor .r4 {
  inset: 28%;
  border: 10px dotted rgba(52, 228, 255, 0.55);
  animation: spin 20s linear infinite reverse;
}

.reactor .reactor-core {
  inset: 38%;
  background: radial-gradient(circle, #ffffff 0%, #9ff4ff 22%, #34e4ff 45%, rgba(52, 228, 255, 0.1) 72%);
  box-shadow: 0 0 40px 10px rgba(52, 228, 255, 0.55), 0 0 90px 30px rgba(52, 228, 255, 0.2);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.12); opacity: 1; }
}

/* ---------- Liquid Glass Drop (Glass Orb) ---------- */
.drop {
  position: relative;
  width: var(--size, 240px);
  aspect-ratio: 1;
  container-type: size;
}

.drop-body {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(58% 36% at 56% 92%, rgba(199, 168, 255, 0.5), transparent 72%),
    radial-gradient(farthest-side, rgba(76, 29, 149, 0.2), rgba(76, 29, 149, 0.3) 50%, rgba(124, 58, 237, 0.48) 80%, rgba(183, 148, 255, 0.62));
  box-shadow: 0 0 1.5px rgba(183, 148, 255, 0.55), 0 9cqmin 12cqmin -5cqmin rgba(124, 58, 237, 0.45);
  animation: liquidWobble 8s ease-in-out infinite;
}

.drop-body::before {
  content: "";
  position: absolute;
  inset: -25%;
  pointer-events: none;
  background:
    radial-gradient(30% 22% at 34% 60%, rgba(199, 168, 255, 0.34), transparent 70%),
    radial-gradient(26% 20% at 66% 40%, rgba(183, 148, 255, 0.26), transparent 70%),
    radial-gradient(34% 14% at 52% 74%, rgba(255, 255, 255, 0.12), transparent 70%);
  animation: liquidSwirl 24s linear infinite;
}

.drop-body::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0)) 18% 12% / 30% 20% no-repeat,
    radial-gradient(closest-side, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0)) 14% 10% / 62% 46% no-repeat;
  box-shadow:
    inset 0 max(1.5px, 1.2cqmin) max(2px, 1.4cqmin) rgba(255, 255, 255, 0.45),
    inset 0 calc(-1 * max(1.5px, 1.2cqmin)) max(2px, 1.6cqmin) rgba(199, 168, 255, 0.6),
    inset 0 -8cqmin 14cqmin -6cqmin rgba(196, 165, 255, 0.5);
}

@keyframes liquidWobble {
  0%, 100% { scale: 1 1; }
  25% { scale: 0.972 0.988; }
  50% { scale: 0.986 0.97; }
  75% { scale: 0.97 0.982; }
}

@keyframes liquidSwirl {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  to { transform: rotate(360deg) scale(1); }
}

/* ---------- Morphing Word (.morph) ---------- */
.morph {
  position: relative;
  margin: 0;
  width: 100%;
  height: 1.55em;
  font-size: var(--morph-size, 96px);
  line-height: 1;
  font-weight: 700;
}

.morph.morphing {
  filter: url(#eonThreshold);
}

.morph-word {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.22em 0.1em;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  background-image: var(--word-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--word-font);
  text-transform: var(--word-case);
  letter-spacing: var(--word-spacing);
  font-weight: 700;
  user-select: none;
}

.morph-filter {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ---------- Components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 30px;
  border-radius: var(--pill);
  font-family: var(--label-font);
  text-transform: var(--label-case);
  letter-spacing: var(--label-spacing);
  font-weight: 600;
  font-size: var(--btn-size, 15px);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s var(--ease), background 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--btn-glow);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  transform: scale(1.03);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-ghost {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: var(--line);
  color: var(--text);
  border-color: var(--accent);
  transform: scale(1.03);
}

.btn-ghost:active {
  transform: scale(0.97);
}

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--panel-shadow);
  backdrop-filter: var(--panel-blur);
  -webkit-backdrop-filter: var(--panel-blur);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  display: var(--brackets);
  border: 2px solid var(--accent);
  filter: drop-shadow(0 0 4px var(--accent));
}

.panel::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.panel::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-family: var(--label-font);
  text-transform: var(--label-case);
  letter-spacing: var(--label-spacing);
  font-size: 12px;
  color: var(--accent);
  line-height: 1;
}

.label {
  display: inline-block;
  font-family: var(--label-font);
  text-transform: var(--label-case);
  letter-spacing: var(--hud-label-spacing, 0.25em);
  font-size: var(--hud-label-size, 11px);
  color: var(--accent);
  line-height: 1;
}

.title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  text-transform: var(--label-case);
  text-wrap: balance;
  text-shadow: var(--title-shadow);
  font-size: var(--title-size, 28px);
  line-height: 1.25;
}

.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--pill);
  backdrop-filter: var(--panel-blur);
  -webkit-backdrop-filter: var(--panel-blur);
  box-shadow: var(--panel-shadow);
  gap: 4px;
}

.theme-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background: transparent;
  color: var(--muted);
  font-family: var(--label-font);
  font-size: 13px;
  font-weight: 600;
  text-transform: var(--label-case);
  letter-spacing: var(--label-spacing);
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.25s, color 0.25s, box-shadow 0.25s;
}

.theme-switch button:hover {
  color: var(--text);
}

.theme-switch button[aria-pressed="true"] {
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--btn-glow);
}

.theme-switch button::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.theme-switch button[data-set-theme="jarvis"]::before {
  border: 2px solid #34e4ff;
  box-shadow: 0 0 10px rgba(52, 228, 255, 0.7);
  background: rgba(4, 7, 12, 0.75);
}

.theme-switch button[data-set-theme="glass"]::before {
  border: none;
  background: linear-gradient(135deg, #d9c4ff, #7c3aed);
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.7);
}

/* ---------- Theme Visibility ---------- */
[data-theme="jarvis"] .for-glass,
[data-theme="glass"] .for-jarvis,
[data-theme="jarvis"].for-glass,
[data-theme="glass"].for-jarvis {
  display: none !important;
}

/* ---------- In-app theme switch: circular reveal ---------- */
::view-transition-old(root), ::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-new(root) {
  z-index: 2;
}

/* ---------- Shared Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  background: var(--nav-bg);
  border-bottom: var(--nav-line);
  backdrop-filter: var(--nav-blur, none);
  -webkit-backdrop-filter: var(--nav-blur, none);
}

[data-theme="glass"].nav,
[data-theme="glass"] .nav {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;   /* a comfortable tap target on phones */
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid #34e4ff;
  box-shadow: 0 0 18px rgba(52, 228, 255, 0.45);
}

[data-theme="glass"] .brand-mark,
[data-theme="glass"].brand-mark {
  border: none;
  background: linear-gradient(135deg, #d9c4ff, #7c3aed);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.6);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 15px;
  text-transform: uppercase;
}

[data-theme="glass"] .brand-name,
[data-theme="glass"].brand-name {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  font-size: 19px;
  font-weight: 800;
  text-transform: none;
}

.nav-buy {
  min-height: 40px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
}

/* Phones: the switch stays in the top bar as two icon buttons (the words stay as their accessible names), so it is
   always visible and never covers the page the way a floating dock did */
@media (max-width: 759px) {
  .nav { padding: 0 12px; gap: 8px; }
  .nav .theme-switch { gap: 2px; padding: 3px; }
  .nav .theme-switch button {
    font-size: 0; letter-spacing: 0; gap: 0;
    min-width: 44px; min-height: 40px; padding: 0; justify-content: center;
  }
  .nav .theme-switch button::before { width: 16px; height: 16px; }
  .nav-buy { padding: 8px 14px !important; }
}

/* ---------- Shared Theme Dock (Mobile) ---------- */
.theme-dock {
  display: none;
}

@media (max-width: 0px) {   /* dock retired: the top bar keeps the switch on phones (see .nav above) */
  .theme-dock {
    display: flex;
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    pointer-events: auto;
  }
  .theme-dock .theme-switch {
    box-shadow: var(--btn-glow);
  }
  .theme-dock .theme-switch button {
    min-height: 44px;
    padding: 10px 18px;
  }
}

/* ---------- Shared Hero Typography & Elements ---------- */
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  text-transform: var(--label-case);
  text-wrap: balance;
  text-shadow: var(--title-shadow);
  font-size: clamp(20px, 3.4vw, 32px);
  line-height: 1.25;
}

.hero-sub {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.5;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Shared Peek Section ---------- */
.peek {
  position: relative;
  padding: 96px 20px;
  color: var(--text);
  z-index: 1;
}

@media (max-width: 759px) {
  .peek {
    padding: 64px 20px 96px;
  }
}

.peek-inner {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.peek .title {
  font-size: clamp(28px, 5vw, 44px);
  margin-top: 12px;
  margin-bottom: 40px;
}

.peek-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 999px) {
  .peek-grid {
    grid-template-columns: 1fr;
  }
}

.peek-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.peek-panel h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  text-transform: var(--label-case);
  text-shadow: var(--title-shadow);
  font-size: 18px;
  line-height: 1.3;
}

[data-theme="glass"] .peek-panel h3 {
  font-size: 20px;
}

.peek-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.peek-panel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  margin-top: 16px;
}

/* ---------- Skip Link ---------- */
.skip {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip:focus,
.skip:focus-visible {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 30;
  width: auto;
  height: auto;
  min-height: 48px;
  padding: 13px 24px;
  clip: auto;
  overflow: visible;
  white-space: normal;
  background: var(--btn-bg);
  color: var(--btn-text);
  box-shadow: var(--btn-glow);
  border-radius: var(--pill);
  font-family: var(--label-font);
  text-transform: var(--label-case);
  letter-spacing: var(--label-spacing);
  font-weight: 600;
  font-size: var(--btn-size, 15px);
  text-decoration: none;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: 2px solid var(--accent, #34e4ff);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Concept B — Choose your Eon (cb-)
   -------------------------------------------------------------------------- */
.cb-hero {
  min-height: 100svh;
  position: relative;
  padding: 96px 20px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  box-sizing: border-box;
  z-index: 1;
}

.cb-hero .morph {
  --morph-size: clamp(56px, 13vw, 112px);
}

.cb-hero .title {
  font-size: clamp(24px, 4vw, 40px);
  margin: 0;
}

.cb-sub {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  max-width: 520px;
  line-height: 1.5;
  text-wrap: balance;
}

.cb-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 900px;
}

@media (max-width: 759px) {
  .cb-cards {
    flex-direction: column;
  }
}

.cb-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  width: min(420px, 44vw);
  height: 280px;
  background: var(--panel);
  cursor: pointer;
  text-align: left;
  transition: transform 0.35s var(--ease), border-color 0.25s, box-shadow 0.25s, outline 0.25s;
  box-sizing: border-box;
  color: var(--text);
  font-family: inherit;
}

@media (max-width: 759px) {
  .cb-card {
    width: 100%;
    max-width: 420px;
    height: 200px;
    padding: 18px;
    gap: 16px;
  }
}

.cb-card:hover {
  transform: translateY(-3px);
}

.cb-card-jarvis {
  border: 1px solid var(--panel-border);
  border-radius: 6px;
}

.cb-card-jarvis::before,
.cb-card-jarvis::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  border: 2px solid var(--accent);
  filter: drop-shadow(0 0 4px var(--accent));
}

.cb-card-jarvis::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.cb-card-jarvis::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.cb-card-glass {
  border: 1px solid var(--panel-border);
  border-radius: 32px;
  backdrop-filter: var(--panel-blur);
  -webkit-backdrop-filter: var(--panel-blur);
}

.cb-card-jarvis[aria-pressed="true"] {
  border-color: #34e4ff;
  box-shadow: 0 0 18px rgba(52, 228, 255, 0.45);
}

.cb-card-glass[aria-pressed="true"] {
  outline: 2px solid #b794ff;
  outline-offset: 0;
  box-shadow: 0 0 30px rgba(124, 58, 237, 0.35);
}

.cb-selected-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  font-size: 11px;
  padding: 4px 8px;
  pointer-events: none;
}

.cb-card:not([aria-pressed="true"]) .cb-selected-badge {
  display: none;
}

.cb-card-orb {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.cb-card-orb .reactor,
.cb-card-orb .drop {
  --size: 120px;
}

@media (max-width: 759px) {
  .cb-card-orb .reactor,
  .cb-card-orb .drop {
    --size: 96px;
  }
}

.cb-card-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
}

.cb-card-tagline {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

/* ---------- Shared Section Layout ---------- */
.sec {
  position: relative;
  z-index: 1;
  padding: 112px 20px;
}

@media (max-width: 759px) {
  .sec {
    padding: 72px 16px;
  }
}

.sec-inner {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

.sec-title {
  font-size: clamp(28px, 5vw, 44px);
  margin: 8px 0 12px;
}

.sec-lead {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 18px);
  max-width: 620px;
  line-height: 1.5;
}

/* ---------- Features Section (#features) ---------- */
.feat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 760px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .feat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feat {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.feat-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  text-transform: var(--label-case);
  text-shadow: var(--title-shadow);
  font-size: 18px;
  line-height: 1.3;
}

[data-theme="glass"] .feat-title {
  font-size: 20px;
}

.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.feat-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  flex-shrink: 0;
  display: block;
}

.feat img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 18px;
  border-radius: var(--radius);
}

/* ---------- Looks Section (#looks) ---------- */
.lk-switch {
  margin: 24px auto 28px;
  display: flex;
  width: fit-content;
}

.lk-window {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--panel-shadow);
  overflow: hidden;
  backdrop-filter: var(--panel-blur);
  -webkit-backdrop-filter: var(--panel-blur);
}

.lk-window::before,
.lk-window::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  display: var(--brackets);
  border: 2px solid var(--accent);
  filter: drop-shadow(0 0 4px var(--accent));
  z-index: 2;
}

.lk-window::before {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}

.lk-window::after {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.lk-window img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- AI Section (#ai) ---------- */
.ai-tiles-img {
  max-width: 624px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 32px;
  border-radius: var(--radius);
}

.ai-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 760px) {
  .ai-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ai-panel {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.ai-panel h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  text-transform: var(--label-case);
  text-shadow: var(--title-shadow);
  font-size: 18px;
  line-height: 1.3;
}

[data-theme="glass"] .ai-panel h3 {
  font-size: 20px;
}

.ai-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.ai-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 15px;
  text-align: center;
}

/* ---------- Privacy Section (#privacy) ---------- */
.priv-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}

@media (max-width: 600px) {
  .priv-panel {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
}

.priv-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}

.priv-panel p {
  margin: 0;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.5;
  color: var(--text);
}

/* ---------- How Section (#how) ---------- */
.how-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 900px) {
  .how-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.how-step {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.how-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1;
  margin-bottom: 16px;
}

[data-theme="jarvis"] .how-num {
  font-weight: 700;
  color: var(--accent);
  text-shadow: var(--title-shadow);
}

[data-theme="jarvis"] .how-num::before {
  content: "0";
}

[data-theme="glass"] .how-num {
  font-weight: 800;
  color: var(--text);
}

.how-step h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  text-transform: var(--label-case);
  text-shadow: var(--title-shadow);
  font-size: 18px;
  line-height: 1.3;
}

[data-theme="glass"] .how-step h3 {
  font-size: 20px;
}

.how-step p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- Buy Section (#buy) ---------- */
.price {
  max-width: 460px;
  margin: 0 auto;
  padding: 36px 28px;
  text-align: center;
}

.price-amount {
  display: block;
  margin: 8px 0 4px;
  line-height: 1;
}

[data-theme="jarvis"] .price-amount {
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  font-size: 56px;
  color: var(--accent);
  text-shadow: 0 0 18px rgba(52, 228, 255, 0.5);
}

[data-theme="glass"] .price-amount {
  font-family: "Roboto Flex", sans-serif;
  font-weight: 800;
  font-size: 64px;
  color: var(--text);
}

.price-sub {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.price-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--text);
}

.price-list svg {
  flex-shrink: 0;
}

.price-buy {
  width: 100%;
  margin-top: 4px;
  margin-bottom: 16px;
}

.price-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- FAQ Section (#faq) ---------- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq {
  margin-bottom: 12px;
  padding: 0;
  overflow: hidden;
}

.faq summary {
  min-height: 56px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  user-select: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.faq[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq p {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.foot {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 40px 20px 48px;
}

.foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.foot-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s var(--ease);
}

.foot-links a:hover {
  color: var(--text);
}

.foot-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 759px) {
  .foot-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reactor *,
  .drop-body,
  .drop-body::before,
  .drop-body::after,
  .glass-bg .blob {
    animation: none !important;
  }
  .morph.morphing {
    filter: none !important;
  }
  .cb-card,
  .faq-chevron {
    transition: none !important;
  }
}

