/* ============================================
   SECOND BRAIN — LANDING PAGE STYLES
   Dark mode default · Glassmorphism · 3D effects
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  /* Brand */
  --primary: #10b981;
  --primary-dark: #047857;
  --primary-light: #ecfdf5;
  --accent: #f59e0b;
  --accent-dark: #92400e;
  --accent-light: #fffbeb;

  /* Dark palette */
  --bg: #0f1117;
  --bg-card: #1a1d2e;
  --bg-elevated: #222538;
  --bg-sidebar: #141624;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: #2d3048;
  --glass-bg: rgba(26, 29, 46, 0.8);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Gradients */
  --gradient-xp: linear-gradient(90deg, #10b981, #fbbf24);
  --gradient-primary: linear-gradient(135deg, #10b981, #047857);
  --gradient-hero: linear-gradient(135deg, #0f1117, #1a1d2e, #16213e);
  --gradient-surface: linear-gradient(135deg, #0f1117, #1a1d2e);
  --gradient-text: linear-gradient(135deg, #10b981 0%, #fbbf24 50%, #10b981 100%);

  /* Shadows */
  --shadow-glow: 0 0 40px rgba(16, 185, 129, 0.15);
  --shadow-glow-accent: 0 0 40px rgba(245, 158, 11, 0.15);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);

  /* Easing */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Sizing */
  --container: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ---- Utility ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }
}

/* ---- Particles Canvas ---- */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---- Cursor Glow ---- */
.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

/* ---- Glassmorphism ---- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(15, 17, 23, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(15, 17, 23, 0.92);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  z-index: 10;
}

.logo-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: none;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width 0.3s var(--ease-smooth);
}

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

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

.nav-cta {
  display: none;
  padding: 0.5rem 1.25rem;
  background: var(--gradient-primary);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  transition: transform 0.3s, box-shadow 0.3s;
}

@media (min-width: 768px) {
  .nav-cta {
    display: inline-flex;
  }
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Mobile Toggle */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 10;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 767px) {
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 17, 23, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 5;
  }

  .nav-links.open a {
    font-size: 1.5rem;
  }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 3rem) 0 4rem;
  background: var(--gradient-hero);
  overflow: hidden;
}

@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + 1.5rem) 0 3rem;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(245, 158, 11, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }
}

@media (max-width: 767px) {
  .hero-grid {
    gap: 2rem;
  }
}

/* ---- Hero Badge ---- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@media (max-width: 767px) {
  .hero-badge {
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
    margin-bottom: 1rem;
  }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* ---- Hero Title ---- */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 14ch;
}

@media (max-width: 767px) {
  .hero-title {
    font-size: clamp(1.875rem, 8vw, 2.5rem);
    line-height: 1.15;
    max-width: none;
    margin-bottom: 1rem;
  }
}

.text-reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  animation: revealText 0.8s var(--ease-expo) forwards;
}

.text-reveal.delay-200 { animation-delay: 0.2s; }
.text-reveal.delay-400 { animation-delay: 0.4s; }

.highlight {
  position: relative;
  background: var(--gradient-text);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: revealText 0.8s var(--ease-expo) 0.4s forwards, gradientShift 5s ease infinite;
  opacity: 0;
}

/* ---- Hero Subtitle ---- */
.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 2.5rem;
}

@media (max-width: 767px) {
  .hero-subtitle {
    margin-bottom: 2rem;
  }
}

.text-gradient-strong {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ---- CTA Group ---- */
.cta-group {
  margin-bottom: 2rem;
}

.email-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .email-form {
    flex-direction: row;
  }
}

.input-wrapper {
  position: relative;
  flex: 1;
}

.email-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-card);
  outline: none;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

@media (max-width: 767px) {
  .email-input {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }

  .email-input:focus {
    transform: scale(1.01);
  }
}

.email-input::placeholder {
  color: var(--text-muted);
}

