/* ========================================
   SharedCircle — CoCart Landing Page — Dark Theme Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Primary */
  --indigo-50: #eef2ff;
  --indigo-100: #e0e7ff;
  --indigo-200: #c7d2fe;
  --indigo-400: #818cf8;
  --indigo-500: #6366f1;
  --indigo-600: #4f46e5;
  --indigo-700: #4338ca;

  /* Violet */
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;

  /* Emerald */
  --emerald-50: #ecfdf5;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;

  /* Orange */
  --orange-50: #fff7ed;
  --orange-500: #f97316;

  /* Pink */
  --pink-50: #fdf2f8;
  --pink-500: #ec4899;

  /* Blue */
  --blue-50: #eff6ff;
  --blue-500: #3b82f6;

  /* Slate */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Dark theme */
  --dark-bg: #050510;
  --dark-surface: #0f172a;
  --dark-surface-2: #111827;
  --dark-card: rgba(255, 255, 255, 0.04);
  --dark-card-hover: rgba(255, 255, 255, 0.07);
  --dark-border: rgba(255, 255, 255, 0.06);
  --dark-border-hover: rgba(255, 255, 255, 0.12);
  --dark-text: #ffffff;
  --dark-text-secondary: rgba(255, 255, 255, 0.6);
  --dark-text-muted: rgba(255, 255, 255, 0.35);

  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #4f46e5, #7c3aed);
  --gradient-emerald: linear-gradient(135deg, #10b981, #059669);
  --gradient-orange: linear-gradient(135deg, #f59e0b, #ea580c);
  --gradient-hero: linear-gradient(180deg, #111827 0%, #0f172a 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

/* ========================================
   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', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--dark-text);
  background: var(--dark-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* ========================================
   Navigation
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 5, 16, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 12px;
  color: var(--white);
}

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

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--dark-text-secondary);
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  transition: opacity 0.2s, transform 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

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

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

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

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

/* ========================================
   Hero
   ======================================== */

.hero {
  padding: 140px 0 100px;
  background: var(--gradient-hero);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--indigo-400);
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  margin-bottom: 24px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

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

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--dark-text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 14px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  border: 1px solid var(--dark-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--dark-border-hover);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--slate-900);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.stat-label {
  font-size: 13px;
  color: var(--dark-text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 300px;
  background: var(--dark-surface);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 25px 60px rgba(0, 0, 0, 0.6);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s ease;
}

.phone-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-screen {
  background: linear-gradient(180deg, #111827, #0f172a);
  border-radius: 26px;
  padding: 20px 16px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
}

.mock-logo-small {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.15);
  border-radius: 10px;
}

.mock-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.mock-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.mock-check {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  position: relative;
}

.mock-check.checked {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
}

.mock-check.checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.mock-price {
  margin-left: auto;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.mock-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.mock-total-price {
  font-size: 18px;
  color: var(--indigo-400);
}

.mock-split-badge {
  text-align: center;
  padding: 8px;
  background: rgba(99, 102, 241, 0.15);
  color: var(--indigo-400);
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
}

/* ========================================
   Section Common
   ======================================== */

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

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo-400);
  font-size: 13px;
  font-weight: 700;
  border-radius: 100px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.section-title {
  font-size: 40px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--dark-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ========================================
   Features
   ======================================== */

.features {
  padding: 100px 0;
  background: var(--dark-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 32px;
  border-radius: 20px;
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s, border-color 0.3s;
  position: relative;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--dark-card-hover);
  border-color: var(--dark-border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-card-highlight {
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.06);
}

.feature-card-highlight:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.1);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 20px;
  font-size: 26px;
}

.feature-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 15px;
  color: var(--dark-text-secondary);
  line-height: 1.6;
}

.feature-coming-soon {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: var(--indigo-600);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-new {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-400);
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ========================================
   How It Works
   ======================================== */

.how-it-works {
  padding: 100px 0;
  background: var(--dark-surface);
}

.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.step-card {
  flex: 1;
  max-width: 320px;
  text-align: center;
  padding: 40px 28px;
  background: var(--dark-card);
  border-radius: 20px;
  border: 1px solid var(--dark-border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--dark-border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.step-number {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  border-radius: 14px;
  margin-bottom: 20px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 15px;
  color: var(--dark-text-secondary);
  line-height: 1.6;
}

.step-connector {
  color: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.step-connector svg {
  stroke: rgba(255, 255, 255, 0.15);
}

/* ========================================
   Screenshots / App Preview
   ======================================== */

.screenshots {
  padding: 100px 0;
  background: var(--dark-bg);
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.screenshot-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  z-index: 1;
}

/* Inline Phone Preview Cards */
.preview-phone {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--dark-surface);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 15px 40px rgba(0, 0, 0, 0.4);
}

.preview-phone-header {
  padding: 16px 18px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.preview-phone-group {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 13px;
  padding: 7px 12px;
}

.preview-phone-avatar {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.preview-phone-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}

.preview-phone-badge {
  font-size: 7px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.4px;
}

.preview-hero-text {
  padding: 2px 18px 0;
}

.preview-hero-sub {
  font-size: 12px;
  color: var(--dark-text-muted);
  font-weight: 500;
}

.preview-hero-main {
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-top: 2px;
}

.preview-body {
  background: var(--slate-50);
  padding: 16px;
  min-height: 200px;
}

.preview-card {
  background: var(--white);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.preview-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--slate-900);
}

.preview-card-sub {
  font-size: 11px;
  color: var(--slate-400);
  margin-top: 2px;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-100);
  font-size: 13px;
  color: var(--slate-900);
}

.preview-item:last-child {
  border-bottom: none;
}

.preview-check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid var(--slate-300);
  flex-shrink: 0;
}

.preview-check-done {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
}

.preview-item-price {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-400);
}

.preview-tabs {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--white);
  padding: 6px 0 16px;
  border-top: 1px solid var(--slate-100);
}

.preview-tab {
  text-align: center;
  font-size: 16px;
  opacity: 0.3;
}

.preview-tab.active {
  opacity: 1;
}

.preview-tab-label {
  font-size: 8px;
  font-weight: 700;
  color: var(--slate-400);
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.preview-tab.active .preview-tab-label {
  color: var(--slate-900);
}

.preview-tab-center {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-top: -14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========================================
   Use Cases
   ======================================== */

/* Scenario Timeline */
.scenario-section {
  padding: 100px 0;
  background: var(--dark-bg);
}

.scenario-timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.scenario-timeline::before {
  content: '';
  position: absolute;
  left: 72px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--indigo-500), var(--emerald-500));
  opacity: 0.3;
}

.scenario-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}

