/* ============================================
   HABITUS — STYLE.CSS
   Dark Cyber-Neon Theme | Mobile-First
   ============================================ */

:root {
  --bg: #050508;
  --bg-2: #0a0a12;
  --bg-3: #0f0f1a;
  --neon-blue: #00f0ff;
  --neon-purple: #7b2ff7;
  --neon-pink: #ff2cf7;
  --neon-green: #00ff88;
  --accent: #00f0ff;
  --accent-2: #7b2ff7;
  --text: #f0f0ff;
  --text-muted: #8888aa;
  --text-dim: #44445a;
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(0,240,255,0.12);
  --glass: rgba(10,10,20,0.7);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: 'Syne', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'Manrope', sans-serif;
}

/* ======= RESET & BASE ======= */
*, *::before, *::after {
  margin: 0; padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

a { color: inherit; text-decoration: none; }
button { cursor: none; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ======= PARTICLE CANVAS ======= */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ======= CUSTOM CURSOR ======= */
.cursor {
  position: fixed;
  width: 12px; height: 12px;
  background: var(--neon-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  box-shadow: 0 0 12px var(--neon-blue), 0 0 24px var(--neon-blue);
  mix-blend-mode: screen;
}

.cursor-trail {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(0,240,255,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
}

body:hover .cursor { opacity: 1; }

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

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
  animation: loaderSpin linear infinite;
}

.loader-ring:nth-child(1) {
  width: 100px; height: 100px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-top-color: var(--neon-blue);
  animation-duration: 1.2s;
}

.loader-ring:nth-child(2) {
  width: 72px; height: 72px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-right-color: var(--neon-purple);
  animation-duration: 0.9s;
  animation-direction: reverse;
}

.loader-ring:nth-child(3) {
  width: 48px; height: 48px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  border-bottom-color: var(--neon-pink);
  animation-duration: 0.7s;
}

@keyframes loaderSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.loader-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  color: var(--text);
  margin-top: 80px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-top: 6px;
}

.loader-bar {
  width: 160px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  margin: 16px auto 0;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  border-radius: 2px;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--neon-blue);
}

/* ======= GRADIENT TEXT ======= */
.gradient-text {
  background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 50%, var(--neon-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ======= SECTION COMMON ======= */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--neon-blue);
  margin-bottom: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.section-eyebrow.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease 0.1s;
}

.section-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======= NAV ======= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(5,5,8,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,240,255,0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  will-change: transform;
}

.nav.scrolled {
  background: rgba(5,5,8,0.92);
  border-bottom-color: rgba(0,240,255,0.15);
}

.nav.hidden {
  transform: translateY(-100%);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  z-index: 1;
}

.logo-icon {
  color: var(--neon-blue);
  font-size: 1.3rem;
  animation: logoPulse 2s ease-in-out infinite;
  display: inline-block;
}

@keyframes logoPulse {
  0%, 100% { text-shadow: 0 0 10px var(--neon-blue); }
  50% { text-shadow: 0 0 25px var(--neon-blue), 0 0 50px var(--neon-blue); }
}

.nav-cta {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--neon-blue);
  border: 1px solid rgba(0,240,255,0.4);
  padding: 9px 16px;
  border-radius: 100px;
  z-index: 1;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--neon-blue);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-cta:active::before { opacity: 0.12; }

.nav-glow {
  position: absolute;
  bottom: -20px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 40px;
  background: var(--neon-blue);
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.08;
}

