/* ==========================================================================
   Theme: Glass Future, frosted panels floating over a deep night canvas.
   Translucency, soft glows, thin luminous edges. Calm futurism, not sci-fi.
   ========================================================================== */

[data-theme="glass"] {
  --bg: #0b1020;
  --bg-soft: #0e1428;
  --surface: rgba(255, 255, 255, 0.055);
  --ink: #eef1fa;
  --muted: #a9b2cc;
  --accent: #6ea8ff;
  --accent-ink: #07101f;
  --accent-2: #9d7bff;
  --line: rgba(255, 255, 255, 0.14);
  --border-w: 1px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 8px 28px rgba(2, 6, 18, 0.45);
  --shadow-strong: 0 18px 48px rgba(2, 6, 18, 0.6);

  --font-display: "Space Grotesk", "Inter", sans-serif;
  --h-weight: 700;
  --h-tracking: -0.02em;
  --h-transform: none;
  --kicker-font: "IBM Plex Mono", monospace;
  --btn-radius: 12px;
  --tk-speed: 48;
}

/* Two soft light sources behind everything */
[data-theme="glass"] body {
  background-image:
    radial-gradient(42rem 30rem at 82% -8%, rgba(110, 168, 255, 0.16), transparent 60%),
    radial-gradient(38rem 30rem at 4% 38%, rgba(157, 123, 255, 0.13), transparent 60%);
  background-attachment: fixed;
}

[data-theme="glass"] .kicker { color: var(--accent); }
[data-theme="glass"] .kicker::before { content: "◈ "; }
[data-theme="glass"] .hero-title em {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(110, 168, 255, 0.55);
}

/* Frosted controls */
[data-theme="glass"] .btn {
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
[data-theme="glass"] .btn--primary {
  background: linear-gradient(135deg, #6ea8ff, #9d7bff);
  border-color: transparent;
  color: #07101f;
}
[data-theme="glass"] .btn--primary:hover {
  background: linear-gradient(135deg, #87b8ff, #b094ff);
  border-color: transparent;
  color: #07101f;
  box-shadow: 0 0 28px rgba(110, 168, 255, 0.45);
  transform: translateY(-2px);
}
[data-theme="glass"] .btn--ghost { background: var(--surface); color: var(--ink); }
[data-theme="glass"] .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 22px rgba(110, 168, 255, 0.25);
}

[data-theme="glass"] .site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 16, 32, 0.6);
  backdrop-filter: blur(12px);
}
[data-theme="glass"] .lang-btn { background: var(--surface); }
[data-theme="glass"] .brand-name i { color: var(--accent); }
[data-theme="glass"] .hp {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  backdrop-filter: blur(8px);
}

/* Hero: floating orbs of light + a glass window */
[data-theme="glass"] .ha-1 {
  opacity: 1; width: 11rem; height: 11rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(110, 168, 255, 0.5), rgba(110, 168, 255, 0.04) 70%);
  filter: blur(2px);
  top: -10%; right: -4%;
  animation: glass-drift 9s ease-in-out infinite alternate;
}
[data-theme="glass"] .ha-2 {
  opacity: 1; width: 6rem; height: 6rem; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(157, 123, 255, 0.45), rgba(157, 123, 255, 0.03) 72%);
  filter: blur(1px);
  bottom: 0; left: -3%;
  animation: glass-drift 11s 1.2s ease-in-out infinite alternate-reverse;
}
[data-theme="glass"] .ha-3 {
  opacity: 1; width: 3.2rem; height: 3.2rem; border-radius: 50%;
  border: 1px solid var(--line);
  top: 8%; left: 4%;
  animation: glass-drift 8s 0.6s ease-in-out infinite alternate;
}
@keyframes glass-drift { from { transform: translateY(0); } to { transform: translateY(-16px); } }

