/* ========================================
   Optima Consulting — v4 Glass Design System
   Apple-style liquid glass · Zero JS deps
   ======================================== */

/* 00. @property — Animated custom properties */
@property --border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@property --grad-stop {
  syntax: "<percentage>";
  initial-value: 0%;
  inherits: false;
}

/* 01. Design Tokens */
:root {
  --bg: #0a0a12;
  --surface: rgba(255,255,255,0.04);
  --glass-bg: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.10);
  --glass-highlight: rgba(255,255,255,0.15);
  --glass-blur: blur(14px) saturate(180%);
  --glass-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 1px 1px rgba(255,255,255,0.15),
    inset 0 -1px 2px rgba(0,0,0,0.2),
    0 4px 12px rgba(0,0,0,0.25),
    0 12px 40px rgba(0,0,0,0.15),
    0 24px 60px rgba(0,0,0,0.08);
  --glass-shadow-hover:
    0 0 0 1px rgba(255,255,255,0.12),
    inset 0 1px 2px rgba(255,255,255,0.2),
    inset 0 -1px 2px rgba(0,0,0,0.2),
    0 6px 20px rgba(0,0,0,0.3),
    0 16px 56px rgba(0,0,0,0.18),
    0 36px 80px rgba(0,0,0,0.1);
  --text: #f0f0f5;
  --text-secondary: rgba(240,240,245,0.55);
  --muted: rgba(240,240,245,0.35);
  --accent: #6366f1;
  --accent-soft: rgba(99,102,241,0.15);
  --secondary: #f59e0b;
  --r-panel: 24px;
  --r-btn: 50px;
  --section-pad: clamp(80px, 12vw, 160px);
  --container: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* 02. Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--text-secondary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--text); }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }

/* 03. WebGL Glass Canvas */
#glassFx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* 04. Ambient Background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99,102,241,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 90%, rgba(245,158,11,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* Grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* 04. Scroll Progress Bar (CSS-only) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 1001;
  background: transparent;
}
.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform-origin: left;
  transform: scaleX(0);
  animation: scroll-progress linear both;
  animation-timeline: scroll(root block);
  box-shadow: 0 0 8px rgba(99,102,241,0.4), 0 0 2px rgba(99,102,241,0.6);
}
@keyframes scroll-progress {
  to { transform: scaleX(1); }
}
/* Fallback for browsers without scroll-timeline (Safari/Firefox) */
@supports not (animation-timeline: scroll()) {
  .scroll-progress-bar {
    animation: none;
    /* JS will set scaleX via inline style */
  }
}

/* 05. Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 06. Glass Panel */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-panel);
  box-shadow: var(--glass-shadow);
  contain: layout style;
}

/* 07. Typography */
h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.2rem); max-width: 640px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.text-gradient {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
small, .meta { font-size: 13px; color: var(--muted); }
b, strong { color: var(--text); font-weight: 600; }

/* 08. Header / Glass Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background .6s var(--ease), box-shadow .6s var(--ease), backdrop-filter .6s var(--ease), border-color .6s var(--ease);
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(10,10,18,0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06),
    inset 0 -1px 1px rgba(0,0,0,0.1),
    0 4px 16px rgba(0,0,0,0.25),
    0 12px 40px rgba(0,0,0,0.15),
    0 1px 0 0 rgba(99,102,241,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}
.brand b { font-size: 15px; color: var(--text); }
.brand small { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.logo {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  flex-shrink: 0;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.15),
    inset 0 1px 2px rgba(255,255,255,0.2),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    0 2px 8px rgba(0,0,0,0.3);
}
nav ul {
  display: flex;
  gap: 6px;
}
nav a {
  font-size: 14px;
  font-weight: 450;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color .25s, background .25s;
}
nav a:hover, nav a.active {
  color: var(--text);
  background: var(--surface);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Burger */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background .25s;
}
.burger:hover { background: var(--surface); }
.burger svg { width: 20px; height: 20px; }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(10,10,18,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 80px 24px 40px;
}
.mobile-menu-inner > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 320px;
}

