/* ═══════════════════════════════════════════════
   HwidChanger V2 — Premium Cyberpunk Landing Page
   Glassmorphism · Neon Glow · Animated Gradients
   ═══════════════════════════════════════════════ */

/* ── @property for animated gradients ── */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@property --glow-x {
  syntax: '<percentage>';
  initial-value: 50%;
  inherits: false;
}

@property --glow-y {
  syntax: '<percentage>';
  initial-value: 50%;
  inherits: false;
}

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Custom Properties ── */
:root {
  --bg: #050508;
  --bg2: #0a0a0f;
  --bg3: #0f0f16;
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);
  --green: #00ff88;
  --green-dim: rgba(0,255,136,0.15);
  --green-glow: rgba(0,255,136,0.4);
  --cyan: #00d4ff;
  --cyan-dim: rgba(0,212,255,0.12);
  --purple: #a855f7;
  --purple-dim: rgba(168,85,247,0.12);
  --red: #ff3366;
  --yellow: #ffd600;
  --text: #d0d0d0;
  --text-secondary: #888;
  --text-dim: #555;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1140px;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(0,255,136,0.2);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(0,255,136,0.35); }

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(0,255,136,0.2);
  color: var(--green);
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════
   OVERLAY LAYERS
   ═══════════════════ */

/* Noise grain texture */
.noise {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* Mouse spotlight */
.spotlight {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(0,255,136,0.04),
    transparent 60%
  );
  transition: opacity 0.3s;
}

/* Particle canvas */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════
   LOADER
   ═══════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__logo {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px var(--green-glow), 0 0 60px rgba(0,255,136,0.15);
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.loader__logo .accent { color: #fff; }

.loader__logo .logo-icon {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 12px rgba(0,255,136,0.5));
  animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(0,255,136,0.5)); }
  50% { filter: drop-shadow(0 0 24px rgba(0,255,136,0.8)); }
}

.loader__bar {
  width: 220px;
  height: 2px;
  background: rgba(255,255,255,0.06);
  border-radius: 1px;
  overflow: hidden;
}

.loader__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: 1px;
  animation: loaderFill 1.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderFill {
  0% { width: 0; }
  30% { width: 35%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

.loader__text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* ═══════════════════
   SCROLL PROGRESS
   ═══════════════════ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--purple));
  z-index: 10001;
  transition: none;
}

/* ═══════════════════
   NAVBAR
   ═══════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px);
  transition: all 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(5,5,8,0.82);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  border-bottom-color: var(--border);
  height: 64px;
}

.nav__logo {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__logo span { color: #fff; font-weight: 800; }

/* SVG Logo Icon */
.logo-icon {
  display: inline-block;
  vertical-align: middle;
  color: var(--green);
  filter: drop-shadow(0 0 6px rgba(0,255,136,0.3));
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.25s;
  letter-spacing: 0.01em;
}

.nav__links a:hover { color: #fff; }

.nav__cta {
  color: var(--green) !important;
  padding: 8px 20px;
  border: 1px solid rgba(0,255,136,0.25);
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.04em !important;
  transition: all 0.25s !important;
}

.nav__cta:hover {
  background: var(--green-dim) !important;
  border-color: rgba(0,255,136,0.5) !important;
  box-shadow: 0 0 20px rgba(0,255,136,0.1) !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  transition: all 0.3s;
  border-radius: 1px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(5,5,8,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
}

.mobile-menu.is-open { display: flex; }

.mobile-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--green); }

/* ═══════════════════
   HERO
   ═══════════════════ */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.12em;
  padding: 8px 20px;
  border: 1px solid rgba(0,255,136,0.2);
  border-radius: 100px;
  margin-bottom: 32px;
  background: rgba(0,255,136,0.05);
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,255,136,0.1); }
  50% { box-shadow: 0 0 0 8px rgba(0,255,136,0); }
}

.hero__title {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 24px;
  position: relative;
}

/* Glitch effect */
.glitch {
  position: relative;
  display: inline-block;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.glitch::before {
  color: var(--red);
  z-index: -1;
  animation: glitch1 4s infinite linear;
}

.glitch::after {
  color: var(--cyan);
  z-index: -1;
  animation: glitch2 4s infinite linear;
}

@keyframes glitch1 {
  0%, 92%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  93% { clip-path: inset(20% 0 60% 0); transform: translate(-4px, -2px); }
  94% { clip-path: inset(50% 0 20% 0); transform: translate(3px, 1px); }
  95% { clip-path: inset(10% 0 70% 0); transform: translate(-2px, 3px); }
  96% { clip-path: inset(80% 0 5% 0); transform: translate(4px, -1px); }
  97% { clip-path: inset(0 0 0 0); transform: translate(0); }
}

@keyframes glitch2 {
  0%, 94%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
  95% { clip-path: inset(60% 0 10% 0); transform: translate(4px, 2px); }
  96% { clip-path: inset(30% 0 40% 0); transform: translate(-3px, -1px); }
  97% { clip-path: inset(70% 0 15% 0); transform: translate(2px, -2px); }
  98% { clip-path: inset(0 0 0 0); transform: translate(0); }
}

.hero__sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
  min-height: 1.6em;
}