[data-theme="glass"] .win {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-strong), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
[data-theme="glass"] .win-bar { border-bottom: 1px solid var(--line); color: var(--muted); }
[data-theme="glass"] .win-dots i { background: var(--accent); opacity: 0.9; }
[data-theme="glass"] .win-dots i:nth-child(2) { background: var(--accent-2); }
[data-theme="glass"] .win-dots i:nth-child(3) { background: rgba(255, 255, 255, 0.35); }
[data-theme="glass"] .ha-line { background: rgba(255, 255, 255, 0.12); }
[data-theme="glass"] .ha-chip { background: linear-gradient(135deg, #6ea8ff, #9d7bff); }
[data-theme="glass"] .ha-chip--alt { border-color: var(--line); }

/* Ticker: a quiet band of light */
[data-theme="glass"] .ticker {
  background: rgba(255, 255, 255, 0.04);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
[data-theme="glass"] .tk-item { color: var(--muted); }
[data-theme="glass"] .tk-sep { color: var(--accent); text-shadow: 0 0 10px rgba(110, 168, 255, 0.7); }
[data-theme="glass"] .tk-sep::before { content: "◈"; font-size: 0.7em; }

/* Panels float; edges light up on approach */
[data-theme="glass"] .svc-card, [data-theme="glass"] .why-card,
[data-theme="glass"] .step, [data-theme="glass"] .demo-card,
[data-theme="glass"] .price-card, [data-theme="glass"] .form,
[data-theme="glass"] .win--admin, [data-theme="glass"] .mode-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
[data-theme="glass"] .svc-card:hover, [data-theme="glass"] .demo-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 168, 255, 0.55);
  box-shadow: 0 14px 40px rgba(2, 6, 18, 0.6), 0 0 24px rgba(110, 168, 255, 0.22);
}
[data-theme="glass"] .svc-icon {
  color: var(--accent);
  background: rgba(110, 168, 255, 0.1);
  border: 1px solid rgba(110, 168, 255, 0.3);
  border-radius: 12px;
  padding: 0.45rem;
  width: 2.8rem; height: 2.8rem;
}
[data-theme="glass"] .demo-thumb { background: rgba(255, 255, 255, 0.04); border-color: var(--line); }
[data-theme="glass"] .dt-a { background: rgba(255, 255, 255, 0.5); }
[data-theme="glass"] .dt-b { background: linear-gradient(135deg, #6ea8ff, #9d7bff); }
[data-theme="glass"] .dt-c { background: rgba(255, 255, 255, 0.25); }

[data-theme="glass"] .why-num { color: var(--accent); text-shadow: 0 0 12px rgba(110, 168, 255, 0.6); }
[data-theme="glass"] .step-num {
  border: 1px solid rgba(110, 168, 255, 0.5);
  color: var(--accent);
  box-shadow: 0 0 14px rgba(110, 168, 255, 0.25);
}
[data-theme="glass"] .adm-dot--mail, [data-theme="glass"] .adm-dot--ok { background: var(--ink); }

[data-theme="glass"] .demo-status { border-color: var(--line); color: var(--muted); }
[data-theme="glass"] .demo-status--prod { border-color: rgba(110, 168, 255, 0.6); color: var(--accent); }

[data-theme="glass"] .price-badge { background: linear-gradient(135deg, #6ea8ff, #9d7bff); color: #07101f; }
[data-theme="glass"] .price-card--featured {
  border-color: rgba(110, 168, 255, 0.5);
  box-shadow: var(--shadow-strong), 0 0 36px rgba(110, 168, 255, 0.18);
}
[data-theme="glass"] .price-list li::before { content: "◈"; font-size: 0.7em; top: 0.35em; }

[data-theme="glass"] .field input, [data-theme="glass"] .field select, [data-theme="glass"] .field textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--ink);
}
[data-theme="glass"] .field select option { background: #0e1428; color: var(--ink); }
[data-theme="glass"] .field input:focus, [data-theme="glass"] .field select:focus, [data-theme="glass"] .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110, 168, 255, 0.22);
}
[data-theme="glass"] .form-note { color: var(--muted); }
[data-theme="glass"] .site-footer { border-top: 1px solid var(--line); }

[data-theme="glass"] .car-btn { background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(8px); }
[data-theme="glass"] .car-btn:hover { background: rgba(255, 255, 255, 0.14); color: var(--ink); }
[data-theme="glass"] .mp-dot { border-color: rgba(255, 255, 255, 0.4); }
[data-theme="glass"] .palette-pop { background: #131a30; }
[data-theme="glass"] .pp-option:hover { background: rgba(255, 255, 255, 0.07); }
[data-theme="glass"] :focus-visible { outline-color: var(--accent); }
[data-theme="glass"] ::selection { background: var(--accent); color: #07101f; }
/* Motion: slow, weightless */
[data-theme="glass"] .reveal {
  transform: translateY(14px) scale(0.985);
  transition-duration: 0.7s;
}
[data-theme="glass"] .reveal.in-view { transform: none; }

/* --------------------------------------------------------------------------
   Self-preview
   -------------------------------------------------------------------------- */
.mode-card[data-mode="glass"] .mc-prev {
  background: #0b1020 radial-gradient(5rem 4rem at 80% 0%, rgba(110, 168, 255, 0.35), transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}
.mode-card[data-mode="glass"] .mp-a {
  left: 0.55rem; top: 0.55rem; width: 3.4rem; height: 2.1rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 7px;
}
.mode-card[data-mode="glass"] .mp-b {
  width: 1.5rem; height: 1.5rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(157, 123, 255, 0.8), rgba(157, 123, 255, 0.05) 75%);
  right: 0.7rem; bottom: 0.7rem;
}
.mode-card[data-mode="glass"] .mp-c {
  width: 2.2rem; height: 0.3rem; border-radius: 99px;
  background: linear-gradient(90deg, #6ea8ff, #9d7bff);
  left: 0.75rem; bottom: 0.9rem;
}
.mode-card[data-mode="glass"] .mc-aa {
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  color: #eef1fa; left: 0.8rem; top: 0.85rem; font-size: 1.1rem;
}