.email-input:focus {
  border-color: var(--primary);
  transform: scale(1.02);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.cta-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---- Buttons ---- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s;
  white-space: nowrap;
  min-height: 48px;
  text-decoration: none;
}

@media (max-width: 767px) {
  .btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(16, 185, 129, 0.5);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
  transform: translateY(-3px);
}

.accent-outline {
  border-color: rgba(245, 158, 11, 0.3);
}

.accent-outline:hover {
  border-color: var(--accent);
  background: rgba(245, 158, 11, 0.05);
  box-shadow: var(--shadow-glow-accent);
}

/* Shine Sweep */
.btn-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s var(--ease-smooth);
}

.btn-shine:hover::before {
  left: 100%;
}

/* Arrow */
.btn-arrow {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---- Social Proof ATF ---- */
.social-proof-atf {
  padding-top: 2rem;
  border-top: 1px solid var(--glass-border);
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stars {
  color: var(--accent);
  font-size: 1.125rem;
  letter-spacing: 2px;
}

.rating-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.stats-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .stats-row {
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.75rem 0.5rem;
    min-width: 0;
    border-radius: 0.75rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.6875rem;
  }
}

.stat-card {
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s;
  min-width: 120px;
  flex: 1;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-xp);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ============================================
   HERO VISUAL — 3D MOCKUP
   ============================================ */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .hero-visual {
    margin: 0;
  }
}

.mockup-3d {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(3deg);
  transition: transform 0.5s var(--ease-smooth);
  animation: mockupFloat 6s ease-in-out infinite;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.mockup-3d:hover {
  transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.02);
}

@keyframes mockupFloat {
  0%, 100% { transform: perspective(1200px) rotateY(-4deg) rotateX(3deg) translateY(0); }
  50% { transform: perspective(1200px) rotateY(-4deg) rotateX(3deg) translateY(-12px); }
}

@media (max-width: 767px) {
  .mockup-3d {
    transform: perspective(1200px) rotateY(-1.5deg) rotateX(1.5deg);
    animation: mockupFloatMobile 6s ease-in-out infinite;
    border-radius: 0.75rem;
  }

  .mockup-3d:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.01);
  }

  @keyframes mockupFloatMobile {
    0%, 100% { transform: perspective(1200px) rotateY(-1.5deg) rotateX(1.5deg) translateY(0); }
    50% { transform: perspective(1200px) rotateY(-1.5deg) rotateX(1.5deg) translateY(-6px); }
  }
}

/* Mockup Header */
.mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.mockup-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-left: 0.5rem;
}

.mockup-spacer { flex: 1; }

/* PARA Nav */
.mockup-para-nav {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.para-tab {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
  background: none;
}

.para-tab:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.para-tab.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary);
  font-weight: 600;
}

/* XP Bar */
.mockup-xp-bar {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 185, 129, 0.03);
}