.scenario-step:last-child {
  margin-bottom: 0;
}

.scenario-time {
  min-width: 60px;
  font-size: 12px;
  font-weight: 700;
  color: var(--dark-text-muted);
  text-align: right;
  padding-top: 14px;
  font-variant-numeric: tabular-nums;
}

.scenario-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  border-radius: 50%;
  background: var(--indigo-500);
  margin-top: 16px;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
  z-index: 1;
}

.scenario-step:last-child .scenario-dot {
  background: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.scenario-card {
  flex: 1;
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  padding: 14px 18px;
}

.scenario-who {
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.scenario-step:last-child .scenario-who {
  color: var(--emerald-400);
}

.scenario-what {
  font-size: 14px;
  color: var(--dark-text-secondary);
  line-height: 1.5;
}

.use-cases {
  padding: 100px 0;
  background: var(--dark-surface);
}

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

.use-case-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--dark-card);
  border-radius: 20px;
  border: 1px solid var(--dark-border);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.use-case-card:hover {
  transform: translateY(-4px);
  border-color: var(--dark-border-hover);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.use-case-emoji {
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1;
}

.use-case-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.use-case-desc {
  font-size: 14px;
  color: var(--dark-text-secondary);
  line-height: 1.6;
}

/* ========================================
   Highlights / Why CoCart
   ======================================== */

.highlights {
  padding: 100px 0;
  background: var(--dark-bg);
}

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

.highlight-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.highlight-item:hover {
  transform: translateY(-2px);
  border-color: var(--dark-border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.highlight-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  flex-shrink: 0;
}

.highlight-text h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

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

/* ========================================
   Download CTA
   ======================================== */

.download-cta {
  padding: 100px 0;
  background: var(--dark-surface);
}

.cta-card {
  text-align: center;
  padding: 80px 40px;
  background: var(--gradient-primary);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.cta-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

.cta-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-note {
  margin-top: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  position: relative;
  z-index: 1;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  padding: 60px 0 32px;
  background: var(--dark-surface);
  color: var(--dark-text-secondary);
  border-top: 1px solid var(--dark-border);
}

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

.footer .nav-logo {
  color: var(--white);
  margin-bottom: 12px;
}

.footer .logo-icon {
  background: var(--gradient-primary);
}

.footer-tagline {
  font-size: 15px;
  color: var(--dark-text-muted);
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links a {
  display: block;
  font-size: 15px;
  color: var(--dark-text-muted);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--dark-border);
  text-align: center;
  font-size: 14px;
  color: var(--dark-text-muted);
}

/* ========================================
   Animations
   ======================================== */

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Feature Deep Dive
   ======================================== */

.deep-dive {
  padding: 100px 0;
  background: var(--dark-surface);
}

.dive-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.dive-row:last-child {
  margin-bottom: 0;
}

.dive-row-reverse {
  direction: rtl;
}

.dive-row-reverse > * {
  direction: ltr;
}

.dive-label {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.dive-text h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.dive-text p {
  font-size: 15px;
  color: var(--dark-text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.dive-features {
  list-style: none;
  padding: 0;
}

.dive-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--dark-text-secondary);
  line-height: 1.5;
}

.dive-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--indigo-400);
}

.dive-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dive-card-header {
  padding: 16px 20px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}

.dive-card-body {
  padding: 20px;
}

.dive-card-quote {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--dark-text-secondary);
  font-style: italic;
  border: 1px solid var(--dark-border);
  margin-bottom: 12px;
}

.dive-card-arrow {
  text-align: center;
  margin-bottom: 12px;
}

.dive-card-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dive-card-items span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--dark-border);
}