/* ======= HERO ======= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 16px 60px;
  overflow: hidden;
  z-index: 1;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,240,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,240,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  from { transform: translateY(0); }
  to { transform: translateY(40px); }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: orbFloat ease-in-out infinite;
  pointer-events: none;
}

.orb-1 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(0,240,255,0.18), transparent 70%);
  top: -100px; right: -100px;
  animation-duration: 8s;
}

.orb-2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(123,47,247,0.22), transparent 70%);
  bottom: 0; left: -80px;
  animation-duration: 12s;
  animation-delay: -4s;
}

.orb-3 {
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(255,44,247,0.15), transparent 70%);
  top: 40%; right: 10%;
  animation-duration: 6s;
  animation-delay: -2s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 4px;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,240,255,0.08);
  border: 1px solid rgba(0,240,255,0.2);
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--neon-blue);
  margin-bottom: 28px;
  animation: badgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both;
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.badge-dot {
  width: 6px; height: 6px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-green);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 20px;
  overflow: hidden;
  width: 100%;
}

.title-line {
  display: block;
  font-size: clamp(1.5rem, 7vw, 3.5rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
  animation: titleReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.title-line:nth-child(1) { animation-delay: 1.4s; }
.title-line:nth-child(2) { animation-delay: 1.55s; }
.title-line:nth-child(3) { animation-delay: 1.7s; }

@keyframes titleReveal {
  from { opacity: 0; transform: translateY(60px) skewY(3deg); }
  to { opacity: 1; transform: translateY(0) skewY(0deg); }
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease 1.9s both;
}

.hero-sub strong { color: var(--text); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  animation: fadeUp 0.8s ease 2.1s both;
}

/* ======= BUTTONS ======= */
.btn-primary {
  position: relative;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--neon-blue);
  padding: 16px 28px;
  border-radius: 100px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:active { transform: scale(0.97); }
.btn-primary:active::before { opacity: 1; }

.btn-glow {
  position: absolute;
  inset: -2px;
  border-radius: 100px;
  background: var(--neon-blue);
  filter: blur(16px);
  opacity: 0.5;
  z-index: -1;
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.5; filter: blur(16px); }
  50% { opacity: 0.8; filter: blur(24px); }
}

.btn-text { position: relative; z-index: 1; }

.btn-primary--large {
  font-size: 1rem;
  padding: 20px 36px;
}

.btn-ghost {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 16px 24px;
  border-radius: 100px;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-ghost:active {
  color: var(--text);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeUp 0.8s ease 2.3s both;
  width: 100%;
}

.stat-item { text-align: center; min-width: 0; }

.stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.58rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* ======= PHONE MOCKUP ======= */
.phone-wrapper {
  position: relative;
  margin-top: 48px;
  z-index: 2;
  animation: phoneFloat 6s ease-in-out infinite, phoneReveal 1s cubic-bezier(0.22,1,0.36,1) 2.5s both;
}

@keyframes phoneReveal {
  from { opacity: 0; transform: translateY(60px) scale(0.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
}

.phone-glow-ring {
  position: absolute;
  inset: -20px;
  border-radius: 52px;
  background: conic-gradient(from 0deg, var(--neon-blue), var(--neon-purple), var(--neon-pink), var(--neon-blue));
  filter: blur(30px);
  opacity: 0.3;
  animation: ringRotate 4s linear infinite;
}

@keyframes ringRotate {
  to { transform: rotate(360deg); }
}

.phone-frame {
  position: relative;
  width: 240px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 40px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 40px 100px rgba(0,0,0,0.8),
    0 0 0 2px rgba(0,240,255,0.1);
  overflow: hidden;
}

.phone-notch {
  width: 80px; height: 20px;
  background: #050508;
  border-radius: 0 0 16px 16px;
  margin: 0 auto 12px;
  border: 1px solid rgba(255,255,255,0.05);
  border-top: none;
}

.phone-screen {
  background: linear-gradient(180deg, #0a0a18 0%, #0d0d20 100%);
  border-radius: 28px;
  padding: 16px;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  position: relative;
}

.phone-screen::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 100px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,240,255,0.08), transparent);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.app-greeting {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text);
}

.app-streak {
  font-size: 0.6rem;
  color: #ff6b35;
  background: rgba(255,107,53,0.1);
  border: 1px solid rgba(255,107,53,0.2);
  padding: 3px 8px;
  border-radius: 20px;
  font-family: var(--font-mono);
}

/* Progress Ring */
.app-progress-ring {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
}

.app-progress-ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 6;
}

