:root {
  --bg: #09090f;
  --surface: rgba(255,255,255,0.035);
  --surface-solid: #111118;
  --surface-2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --text: #ededf4;
  --text-secondary: #8888a2;
  --text-tertiary: #555570;
  --accent: #6366f1;
  --accent-light: #a5b4fc;
  --accent-glow: rgba(99,102,241,0.25);
  --warm: #f59e0b;
  --warm-light: #fcd34d;
  --green: #22c55e;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
  --font: 'Inter', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

body.light-theme {
  --bg: #f5f5fa;
  --surface: rgba(0,0,40,0.03);
  --surface-solid: #fff;
  --surface-2: rgba(0,0,40,0.055);
  --border: rgba(0,0,40,0.09);
  --border-hover: rgba(0,0,40,0.16);
  --text: #0f0f1e;
  --text-secondary: #55557a;
  --text-tertiary: #8888a8;
  --accent-glow: rgba(99,102,241,0.18);
}

::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s, color 0.3s;
}

/* LOADER */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-inner { text-align: center; }

.loader-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: loaderPulse 1s ease-in-out infinite;
  margin-bottom: 20px;
}

@keyframes loaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.loader-bar {
  width: 120px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto;
}

.loader-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--warm));
  border-radius: 2px;
  transition: width 0.15s ease;
}

/* FLOATING SHAPES */
.floating-shapes { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.float-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.04;
  animation: floatShape 25s ease-in-out infinite;
}

.float-shape:nth-child(1) { width: 500px; height: 500px; background: var(--accent); top: -10%; left: -10%; animation-delay: 0s; }
.float-shape:nth-child(2) { width: 350px; height: 350px; background: var(--warm); top: 55%; right: -8%; animation-delay: -8s; }
.float-shape:nth-child(3) { width: 400px; height: 400px; background: var(--accent-light); bottom: -5%; left: 35%; animation-delay: -16s; }

body.light-theme .float-shape { opacity: 0.03; }

@keyframes floatShape {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px,-40px) scale(1.05); }
  66% { transform: translate(-20px,20px) scale(0.95); }
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

#confetti, #particles { position: fixed; inset: 0; pointer-events: none; }
#confetti { z-index: 9999; }
#particles { z-index: 0; }

.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.1s ease-out, top 0.1s ease-out;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 12px 0;
  background: rgba(9,9,15,0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

body.light-theme .header { background: rgba(245,245,250,0.75); }

.header .container,
.header .header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; }

.logo-mark {
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-text {
  background: linear-gradient(135deg, var(--accent-light), var(--warm));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradShift 4s ease infinite;
}

@keyframes gradShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--text-secondary); text-decoration: none; font-size: 0.84rem; font-weight: 500; transition: var(--transition); position: relative; }
.nav a:hover { color: var(--text); }
.nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--warm)); border-radius: 1px; transition: width 0.25s ease; }
.nav a:hover::after { width: 100%; }
.nav a.active-nav { color: var(--accent-light); }
.nav a.active-nav::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
  font-size: 0.84rem !important;
  transition: all 0.25s ease;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px var(--accent-glow); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover { border-color: var(--accent); color: var(--accent-light); transform: rotate(15deg); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 101; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 28px; border-radius: var(--radius-sm); font-size: 0.92rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  font-family: var(--font); position: relative; overflow: hidden;
}

.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--accent-glow); }

.btn-glow::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); transition: 0.5s; }
.btn-glow:hover::before { left: 100%; }

.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border-hover); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); transform: translateY(-2px); }

.btn-full { width: 100%; }
.magnetic { transition: transform 0.2s ease-out; }

.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,0.2); transform: scale(0); animation: rippleAnim 0.6s ease-out; pointer-events: none; }
@keyframes rippleAnim { to { transform: scale(4); opacity: 0; } }

/* HERO */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px 24px 80px; position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--accent-light); font-size: 0.8rem; font-weight: 600;
  margin-bottom: 24px; letter-spacing: 0.04em;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

.hero-title { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.04em; margin-bottom: 22px; max-width: 800px; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--warm));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 300% 300%;
  animation: gradShift 4s ease infinite;
}

.typing-cursor { font-weight: 100; animation: blink 0.8s step-end infinite; color: var(--accent-light); }
@keyframes blink { 50% { opacity: 0; } }

.hero-sub { font-size: 1.08rem; color: var(--text-secondary); max-width: 520px; margin-bottom: 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 32px; flex-wrap: wrap; justify-content: center; }

.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 48px; max-width: 600px; }
.hero-tag { padding: 5px 14px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); color: var(--text-secondary); font-size: 0.78rem; font-weight: 500; cursor: default; transition: all 0.25s ease; user-select: none; }
.hero-tag:hover { border-color: var(--accent); color: var(--accent-light); background: rgba(99,102,241,0.08); transform: translateY(-2px) scale(1.05); }