.dive-card-items span:last-child {
  color: var(--indigo-400);
  font-weight: 600;
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Source Types Grid */
.dive-sources {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.dive-source-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.dive-source-row span:first-child {
  font-size: 16px;
}

.dive-source-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--white);
  flex: 1;
}

.dive-source-desc {
  font-size: 10px;
  color: var(--dark-text-muted);
}

/* Timeline */
.dive-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dive-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-left: 2px solid rgba(255, 255, 255, 0.1);
  margin-left: 7px;
  padding-left: 20px;
  position: relative;
  font-size: 13px;
  color: var(--dark-text-muted);
}

.dive-timeline-item.done {
  border-left-color: var(--emerald-500);
  color: var(--dark-text-secondary);
}

.dive-timeline-item.active {
  border-left-color: var(--emerald-500);
  color: var(--white);
  font-weight: 600;
}

.dive-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: -7px;
  top: 14px;
  flex-shrink: 0;
}

.dive-timeline-item.done .dive-timeline-dot {
  background: var(--emerald-500);
}

.dive-timeline-item.active .dive-timeline-dot {
  background: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

/* Settlement preview */
.dive-settle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--dark-border);
}

.dive-settle-row:last-of-type {
  border-bottom: none;
}

.dive-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.dive-arrow {
  font-size: 12px;
  color: var(--dark-text-muted);
  font-weight: 500;
}

.dive-amount {
  margin-left: auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.dive-settle-total {
  text-align: center;
  padding: 10px;
  margin-top: 8px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald-400);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

/* Spend graph bars */
.dive-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.dive-bar-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--dark-text-secondary);
  width: 70px;
}

.dive-bar-track {
  flex: 1;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dive-bar-fill {
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
}

/* ========================================
   Comparison
   ======================================== */

.comparison {
  padding: 100px 0;
  background: var(--dark-bg);
}

.comparison-table {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--dark-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.comparison-header {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.comparison-header > div {
  padding: 16px 20px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border-bottom: 1px solid var(--dark-border);
  font-size: 14px;
}

.comparison-row:last-child {
  border-bottom: none;
}

.comparison-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.comparison-feature-col {
  padding: 14px 20px;
  font-weight: 600;
  color: var(--white);
}

.comparison-old-col {
  padding: 14px 20px;
  color: var(--dark-text-muted);
}

.comparison-new-col {
  padding: 14px 20px;
  color: var(--emerald-400);
  font-weight: 500;
}

/* ========================================
   FAQ (Homepage)
   ======================================== */

/* Testimonials */
.testimonials {
  padding: 100px 0;
  background: var(--dark-bg);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.3s, border-color 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--dark-border-hover);
}

.testimonial-stars {
  font-size: 16px;
  color: #facc15;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dark-text-secondary);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}

.testimonial-role {
  font-size: 12px;
  color: var(--dark-text-muted);
}

.faq-section-home {
  padding: 100px 0;
  background: var(--dark-surface);
}

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

.faq-item {
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--dark-card);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.03);
}

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

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--dark-text-secondary);
  line-height: 1.7;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ========================================
   AI Features Section
   ======================================== */