.ring-fill {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  animation: ringFill 2s cubic-bezier(0.34, 1.56, 0.64, 1) 3s forwards;
  filter: drop-shadow(0 0 6px var(--neon-blue));
}

@keyframes ringFill {
  to { stroke-dashoffset: 79; }
}

.ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.ring-label {
  font-size: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Habits */
.app-habits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.habit-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.habit-item.done {
  border-color: rgba(0,255,136,0.2);
  background: rgba(0,255,136,0.04);
}

.habit-item.active {
  border-color: rgba(0,240,255,0.25);
  background: rgba(0,240,255,0.05);
}

.habit-check {
  font-size: 0.65rem;
  color: var(--neon-green);
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,255,136,0.1);
  border: 1px solid rgba(0,255,136,0.3);
  flex-shrink: 0;
  font-weight: 700;
}

.habit-check.pulse {
  color: var(--neon-blue);
  background: rgba(0,240,255,0.1);
  border-color: rgba(0,240,255,0.4);
  animation: habitPulse 1.5s ease-in-out infinite;
}

@keyframes habitPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,240,255,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(0,240,255,0); }
}

.habit-info { flex: 1; }

.habit-name {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text);
}

.habit-time {
  font-size: 0.5rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.habit-streak {
  font-size: 0.55rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.app-bottom-bar {
  display: flex;
  justify-content: space-around;
  padding: 8px 0 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}

.bottom-icon {
  font-size: 1rem;
  opacity: 0.3;
  transition: opacity 0.2s;
}

.bottom-icon.active {
  opacity: 1;
  filter: drop-shadow(0 0 8px var(--neon-blue));
}

.phone-reflection {
  position: absolute;
  bottom: -40px; left: 20px; right: 20px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(10,10,24,0.4), transparent);
  filter: blur(10px);
  transform: scaleY(-1);
  border-radius: 50%;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1s ease 3s both;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--neon-blue), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
}

/* ======= FEATURES ======= */
.features {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
}

