/* ============================================
   RelanceWork — Dark Navy Design System
   Fonts: Space Grotesk (headings) + DM Sans (body)
   Theme: Dark / Light · Deep Navy SaaS
   ============================================ */

/* ============================================
   CONCRETE DEMO SECTION
   ============================================ */
.cd-section {
  padding: var(--section-pad) 0;
  background: var(--bg-base);
}

/* ---- Grid ---- */
.cd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

/* ---- Card base ---- */
.cd-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.cd-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Highlighted middle card */
.cd-card--highlight {
  border-color: rgba(61, 126, 255, 0.35);
  background: linear-gradient(160deg, rgba(61,126,255,0.06) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 0 1px rgba(61,126,255,0.15), 0 20px 48px rgba(0,0,0,0.4);
}

/* ---- Card top (step badge + when label) ---- */
.cd-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.cd-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  background: var(--blue-dim);
  border: 1px solid var(--border-blue);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.7rem;
  color: var(--blue);
  flex-shrink: 0;
}

.cd-step-badge--accent {
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  border-color: transparent;
  color: #fff;
}

.cd-when {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* ---- Card text ---- */
.cd-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.cd-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ---- Mini UI shell ---- */
.cd-ui {
  margin-top: auto;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

:root[data-theme="light"] .cd-ui {
  background: #f1f5fb;
  border-color: rgba(15,23,42,0.1);
}

.cd-ui-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.cd-ui-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cd-dot-green { background: var(--green); box-shadow: 0 0 6px var(--green); }

.cd-ui-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  flex: 1;
}

.cd-ui-time {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ---- Row inside UI ---- */
.cd-ui-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cd-avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 0.8rem;
  color: #fff;
  flex-shrink: 0;
}

.cd-ui-info { flex: 1; }

.cd-ui-company {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.cd-ui-role {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* Status badge */
.cd-status {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.cd-status-sent {
  background: rgba(61,126,255,0.12);
  color: var(--blue);
  border: 1px solid rgba(61,126,255,0.2);
}

/* Auto-detection row */
.cd-ui-auto-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.69rem;
  color: var(--green);
  padding-top: 2px;
}

/* ---- Alert UI (card 2) ---- */
.cd-ui--alert {
  gap: 12px;
}

.cd-alert-company {
  display: flex;
  align-items: center;
  gap: 9px;
}

.cd-timer-block { display: flex; flex-direction: column; gap: 5px; }

.cd-timer-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cd-timer-label {
  font-size: 0.69rem;
  color: var(--text-muted);
}

.cd-timer-value {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--amber);
  font-family: 'Space Grotesk', sans-serif;
}

.cd-timer-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

:root[data-theme="light"] .cd-timer-track {
  background: rgba(15,23,42,0.08);
}

.cd-timer-fill {
  height: 100%;
  width: 70%;
  background: linear-gradient(90deg, var(--blue), var(--amber));
  border-radius: var(--radius-full);
}

.cd-relance-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 14px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
}

.cd-relance-btn:hover { opacity: 0.88; }

/* ---- Template UI (card 3) ---- */
.cd-ui--template {
  gap: 8px;
}

.cd-template-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.cd-template-badge {
  margin-left: auto;
  font-size: 0.63rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(99,102,241,0.14);
  color: var(--indigo);
  border: 1px solid rgba(99,102,241,0.22);
}

:root[data-theme="light"] .cd-template-badge {
  background: rgba(79,70,229,0.08);
  color: #4f46e5;
}

.cd-template-objet {
  font-size: 0.69rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cd-template-key {
  font-weight: 700;
  color: var(--text-secondary);
  margin-right: 4px;
}

.cd-template-body {
  font-size: 0.69rem;
  color: var(--text-muted);
  line-height: 1.65;
  border-left: 2px solid var(--border-blue);
  padding-left: 8px;
}

/* Highlighted variables */
.cd-var {
  background: rgba(99,102,241,0.16);
  color: #a5b4fc;
  border-radius: 3px;
  padding: 0 3px;
  font-weight: 600;
}

:root[data-theme="light"] .cd-var {
  background: rgba(79,70,229,0.1);
  color: #4f46e5;
}

.cd-template-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.cd-copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-md);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.69rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.cd-copy-btn:hover { background: rgba(61,126,255,0.18); }

/* ---- Result bar ---- */
.cd-result-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-lg);
}