.ai-features {
  padding: 100px 0;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
}

.ai-features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ai-card {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid rgba(124, 58, 237, 0.15);
  background: rgba(124, 58, 237, 0.05);
  transition: transform 0.3s, border-color 0.3s;
}

.ai-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.3);
}

.ai-card-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.ai-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.ai-card-desc {
  font-size: 14px;
  color: var(--dark-text-secondary);
  line-height: 1.6;
}

.ai-card-tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  background: rgba(124, 58, 237, 0.15);
  color: #c084fc;
  font-size: 10px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========================================
   404 Page
   ======================================== */

.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-bg);
  text-align: center;
  padding: 24px;
}

.error-content {
  max-width: 480px;
}

.error-code {
  font-size: 120px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.error-desc {
  font-size: 16px;
  color: var(--dark-text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* ========================================
   Support & Legal Pages
   ======================================== */

.legal-page,
.support-page {
  padding: 120px 0 60px;
  background: var(--dark-bg);
  min-height: 100vh;
}

.legal-page .container,
.support-page .container {
  max-width: 800px;
}

.legal-page h1,
.support-page h1 {
  font-size: 36px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.legal-page .page-subtitle,
.support-page .page-subtitle {
  font-size: 16px;
  color: var(--dark-text-muted);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin: 32px 0 12px;
}

.legal-page h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin: 24px 0 8px;
}

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

.legal-page ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.legal-page a {
  color: var(--indigo-400);
}

.legal-page a:hover {
  text-decoration: underline;
}

/* Support cards */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.support-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  transition: transform 0.3s, border-color 0.3s;
}

.support-card:hover {
  transform: translateY(-2px);
  border-color: var(--dark-border-hover);
}

.support-card-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.support-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

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

.support-card a {
  color: var(--indigo-400);
  font-weight: 600;
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 44px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .use-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .ai-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .comparison-table {
    font-size: 13px;
  }

  .comparison-header > div,
  .comparison-feature-col,
  .comparison-old-col,
  .comparison-new-col {
    padding: 12px 14px;
  }
}

@media (max-width: 768px) {
  .dive-row,
  .dive-row-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }

  .dive-row-reverse > * {
    direction: ltr;
  }

  .dive-text h3 {
    font-size: 20px;
  }

  .comparison-table {
    font-size: 12px;
    border-radius: 16px;
  }

  .comparison-header {
    grid-template-columns: 1fr;
    display: none;
  }

  .comparison-row {
    grid-template-columns: 1fr;
    padding: 16px 20px;
    gap: 4px;
  }

  .comparison-feature-col,
  .comparison-old-col,
  .comparison-new-col {
    padding: 4px 0;
  }

  .comparison-feature-col {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .comparison-old-col::before {
    content: 'Before: ';
    font-weight: 600;
    color: var(--dark-text-muted);
  }

  .comparison-new-col::before {
    content: 'With CoCart: ';
    font-weight: 600;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--dark-surface);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--dark-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .scenario-timeline::before {
    left: 5px;
  }

  .scenario-time {
    display: none;
  }

  .scenario-dot {
    min-width: 10px;
    width: 10px;
    height: 10px;
    margin-top: 18px;
  }

  .nav-toggle {
    display: flex;
  }

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

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

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

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

  .hero-visual {
    order: -1;
  }

  .phone-mockup {
    width: 260px;
    transform: none;
  }

  .phone-mockup:hover {
    transform: none;
  }

  .section-title {
    font-size: 30px;
  }

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

  .steps-grid {
    flex-direction: column;
  }

  .step-connector {
    transform: rotate(90deg);
  }

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

  .screenshot-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }

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

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

  .cta-card {
    padding: 60px 24px;
  }

  .cta-title {
    font-size: 28px;
  }

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

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 12px;
  }

  .stat-divider {
    width: 36px;
    height: 1px;
  }

  .error-code {
    font-size: 80px;
  }
}