.hero-stats { display: flex; gap: 48px; flex-wrap: wrap; justify-content: center; }
.stat-item { text-align: center; }

.stat-val { display: block; font-size: 1.8rem; font-weight: 800; font-family: var(--mono); background: linear-gradient(135deg, var(--accent), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.stat-val.pulse { animation: statPulse 0.4s ease; }
@keyframes statPulse { 0% { transform: scale(1); } 50% { transform: scale(1.12); } 100% { transform: scale(1); } }

.stat-label { font-size: 0.75rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

/* MARQUEE */
.marquee-section { padding: 16px 0; overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-solid); position: relative; z-index: 2; }
.marquee-track { display: flex; animation: marqueeScroll 25s linear infinite; }
.marquee-content { display: flex; gap: 36px; flex-shrink: 0; padding-right: 36px; }
.marquee-item { font-size: 0.86rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
@keyframes marqueeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* SECTION HEADERS */
.section-label { font-size: 0.75rem; font-weight: 700; color: var(--accent-light); text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 12px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 48px; line-height: 1.1; }
.title-dot { background: linear-gradient(135deg, var(--accent), var(--warm)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* SERVICES */
.services { padding: 100px 0; position: relative; z-index: 2; }
.cards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.card {
  position: relative; padding: 36px;
  background: var(--surface-solid); border: 1px solid var(--border);
  border-radius: var(--radius); transition: all 0.4s ease; overflow: hidden; cursor: default;
}

.card-spotlight {
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
}

.card:hover .card-spotlight { opacity: 1; }

.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--warm));
  opacity: 0; transition: opacity 0.3s;
}

.card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-4px); box-shadow: 0 16px 50px rgba(99,102,241,0.1); }
.card:hover::before { opacity: 1; }
.card-tilt { cursor: pointer; }
.card-icon { font-size: 2rem; margin-bottom: 14px; display: inline-block; transition: transform 0.3s ease; }
.card:hover .card-icon { transform: scale(1.15); }
.card-number { position: absolute; top: 18px; right: 22px; font-family: var(--mono); font-size: 3.5rem; font-weight: 800; color: rgba(255,255,255,0.03); line-height: 1; }
body.light-theme .card-number { color: rgba(0,0,30,0.04); }
.card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.card-desc { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65; margin-bottom: 14px; }
.card-link { color: var(--accent-light); font-size: 0.84rem; font-weight: 600; display: inline-block; transition: var(--transition); }
.card:hover .card-link { transform: translateX(4px); }

/* TIMELINE */
.how { padding: 100px 0; position: relative; z-index: 2; }
.timeline { max-width: 640px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 24px; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-light), var(--warm)); border-radius: 1px; }
.timeline-item { display: flex; gap: 24px; padding: 0 0 48px; position: relative; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  flex-shrink: 0; width: 48px; height: 48px;
  background: var(--surface-solid); border: 2px solid var(--border); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-weight: 700; font-size: 0.84rem;
  color: var(--text-tertiary); position: relative; z-index: 2; transition: all 0.4s ease;
}

.timeline-marker.active { background: linear-gradient(135deg, var(--accent), var(--accent-light)); border-color: var(--accent); color: #fff; box-shadow: 0 0 24px var(--accent-glow); }

.timeline-content { padding-top: 8px; }
.timeline-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.timeline-content p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.65; }

.progress-bar-container { max-width: 640px; margin: 32px auto 0; padding-left: 72px; }
.progress-bar { height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; margin-bottom: 12px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-light)); border-radius: 2px; width: 0%; transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }
.progress-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.05em; }

/* NUMBERS */
.numbers { padding: 80px 0; position: relative; z-index: 2; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-solid); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.number-card {
  text-align: center; padding: 30px 16px;
  background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border);
  transition: all 0.3s ease; cursor: default; position: relative; overflow: hidden;
}

.number-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(99,102,241,0.05), transparent, rgba(245,158,11,0.03));
  opacity: 0; transition: opacity 0.3s;
}

.number-card:hover { border-color: rgba(99,102,241,0.3); transform: translateY(-2px); }
.number-card:hover::after { opacity: 1; }

.number-value { font-family: var(--mono); font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1.2; }
.number-suffix { font-size: 1.1rem; font-weight: 700; }
.number-label { font-size: 0.75rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 8px; }

/* CASES */
.cases { padding: 100px 0; position: relative; z-index: 2; }

.cases-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
}

.cases-slide {
  display: none;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cases-slide.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.cases-slide.exit-left {
  display: block;
  opacity: 0;
  transform: translateX(-40px);
}

.case-card-wide {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.case-card-wide::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--warm));
  opacity: 0;
  transition: opacity 0.3s;
}

.case-card-wide:hover::before { opacity: 1; }
.case-card-wide:hover { border-color: rgba(99,102,241,0.3); }