.cd-result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(16,185,129,0.1);
  color: var(--green);
  flex-shrink: 0;
}

.cd-result-text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cd-result-text strong { color: var(--text); }

.cd-result-cta { flex-shrink: 0; }

/* ---- Light mode adjustments ---- */
:root[data-theme="light"] .cd-card {
  box-shadow: var(--shadow-card);
}

:root[data-theme="light"] .cd-card--highlight {
  box-shadow: 0 0 0 1px rgba(37,99,235,0.18), var(--shadow-lg);
}

:root[data-theme="light"] .cd-result-bar {
  box-shadow: var(--shadow-card);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .cd-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
  }
}

@media (max-width: 600px) {
  .cd-result-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cd-result-cta { align-self: stretch; text-align: center; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Backgrounds */
  --bg-base:    #080C18;
  --bg-surface: #0C1222;
  --bg-card:    #101728;

  /* Borders */
  --border:        rgba(255, 255, 255, 0.07);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-blue:   rgba(61, 126, 255, 0.22);
  --border-accent: rgba(99, 102, 241, 0.25);

  /* Text */
  --text:           #EBF0FF;
  --text-secondary: #8898BB;
  --text-muted:     #4A5878;

  /* Brand */
  --blue:       #3D7EFF;
  --blue-light: #6699FF;
  --blue-dim:   rgba(61, 126, 255, 0.1);
  --indigo:     #6366F1;

  /* Theme helpers */
  --nav-bg: rgba(8, 12, 24, 0.86);
  --nav-overlay: rgba(8, 12, 24, 0.99);
  --surface: var(--bg-card);
  --primary: var(--blue);
  --primary-dark: #2f5ed6;
  --shadow-sm: 0 6px 20px rgba(0,0,0,0.28);

  /* Status */
  --green: #10B981;
  --amber: #F59E0B;
  --red:   #EF4444;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
  --shadow-lg:   0 16px 48px rgba(0,0,0,0.5);
  --shadow-xl:   0 24px 64px rgba(0,0,0,0.6);

  /* Geometry */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-2xl:  28px;
  --radius-full: 9999px;

  /* Section rhythm */
  --section-pad: clamp(72px, 8vw, 96px);
  --section-header-gap: clamp(28px, 4.5vw, 44px);
  --section-title-size: clamp(1.7rem, 3.4vw, 2.45rem);
  --section-title-lh: 1.18;
  --section-title-tracking: -0.01em;
  --section-outline-size: clamp(2.6rem, 10vw, 5.2rem);
  --section-outline-stroke: rgba(61,126,255,0.25);
  --section-outline-glow: rgba(61,126,255,0.1);

  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
}

:root[data-theme="light"] {
  --bg-base:    #f6f8fc;
  --bg-surface: #ffffff;
  --bg-card:    #ffffff;

  --border:        rgba(15, 23, 42, 0.12);
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-blue:   rgba(61, 126, 255, 0.25);
  --border-accent: rgba(61, 126, 255, 0.25);

  --text:           #0f172a;
  --text-secondary: #475569;
  --text-muted:     #64748b;

  --blue:       #2563eb;
  --blue-light: #3d7eff;
  --blue-dim:   rgba(37, 99, 235, 0.12);
  --indigo:     #4f46e5;

  --shadow-card: 0 8px 22px rgba(15,23,42,0.08);
  --shadow-lg:   0 18px 40px rgba(15,23,42,0.12);
  --shadow-xl:   0 24px 54px rgba(15,23,42,0.16);

  --nav-bg: rgba(255, 255, 255, 0.92);
  --nav-overlay: rgba(247, 248, 252, 0.99);
  --surface: #ffffff;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --shadow-sm: 0 10px 26px rgba(15,23,42,0.1);
  --section-outline-stroke: rgba(37, 99, 235, 0.28);
  --section-outline-glow: rgba(37, 99, 235, 0.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-base);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

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

a { color: inherit; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 16px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--text);
  color: var(--bg-base);
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}
.header.scrolled {
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--text); }