.xp-level {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.level-badge {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
}

.xp-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.xp-progress {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.xp-fill {
  height: 100%;
  background: var(--gradient-xp);
  border-radius: 3px;
  transition: width 1s var(--ease-expo);
}

.streak-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
}

.streak-fire { color: var(--accent); font-weight: 600; }
.streak-freeze { color: var(--text-muted); }

/* Tasks */
.mockup-tasks {
  padding: 0.5rem 0;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  transition: background 0.2s;
  cursor: default;
}

.task-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.task-item.active-task {
  background: rgba(16, 185, 129, 0.06);
  border-left: 3px solid var(--primary);
}

.task-check {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  color: white;
  flex-shrink: 0;
  transition: all 0.2s;
}

.task-check.checked {
  background: var(--primary);
  border-color: var(--primary);
}

.task-info {
  flex: 1;
  min-width: 0;
}

.task-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

.task-name.done {
  color: var(--text-muted);
  text-decoration: line-through;
}

.task-meta {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.task-xp {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.task-xp.earned {
  color: var(--text-muted);
}

/* Weekly Review Prompt */
.mockup-review {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0.75rem 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.review-icon {
  font-size: 1.5rem;
}

.review-info {
  flex: 1;
}

.review-info strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--accent);
}

.review-info small {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.review-btn {
  padding: 0.375rem 1rem;
  background: var(--accent);
  color: #000;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 0.375rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.review-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow-accent);
}

/* ---- Floating Elements ---- */
.float-element {
  position: absolute;
  font-size: 1.75rem;
  opacity: 0.4;
  pointer-events: none;
  animation: float 6s ease-in-out infinite;
}

.float-1 { top: -10px; right: 10%; animation-delay: 0s; }
.float-2 { bottom: 25%; left: -15px; animation-delay: 1.5s; }
.float-3 { bottom: 5%; right: -10px; animation-delay: 3s; }
.float-4 { top: 30%; right: -20px; animation-delay: 4.5s; }
.float-5 { top: 15%; left: -10px; animation-delay: 2s; }

@media (max-width: 767px) {
  .float-2, .float-3, .float-4, .float-5 { display: none; }
}

/* ============================================
   SECTIONS — COMMON
   ============================================ */
section {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
}

@media (max-width: 767px) {
  section {
    padding: 3.5rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

@media (max-width: 767px) {
  .section-header {
    margin-bottom: 2.5rem;
  }
}

.section-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 50ch;
  margin: 0 auto;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  background: var(--gradient-surface);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.feature-card {
  padding: 2.5rem;
  border-radius: 1.25rem;
  transition: transform 0.15s ease-out, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

@media (max-width: 767px) {
  .feature-card {
    padding: 1.75rem;
  }

  .feature-card h3 {
    font-size: 1.25rem;
  }
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

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

.feature-card:hover {
  box-shadow: var(--shadow-glow);
}

.feature-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon {
  font-size: 1.75rem;
  position: relative;
  z-index: 1;
}

.feature-icon-glow {
  position: absolute;
  inset: 0;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 1rem;
  filter: blur(12px);
}

.feature-icon-glow.accent {
  background: rgba(245, 158, 11, 0.12);
}

.feature-card h3 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison {
  background: var(--bg);
}

.table-wrapper {
  border-radius: 1.25rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.875rem;
    font-size: 0.8125rem;
  }
}

.comparison-table thead {
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.comparison-table th.highlight-col {
  color: var(--primary);
  background: rgba(16, 185, 129, 0.05);
}

.comparison-table td {
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.comparison-table td:first-child {
  color: var(--text-primary);
  font-weight: 500;
}

.comparison-table td.highlight-col {
  background: rgba(16, 185, 129, 0.03);
}

.comparison-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.val {
  font-weight: 500;
  font-size: 0.875rem;
}

.val.good {
  color: var(--primary);
}

.val.warn {
  color: var(--accent);
}

.val.bad {
  color: var(--text-muted);
}

/* ============================================
   PRICING
   ============================================ */
.pricing {
  background: var(--gradient-surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
}

.pricing-card {
  padding: 2.5rem 2rem;
  border-radius: 1.25rem;
  text-align: center;
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s;
  position: relative;
}

@media (max-width: 767px) {
  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .price-amount {
    font-size: 2.5rem;
  }
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}

.pricing-card.popular {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: var(--shadow-glow);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 1.25rem;
  background: var(--gradient-primary);
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
}

.pricing-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.price {
  margin-bottom: 0.5rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: var(--gradient-xp);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-period {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price-annual {
  font-size: 0.875rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.price-note {
  font-size: 0.8125rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-card .btn {
  width: 100%;
}

.pricing-regional {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  background: var(--bg);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.testimonial-card {
  padding: 2rem;
  border-radius: 1.25rem;
  transition: transform 0.15s ease-out, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .testimonial-card {
    padding: 1.5rem;
  }
}

.testimonial-card:hover {
  box-shadow: var(--shadow-glow);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--bg-elevated);
  border-radius: 50%;
  border: 1px solid var(--border);
}

.testimonial-author strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.testimonial-author span {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  background: var(--gradient-surface);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.faq-item:hover {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  gap: 1rem;
  transition: color 0.3s;
  min-height: 48px;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-smooth), color 0.3s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-smooth);
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.faq-answer p em {
  color: var(--primary);
  font-style: italic;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: 6rem 0;
}

@media (max-width: 767px) {
  .cta-section {
    padding: 3.5rem 0;
  }

  .cta-card {
    padding: 2.5rem 1.5rem;
    border-radius: 1rem;
  }
}

.cta-card {
  position: relative;
  padding: 4rem 2rem;
  border-radius: 1.5rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(245, 158, 11, 0.06));
  border: 1px solid rgba(16, 185, 129, 0.15);
  overflow: hidden;
}

.cta-bg-glow {
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-card h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  position: relative;
}

.cta-card p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 45ch;
  margin: 0 auto 2rem;
  position: relative;
}

.cta-email-form {
  max-width: 480px;
  margin: 0 auto 0.75rem;
  position: relative;
}

.cta-card .cta-note {
  position: relative;
}

/* ============================================
   FOUNDER'S NOTE
   ============================================ */
.founder {
  background: var(--bg);
}

.founder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

@media (max-width: 767px) {
  .founder-card {
    padding: 1.75rem;
    gap: 1.5rem;
  }

  .founder-avatar {
    font-size: 3rem;
  }

  .founder-content h2 {
    font-size: 1.375rem;
  }
}

@media (min-width: 640px) {
  .founder-card {
    flex-direction: row;
    text-align: left;
    padding: 3rem;
  }
}

.founder-avatar {
  font-size: 4rem;
  flex-shrink: 0;
}

.founder-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.founder-text p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}

.founder-text p:last-child {
  margin-bottom: 0;
}

.founder-text strong {
  color: var(--primary);
}

.founder-signature {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.founder-signature strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.founder-signature span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================
   FOOTER (Enhanced v3.2)
   ============================================ */
.footer {
  position: relative;
  z-index: 2;
  padding: 5rem 0 2rem;
  background: linear-gradient(180deg, transparent, rgba(16, 185, 129, 0.02));
  border-top: 1px solid var(--glass-border);
}

@media (max-width: 767px) {
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .social-link {
    width: 44px;
    height: 44px;
  }
}

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

.footer-content {
  display: grid;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}

.footer-brand .logo {
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
  transition: all 0.3s var(--ease-smooth);
}

.social-link:hover {
  transform: translateY(-4px);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.25);
  color: var(--primary);
}

.link-group h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.link-group a {
  display: block;
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding: 0.375rem 0;
  position: relative;
  transition: color 0.3s;
  width: fit-content;
}

.link-group a::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  transition: width 0.3s var(--ease-smooth);
}

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

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

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  transition: color 0.3s;
}

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

/* ============================================
   TOAST
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 1rem 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 0.75rem;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  box-shadow: var(--shadow-glow);
  z-index: 10000;
  opacity: 0;
  transition: transform 0.4s var(--ease-expo), opacity 0.4s;
  pointer-events: none;
  white-space: nowrap;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes revealText {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

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

.animate-fade-down {
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeUp 0.6s var(--ease-expo) forwards;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s var(--ease-expo) forwards;
}

.fade-up.delay-500 { animation-delay: 0.5s; }
.fade-up.delay-600 { animation-delay: 0.6s; }
.fade-up.delay-700 { animation-delay: 0.7s; }

.scale-in {
  opacity: 0;
  transform: scale(0.92);
  animation: scaleIn 0.7s var(--ease-bounce) forwards;
}

.scale-in.delay-500 { animation-delay: 0.5s; }

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

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.3s; }

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

  html {
    scroll-behavior: auto;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }

  .text-reveal,
  .highlight,
  .fade-up,
  .scale-in,
  .animate-fade-down {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   FOCUS STATES (Accessibility)
   ============================================ */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}
