/* ================================================================
   DartConnect — Design System
   ================================================================ */

/* ----------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   ---------------------------------------------------------------- */
:root {
  /* Backgrounds */
  --bg-base:        #07070d;
  --bg-elevated:    #0e0e1a;
  --bg-card:        rgba(255, 255, 255, 0.04);
  --bg-card-hover:  rgba(255, 255, 255, 0.07);

  /* Brand gradient — primary identity */
  --grad-brand:  linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #0891b2 100%);
  --grad-text:   linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #22d3ee 100%);
  --grad-cta:    linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --grad-warm:   linear-gradient(135deg, #e94560 0%, #7c3aed 100%);
  --grad-subtle: linear-gradient(180deg, rgba(124,58,237,0.08) 0%, transparent 100%);

  /* Text */
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #475569;
  --text-accent:    #a78bfa;

  /* Borders */
  --border:       rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-brand: rgba(124, 58, 237, 0.4);

  /* Glass */
  --glass-bg:     rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur:   blur(20px);

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.3);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:    0 10px 40px rgba(0,0,0,0.5);
  --shadow-brand: 0 8px 32px rgba(124,58,237,0.35);
  --shadow-glow:  0 0 60px rgba(124,58,237,0.15);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --space-xs:  0.25rem;   /* 4px  */
  --space-sm:  0.5rem;    /* 8px  */
  --space-md:  1rem;      /* 16px */
  --space-lg:  1.5rem;    /* 24px */
  --space-xl:  2.5rem;    /* 40px */
  --space-2xl: 5rem;      /* 80px */
  --space-3xl: 8rem;      /* 128px */

  /* Border radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:   150ms;
  --dur-normal: 300ms;
  --dur-slow:   600ms;

  /* Nav height */
  --nav-h: 72px;
}

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

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

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
ul, ol { list-style: none; }

/* Skip to content */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--space-sm); }

/* Focus styles */
:focus-visible {
  outline: 2px solid rgba(124,58,237,0.8);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

/* 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; }
}

/* ----------------------------------------------------------------
   3. Typography
   ---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }
.text-5xl  { font-size: 3rem; }
.text-6xl  { font-size: 3.75rem; }
.text-7xl  { font-size: 4.5rem; }

.font-light   { font-weight: 300; }
.font-normal  { font-weight: 400; }
.font-medium  { font-weight: 500; }
.font-semi    { font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-accent    { color: var(--text-accent); }

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

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

/* ----------------------------------------------------------------
   4. Layout Utilities
   ---------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.section-sm {
  padding: var(--space-2xl) 0;
}

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

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

/* ----------------------------------------------------------------
   5. Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  transition:
    transform var(--dur-fast) var(--ease-out-expo),
    box-shadow var(--dur-fast),
    background var(--dur-fast),
    opacity var(--dur-fast);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast);
  border-radius: inherit;
}

.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97) !important; }

.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass-blur);
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}
.btn-ghost:hover { color: var(--text-primary); }

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* Store buttons */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #000;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  transition:
    transform var(--dur-fast) var(--ease-out-expo),
    box-shadow var(--dur-fast),
    border-color var(--dur-fast);
}
.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255,255,255,0.3);
}
.btn-store .store-icon { flex-shrink: 0; }
.btn-store .store-text-small { font-size: 0.65rem; opacity: 0.7; display: block; line-height: 1; }
.btn-store .store-text-large { font-size: 1.1rem; font-weight: 600; display: block; line-height: 1.2; }