.nav-link-pricing {
  font-weight: 600 !important;
  color: var(--blue-light) !important;
}

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

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--border-blue);
  background: rgba(61,126,255,0.08);
}
:root[data-theme="light"] .theme-toggle {
  background: rgba(15,23,42,0.04);
}
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: inline; }
:root[data-theme="dark"] .icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: inline; }

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-menu-btn span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 10px 20px;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-sm  { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg  { padding: 15px 30px; font-size: 1rem; }

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 4px 20px rgba(61,126,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(61,126,255,0.5);
  background: var(--blue-light);
}

.btn-outline {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}

.btn-white {
  background: white;
  color: #080C18;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.btn-ghost-white {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.4);
  color: white;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 130px 0 80px;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Background atmosphere orbs */
.hero::before {
  content: '';
  position: absolute;
  top: -180px; left: 30%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(61,126,255,0.11) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -80px; right: 5%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(99,102,241,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 25%, transparent 70%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 25%, transparent 70%);
  pointer-events: none;
}
:root[data-theme="light"] .hero-grid-bg {
  background-image:
    linear-gradient(rgba(15,23,42,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.06) 1px, transparent 1px);
}

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

/* Left column */
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--blue-light);
  background: rgba(61,126,255,0.09);
  border: 1px solid rgba(61,126,255,0.2);
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  animation: fadeInDown 0.6s var(--ease) both;
}

.hero-title {
  font-size: clamp(2.8rem, 5.2vw, 4.4rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 22px;
  animation: fadeInDown 0.6s var(--ease) 0.1s both;
}
.hero-title .accent-word {
  color: var(--blue-light);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 36px;
  animation: fadeInDown 0.6s var(--ease) 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
  animation: fadeInDown 0.6s var(--ease) 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  animation: fadeInUp 0.6s var(--ease) 0.4s both;
}
.stat { text-align: left; }
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  color: var(--text);
  display: block;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* ============================================
   HERO FLOATING CARDS
   ============================================ */
.hero-cards {
  position: relative;
  height: 570px;
  animation: fadeInUp 0.9s var(--ease) 0.45s both;
}

/* Base card */
.h-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Card positions */
.h-card-notification {
  top: 0; right: 0;
  width: 285px;
  padding: 18px 20px;
  animation: floatA 6s ease-in-out infinite;
}
.h-card-table {
  top: 105px; right: -18px;
  width: 360px;
  padding: 18px 18px;
  animation: floatB 7s ease-in-out 1s infinite;
  z-index: 2;
}
.h-card-count {
  bottom: 118px; left: 0;
  width: 175px;
  padding: 22px 20px;
  text-align: center;
  animation: floatC 5.5s ease-in-out 0.4s infinite;
}
.h-card-task {
  bottom: 52px; left: 108px;
  width: 236px;
  padding: 16px 18px;
  animation: floatA 6.5s ease-in-out 1.8s infinite;
  z-index: 3;
}
.h-card-velocity {
  bottom: 0; right: 8px;
  width: 218px;
  padding: 16px 18px;
  animation: floatB 7.5s ease-in-out 0.7s infinite;
}

/* --- Notification card --- */
.h-card-notif-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
}
.h-notif-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3D7EFF, #6366F1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 700; color: white;
  flex-shrink: 0;
  letter-spacing: 0;
}
.h-notif-meta { flex: 1; min-width: 0; }
.h-notif-name  { font-size: 0.8rem; font-weight: 600; color: var(--text); display: block; }
.h-notif-role  { font-size: 0.68rem; color: var(--text-muted); display: block; }
.h-notif-time  { font-size: 0.68rem; color: var(--text-muted); flex-shrink: 0; }
.h-notif-star  { color: #F59E0B; font-size: 0.85rem; flex-shrink: 0; }

.h-notif-body {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}
.h-notif-attachment {
  display: flex; align-items: center; gap: 8px;
  background: rgba(61,126,255,0.07);
  border: 1px solid rgba(61,126,255,0.14);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.h-notif-attach-icon {
  width: 28px; height: 28px;
  background: var(--blue);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 0.7rem;
  flex-shrink: 0;
}
.h-notif-attach-name { font-size: 0.7rem; font-weight: 600; color: var(--text); display: block; }
.h-notif-attach-size { font-size: 0.62rem; color: var(--text-muted); display: block; margin-top: 1px; }

/* --- Table card --- */
.h-table-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.h-table-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem; font-weight: 700; color: var(--text);
}
.h-table-filter { display: flex; gap: 5px; }
.h-filter-pill {
  font-size: 0.62rem; font-weight: 500;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex; align-items: center; gap: 4px;
}
.h-filter-pill::before {
  content: '';
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
}
.h-filter-pill.pill-progress::before { background: var(--green); }
.h-filter-pill.pill-priority::before { background: var(--amber); }

.h-table { width: 100%; border-collapse: collapse; }
.h-table-row { border-bottom: 1px solid var(--border); }
.h-table-row:last-child { border-bottom: none; }
.h-table th {
  text-align: left; font-size: 0.62rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted); padding: 0 0 8px;
}
.h-table td { padding: 7px 0; vertical-align: middle; }
.h-row-name { font-size: 0.72rem; font-weight: 500; color: var(--text); }