.hero__sub .typed-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--green);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s step-end infinite;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: float 2.5s ease-in-out infinite;
}

.hero__scroll span {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--text-dim);
  letter-spacing: 0.2em;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes scrollLine {
  0% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.3; transform: scaleY(0.6); }
  100% { opacity: 1; transform: scaleY(1); }
}

/* ═══════════════════
   BUTTONS
   ═══════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, rgba(0,255,136,0.12), rgba(0,212,255,0.08));
  color: var(--green);
  border: 1px solid rgba(0,255,136,0.25);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--border-angle), var(--green), var(--cyan), var(--purple), var(--green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderSpin 3s linear infinite;
}

@keyframes borderSpin {
  to { --border-angle: 360deg; }
}

.btn--primary:hover {
  background: linear-gradient(135deg, rgba(0,255,136,0.2), rgba(0,212,255,0.15));
  box-shadow: 0 0 30px rgba(0,255,136,0.15), 0 0 60px rgba(0,255,136,0.05);
  transform: translateY(-2px);
}

.btn--primary .btn__arrow {
  transition: transform 0.3s;
}

.btn--primary:hover .btn__arrow {
  transform: translateX(4px);
}

.btn--ghost {
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: transparent;
}

.btn--ghost:hover {
  color: #fff;
  border-color: var(--border-hover);
  background: var(--surface);
}

.btn--outline {
  color: var(--text);
  border: 1px solid var(--border);
  background: transparent;
}

.btn--outline:hover {
  border-color: rgba(0,255,136,0.3);
  color: var(--green);
  background: var(--green-dim);
}

.btn--full { width: 100%; justify-content: center; }

/* ═══════════════════
   SECTIONS
   ═══════════════════ */
.section {
  position: relative;
  z-index: 2;
  padding: 120px 0;
}

.section__label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 12px;
  background: rgba(0,255,136,0.04);
  border: 1px solid rgba(0,255,136,0.12);
  border-radius: 100px;
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
  display: inline-block;
  animation: labelPulse 2s ease-in-out infinite;
}

@keyframes labelPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.section__title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 48px;
}

/* ═══════════════════
   GLASS CARD
   ═══════════════════ */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.4s var(--ease);
  position: relative;
}

.glass-card:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

/* Card inner glow on hover (set via JS) */
.glass-card .card-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(
    400px circle at var(--glow-x) var(--glow-y),
    rgba(0,255,136,0.06),
    transparent 60%
  );
}

.glass-card:hover .card-glow { opacity: 1; }

/* ═══════════════════
   STEPS (How it works)
   ═══════════════════ */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
  margin-bottom: 64px;
}

.step {
  padding: 32px 28px;
}

.step__num {
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 800;
  color: rgba(0,255,136,0.08);
  line-height: 1;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.step__tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border: 1px solid var(--cyan-dim);
  border-radius: 6px;
  display: inline-block;
}

.step__connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  color: var(--text-dim);
  font-size: 20px;
}

.step__connector::before {
  content: '';
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: connectorPulse 2s ease-in-out infinite;
}

@keyframes connectorPulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ═══════════════════
   TERMINAL DEMO
   ═══════════════════ */
.section--terminal {
  background: linear-gradient(180deg, transparent, rgba(0,255,136,0.02) 50%, transparent);
}

.terminal-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: start;
}

.term-window {
  overflow: hidden;
}

.term-window__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