/* ----------------------------------------------------------------
   6. Glassmorphism Card
   ---------------------------------------------------------------- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  transition:
    background var(--dur-fast),
    transform var(--dur-normal) var(--ease-out-expo),
    box-shadow var(--dur-normal),
    border-color var(--dur-fast);
}
.glass-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(124,58,237,0.12);
  border-color: var(--border-brand);
}

/* ----------------------------------------------------------------
   7. Badges & Tags
   ---------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 500;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: #c4b5fd;
}

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255,255,255,0.07);
  color: var(--text-secondary);
}

/* ----------------------------------------------------------------
   8. Navigation
   ---------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition:
    background var(--dur-normal),
    backdrop-filter var(--dur-normal),
    border-color var(--dur-normal);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}
.nav-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-links a {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 450;
  color: var(--text-secondary);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.06);
}

.nav-actions { display: flex; align-items: center; gap: var(--space-sm); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast);
}
.nav-toggle:hover { background: var(--bg-card-hover); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--dur-normal) var(--ease-out-expo), opacity var(--dur-normal);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.nav-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(7,7,13,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 99;
  flex-direction: column;
  padding: var(--space-xl) var(--space-lg);
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--dur-normal), transform var(--dur-normal) var(--ease-out-expo);
  pointer-events: none;
}
.nav-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.nav-menu a {
  display: block;
  padding: 0.875rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-fast);
}
.nav-menu a:hover { color: var(--text-primary); }
.nav-menu .btn { margin-top: var(--space-md); width: 100%; }

/* ----------------------------------------------------------------
   9. Hero Section
   ---------------------------------------------------------------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 15% 10%, rgba(124,58,237,0.13) 0%, transparent 60%),
    radial-gradient(ellipse 70% 90% at 85% 90%, rgba(8,145,178,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 40%, rgba(37,99,235,0.07) 0%, transparent 70%);
  animation: meshShift 14s ease-in-out infinite alternate;
}

@keyframes meshShift {
  from { filter: hue-rotate(0deg) brightness(1); }
  to   { filter: hue-rotate(12deg) brightness(1.05); }
}

#particles {
  position: absolute;
  inset: 0;
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

.hero-content { max-width: 600px; }

.hero-eyebrow {
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: var(--space-lg);
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.hero-social-proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.proof-item .proof-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

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

.phone-mockup {
  position: relative;
  width: 260px;
  /* Высота 580px ~ пропорция скриншота 1206×2622 (1:2.17) с
     небольшим запасом, чтобы bottom-nav точно не срезался.
     С border 1.5px и border-radius 44px реальная видимая
     высота меньше — берём 580 чтобы было достаточно места. */
  height: 580px;
  background: var(--bg-elevated);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 44px;
  overflow: hidden;
  box-shadow:
    0 0 0 6px rgba(255,255,255,0.03),
    0 40px 80px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.1);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 28px;
  background: var(--bg-base);
  border-radius: var(--radius-full);
  z-index: 5;
}