/* 09. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r-btn);
  font-size: 14px;
  font-weight: 550;
  white-space: nowrap;
  transition: all .3s var(--ease);
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #818cf8);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.3),
    inset 0 1px 1px rgba(255,255,255,0.2),
    inset 0 -1px 2px rgba(0,0,0,0.2),
    0 2px 8px rgba(99,102,241,0.3),
    0 6px 20px rgba(99,102,241,0.15);
}
.btn-primary:hover {
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.5),
    inset 0 1px 2px rgba(255,255,255,0.3),
    inset 0 -1px 2px rgba(0,0,0,0.2),
    0 6px 20px rgba(99,102,241,0.5),
    0 12px 40px rgba(99,102,241,0.25);
  transform: translateY(-2px) scale(1.02);
}
.btn-ghost {
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 1px rgba(255,255,255,0.08),
    inset 0 -1px 1px rgba(0,0,0,0.1),
    0 2px 8px rgba(0,0,0,0.15);
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--glass-highlight);
  border-color: rgba(255,255,255,0.15);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    inset 0 1px 1px rgba(255,255,255,0.12),
    inset 0 -1px 1px rgba(0,0,0,0.1),
    0 4px 12px rgba(0,0,0,0.2);
}
.btn-soft {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.1),
    inset 0 1px 1px rgba(255,255,255,0.08),
    0 2px 6px rgba(0,0,0,0.1);
}
.btn-soft:hover {
  background: rgba(99,102,241,0.22);
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.15),
    inset 0 1px 1px rgba(255,255,255,0.1),
    0 4px 12px rgba(0,0,0,0.15);
}

/* 10. Sections */
section {
  padding: var(--section-pad) 0;
}
.section-title {
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
}

/* 11. Hero */
.hero {
  padding: clamp(120px, 18vw, 200px) 0 var(--section-pad);
  text-align: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero .lead {
  margin-top: 20px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}
.page-hero {
  padding: clamp(100px, 14vw, 160px) 0 48px;
  text-align: center;
}
.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-hero .lead {
  margin-top: 16px;
}

/* 12. Glass Cards */
.card {
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-panel);
  box-shadow: var(--glass-shadow);
  contain: layout style;
  transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover {
  border-color: rgba(255,255,255,0.14);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-3px);
}
/* Specular highlight sweep — continuous glass light reflection */
.card::after,
.pack::after,
.step::after,
.band::after {
  content: '';
  position: absolute;
  inset: -100% 0;
  width: 100%;
  height: 300%;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.015) 38%,
    rgba(255,255,255,0.05) 50%,
    rgba(255,255,255,0.015) 62%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0.5;
  animation: specular-sweep 6s ease-in-out infinite;
  z-index: 1;
}
/* Stagger sweep timing — light travels across cards */
.stagger > :nth-child(1)::after { animation-delay: 0s; }
.stagger > :nth-child(2)::after { animation-delay: -2s; }
.stagger > :nth-child(3)::after { animation-delay: -4s; }
.stagger > :nth-child(4)::after { animation-delay: -1s; }

/* Hover intensifies the sweep */
.card:hover::after,
.pack:hover::after,
.step:hover::after {
  opacity: 1;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; }
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  margin-bottom: 16px;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.12),
    inset 0 1px 2px rgba(255,255,255,0.1),
    inset 0 -2px 4px rgba(0,0,0,0.15),
    0 2px 6px rgba(0,0,0,0.2);
}
.icon svg { width: 22px; height: 22px; color: var(--accent); }

/* 13. Grids */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }

/* 14. Pricing Packs */
.packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 20px;
  align-items: start;
}
.pack {
  padding: 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-panel);
  box-shadow: var(--glass-shadow);
  contain: layout style;
  transition: border-color .3s, box-shadow .4s var(--ease), transform .4s var(--ease);
  position: relative;
  overflow: hidden;
}
.pack:hover {
  border-color: rgba(255,255,255,0.14);
  box-shadow: var(--glass-shadow-hover);
  transform: translateY(-3px);
}
.pack.featured {
  border-color: rgba(99,102,241,0.25);
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.2),
    0 0 0 3px rgba(99,102,241,0.06),
    inset 0 1px 1px rgba(255,255,255,0.12),
    inset 0 -1px 2px rgba(0,0,0,0.15),
    0 4px 16px rgba(99,102,241,0.12),
    0 0 60px rgba(99,102,241,0.06);
}
.pack-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.pack-name { font-size: 20px; font-weight: 650; color: var(--text); }
.tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.1),
    0 0 0 1px rgba(99,102,241,0.15),
    0 1px 4px rgba(0,0,0,0.12);
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}
.price strong {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
}
.price span {
  font-size: 14px;
  color: var(--muted);
}
.pack > p { font-size: 14px; margin-bottom: 20px; }
.pack .list { margin-bottom: 24px; }
.pack-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pack-cta .btn { flex: 1; min-width: 120px; text-align: center; }

