/* ==========================================
   NIVRO.IO — Official Stylesheet
   Brand Identity: #2563EB primary, Inter font
========================================== */

/* --- CSS Variables (Brand Identity) --- */
:root {
  --primary: #2563EB;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --primary-ghost: rgba(37, 99, 235, 0.08);
  --primary-glow: rgba(37, 99, 235, 0.15);
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --bg-main: #FFFFFF;
  --bg-secondary: #F8FAFC;
  --bg-tertiary: #F1F5F9;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --divider: #E2E8F0;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 30px 70px rgba(15, 23, 42, 0.16);
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Dark Mode Variables --- */
body.dark-mode {
  --bg-main: #0F172A;
  --bg-secondary: #1E293B;
  --bg-tertiary: #334155;
  --text-primary: #F8FAFC;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --border: #334155;
  --border-light: #1E293B;
  --divider: #334155;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 30px 70px rgba(0, 0, 0, 0.45);
}

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

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-main);
  line-height: 1.7;
  transition: background var(--transition-base), color var(--transition-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* --- Container --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* --- Utility Classes --- */
.text-center { text-align: center; }
.text-primary-color { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

/* ==========================================
   STICKY HEADER
========================================== */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.sticky-header.scrolled {
  box-shadow: var(--shadow-sm);
}

/* --- Top Announcement Bar --- */
.top-bar {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 8px 0;
  letter-spacing: 0.02em;
}

.top-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  margin-left: 8px;
}

.top-bar a:hover {
  opacity: 0.85;
}

/* --- Navbar --- */
.navbar {
  padding: 14px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand .logo-icon {
  width: 36px;
  height: 36px;
}

.nav-brand .logo-wordmark {
  height: 22px;
  transition: opacity var(--transition-fast);
}

.nav-brand .logo-wordmark-light {
  display: block;
}

.nav-brand .logo-wordmark-dark {
  display: none;
}

body.dark-mode .nav-brand .logo-wordmark-light {
  display: none;
}

body.dark-mode .nav-brand .logo-wordmark-dark {
  display: block;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition-fast);
  position: relative;
}

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

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

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

/* --- Nav Right --- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

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

.btn-ghost:hover {
  background: var(--primary-ghost);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-large {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 16px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
}

/* --- Dark Mode Toggle --- */
.dark-mode-toggle {
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.dark-mode-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-ghost);
}

.dark-mode-toggle svg {
  width: 18px;
  height: 18px;
}

/* --- Burger Menu --- */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 8px;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.burger:hover {
  border-color: var(--primary);
  background: var(--primary-ghost);
}

.burger span {
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
  border-radius: 2px;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Auth Buttons --- */
.auth-buttons {
  display: flex;
  gap: 8px;
}

.desktop-only {
  display: flex !important;
  gap: 8px;
}

/* --- Mobile Menu Overlay --- */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  background: var(--bg-main);
  width: 92%;
  max-width: 400px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 48px 28px 32px;
  position: relative;
  transform: translateY(-20px) scale(0.96);
  opacity: 0;
  transition: transform var(--transition-smooth), opacity 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.mobile-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--bg-tertiary);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mobile-close:hover {
  color: var(--primary);
  background: var(--primary-ghost);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
}

.mobile-nav-links a {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

.mobile-nav-links a:hover {
  color: var(--primary);
  background: var(--primary-ghost);
}

.mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-auth .btn {
  width: 100%;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius);
}

/* ==========================================
   HERO SECTION
========================================== */
.hero {
  padding: 100px 0 80px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
  min-width: 320px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-ghost);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-benefits {
  list-style: none;
  margin-bottom: 36px;
}

.hero-benefits li {
  font-size: 0.98rem;
  margin-bottom: 10px;
  padding-left: 28px;
  position: relative;
  color: var(--text-secondary);
}

.hero-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-benefits li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 10px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-cta .btn-primary {
  padding: 14px 28px;
  font-size: 16px;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-social-proof .avatars {
  display: flex;
}

.hero-social-proof .avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-ghost);
  border: 2px solid var(--bg-secondary);
  margin-left: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}

.hero-social-proof .avatars span:first-child {
  margin-left: 0;
}

.hero-visual {
  flex: 1;
  min-width: 320px;
  text-align: center;
}

.dashboard-mockup {
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  transition: transform var(--transition-smooth);
}

.dashboard-mockup:hover {
  transform: scale(1.02);
}