.phone-screen {
  position: absolute;
  inset: 0;
  padding: 56px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

/* Hero-mockup с реальным скриншотом приложения 1.11.0+
   (см. assets/app_preview.png). Padding обнулён, чтобы скрин
   занимал всю площадь рамки; notch и border остаются как в
   обычном `.phone-mockup`, давая узнаваемый силуэт iPhone. */
.phone-screen--image {
  padding: 0;
  display: block;
  background: var(--bg-base);
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  /* contain — гарантирует что весь скриншот видно целиком (никакой
     обрезки сверху/снизу), при необходимости появляются тонкие
     полосы по бокам или сверху, которые сольются с bg-base. */
  object-fit: contain;
  object-position: center;
  display: block;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-cta);
  flex-shrink: 0;
}
.chat-info-name { font-size: 0.8125rem; font-weight: 600; }
.chat-info-status { font-size: 0.6875rem; color: #4ade80; }

.chat-bubble {
  padding: 8px 12px;
  border-radius: 18px;
  font-size: 0.75rem;
  line-height: 1.5;
  max-width: 80%;
  animation: bubbleIn 0.4s var(--ease-out-expo) both;
}
.chat-bubble.incoming {
  background: rgba(255,255,255,0.08);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.chat-bubble.outgoing {
  background: var(--grad-cta);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.chat-bubble:nth-child(2) { animation-delay: 0.3s; }
.chat-bubble:nth-child(3) { animation-delay: 0.6s; }
.chat-bubble:nth-child(4) { animation-delay: 0.9s; }
.chat-bubble:nth-child(5) { animation-delay: 1.2s; }
.chat-bubble:nth-child(6) { animation-delay: 1.5s; }

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(12px) scale(0.92); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-time { font-size: 0.625rem; color: rgba(255,255,255,0.4); margin-top: 2px; text-align: right; }

.phone-call-badge {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(74,222,128,0.15);
  border: 1px solid rgba(74,222,128,0.3);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #4ade80;
  white-space: nowrap;
  animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

/* Feature pills around phone */
.feature-pills {
  position: absolute;
  inset: -60px;
  pointer-events: none;
}

.pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

.pill-1 { top: 15%; right: -15px; animation: floatPill 4.5s ease-in-out infinite; }
.pill-2 { bottom: 25%; right: -20px; animation: floatPill 5s ease-in-out infinite 0.8s; }
.pill-3 { top: 35%; left: -25px; animation: floatPill 4s ease-in-out infinite 1.5s; }

@keyframes floatPill {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

/* ----------------------------------------------------------------
   10. Features Section
   ---------------------------------------------------------------- */
#features { background: var(--bg-elevated); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}
.section-eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-accent);
  margin-bottom: var(--space-md);
}
.section-title {
  font-size: clamp(1.875rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
}
.section-desc {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.feature-card {
  padding: var(--space-xl);
  position: relative;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.625rem;
  background: var(--grad-cta);
  box-shadow: 0 4px 16px rgba(124,58,237,0.25);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   11. How It Works Section
   ---------------------------------------------------------------- */
#how-it-works {}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  position: relative;
}

.step-card {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding: var(--space-xl);
}

.step-number {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-cta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: var(--shadow-brand);
}

.step-content {}
.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}
.step-desc {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   12. Pricing Section
   ---------------------------------------------------------------- */
#pricing { background: var(--bg-elevated); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  position: relative;
}

.pricing-card-premium {
  position: relative;
}

.pricing-card-premium::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: var(--grad-brand);
  border-radius: calc(var(--radius-lg) + 1px);
  z-index: -1;
  opacity: 0.8;
}

.pricing-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--grad-cta);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-xs);
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.pricing-features {
  list-style: none;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.pricing-features li .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(74,222,128,0.15);
  border: 1px solid rgba(74,222,128,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #4ade80;
}

.pricing-features li .check-premium {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.4);
  color: #a78bfa;
}

/* ----------------------------------------------------------------
   13. B2B Section
   ---------------------------------------------------------------- */
#business {
  background: linear-gradient(180deg, var(--bg-base) 0%, rgba(124,58,237,0.04) 50%, var(--bg-base) 100%);
}

.business-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.business-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.business-feature-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.biz-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.biz-text-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.biz-text-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Terminal */
.terminal {
  background: #0d1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.03);
}