.h-progress-bar { display: flex; align-items: center; gap: 7px; }
.h-progress-track {
  flex: 1; height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px; overflow: hidden;
}
.h-progress-fill { height: 100%; border-radius: 2px; background: var(--blue); }
.h-progress-pct { font-size: 0.62rem; color: var(--text-muted); white-space: nowrap; }

.h-priority-badge {
  font-size: 0.62rem; font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.h-priority-high { background: rgba(239,68,68,0.12); color: #F87171; }
.h-priority-med  { background: rgba(245,158,11,0.12); color: #FCD34D; }
.h-priority-low  { background: rgba(16,185,129,0.12); color: #34D399; }

/* --- Count card --- */
.h-count-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 2.9rem;
  letter-spacing: -0.06em;
  color: var(--text); line-height: 1;
}
.h-count-label {
  font-size: 0.7rem; color: var(--text-muted);
  font-weight: 500; line-height: 1.4; margin-top: 6px;
}
.h-count-cursor {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--blue);
  border-radius: var(--radius-full);
  padding: 4px 10px 4px 8px;
  font-size: 0.62rem; font-weight: 600; color: white;
  margin-top: 14px;
}

/* --- Task card --- */
.h-task-tags { display: flex; gap: 5px; margin-bottom: 9px; }
.h-task-tag {
  font-size: 0.62rem; font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.h-task-tag-active {
  background: rgba(61,126,255,0.1);
  border-color: rgba(61,126,255,0.22);
  color: var(--blue-light);
}
.h-task-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.83rem; font-weight: 700; color: var(--text);
  margin-bottom: 5px; line-height: 1.3;
}
.h-task-desc {
  font-size: 0.7rem; color: var(--text-secondary);
  line-height: 1.55; margin-bottom: 11px;
}
.h-task-progress-label {
  display: flex; justify-content: space-between;
  font-size: 0.62rem; color: var(--text-muted); margin-bottom: 5px;
}
.h-task-progress-track {
  width: 100%; height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px; overflow: hidden; margin-bottom: 10px;
}
.h-task-progress-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--indigo));
}
.h-task-assign {
  font-size: 0.62rem; color: var(--text-muted);
  display: flex; align-items: center; gap: 7px;
}
.h-avatars { display: flex; }
.h-avatar-sm {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--bg-card);
  margin-left: -6px;
  font-size: 0.55rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.h-avatar-sm:first-child { margin-left: 0; }