/* ==========================================
   SECTION HEADERS
========================================== */
.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 72px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-label svg {
  width: 16px;
  height: 16px;
}

.section-header h2 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ==========================================
   TRUSTED BY / LOGOS BAR
========================================== */
.trusted-bar {
  padding: 60px 0;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border);
}

.trusted-bar p {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}

.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  opacity: 0.5;
}

.trusted-logos span {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: -0.02em;
}

/* ==========================================
   FEATURES SECTION
========================================== */
.features {
  padding: 120px 0;
  background: var(--bg-main);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-glow);
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-ghost);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  flex-grow: 1;
}

/* ==========================================
   HOW IT WORKS — STEPS
========================================== */
.how-it-works {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Connector line */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 16px);
  right: calc(12.5% + 16px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
  position: relative;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 260px;
  margin: 0 auto;
}

.how-cta {
  text-align: center;
  margin-top: 64px;
}

.small-text {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==========================================
   COMPARISON TABLE
========================================== */
.comparison {
  padding: 120px 0;
  background: var(--bg-main);
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin: 0 auto 48px;
  max-width: 1200px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table thead th {
  background: var(--bg-tertiary);
  padding: 16px 18px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.comparison-table thead th.highlight-col {
  background: var(--primary);
  color: #fff;
}

.comparison-table tbody td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background: var(--primary-ghost);
}

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

.comparison-table td.highlight-col {
  background: rgba(37, 99, 235, 0.03);
  font-weight: 600;
}

.check-yes {
  color: var(--accent-green);
  font-weight: 600;
}

.check-no {
  color: var(--accent-red);
}

.check-partial {
  color: var(--accent-amber);
  font-weight: 500;
}

.comparison-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 48px;
}

.summary-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.summary-card h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-card h3 svg {
  width: 20px;
  height: 20px;
}

.summary-card.pros h3 {
  color: var(--accent-green);
}

.summary-card.cons h3 {
  color: var(--accent-red);
}

.summary-card ul {
  list-style: none;
}

.summary-card ul li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.summary-card ul li::before {
  position: absolute;
  left: 0;
  font-weight: bold;
}

.summary-card.pros ul li::before {
  content: '+';
  color: var(--accent-green);
}

.summary-card.cons ul li::before {
  content: '—';
  color: var(--accent-red);
}

/* Mobile comparison cards */
.comparison-cards-mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}

.comp-card-m {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.comp-card-m.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.comp-card-m h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.comp-card-m .tag {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
}

.comp-card-m ul {
  list-style: none;
}

.comp-card-m ul li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.comp-card-m ul li::before {
  content: '•';
  position: absolute;
  left: 4px;
  color: var(--text-muted);
}

.comparison-cta {
  text-align: center;
}

.small-note {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ==========================================
   USE CASES
========================================== */
.use-cases {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.use-case-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition-base);
}

.use-case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.use-case-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-ghost);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--primary);
}

.use-case-icon svg {
  width: 22px;
  height: 22px;
}

.use-case-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.use-case-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.use-case-card .result {
  font-size: 0.88rem;
  color: var(--accent-green);
  font-weight: 600;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.use-cases-cta {
  text-align: center;
}

/* ==========================================
   PRICING SECTION
========================================== */
.pricing {
  padding: 120px 0;
  background: var(--bg-main);
}

.pricing-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  width: 100%;
  max-width: 420px;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

.pricing-card.highlight {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 16px 40px rgba(37, 99, 235, 0.12);
  position: relative;
}

.pricing-card.highlight::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.pricing-header h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.price .amount {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  line-height: 1.2;
}

.price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: block;
}

.pricing-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 12px 0;
}

.pricing-badge.secondary {
  background: var(--text-muted);
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-features li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--accent-green);
  border-radius: 50%;
}

.pricing-features li::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

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

.pricing-card.future .btn {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--text-muted);
  border-color: var(--text-muted);
}

.pricing-urgency {
  background: var(--primary-ghost);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.pricing-urgency h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.pricing-urgency .urgency-text {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  margin-top: 12px;
}

/* ==========================================
   FAQ SECTION
========================================== */
.faq {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--primary-glow);
}

.faq-item summary {
  padding: 18px 52px 18px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  line-height: 1.4;
  transition: color var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.3s;
  font-weight: 300;
}

.faq-item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-item[open] summary {
  color: var(--primary);
}