.terminal-header {
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot:nth-child(1) { background: #ff5f57; }
.terminal-dot:nth-child(2) { background: #febc2e; }
.terminal-dot:nth-child(3) { background: #28c840; }

.terminal-title {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  font-family: var(--font-mono);
  margin-left: 4px;
}

.terminal-body {
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.9;
}

.terminal-line { display: flex; align-items: baseline; gap: 8px; }
.terminal-prompt { color: #7c3aed; user-select: none; }
.terminal-cmd { color: #e2e8f0; }
.terminal-comment { color: #475569; }
.terminal-output { color: #4ade80; }
.terminal-output-dim { color: #64748b; }

.terminal-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: #a78bfa;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

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

/* ----------------------------------------------------------------
   14. Download Section
   ---------------------------------------------------------------- */
#download {
  position: relative;
  overflow: hidden;
}

.download-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, rgba(124,58,237,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.download-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.download-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-md);
}

.download-desc {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.download-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

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

.download-note a {
  color: var(--text-accent);
  transition: color var(--dur-fast);
}
.download-note a:hover { color: #c4b5fd; }

/* ----------------------------------------------------------------
   15. Footer
   ---------------------------------------------------------------- */
footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}
.footer-logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  font-style: italic;
}
.footer-built {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.footer-built span {
  color: #e94560;
}

.footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: flex-start;
}

.footer-copyright {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.footer-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
}

/* ----------------------------------------------------------------
   16. Scroll Animations
   ---------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity var(--dur-slow) var(--ease-out-expo),
    transform var(--dur-slow) var(--ease-out-expo);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out-expo);
}
.fade-in.visible { opacity: 1; }

/* Stagger delays */
.stagger > *:nth-child(1)  { transition-delay: 0ms; }
.stagger > *:nth-child(2)  { transition-delay: 80ms; }
.stagger > *:nth-child(3)  { transition-delay: 160ms; }
.stagger > *:nth-child(4)  { transition-delay: 240ms; }
.stagger > *:nth-child(5)  { transition-delay: 320ms; }
.stagger > *:nth-child(6)  { transition-delay: 400ms; }

/* ----------------------------------------------------------------
   17. Privacy / Terms Page Specific Styles
   ---------------------------------------------------------------- */
.page-hero {
  padding: calc(var(--nav-h) + var(--space-3xl)) 0 var(--space-3xl);
  background: linear-gradient(180deg, rgba(124,58,237,0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}
.page-hero-date { font-size: 0.9375rem; color: var(--text-muted); }

.doc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  padding: var(--space-3xl) 0;
}

.doc-toc {
  display: none;
  position: sticky;
  top: calc(var(--nav-h) + var(--space-lg));
  align-self: start;
  max-height: calc(100vh - var(--nav-h) - 3rem);
  overflow-y: auto;
  padding: var(--space-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.doc-toc::-webkit-scrollbar { width: 4px; }
.doc-toc::-webkit-scrollbar-track { background: transparent; }
.doc-toc::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.toc-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.toc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc-list a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
}
.toc-list a:hover, .toc-list a.active {
  color: var(--text-primary);
  background: rgba(124,58,237,0.1);
}

.doc-content { min-width: 0; }

.doc-section {
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid var(--border);
}
.doc-section:last-child { border-bottom: none; }

.doc-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  scroll-margin-top: calc(var(--nav-h) + var(--space-md));
}

.doc-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  margin-top: var(--space-xl);
  color: var(--text-primary);
}

.doc-section p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.doc-section ul, .doc-section ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.doc-section ul { list-style: disc; }
.doc-section ol { list-style: decimal; }

.doc-section li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-xs);
}

.doc-section a {
  color: var(--text-accent);
  transition: color var(--dur-fast);
}
.doc-section a:hover { color: #c4b5fd; }

.doc-section strong { color: var(--text-primary); font-weight: 600; }

.doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
  overflow-x: auto;
  display: block;
}
.doc-table th, .doc-table td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  font-size: 0.875rem;
  text-align: left;
  line-height: 1.5;
}
.doc-table th {
  background: rgba(255,255,255,0.04);
  font-weight: 600;
  color: var(--text-primary);
}
.doc-table td { color: var(--text-secondary); }
.doc-table td a { color: var(--text-accent); }

.info-box {
  padding: var(--space-md) var(--space-lg);
  background: rgba(124,58,237,0.08);
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ----------------------------------------------------------------
   18. Responsive Breakpoints
   ---------------------------------------------------------------- */

/* Tablet ≥ 640px */
@media (min-width: 640px) {
  .hero-actions { flex-wrap: nowrap; }
}

/* Tablet ≥ 768px */
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .step-card { flex-direction: column; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .doc-toc { display: block; }
  .doc-layout { grid-template-columns: 220px 1fr; }
}

/* Desktop ≥ 1024px */
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .business-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* Mobile only (<1024px) */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu { display: flex; }
}

/* Large desktop ≥ 1280px */
@media (min-width: 1280px) {
  .hero-inner { gap: var(--space-3xl); }
  .doc-layout { grid-template-columns: 260px 1fr; }
}

/* Small mobile: hide phone mockup */
@media (max-width: 480px) {
  .hero-visual { display: none; }
}

/* ----------------------------------------------------------------
   19. Scrollbar (WebKit)
   ---------------------------------------------------------------- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ----------------------------------------------------------------
   20. Selection
   ---------------------------------------------------------------- */
::selection {
  background: rgba(124,58,237,0.35);
  color: var(--text-primary);
}