.ha-blue  { background: linear-gradient(135deg, #3D7EFF, #6366F1); }
.ha-green { background: linear-gradient(135deg, #10B981, #059669); }
.ha-amber { background: linear-gradient(135deg, #F59E0B, #D97706); }

/* --- Velocity card --- */
.h-velocity-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.h-velocity-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.76rem; font-weight: 700; color: var(--text);
}
.h-velocity-dots { color: var(--text-muted); font-size: 0.9rem; letter-spacing: 2px; }
.h-velocity-stat { display: flex; align-items: baseline; gap: 8px; }
.h-velocity-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800; font-size: 1.75rem;
  letter-spacing: -0.04em; color: var(--text);
}
.h-velocity-delta {
  font-size: 0.68rem; font-weight: 600; color: var(--green);
  background: rgba(16,185,129,0.12);
  padding: 2px 7px; border-radius: var(--radius-full);
}
.h-sparkline { width: 100%; height: 46px; margin-top: 8px; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatA {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}
@keyframes floatB {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-11px); }
}
@keyframes floatC {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

/* Scroll-triggered */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-anim].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
section { padding: var(--section-pad) 0; position: relative; }

.section-header {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin: 0 auto var(--section-header-gap);
  display: grid;
  gap: 12px;
  padding-top: 12px;
}
.section-header > * { position: relative; z-index: 1; }
.section-header[data-outline]::after {
  content: attr(data-outline);
  position: absolute;
  left: 50%;
  top: -6px;
  transform: translateX(-50%);
  font-size: var(--section-outline-size);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--section-outline-stroke);
  text-shadow: 0 0 24px var(--section-outline-glow);
  opacity: 0.45;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}
.section-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(61,126,255,0.08);
  border: 1px solid rgba(61,126,255,0.18);
  border-radius: var(--radius-full);
  margin: 0;
}
.section-header h2 {
  font-size: var(--section-title-size);
  font-weight: 700;
  letter-spacing: var(--section-title-tracking);
  color: var(--text);
  margin: 0;
  line-height: var(--section-title-lh);
  text-wrap: balance;
}
.section-desc {
  font-size: 1rem; color: var(--text-secondary); line-height: 1.7;
  margin: 0 auto;
  max-width: 640px;
}

/* ============================================
   PROBLEMS
   ============================================ */
.problems { background: var(--bg-base); }
.problems-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 26px);
}
.problem-card {
  position: relative;
  background: linear-gradient(90deg, rgba(61,126,255,0.08) 0%, rgba(61,126,255,0.03) 35%, rgba(61,126,255,0.0) 70%);
  border: 1px dashed rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 22px 22px 22px 24px;
  text-align: left;
  box-shadow: none;
  transition: all 0.35s var(--ease);
}
.problem-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61,126,255,0.25);
  box-shadow: 0 12px 32px rgba(61,126,255,0.08);
}
.problem-card::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(61,126,255,0.9), rgba(99,102,241,0.2));
  opacity: 0.8;
}
.problem-icon-wrap {
  width: 56px; height: 56px;
  margin: 0 0 14px;
  border-radius: 14px;
  background: rgba(239,68,68,0.07);
  border: 1px solid rgba(239,68,68,0.13);
  display: flex; align-items: center; justify-content: center;
  color: #EF4444;
  transition: all 0.3s var(--ease);
}
.problem-card:hover .problem-icon-wrap { transform: scale(1.1); }
.problem-card h3 {
  font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.35; letter-spacing: -0.005em;
}
.problem-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }

/* ============================================
   FEATURES
   ============================================ */
.features { background: var(--bg-surface); }
.features-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
}
.feature-hero {
  position: relative;
  padding: 34px 32px 30px;
  border-radius: 22px;
  border: 1px solid rgba(61,126,255,0.25);
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(61,126,255,0.18) 0%, transparent 55%),
    linear-gradient(180deg, #0d1630 0%, #0b1225 100%);
  box-shadow: 0 18px 50px rgba(2,8,20,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}
.feature-hero::before {
  content: '';
  position: absolute; top: -120px; right: -80px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(61,126,255,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.feature-hero::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 16px;
  border: 1px dashed rgba(61,126,255,0.14);
  pointer-events: none;
}
.feature-hero-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.feature-hero-tag {
  display: inline-flex;
  padding: 5px 12px;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(61,126,255,0.14);
  border: 1px solid rgba(61,126,255,0.35);
  border-radius: var(--radius-full);
  box-shadow: 0 6px 16px rgba(61,126,255,0.18);
}
.feature-hero-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(61,126,255,0.12);
  border: 1px solid rgba(61,126,255,0.3);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--blue-light);
}
.feature-hero h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.feature-hero p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}
.feature-hero-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.feature-hero-pills span {
  padding: 6px 10px;
  font-size: 0.72rem;
  color: var(--text);
  background: rgba(61,126,255,0.1);
  border: 1px solid rgba(61,126,255,0.22);
  border-radius: var(--radius-full);
}