.dots {
  display: flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.dots i:nth-child(1) { background: #ff5f57; }
.dots i:nth-child(2) { background: #ffbd2e; }
.dots i:nth-child(3) { background: #28c940; }

.term-window__body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 2;
  min-height: 320px;
  color: var(--text-secondary);
}

.term-window__body .t-green { color: var(--green); }
.term-window__body .t-cyan { color: var(--cyan); font-weight: 700; }
.term-window__body .t-red { color: var(--red); }
.term-window__body .t-dim { color: var(--text-dim); }
.term-window__body .t-blue { color: #5c94ff; }

.term-line {
  white-space: pre;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.term-line.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.arch-panel {
  padding: 24px;
  overflow-x: auto;
}

.arch-panel__title {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.arch-panel__diagram {
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--text-dim);
  white-space: pre;
}

.arch-panel__diagram .hl { color: var(--green); font-weight: 700; }

/* ═══════════════════
   BENTO GRID (Modules)
   ═══════════════════ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.bento__item {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.bento__item--wide {
  grid-column: span 2;
}

.bento__icon {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.bento__item h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.bento__item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: relative;
}

.pulse::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  animation: pulseRing 2s ease-out infinite;
}

.pulse--green {
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
}

.pulse--green::after {
  border: 1px solid var(--green);
}

.pulse--cyan {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0,212,255,0.4);
}

.pulse--cyan::after {
  border: 1px solid var(--cyan);
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ═══════════════════
   ANTI-CHEAT COMPAT
   ═══════════════════ */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.compat-badge {
  padding: 32px 24px;
  text-align: center;
  transition: all 0.4s var(--ease);
}

.compat-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.compat-badge__check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  margin: 0 auto 16px;
  border: 1px solid rgba(0,255,136,0.2);
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.5s var(--ease);
}

.compat-badge.is-visible .compat-badge__check {
  opacity: 1;
  transform: scale(1);
}

.compat-badge h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.compat-badge span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.12em;
}

/* ═══════════════════
   PRICING
   ═══════════════════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.price-card {
  padding: 36px 28px;
  text-align: center;
}

.price-card--popular {
  transform: scale(1.05);
  border-color: rgba(0,255,136,0.2);
  background: linear-gradient(180deg, rgba(0,255,136,0.04), var(--surface) 60%);
  box-shadow: 0 0 40px rgba(0,255,136,0.05);
  z-index: 2;
}

/* Animated border for popular card */
.price-card--popular::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--border-angle), var(--green), var(--cyan), var(--purple), var(--green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderSpin 4s linear infinite;
}

.price-card__badge {
  display: inline-block;
  padding: 5px 18px;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  color: #000;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 100px;
  margin-bottom: 20px;
}

.price-card__name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.price-card__period {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.price-card__amount {
  font-size: 56px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 28px;
}

.price-card--popular .price-card__amount {
  color: var(--green);
  text-shadow: 0 0 20px rgba(0,255,136,0.2);
}

.price-card__currency {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-dim);
  vertical-align: super;
  margin-right: 2px;
}

.price-card__features {
  margin-bottom: 32px;
  text-align: left;
}

.price-card__features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-card__features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.price-card__features li:last-child { border-bottom: none; }

/* ═══════════════════
   FAQ
   ═══════════════════ */
.faq {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq__item {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color 0.25s;
}

.faq__q:hover { color: #fff; }

.faq__icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  transition: all 0.3s;
}

.faq__icon::before,
.faq__icon::after {
  content: '';
  position: absolute;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: all 0.3s;
}

.faq__icon::before {
  width: 10px;
  height: 1.5px;
}

.faq__icon::after {
  width: 1.5px;
  height: 10px;
}

.faq__item.is-open .faq__icon {
  border-color: rgba(0,255,136,0.3);
  background: var(--green-dim);
}

.faq__item.is-open .faq__icon::before {
  background: var(--green);
}

.faq__item.is-open .faq__icon::after {
  background: var(--green);
  transform: rotate(90deg);
  opacity: 0;
}

.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s var(--ease);
}

.faq__item.is-open .faq__a {
  grid-template-rows: 1fr;
}

.faq__a > div {
  overflow: hidden;
}

.faq__a p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  border-left: 2px solid rgba(0,255,136,0.2);
  margin-left: 24px;
  padding-left: 16px;
}

/* ═══════════════════
   FOOTER
   ═══════════════════ */
.footer {
  position: relative;
  z-index: 2;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__brand {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--green); }

.footer__copy {
  font-size: 12px;
  color: var(--text-dim);
}

/* ═══════════════════
   MODAL
   ═══════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 24px;
}

.modal-overlay.is-active { display: flex; }

.modal {
  width: 460px;
  max-width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  animation: modalIn 0.35s var(--ease);
  position: relative;
}

/* Animated border on modal */
.modal::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--border-angle), var(--green), var(--cyan), var(--purple), var(--green));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: borderSpin 4s linear infinite;
  opacity: 0.5;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}

.modal__bar-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

.modal__x {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  transition: color 0.2s;
  padding: 4px;
}

.modal__x:hover { color: var(--red); }

.modal__body {
  padding: 28px;
}

.modal__title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: all 0.25s;
}

.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,255,136,0.08);
}

.field input::placeholder { color: #333; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.modal__actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal__actions .btn { flex: 1; }

/* ═══════════════════
   REVEAL ANIMATIONS
   ═══════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), filter 0.7s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Stagger delays */
[data-reveal]:nth-child(2) { transition-delay: 0.08s; }
[data-reveal]:nth-child(3) { transition-delay: 0.16s; }
[data-reveal]:nth-child(4) { transition-delay: 0.24s; }
[data-reveal]:nth-child(5) { transition-delay: 0.32s; }
[data-reveal]:nth-child(6) { transition-delay: 0.40s; }

/* ═══════════════════
   3D TILT (enhanced via JS)
   ═══════════════════ */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ═══════════════════
   RESPONSIVE
   ═══════════════════ */
@media (max-width: 1024px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .step__connector {
    padding: 0;
    height: 24px;
  }

  .step__connector::before {
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, transparent, var(--green), transparent);
  }

  .terminal-split {
    grid-template-columns: 1fr;
  }

  .compat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .hero {
    padding: 100px 20px 60px;
  }

  .hero__title {
    font-size: clamp(36px, 12vw, 56px);
  }

  .section {
    padding: 80px 0;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento__item--wide {
    grid-column: span 1;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .price-card--popular {
    transform: none;
  }

  .compat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-row { grid-template-columns: 1fr; }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__scroll { display: none; }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn { justify-content: center; }

  .compat-grid {
    grid-template-columns: 1fr;
  }

  .hero__badge { font-size: 9px; padding: 6px 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .glitch::before,
  .glitch::after {
    display: none;
  }
}