.case-tag { display: inline-block; padding: 4px 14px; border-radius: 100px; background: rgba(99,102,241,0.1); color: var(--accent-light); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.case-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.case-desc { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 24px; }
.case-stats { display: flex; gap: 20px; flex-wrap: wrap; }
.case-stat { display: flex; flex-direction: column; gap: 4px; }
.case-stat-val { font-family: var(--mono); font-size: 1.2rem; font-weight: 800; color: var(--warm); }
.case-stat-label { font-size: 0.7rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; }

.cases-dots { display: flex; gap: 8px; justify-content: center; margin-top: 20px; }
.cases-dots { display: flex; gap: 8px; }
.cases-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-hover); transition: var(--transition); cursor: pointer; }
.cases-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ROI */
.roi { padding: 100px 0; position: relative; z-index: 2; }
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.roi-sliders { display: flex; flex-direction: column; gap: 28px; }
.slider-group { }
.slider-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.slider-label { font-size: 0.88rem; font-weight: 500; color: var(--text-secondary); }
.slider-value { font-family: var(--mono); font-size: 0.92rem; font-weight: 700; color: var(--accent-light); background: var(--surface-solid); padding: 4px 12px; border-radius: 6px; border: 1px solid var(--border); }
.slider { -webkit-appearance: none; width: 100%; height: 5px; border-radius: 3px; outline: none; cursor: pointer; background: var(--surface-2); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; background: var(--accent); border-radius: 50%; cursor: pointer; box-shadow: 0 0 8px var(--accent-glow); transition: box-shadow 0.2s; }
.slider::-webkit-slider-thumb:hover { box-shadow: 0 0 16px var(--accent-glow); }
.slider::-moz-range-thumb { width: 20px; height: 20px; background: var(--accent); border-radius: 50%; border: none; cursor: pointer; }

.roi-results { display: flex; flex-direction: column; gap: 14px; }
.roi-card { padding: 22px; background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius-sm); transition: var(--transition); }
.roi-card:hover { border-color: rgba(99,102,241,0.3); }
.roi-card--highlight { border-color: var(--accent); background: var(--surface-2); }
.roi-card-label { font-size: 0.75rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 4px; }
.roi-card-value { font-family: var(--mono); font-size: 1.7rem; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* PRICING */
.pricing { padding: 100px 0; position: relative; z-index: 2; }
.pricing-toggle { display: flex; gap: 4px; padding: 4px; background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius-sm); width: fit-content; margin: 0 auto 40px; }
.toggle-btn { padding: 10px 22px; border: none; background: transparent; color: var(--text-secondary); font-family: var(--font); font-size: 0.88rem; font-weight: 600; cursor: pointer; border-radius: 8px; transition: var(--transition); }
.toggle-btn.active { background: var(--accent); color: #fff; }
.save-badge { background: var(--warm); color: #000; font-size: 0.68rem; padding: 2px 6px; border-radius: 4px; margin-left: 5px; font-weight: 700; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }

.pricing-card { padding: 36px; background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.35s ease; position: relative; overflow: hidden; }
.pricing-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--warm)); opacity: 0; transition: opacity 0.3s; }
.pricing-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,0.3); }
.pricing-card:hover::before { opacity: 1; }

.pricing-card--popular {
  border-color: var(--accent);
  position: relative;
}

.pricing-card--popular::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius);
  background: conic-gradient(from var(--angle, 0deg), var(--accent), var(--accent-light), var(--warm), var(--accent));
  z-index: -1;
  animation: rotateBorder 3s linear infinite;
}

@keyframes rotateBorder {
  to { --angle: 360deg; }
}

@property --angle {
 .syntax --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
}

.popular-badge { position: absolute; top: -1px; left: 24px; background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 4px 14px; border-radius: 0 0 6px 6px; text-transform: uppercase; letter-spacing: 0.06em; }

