/* ============================================
   Rava Agentic Dev Team — Landing Page Styles
   Premium high-end design
   ============================================ */

/* --- CSS Variables / Design Tokens --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0d0d16;
  --bg-tertiary: #12121e;
  --bg-card: #16162a;
  --bg-card-hover: #1e1e38;
  --text-primary: #f0f0f5;
  --text-secondary: #9494b0;
  --text-muted: #5e5e7a;
  --accent-primary: #6c5ce7;
  --accent-secondary: #a78bfa;
  --accent-blue: #60a5fa;
  --accent-warm: #f472b6;
  --accent-glow: rgba(108, 92, 231, 0.25);
  --gradient-1: linear-gradient(135deg, #6c5ce7, #a78bfa, #60a5fa);
  --gradient-2: linear-gradient(135deg, #7c3aed, #ec4899);
  --gradient-3: linear-gradient(135deg, #6c5ce7, #f472b6);
  --border-color: #1e1e38;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 60px rgba(108, 92, 231, 0.12);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.4);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-script: 'Dancing Script', cursive;
  --max-width: 1200px;
  --nav-height: 72px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.font-script {
  font-family: var(--font-script);
  font-weight: 700;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(108, 92, 231, 0.5);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease-out-expo),
              backdrop-filter 0.5s var(--ease-out-expo),
              -webkit-backdrop-filter 0.5s var(--ease-out-expo),
              border-color 0.5s var(--ease-out-expo),
              box-shadow 0.5s var(--ease-out-expo);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: rgba(30, 30, 56, 0.5);
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  z-index: 1002;
  position: relative;
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.5s var(--ease-out-expo),
              transform 0.5s var(--ease-out-expo);
}

.navbar.scrolled .nav-logo {
  opacity: 1;
  transform: translateX(0);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

.logo-icon i {
  font-size: 24px;
  color: var(--accent-primary);
  line-height: 1;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.4s var(--ease-out-expo);
  border-radius: 1px;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  background: var(--gradient-1);
  border-radius: 8px;
  color: #fff !important;
  transition: all 0.3s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.25);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.4);
}

/* --- Mobile Nav Toggle (Hamburger) --- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1002;
  position: relative;
  width: 40px;
  height: 40px;
  align-items: flex-end;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.35s var(--ease-out-expo);
}

.nav-toggle span:nth-child(1) {
  width: 24px;
}

.nav-toggle span:nth-child(2) {
  width: 18px;
}

.nav-toggle span:nth-child(3) {
  width: 12px;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
  width: 22px;
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
  width: 22px;
}

/* --- Mobile Nav Overlay (full-screen portal) --- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #05060e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  overflow: hidden;
  /* Portal clip: expands from top-right corner (hamburger position) */
  clip-path: circle(0% at calc(100% - 2rem) 2rem);
  transition: clip-path 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav.open {
  pointer-events: all;
  clip-path: circle(150% at calc(100% - 2rem) 2rem);
}

.mobile-nav-link {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.5px;
  padding: 12px 24px;
  transition: all 0.3s var(--ease-out-expo);
  position: relative;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s var(--ease-out-expo);
}

.mobile-nav.open .mobile-nav-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-nav-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-nav-link:nth-child(4) { transition-delay: 0.25s; }

.mobile-nav-link:hover {
  color: var(--text-primary);
  transform: translateX(8px) !important;
}

.mobile-nav-cta {
  background: var(--gradient-1);
  color: #fff !important;
  border-radius: 12px;
  padding: 14px 40px;
  margin-top: 16px;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(108, 92, 231, 0.35);
  transition: all 0.4s var(--ease-out-expo);
}

.mobile-nav-cta:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.5);
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 32px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  transition: color 0.3s ease;
  line-height: 1;
}

.mobile-nav-close:hover {
  color: var(--text-primary);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-height) + 40px) 24px 60px;
}