:root[data-theme="light"] .feature-hero {
  border-color: rgba(37,99,235,0.2);
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(37,99,235,0.12) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}
:root[data-theme="light"] .feature-hero::after {
  border-color: rgba(37,99,235,0.12);
}
:root[data-theme="light"] .feature-hero-tag {
  color: #2563eb;
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.22);
  box-shadow: none;
}
:root[data-theme="light"] .feature-hero-icon {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.2);
}
:root[data-theme="light"] .feature-hero-pills span {
  background: rgba(37,99,235,0.08);
  border-color: rgba(37,99,235,0.2);
}

:root[data-theme="light"] .pricing-cta-card {
  border-color: rgba(37,99,235,0.2);
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(37,99,235,0.12) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f2f6ff 100%);
  box-shadow: 0 18px 40px rgba(15,23,42,0.12);
}

:root[data-theme="light"] .btn-ghost-white  {
  background-color: rgb(61, 126, 255);
}


:root[data-theme="light"] .section-header[data-outline]::after {
  opacity: 0.2;
}
.feature-list {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}
.feature-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.feature-row:last-child { border-bottom: none; }
.feature-row-icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(61,126,255,0.2);
  background: rgba(61,126,255,0.08);
  color: var(--blue-light);
}
.feature-row-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.feature-row-body p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works { background: var(--bg-base); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 1px;
  background: linear-gradient(90deg, rgba(61,126,255,0) 0%, rgba(61,126,255,0.35) 50%, rgba(61,126,255,0) 100%);
  opacity: 0.5;
}
.step {
  position: relative;
  text-align: left;
  padding: 36px 10px 6px 8px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  transition: all 0.35s var(--ease);
}
.step:hover {
  transform: translateY(-4px);
}
.step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue-light);
  box-shadow: 0 0 16px rgba(61,126,255,0.5);
}
.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600; font-size: 0.85rem; letter-spacing: 0.24em;
  color: var(--blue-light); margin-bottom: 10px; opacity: 0.6;
}
.step h3 { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.35; letter-spacing: -0.005em; }
.step p  { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.7; }
.step-arrow {
  display: none;
}

/* ============================================
   VIDEO DEMO SECTION
   ============================================ */
.vd-section {
  padding: var(--section-pad) 0;
  background: var(--bg-surface);
}

.vd-section .section-subtitle {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 540px;
  margin-inline: auto;
  text-align: center;
}

.vd-frame {
  margin-top: var(--section-header-gap);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(61,126,255,0.1), var(--shadow-xl);
  background: var(--bg-card);
  max-width: 900px;
  margin-inline: auto;
}

.vd-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--border);
}

.vd-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.vd-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.vd-dots span:nth-child(1) { background: #ff5f57; }
.vd-dots span:nth-child(2) { background: #febc2e; }
.vd-dots span:nth-child(3) { background: #28c840; }

.vd-url {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px 14px;
  max-width: 240px;
  margin-inline: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vd-screen {
  aspect-ratio: 16/9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vd-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

:root[data-theme="light"] .vd-chrome {
  background: rgba(0,0,0,0.04);
  border-bottom-color: rgba(0,0,0,0.08);
}

:root[data-theme="light"] .vd-url {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}

:root[data-theme="light"] .vd-frame {
  border-color: rgba(0,0,0,0.1);
  box-shadow: 0 4px 32px rgba(0,0,0,0.12);
}

/* ============================================
   PRICING CTA
   ============================================ */
.pricing-cta {
  padding: var(--section-pad) 0;
  background: var(--bg-surface);
}
.pricing-cta-card {
  position: relative;
  background: linear-gradient(135deg, #0D1A3C 0%, #0A1128 50%, #0C1630 100%);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-2xl);
  padding: 64px 36px; text-align: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(61,126,255,0.06), var(--shadow-xl);
}
.pricing-cta-card::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(61,126,255,0.13) 0%, transparent 65%);
  pointer-events: none;
}
.pricing-cta-glow {
  position: absolute; top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.1) 0%, transparent 65%);
  pointer-events: none;
}
.pricing-cta-content { position: relative; z-index: 1; }
.pricing-cta-content h2 {
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 700;
  letter-spacing: var(--section-title-tracking);
  line-height: 1.2;
  margin-bottom: 12px;
}
.pricing-cta-content > p {
  color: var(--text-secondary); font-size: 1rem; margin-bottom: 30px;
}
.pricing-cta-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px;
}
.pricing-cta-features {
  display: flex; gap: 28px; justify-content: center; flex-wrap: wrap;
}
.pricing-cta-features span {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-secondary);
}
.pricing-cta-features span svg { color: var(--green); }