/* 15. List */
.list { display: grid; gap: 10px; }
.li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}
.check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(99,102,241,0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.1),
    inset 0 -1px 2px rgba(0,0,0,0.12),
    0 0 0 1px rgba(99,102,241,0.15);
}
.dash, .tick {
  font-size: 13px;
  font-weight: 600;
}
.tick { color: var(--accent); }
.dash { color: var(--muted); }

/* 16. Comparison Table */
.compare {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.compare-head { padding: 20px 24px; border-bottom: 1px solid var(--glass-border); }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td { padding: 14px 20px; text-align: left; }
th { font-weight: 600; color: var(--text); font-size: 13px; border-bottom: 1px solid var(--glass-border); }
td { border-bottom: 1px solid rgba(255,255,255,0.03); }
tr:last-child td { border-bottom: none; }

/* 17. FAQ */
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 8px; }
details {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: border-color .3s, box-shadow .3s;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    inset 0 1px 1px rgba(255,255,255,0.08),
    inset 0 -1px 1px rgba(0,0,0,0.1),
    0 2px 6px rgba(0,0,0,0.12);
}
details[open] { border-color: rgba(255,255,255,0.12); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 550;
  color: var(--text);
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::marker { content: ''; }
.chev {
  display: flex;
  transition: transform .3s var(--ease);
  color: var(--muted);
}
details[open] .chev { transform: rotate(180deg); }
details p {
  padding: 0 20px 16px;
  font-size: 14px;
  line-height: 1.7;
}

/* 18. CTA Band */
.band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 36px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-panel);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}
/* Band specular always visible */
.band::after { opacity: 0.6; }
.band b { font-size: 17px; }
.band p { font-size: 14px; margin-top: 4px; }

/* 19. Method Steps (homepage) */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px;
  counter-reset: step;
}
.step {
  padding: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-panel);
  box-shadow: var(--glass-shadow);
  counter-increment: step;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
  box-shadow:
    0 0 0 1px rgba(99,102,241,0.15),
    inset 0 1px 2px rgba(255,255,255,0.1),
    inset 0 -1px 2px rgba(0,0,0,0.12);
}
.step h3 { font-size: 16px; margin-bottom: 8px; }
.step p { font-size: 14px; }

/* 20. Contact Form */
.contact-form { display: grid; gap: 16px; }
.form-group { display: grid; gap: 6px; }
.form-group label {
  font-size: 13px;
  font-weight: 550;
  color: var(--text);
}
.form-group input,
.form-group textarea {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  color: var(--text);
  font-size: 15px;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.2),
    inset 0 -1px 1px rgba(255,255,255,0.05),
    0 0 0 1px rgba(255,255,255,0.04);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow:
    inset 0 2px 4px rgba(0,0,0,0.2),
    inset 0 -1px 1px rgba(255,255,255,0.05),
    0 0 0 1px rgba(99,102,241,0.3),
    0 0 0 4px rgba(99,102,241,0.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-hint { font-size: 13px; color: var(--muted); text-align: center; margin-top: 4px; }

/* Submit button states */
.btn-submit { width: 100%; position: relative; }
.btn-submit.is-loading .btn-label { opacity: 0; }
.btn-submit.is-loading .btn-spinner { opacity: 1; }
.btn-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.btn-spinner::after {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Calendar placeholder */
.calendar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: var(--surface);
  border: 1px dashed var(--glass-border);
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 24px;
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.15),
    0 0 0 1px rgba(255,255,255,0.03);
}

/* 21. Thank You Modal */
.thanks-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,18,0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
}
.thanks-overlay.is-open { opacity: 1; visibility: visible; }
.thanks-modal {
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-panel);
  padding: 36px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: var(--glass-shadow);
}
.thanks-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.thanks-badge {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  box-shadow:
    0 0 0 1px rgba(34,197,94,0.2),
    inset 0 1px 2px rgba(255,255,255,0.1),
    inset 0 -1px 2px rgba(0,0,0,0.12);
}
.thanks-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 18px;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.thanks-close:hover { background: var(--surface); color: var(--text); }
.thanks-modal h3 { font-size: 20px; margin-bottom: 8px; }
.thanks-modal p { font-size: 14px; margin-bottom: 20px; }
.thanks-actions { display: flex; gap: 10px; justify-content: center; }