/* Animated gradient mesh background */
.hero-mesh {
  position: absolute;
  inset: -50%;
  z-index: 0;
  background:
    radial-gradient(ellipse 40% 50% at 20% 50%, rgba(108, 92, 231, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(96, 165, 250, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 30% 30% at 50% 80%, rgba(167, 139, 250, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 70% 60%, rgba(244, 114, 182, 0.06) 0%, transparent 60%);
  animation: meshShift 30s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes meshShift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(-2%, 1%) rotate(2deg) scale(1.02); }
  66% { transform: translate(1%, -1%) rotate(-1deg) scale(0.98); }
  100% { transform: translate(-1%, -2%) rotate(1deg) scale(1.01); }
}

/* Subtle grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(108, 92, 231, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 231, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 70%);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.hero-orb--1 {
  width: 300px;
  height: 300px;
  background: rgba(108, 92, 231, 0.2);
  top: 10%;
  left: -5%;
  animation: orbFloat1 14s ease-in-out infinite;
}

.hero-orb--2 {
  width: 200px;
  height: 200px;
  background: rgba(96, 165, 250, 0.18);
  top: 50%;
  right: -3%;
  animation: orbFloat2 16s ease-in-out infinite;
}

.hero-orb--3 {
  width: 250px;
  height: 250px;
  background: rgba(244, 114, 182, 0.15);
  bottom: 10%;
  left: 20%;
  animation: orbFloat3 18s ease-in-out infinite;
}

.hero-orb--4 {
  width: 180px;
  height: 180px;
  background: rgba(167, 139, 250, 0.22);
  top: 30%;
  left: 50%;
  animation: orbFloat4 20s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.15); }
  50% { transform: translate(-20px, -60px) scale(0.9); }
  75% { transform: translate(-50px, 20px) scale(1.1); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, -40px) scale(1.2); }
  66% { transform: translate(30px, 50px) scale(0.85); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, -50px) scale(1.25); }
}

@keyframes orbFloat4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-30px, 40px) scale(1.1); }
  50% { transform: translate(60px, -20px) scale(0.95); }
  75% { transform: translate(-40px, -50px) scale(1.15); }
}

/* Floating orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.hero-orb--1 {
  width: 300px;
  height: 300px;
  background: rgba(108, 92, 231, 0.2);
  top: 10%;
  left: -5%;
  animation: orbFloat1 14s ease-in-out infinite;
}

.hero-orb--2 {
  width: 200px;
  height: 200px;
  background: rgba(96, 165, 250, 0.18);
  top: 50%;
  right: -3%;
  animation: orbFloat2 16s ease-in-out infinite;
}

.hero-orb--3 {
  width: 250px;
  height: 250px;
  background: rgba(244, 114, 182, 0.15);
  bottom: 10%;
  left: 20%;
  animation: orbFloat3 18s ease-in-out infinite;
}

.hero-orb--4 {
  width: 180px;
  height: 180px;
  background: rgba(167, 139, 250, 0.22);
  top: 30%;
  left: 50%;
  animation: orbFloat4 20s ease-in-out infinite;
}

.hero-title-icon {
  width: 48px;
  height: 48px;
  vertical-align: middle;
  margin-right: 8px;
  margin-bottom: 4px;
  display: inline-block;
  filter: drop-shadow(0 0 16px rgba(108, 92, 231, 0.4));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-secondary);
  margin-bottom: 32px;
  backdrop-filter: blur(8px);
}

.hero-badge i {
  font-size: 14px;
}

.hero-title {
  font-size: clamp(42px, 8vw, 80px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  min-height: 4em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-subtitle .typing-cursor::after {
  content: '|';
  animation: blink 0.7s step-end infinite;
  color: var(--accent-primary);
  font-weight: 300;
  margin-left: 2px;
}

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

.typing-done::after {
  content: '|';
  visibility: hidden;
  margin-left: 2px;
}

.hero-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero-built-by {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  margin-bottom: 32px;
  background: rgba(108, 92, 231, 0.06);
  border: 1px solid rgba(108, 92, 231, 0.12);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

.built-by-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--gradient-1);
  color: #fff;
  box-shadow: 0 4px 24px rgba(108, 92, 231, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(148, 148, 176, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(108, 92, 231, 0.06);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
}

.btn-outline:hover::before {
  opacity: 1;
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  justify-content: center;
  padding: 18px 32px;
  font-size: 17px;
}

/* --- Section Header --- */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  backdrop-filter: blur(8px);
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Demo Video Section --- */
.demo {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.demo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(108, 92, 231, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.demo-video-wrapper {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.demo-video-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(108, 92, 231, 0.15);
  box-shadow: 0 0 80px rgba(108, 92, 231, 0.1), 0 20px 60px rgba(0, 0, 0, 0.4);
  background: #0a0a0f;
  line-height: 0;
}

.demo-video-frame::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.4), transparent 40%, transparent 60%, rgba(96, 165, 250, 0.3));
  -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: xor;
  mask-composite: exclude;
  z-index: 2;
  pointer-events: none;
}

.demo-video-frame video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
}

/* Subtle pulsing ring around the video */
.demo-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 22px;
  border: 1px solid rgba(108, 92, 231, 0.2);
  animation: demoPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes demoPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(108, 92, 231, 0.1); border-color: rgba(108, 92, 231, 0.2); }
  50% { box-shadow: 0 0 40px rgba(108, 92, 231, 0.25); border-color: rgba(108, 92, 231, 0.4); }
}

/* --- Features Section --- */
.features {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* Animated background glow for features */
.features::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.06) 0%, transparent 70%);
  animation: glowFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

.inside {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.inside::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.05) 0%, transparent 70%);
  animation: glowFloat 15s ease-in-out infinite alternate-reverse;
  pointer-events: none;
  z-index: 0;
}

.pricing {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.pricing::after {
  content: '';
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.05) 0%, transparent 70%);
  animation: glowFloat 18s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes glowFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -20px) scale(1.1); }
  100% { transform: translate(-20px, 30px) scale(0.9); }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 36px 28px;
  transition: all 0.5s var(--ease-out-expo);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(108, 92, 231, 0.25);
  box-shadow: var(--shadow-card), 0 0 40px rgba(108, 92, 231, 0.06);
  transform: translateY(-4px);
}