/* ============================================
   FAQ
   ============================================ */
.faq { background: var(--bg-base); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 8px; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s var(--ease);
}
.faq-item:hover { border-color: rgba(255,255,255,0.12); }
.faq-item.active { border-color: var(--border-blue); }
.faq-question {
  width: 100%; padding: 18px 22px;
  background: none; border: none; text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.92rem; font-weight: 600; color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background 0.2s var(--ease);
}
.faq-question:hover { background: rgba(255,255,255,0.02); }
.faq-icon {
  flex-shrink: 0; color: var(--blue-light);
  transition: transform 0.3s var(--ease);
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-item.active .faq-answer { max-height: 320px; }
.faq-answer p {
  padding: 0 24px 20px;
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #040710;
  color: var(--text-secondary);
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}
:root[data-theme="light"] .footer {
  background: #ffffff;
}
.footer .logo-text { color: var(--text); }
.footer-content {
  display: grid; grid-template-columns: 1.5fr 2fr;
  gap: 64px; margin-bottom: 48px;
}
.footer-brand p {
  margin-top: 16px; line-height: 1.7;
  max-width: 340px; font-size: 0.875rem;
}
.footer-links {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.footer-col h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 0.85rem;
  color: var(--text); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  text-decoration: none; font-size: 0.82rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.78rem; color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }
  .hero-content {
    display: flex; flex-direction: column; align-items: center;
  }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-stats { justify-content: center; }

  .hero-cards {
    height: 420px;
    max-width: 520px; margin: 0 auto;
  }
  .h-card-notification { top: 0; right: 0; width: 260px; }
  .h-card-table { top: 92px; right: -8px; width: 305px; }
  .h-card-count { bottom: 90px; left: 0; }
  .h-card-task { bottom: 24px; left: 85px; width: 205px; }
  .h-card-velocity { bottom: 0; right: 12px; width: 196px; }

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

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

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

@media (max-width: 900px) {
  .hero-cards { display: none !important; height: 0 !important; }
}

@media (max-width: 768px) {
  body.nav-open main { opacity: 0; }
  body.nav-open .header { box-shadow: none; }

  section { padding: 64px 0; }
  .section-header { margin-bottom: 32px; }
  .section-header[data-outline]::after {
    font-size: clamp(2.1rem, 12vw, 3.4rem);
    letter-spacing: 0.16em;
    top: 2px;
  }

  .nav { padding: 12px 0; }
  .nav-right { gap: 8px; }
  .theme-toggle { width: 34px; height: 34px; border-radius: 10px; }

  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-base);
    flex-direction: column;
    justify-content: flex-start; align-items: center;
    gap: 14px;
    padding: 96px 24px 36px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s var(--ease);
    z-index: 100;
  }
  .nav-links.active { opacity: 1; pointer-events: all; }
  .nav-links a:not(.btn) { font-size: 1.1rem; }
  .nav-links .btn { width: 100%; max-width: 280px; justify-content: center; }

  .mobile-menu-btn { display: flex; z-index: 101; }

  .hero { padding: 124px 0 64px; min-height: auto; }
  .hero-badge {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 6px 12px;
    font-size: 0.7rem;
  }
  .hero-title {
    font-size: clamp(2rem, 8.8vw, 2.7rem);
    line-height: 1.15;
  }
  .hero-subtitle { font-size: 0.98rem; line-height: 1.7; max-width: 32ch; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 340px; }
  .hero-stats { flex-wrap: wrap; justify-content: center; gap: 20px; }

  .hero .container { grid-template-columns: 1fr; gap: 28px; }
  .hero-content { align-items: center; text-align: center; }
  .hero-cards { display: none; }
  .h-card-notification { width: 236px; }
  .h-card-table { width: 265px; top: 85px; }
  .h-card-task { display: none; }

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

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

  .footer-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  .pricing-cta-card { padding: 48px 24px; }
  .pricing-cta-features { flex-direction: column; align-items: center; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .header, .footer, .pricing-cta { display: none; }
}