.faq-item .faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.faq-cta {
  text-align: center;
  margin-top: 48px;
}

/* ==========================================
   CONTACT SECTION
========================================== */
.contact {
  padding: 120px 0;
  background: var(--bg-main);
}

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

.contact-info h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-ghost);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
}

.contact-method-text strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.contact-method-text span,
.contact-method-text a {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.contact-method-text a:hover {
  color: var(--primary);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ghost);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-status {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

.form-status.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
  display: block;
}

.form-status.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  display: block;
}

/* ==========================================
   FINAL CTA
========================================== */
.final-cta-section {
  padding: 100px 0;
  background: var(--primary);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.final-cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.final-cta-section h2 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.final-cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 28px;
  position: relative;
  z-index: 1;
}

.final-cta-section .btn {
  background: #fff;
  color: var(--primary);
  font-size: 16px;
  padding: 14px 32px;
  position: relative;
  z-index: 1;
}

.final-cta-section .btn:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.final-cta-section .urgency-note {
  margin-top: 16px;
  font-size: 0.88rem;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

/* ==========================================
   FOOTER
========================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .footer-logo img:first-child {
  width: 32px;
  height: 32px;
}

.footer-brand .footer-logo img:last-child {
  height: 20px;
}

.footer-brand-light { display: inline; }
.footer-brand-dark { display: none; }
body.dark-mode .footer-brand-light { display: none; }
body.dark-mode .footer-brand-dark { display: inline; }

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 4px 0;
  transition: color var(--transition-fast);
}

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

.footer-bottom-bar {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-badge {
  background: var(--primary-ghost);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* ==========================================
   AUTH PAGES (Login / Register)
========================================== */
.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg-secondary);
}

.auth__card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.auth__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

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

.auth__brand img:first-child {
  width: 40px;
  height: 40px;
}

.auth__brand .wm {
  height: 22px;
}

.auth__brand .wm-light { display: inline; }
.auth__brand .wm-dark { display: none; }
body.dark-mode .auth__brand .wm-light { display: none; }
body.dark-mode .auth__brand .wm-dark { display: inline; }

.backlink {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

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

.kicker {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.auth__card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

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

.small {
  font-size: 0.82rem;
}

/* OAuth Providers */
.providers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  transition: opacity var(--transition-fast);
}

.provider {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.provider:hover {
  border-color: var(--primary);
  background: var(--primary-ghost);
}

.provider svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.provider.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.or {
  text-align: center;
  margin: 20px 0 16px;
  position: relative;
}

.or::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.or span {
  background: var(--bg-main);
  padding: 0 16px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.notice {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth__card a {
  color: var(--primary);
  transition: opacity var(--transition-fast);
}

.auth__card a:hover {
  opacity: 0.8;
}

/* ==========================================
   LEGAL PAGES
========================================== */
.legal-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px 24px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-page p, .legal-page li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ==========================================
   NEWSLETTER
========================================== */
.newsletter-section {
  background: var(--bg-secondary);
  padding: 60px 0;
  border-top: 1px solid var(--border);
}

.newsletter-box {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-box h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.newsletter-box p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--bg-main);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

.newsletter-form button {
  font-family: inherit;
}

/* ==========================================
   STRUCTURED DATA VISIBILITY
========================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================
   FOCUS & ACCESSIBILITY
========================================== */
.btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 2px;
}

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

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
========================================== */

/* Tablet */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .desktop-only {
    display: none !important;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding: 72px 0 60px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-social-proof {
    justify-content: center;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .steps-grid::before {
    display: none;
  }

  .comparison-table-wrapper {
    display: none;
  }

  .comparison-cards-mobile {
    display: flex;
  }

  .comparison-summary {
    grid-template-columns: 1fr;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .features, .how-it-works, .comparison, .use-cases, .pricing, .faq, .contact {
    padding: 80px 0;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-benefits {
    text-align: left;
    display: inline-block;
  }

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

  .hero-cta .btn {
    width: 100%;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 360px;
    margin: 0 auto;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }

  .footer-badges {
    justify-content: center;
  }

  .features, .how-it-works, .comparison, .use-cases, .pricing, .faq, .contact {
    padding: 64px 0;
  }

  .auth__card {
    padding: 28px 20px;
  }
}

/* Very small mobile */
@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .top-bar {
    font-size: 11px;
    padding: 6px 0;
  }
}