.feature-icon {
  margin-bottom: 20px;
  line-height: 1;
}

.feature-icon i {
  font-size: 28px;
  color: var(--accent-secondary);
  background: rgba(108, 92, 231, 0.1);
  padding: 12px;
  border-radius: 12px;
  display: inline-block;
  transition: all 0.4s var(--ease-out-expo);
}

.feature-card:hover .feature-icon i {
  background: rgba(108, 92, 231, 0.2);
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.15);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* --- What's Inside Section --- */
.inside {
  background: var(--bg-primary);
  position: relative;
}

.inside-grid {
  display: grid;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.inside-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  transition: all 0.4s var(--ease-out-expo);
  position: relative;
}

.inside-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--gradient-1);
  border-radius: 0 2px 2px 0;
  transition: height 0.4s var(--ease-out-expo);
}

.inside-item:hover {
  border-color: rgba(108, 92, 231, 0.25);
  background: var(--bg-card-hover);
  transform: translateX(4px);
  box-shadow: var(--shadow-card);
}

.inside-item:hover::before {
  height: 60%;
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-primary);
  min-width: 36px;
  padding-top: 2px;
}

.inside-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.inside-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Pricing Section --- */
.pricing {
  background: var(--bg-secondary);
  position: relative;
}

.pricing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.pricing-card {
  max-width: 450px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 48px 40px;
  position: relative;
  text-align: center;
  box-shadow: var(--shadow-glow);
  transition: all 0.5s var(--ease-out-expo);
  overflow: visible;
}

.pricing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--border-radius-lg);
  padding: 2px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), transparent 40%, transparent 60%, rgba(96, 165, 250, 0.2));
  -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: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.pricing-card:hover {
  border-color: rgba(108, 92, 231, 0.3);
  box-shadow: var(--shadow-glow), 0 0 80px rgba(108, 92, 231, 0.1);
  transform: translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  background: var(--gradient-2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.pricing-header h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-header p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.pricing-amount {
  margin-bottom: 32px;
}

.price {
  font-size: 64px;
  font-weight: 900;
  letter-spacing: -3px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.price-note {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.pricing-features li i {
  color: var(--accent-primary);
  font-size: 16px;
  flex-shrink: 0;
}

.pricing-footer {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* --- Footer --- */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-color);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.footer-logo-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.footer-content {
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand .logo-icon i {
  font-size: 20px;
  color: var(--accent-primary);
  line-height: 1;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.footer-bottom {
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom a {
  color: var(--accent-secondary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--text-primary);
}

/* --- Reveal / Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Entrance animations (initial page load) --- */
.hero-badge {
  animation: fadeUp 0.8s var(--ease-out-expo) 0.1s both;
}
.hero-title {
  animation: fadeUp 0.8s var(--ease-out-expo) 0.2s both;
}
.hero-subtitle {
  animation: fadeUp 0.8s var(--ease-out-expo) 0.35s both;
}
.hero-description {
  animation: fadeUp 0.8s var(--ease-out-expo) 0.5s both;
}
.hero-actions {
  animation: fadeUp 0.8s var(--ease-out-expo) 0.65s both;
}
.hero-stats {
  animation: fadeUp 0.8s var(--ease-out-expo) 0.8s both;
}

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

/* --- Toast --- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px 24px;
  font-size: 14px;
  color: var(--text-primary);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: 90vw;
  text-align: center;
  backdrop-filter: blur(12px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
}

.toast.error .toast-icon {
  color: #ef4444;
}

.toast-icon i {
  font-size: 16px;
  vertical-align: middle;
}

/* --- Loading / Disabled state --- */
.btn-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Scroll lock for mobile nav --- */
body.scroll-locked {
  overflow: hidden;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero {
    padding: calc(var(--nav-height) + 24px) 16px 40px;
    min-height: 100svh;
  }

  .hero-title {
    font-size: clamp(36px, 10vw, 56px);
  }

  .hero-subtitle {
    font-size: 14px;
    margin-bottom: 12px;
    align-items: flex-start;
  }

  .hero-description {
    font-size: 14px;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .hero-stats {
    display: none;
  }

  .hero-actions {
    margin-bottom: 40px;
  }
  .hero-title-icon {
    width: 40px;
    height: 40px;
  }

  .hero-title .font-script {
    font-size: 1.2em;
  }

  .footer-brand {
    font-size: 22px;
  }

  .footer-logo-icon {
    width: 28px;
    height: 28px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-container {
    display: flex;
    justify-content: space-between;
    grid-template-columns: none;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 48px;
    justify-items: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 40px 24px;
  }

  .inside-item {
    flex-direction: column;
    gap: 12px;
  }

  .stat-num {
    font-size: 24px;
  }

  .section {
    padding: 80px 0;
  }

  .mobile-nav-link {
    font-size: 24px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) {
  .mobile-nav {
    display: none !important;
  }
}