.features-header {
  text-align: center;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.feature-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  -webkit-tap-highlight-color: transparent;
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card--wide {
  grid-column: 1 / -1;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,240,255,0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:active::before { opacity: 1; }

.card-icon-wrap {
  position: relative;
  width: 44px; height: 44px;
  margin-bottom: 14px;
}

.card-icon {
  font-size: 1.4rem;
  line-height: 44px;
  text-align: center;
  width: 44px; height: 44px;
  background: rgba(0,240,255,0.06);
  border-radius: 12px;
  border: 1px solid rgba(0,240,255,0.12);
  position: relative;
  z-index: 1;
}

.card-icon-glow {
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: var(--neon-blue);
  filter: blur(12px);
  opacity: 0.15;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.card-stat {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--neon-blue);
  letter-spacing: 0.05em;
  background: rgba(0,240,255,0.06);
  border: 1px solid rgba(0,240,255,0.12);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
}

.card-border-anim {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: conic-gradient(from 0deg, transparent 0deg, var(--neon-blue) 60deg, transparent 120deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  padding: 1px;
  opacity: 0;
  animation: borderRotate 4s linear infinite;
  transition: opacity 0.4s;
}

.feature-card:active .card-border-anim,
.feature-card.visible .card-border-anim {
  opacity: 1;
}

@keyframes borderRotate {
  to { transform: rotate(360deg); }
}

/* ======= HOW IT WORKS ======= */
.how {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  overflow: hidden;
}

.how-bg-orb {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(123,47,247,0.12), transparent 70%);
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
}

.how-header {
  text-align: center;
  margin-bottom: 48px;
}

.steps {
  max-width: 440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  position: relative;
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.step.visible {
  opacity: 1;
  transform: translateX(0);
}

.step[data-step="1"] { transition-delay: 0.1s; }
.step[data-step="2"] { transition-delay: 0.25s; }
.step[data-step="3"] { transition-delay: 0.4s; }

.step-number {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--neon-blue);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  width: 28px;
  text-align: right;
  padding-top: 4px;
}

.step-content {
  flex: 1;
  padding: 0 0 40px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
  filter: drop-shadow(0 0 12px rgba(0,240,255,0.4));
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.step-line {
  position: absolute;
  left: 27px;
  top: 30px;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--neon-blue), transparent);
  opacity: 0.2;
}

/* ======= TESTIMONIALS ======= */
.testimonials {
  padding: 80px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.testimonials-header {
  text-align: center;
  padding: 0 20px;
  margin-bottom: 48px;
}

.testimonials-track-wrap {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.testimonials-track {
  display: flex;
  gap: 16px;
  animation: testimonialsScroll 25s linear infinite;
  width: max-content;
}

@keyframes testimonialsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testimonial-card {
  width: 280px;
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -10px; right: 16px;
  font-size: 5rem;
  color: rgba(0,240,255,0.06);
  font-family: var(--font-display);
  line-height: 1;
}

.t-stars {
  color: #ffd700;
  font-size: 0.75rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonial-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.t-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

.t-name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
}

.t-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: #ff6b35;
  margin-top: 2px;
}

/* ======= PRICING ======= */
.pricing {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  overflow: hidden;
}

.pricing-bg-orb {
  position: absolute;
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,240,255,0.06), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(60px);
}

.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 440px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.price-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.price-card:nth-child(1) { transition-delay: 0.1s; }
.price-card:nth-child(2) { transition-delay: 0.2s; }
.price-card:nth-child(3) { transition-delay: 0.3s; }

.price-card--featured {
  border: 1px solid rgba(0,240,255,0.35);
  background: linear-gradient(135deg, rgba(0,240,255,0.04), rgba(123,47,247,0.04));
}

.price-hot {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--neon-blue);
  margin-bottom: 4px;
}

.price-badge {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.price-currency {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
}

.price-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.price-card--featured .price-num {
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-per {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.price-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.price-features li {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.price-features li.dim {
  color: var(--text-dim);
  text-decoration: line-through;
}

.price-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.price-btn--primary {
  background: var(--neon-blue);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.price-btn--primary:active { transform: scale(0.98); }

.price-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-muted);
}

.price-btn--ghost:active {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.featured-glow {
  position: absolute;
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  width: 80%; height: 60px;
  background: var(--neon-blue);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.12;
}

/* ======= CTA FINAL ======= */
.cta-final {
  position: relative;
  z-index: 1;
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.cta-orb-1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,240,255,0.15), transparent 70%);
  top: 0; left: 50%;
  transform: translateX(-50%);
  animation: orbFloat 8s ease-in-out infinite;
}

.cta-orb-2 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(123,47,247,0.2), transparent 70%);
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  animation: orbFloat 10s ease-in-out infinite reverse;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 32px;
  letter-spacing: 0.03em;
}

.app-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.app-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 20px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.app-badge:active {
  background: rgba(255,255,255,0.1);
  border-color: rgba(0,240,255,0.3);
}

.badge-icon { font-size: 1.2rem; }

/* ======= FOOTER ======= */
.footer {
  position: relative;
  z-index: 1;
  padding: 32px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: color 0.2s;
}

.footer-links a:active { color: var(--neon-blue); }

/* ======= SVG DEFS (hidden) ======= */
svg defs { display: none; }

/* ======= SCROLLBAR ======= */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--neon-blue), var(--neon-purple));
  border-radius: 4px;
}

/* ======= SELECTION ======= */
::selection {
  background: rgba(0,240,255,0.2);
  color: var(--text);
}

/* ======= ACCESSIBILITY ======= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}