.pricing-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.pricing-desc { font-size: 0.84rem; color: var(--text-tertiary); margin-bottom: 20px; }
.pricing-price { font-family: var(--mono); font-size: 1.9rem; font-weight: 800; margin-bottom: 22px; background: linear-gradient(135deg, var(--accent), var(--accent-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pricing-period { font-size: 0.88rem; font-weight: 500; opacity: 0.6; }
.pricing-list { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; }
.pricing-list li { font-size: 0.88rem; color: var(--text-secondary); padding-left: 22px; position: relative; }
.pricing-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-light); font-weight: 700; }
.pricing-list li.disabled { opacity: 0.35; text-decoration: line-through; }
.pricing-list li.disabled::before { content: '—'; color: var(--text-tertiary); }

/* FAQ */
.faq { padding: 100px 0; position: relative; z-index: 2; }
.faq-list { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: all 0.25s ease; }
.faq-item:hover { border-color: rgba(99,102,241,0.3); }
.faq-item.open { border-color: var(--accent); box-shadow: 0 0 20px rgba(99,102,241,0.08); }
.faq-question { width: 100%; background: none; border: none; color: var(--text); font-family: var(--font); font-size: 0.95rem; font-weight: 600; padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: var(--transition); text-align: left; }
.faq-question:hover { color: var(--accent-light); }
.faq-icon { font-size: 1.3rem; font-weight: 300; color: var(--accent-light); transition: transform 0.3s ease; flex-shrink: 0; margin-left: 12px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p {
  padding: 0 22px 20px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* CTA */
.cta { padding: 100px 0; position: relative; z-index: 2; }
.cta-content { max-width: 580px; margin: 0 auto; text-align: center; }
.cta-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.04em; margin-bottom: 14px; }
.cta-desc { color: var(--text-secondary); font-size: 1.02rem; margin-bottom: 32px; line-height: 1.7; }
.cta-form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: flex; gap: 12px; }
.form-input { width: 100%; padding: 13px 16px; background: var(--surface-solid); border: 1.5px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-family: var(--font); font-size: 0.88rem; transition: all 0.25s ease; outline: none; }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,0.1); }
.form-input::placeholder { color: var(--text-tertiary); }
.form-textarea { resize: vertical; min-height: 80px; }

.toast { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(100px); background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #fff; padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; z-index: 9000; opacity: 0; transition: all 0.4s cubic-bezier(0.4,0,0.2,1); pointer-events: none; }
.toast show { opacity: 1; transform: translateX(-50%) translateY(0); }

.modal-overlay { position: fixed; inset: 0; background: rgba(9,9,15,0.85); backdrop-filter: blur(12px); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.3s ease; padding: 24px; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; max-width: 500px; width: 100%; position: relative; transform: translateY(20px) scale(0.95); transition: transform 0.3s ease; }
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: var(--text-tertiary); font-size: 1.1rem; cursor: pointer; padding: 4px 8px; transition: var(--transition); border-radius: 4px; }
.modal-close:hover { color: var(--text); background: var(--surface-2); }
.modal-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }
.modal-body { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.7; }
.modal-body ul { list-style: none; padding: 0; margin: 12px 0; }
.modal-body ul li { padding: 7px 0; border-bottom: 1px solid var(--border); }
.modal-body ul li:last-child { border-bottom: none; }
.modal-body ul li::before { content: '→ '; color: var(--accent-light); }

.back-to-top { position: fixed; bottom: 28px; right: 28px; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-solid); border: 1px solid var(--border); color: var(--text); cursor: pointer; z-index: 90; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: all 0.3s ease; padding: 0; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent); color: var(--accent-light); }
.progress-ring { position: absolute; width: 32px; height: 32px; top: 6px; left: 6px; transform: rotate(-90deg); }
.progress-ring-bg { fill: none; stroke: var(--border); stroke-width: 2.5; }
.progress-ring-fill { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 113; stroke-dashoffset: 113; stroke-linecap: round; transition: stroke-dashoffset 0.15s ease; }
.back-to-top-arrow { position: relative; z-index: 1; font-size: 1rem; font-weight: 700; }

.footer { padding: 36px 0; border-top: 1px solid var(--border); position: relative; z-index: 2; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { font-weight: 700; font-size: 0.92rem; }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-tertiary); text-decoration: none; font-size: 0.84rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent-light); }
.footer-copy { color: var(--text-tertiary); font-size: 0.78rem; }

[data-anim] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-anim].visible { opacity: 1; transform: translateY(0); }
[data-anim][data-delay="1"].visible { transition-delay: 0.1s; }
[data-anim][data-delay="2"].visible { transition-delay: 0.2s; }
[data-anim][data-delay="3"].visible { transition-delay: 0.3s; }

@media (max-width: 900px) {
  .cards-grid { grid-template-columns: 1fr; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .roi-grid { grid-template-columns: 1fr; }
  .case-card { flex: 0 0 calc(50% - 10px); min-width: 280px; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: var(--bg);
  padding: 80px 24px 24px;
  gap: 20px;
  z-index: 99;
}
  .nav.open a { font-size: 1.15rem; }
  .nav-toggle { display: flex; }
  .hero-title { font-size: 2.1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 24px; }
  .stat-val { font-size: 1.4rem; }
  .form-row { flex-direction: column; }
  .footer-inner { flex-direction: column; text-align: center; }
  .roi-grid { grid-template-columns: 1fr; }
  .progress-bar-container { padding-left: 0; }
  .case-card-wide { flex: 0 0 85%; min-width: 260px; }
}

@media (max-width: 400px) { .numbers-grid { grid-template-columns: 1fr; } }
body.light-theme .marquee-section { background: #f5f5fa; }
body.light-theme .numbers { background: #f5f5fa; }