/* 22. Footer */
footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--glass-border);
  margin-top: var(--section-pad);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-grid a {
  font-size: 14px;
  transition: color .2s;
}
.footer-grid a:hover { color: var(--text); }
.footer-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 32px 0;
}
.foot {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* 23. Legal Content */
.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content h2 { margin-top: 40px; margin-bottom: 12px; font-size: 20px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 15px; line-height: 1.75; }
.legal-content a { color: var(--accent); }
.legal-content a:hover { text-decoration: underline; }
.legal-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  justify-content: center;
}

/* 24. Liquid Glass Floating Keyframes */
@keyframes glass-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes float-micro {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes float-icon {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes logo-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(99,102,241,0.3), inset 0 1px 1px rgba(255,255,255,0.2), inset 0 -1px 2px rgba(0,0,0,0.2), 0 2px 8px rgba(99,102,241,0.3), 0 6px 20px rgba(99,102,241,0.15); }
  50% { box-shadow: 0 0 0 1px rgba(99,102,241,0.4), inset 0 1px 1px rgba(255,255,255,0.25), inset 0 -1px 2px rgba(0,0,0,0.2), 0 4px 16px rgba(99,102,241,0.45), 0 8px 32px rgba(99,102,241,0.22); }
}
@keyframes ghost-shimmer {
  0%, 100% { border-color: rgba(255,255,255,0.10); }
  50% { border-color: rgba(255,255,255,0.18); }
}
@keyframes specular-sweep {
  0% { transform: translateX(-120%) rotate(0deg); }
  100% { transform: translateX(120%) rotate(0deg); }
}

/* Apply floating to all glass elements */
.card, .pack, .step {
  animation: glass-float 5s ease-in-out infinite;
}
.band, .compare {
  animation: float-slow 7s ease-in-out infinite;
}
.icon {
  animation: float-icon 3.5s ease-in-out infinite;
}
.tag {
  animation: float-micro 4s ease-in-out infinite;
}
.logo {
  animation: logo-pulse 4s ease-in-out infinite;
}
details {
  animation: float-micro 6s ease-in-out infinite;
}

/* Stagger float timing per child — organic movement */
.stagger > :nth-child(1), .faq > :nth-child(1) { animation-delay: 0s; }
.stagger > :nth-child(2), .faq > :nth-child(2) { animation-delay: -1.2s; }
.stagger > :nth-child(3), .faq > :nth-child(3) { animation-delay: -2.5s; }
.stagger > :nth-child(4), .faq > :nth-child(4) { animation-delay: -3.8s; }

/* Button animations */
.btn-primary {
  animation: glow-pulse 3s ease-in-out infinite;
}
.btn-ghost {
  animation: ghost-shimmer 4s ease-in-out infinite;
}

/* 25. CSS Scroll-Driven Reveals (smoother) */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes reveal-scale {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
.reveal {
  animation: reveal-up 1s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 50%;
}
.reveal-scale {
  animation: reveal-scale 1s var(--ease) both;
  animation-timeline: view();
  animation-range: entry 0% entry 50%;
}
/* Stagger reveal children */
.stagger > :nth-child(1) { --reveal-delay: 0s; }
.stagger > :nth-child(2) { --reveal-delay: .12s; }
.stagger > :nth-child(3) { --reveal-delay: .24s; }
.stagger > :nth-child(4) { --reveal-delay: .36s; }
.stagger > :nth-child(5) { --reveal-delay: .48s; }
.stagger > :nth-child(6) { --reveal-delay: .6s; }

/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: view()) {
  .reveal, .reveal-scale {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* 25. Service blocks */
.service-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,0.1),
    0 0 0 1px rgba(255,255,255,0.03);
}
.service-block .icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.service-block b { font-size: 13px; display: block; margin-bottom: 2px; }
.service-block p { font-size: 13px; margin: 0; }

/* 26. Responsive */
@media (max-width: 768px) {
  nav ul { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: block; }
  .nav-cta .btn-ghost { display: none; }

  .hero { padding: 100px 0 60px; }
  .page-hero { padding: 100px 0 32px; }
  section { padding: clamp(48px, 8vw, 80px) 0; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .band {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .card { padding: 24px; }
  .pack { padding: 24px; }
  .step { padding: 20px; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-scale,
  .card, .pack, .step, .band, .compare,
  .icon, .tag, .logo, details,
  .btn-primary, .btn-ghost,
  .card::after, .pack::after, .step::after, .band::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  html { scroll-behavior: auto; }
}

/* Touch device overrides */
@media (hover: none) {
  .card:hover, .pack:hover, .step:hover {
    transform: none;
    border-color: var(--glass-border);
    box-shadow: var(--glass-shadow);
  }
  .btn-primary:hover {
    transform: none;
  }
}
