/* =============================================================
   FloTask - Site vitrine premium
   Design system: Linear × Height × Vercel
   Dark-first · glass · aurora · micro-interactions
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #0a0a0c;
  --bg-elevated:   #111114;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-hi:    rgba(255, 255, 255, 0.06);
  --surface-active:rgba(255, 255, 255, 0.09);

  /* Borders */
  --border:        rgba(255, 255, 255, 0.08);
  --border-hi:     rgba(255, 255, 255, 0.14);
  --border-focus:  rgba(85, 70, 227, 0.5);

  /* Text */
  --text:          #fafafa;
  --text-muted:    #a1a1aa;
  --text-dim:      #71717a;
  --text-faint:    #52525b;

  /* Brand & accents */
  --accent:        #5546E3;
  --accent-hi:     #7B6FF0;
  --accent-low:    #3d31b3;
  --accent-soft:   rgba(85, 70, 227, 0.16);
  --accent-glow:   rgba(123, 111, 240, 0.35);
  --cyan:          #38bdf8;
  --cyan-soft:     rgba(56, 189, 248, 0.16);
  --success:       #22c55e;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --pink:          #f472b6;

  /* Aurora gradient stops */
  --aurora-1:      #5546E3;
  --aurora-2:      #2563eb;
  --aurora-3:      #0a0a0c;

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #5546E3 0%, #7B6FF0 100%);
  --grad-text:     linear-gradient(90deg, #fafafa 0%, #7B6FF0 60%, #38bdf8 100%);
  --grad-aurora:   radial-gradient(at 20% 30%, rgba(85, 70, 227, 0.5), transparent 50%),
                   radial-gradient(at 80% 20%, rgba(37, 99, 235, 0.4), transparent 50%),
                   radial-gradient(at 50% 90%, rgba(56, 189, 248, 0.25), transparent 50%);

  /* Radii */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-full: 999px;

  /* Shadows */
  --shadow-glow:   0 0 40px -10px var(--accent);
  --shadow-card:   0 1px 0 rgba(255, 255, 255, 0.04) inset,
                   0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --shadow-lift:   0 20px 60px -20px rgba(0, 0, 0, 0.8),
                   0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-accent: 0 0 0 0 rgba(85, 70, 227, 0.4);

  /* Easing */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Spacing 8pt */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --s-32: 128px;

  /* Layout */
  --container:    1280px;
  --container-narrow: 920px;
  --header-h:     64px;
}

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

*::before, *::after { box-sizing: border-box; }

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

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

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

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
  border-radius: 4px;
}

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

input, textarea, select { font-family: inherit; }

::selection { background: var(--accent-soft); color: var(--text); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; position: relative; }
.section-lg { padding: 128px 0; position: relative; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-accent { color: var(--accent-hi); }
.mono { font-family: 'JetBrains Mono', ui-monospace, Menlo, monospace; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, 80px); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(32px, 4vw, 56px); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
h4 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
p  { color: var(--text-muted); line-height: 1.6; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-muted); line-height: 1.5; }

.grad-text {
  background: var(--grad-text);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 8s ease-in-out infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- Glassmorphism utility ---------- */
.glass {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.glass-strong {
  background: var(--surface-hi);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

/* ---------- Aurora background ---------- */
.aurora-bg {
  position: relative;
  isolation: isolate;
}
.aurora-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-aurora);
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}
.aurora-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}

/* Floating particles (uses CSS-only animation) */
.particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: white;
  opacity: 0;
  animation: float-up linear infinite;
}
@keyframes float-up {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.5; }
  50%  { transform: translateY(-50vh) translateX(20px); opacity: 0.6; }
  90%  { opacity: 0.3; }
  100% { transform: translateY(-100vh) translateX(-20px); opacity: 0; }
}

/* ---------- Top Navigation ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), backdrop-filter 0.3s var(--ease-out);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 10, 12, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s var(--ease-out);
}
.logo:hover { opacity: 0.85; }
.logo-img {
  height: 30px;
  width: auto;
  display: block;
  /* The logo is delivered on a transparent background, so it sits
     naturally on the dark header. No filter needed. */
}
.logo-footer .logo-img { height: 30px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav > a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: color 0.2s, background 0.2s;
}
.main-nav > a:hover { color: var(--text); background: var(--surface); }
.main-nav > a.active { color: var(--text); }
.main-nav > a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--accent-hi);
  transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
}
.main-nav > a:hover::after, .main-nav > a.active::after {
  width: 24px;
  left: calc(50% - 12px);
}

.nav-actions { display: flex; align-items: center; gap: 4px; }
.nav-actions .btn { padding: 8px 16px; font-size: 14px; }

.nav-toggle { display: none; }
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: var(--r-sm);
}
.nav-burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  position: relative;
  transition: background 0.2s;
}
.nav-burger span::before, .nav-burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease-out);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after  { top:  6px; }
.nav-toggle:checked + .nav-burger span { background: transparent; }
.nav-toggle:checked + .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle:checked + .nav-burger span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.2;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  background: var(--accent-hi);
  transform: translateY(-1px);
  box-shadow: 0 0 60px -10px var(--accent), 0 8px 24px -8px var(--accent);
}
.btn-primary.pulse {
  animation: pulse-ring 3.5s var(--ease-out) infinite;
}
@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(85, 70, 227, 0.45); }
  70%  { box-shadow: 0 0 0 18px rgba(85, 70, 227, 0); }
  100% { box-shadow: 0 0 0 0 rgba(85, 70, 227, 0); }
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hi);
}
.btn-outline:hover { background: var(--surface-hi); border-color: var(--text-muted); }
.btn-white {
  background: white;
  color: var(--bg);
}
.btn-white:hover { background: #f0f0f0; }
.btn-lg { padding: 14px 24px; font-size: 15px; font-weight: 600; }
.btn-xl { padding: 18px 32px; font-size: 16px; font-weight: 600; }
.btn-block { width: 100%; }
.btn-arrow svg {
  transition: transform 0.2s var(--ease-out);
}
.btn-arrow:hover svg { transform: translateX(4px); }

/* ---------- Pill (chip) ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.pill-accent {
  background: var(--accent-soft);
  border-color: rgba(85, 70, 227, 0.3);
  color: var(--accent-hi);
}
.pill-accent .pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 0 0 var(--accent-hi);
  animation: dot-pulse 2s var(--ease-out) infinite;
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(123, 111, 240, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(123, 111, 240, 0); }
  100% { box-shadow: 0 0 0 0 rgba(123, 111, 240, 0); }
}

/* ---------- Eyebrow (section header) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-hi);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent-hi);
}

.section-title {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}
.section-title.left { margin-left: 0; text-align: left; }
.section-title h2 { margin-bottom: 16px; }
.section-title .lead { max-width: 600px; margin: 0 auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  display: flex;
  align-items: center;
  text-align: center;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  margin: 0 auto 24px;
  max-width: 900px;
}
.hero .lead {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.hero-trust {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 12px;
}

/* Hero on-load reveal animation */
.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}
.reveal-up.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal-up[data-d="0"]   { transition-delay: 0ms;   }
.reveal-up[data-d="1"]   { transition-delay: 100ms; }
.reveal-up[data-d="2"]   { transition-delay: 250ms; }
.reveal-up[data-d="3"]   { transition-delay: 400ms; }
.reveal-up[data-d="4"]   { transition-delay: 600ms; }
.reveal-up[data-d="5"]   { transition-delay: 750ms; }
.reveal-up[data-d="6"]   { transition-delay: 900ms; }

/* ---------- Dashboard Mockup ---------- */
.dashboard-mockup {
  position: relative;
  max-width: 1100px;
  margin: 80px auto 0;
  perspective: 1400px;
  z-index: 2;
}
.dashboard-scene {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-6deg);
  transition: transform 0.3s var(--ease-out);
  animation: scene-in 1.1s var(--ease-out) both;
  animation-delay: 0.9s;
  opacity: 0;
  transform-origin: center top;
}
@keyframes scene-in {
  from {
    opacity: 0;
    transform: rotateX(16deg) rotateY(-6deg) translateY(60px);
    filter: blur(12px);
  }
  to {
    opacity: 1;
    transform: rotateX(8deg) rotateY(-6deg) translateY(0);
    filter: blur(0);
  }
}

.dashboard {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hi);
  border-radius: 14px;
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
}
.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}
.dashboard-traffic { display: flex; gap: 6px; }
.dashboard-traffic span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ff6057;
}
.dashboard-traffic span:nth-child(2) { background: #ffbd2e; }
.dashboard-traffic span:nth-child(3) { background: #28c840; }
.dashboard-search {
  flex: 1;
  margin: 0 24px;
  max-width: 360px;
  height: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
}
.dashboard-search .kbd {
  margin-left: auto;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--surface-hi);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
}
.dashboard-actions { display: flex; align-items: center; gap: 12px; }
.dashboard-avatars { display: flex; }
.dashboard-avatars .av {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-elevated);
  margin-left: -6px;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.dashboard-avatars .av:first-child { margin-left: 0; }
.dashboard-avatars .av.av-1 { background: #7B6FF0; }
.dashboard-avatars .av.av-2 { background: #38bdf8; color: #062a45; }
.dashboard-avatars .av.av-3 { background: #f472b6; }
.dashboard-bell {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  position: relative;
}
.dashboard-bell::after {
  content: '';
  position: absolute;
  top: 3px; right: 3px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-hi);
  box-shadow: 0 0 0 2px var(--bg-elevated);
}

.dashboard-body {
  display: grid;
  grid-template-columns: 56px 1fr;
  height: 480px;
}
.dashboard-sidebar {
  background: var(--bg);
  border-right: 1px solid var(--border);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.sidebar-icon {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.sidebar-icon.active { background: var(--accent-soft); color: var(--accent-hi); }
.sidebar-icon:hover { background: var(--surface); color: var(--text); }

.dashboard-main {
  padding: 20px 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(85, 70, 227, 0.08), transparent 60%),
    var(--bg-elevated);
}
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.dashboard-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.dashboard-title .live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--success);
  margin-left: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dashboard-title .live::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 var(--success);
  animation: dot-pulse 2s infinite;
  --pulse-color: var(--success);
}
.dashboard-tabs {
  display: flex;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}
.dashboard-tabs span {
  padding: 4px 8px;
  border-radius: var(--r-sm);
}
.dashboard-tabs span.active { background: var(--surface-hi); color: var(--text); }

.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: calc(100% - 60px);
}
.kanban-col {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 4px 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.kanban-col-head .count {
  font-size: 10px;
  padding: 1px 6px;
  background: var(--surface);
  border-radius: var(--r-full);
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0;
}
.kanban-col-head .dot-c {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 6px;
}
.dot-todo     { background: var(--text-faint); }
.dot-progress { background: var(--warning); }
.dot-done     { background: var(--success); }

.task-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 10px 11px;
  font-size: 12px;
  color: var(--text);
  line-height: 1.35;
  transition: all 0.25s var(--ease-out);
  animation: card-in 0.6s var(--ease-out) both;
  cursor: default;
}
.task-card:hover {
  border-color: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
}
@keyframes card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.94); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.task-card[data-c="0"] { animation-delay: 1.3s; }
.task-card[data-c="1"] { animation-delay: 1.4s; }
.task-card[data-c="2"] { animation-delay: 1.5s; }
.task-card[data-c="3"] { animation-delay: 1.6s; }
.task-card[data-c="4"] { animation-delay: 1.7s; }
.task-card[data-c="5"] { animation-delay: 1.8s; }
.task-card .task-title { font-weight: 500; margin-bottom: 8px; }
.task-card .task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-dim);
}
.task-card .task-meta .av {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
  color: white;
}
.task-card .priority {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.priority-low    { background: var(--text-faint); }
.priority-medium { background: var(--cyan); }
.priority-high   { background: var(--warning); }
.priority-urgent { background: var(--danger); }
.task-card.moving {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(85, 70, 227, 0.15);
  transform: rotate(-1.5deg) translateY(-2px);
}
.task-card .subtasks {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: var(--text-dim);
}
.task-card .subtasks svg { width: 9px; height: 9px; }
.task-card.done .task-title { color: var(--text-muted); text-decoration: line-through; }
.task-card .check {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--success);
  color: white;
  font-size: 8px;
  text-align: center;
  line-height: 12px;
  margin-right: 5px;
  vertical-align: middle;
}

.dashboard-fab {
  position: absolute;
  bottom: 24px; right: 24px;
  width: 40px; height: 40px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 8px 20px -4px var(--accent-glow);
}

/* Floating tooltips around the dashboard */
.mockup-tooltip {
  position: absolute;
  padding: 8px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-md);
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  box-shadow: var(--shadow-lift);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  animation: tip-in 0.6s var(--ease-out) forwards;
}
.mockup-tooltip::before {
  content: '';
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--text-dim);
  margin-right: 6px;
}
.mockup-tooltip[data-kbd]::before { content: attr(data-kbd); }
.mockup-tooltip.tip-1 { top: 16%; left: -8%; animation-delay: 1.8s; }
.mockup-tooltip.tip-2 { top: 38%; right: -6%; animation-delay: 2.1s; }
.mockup-tooltip.tip-3 { bottom: 18%; left: -6%; animation-delay: 2.4s; }
@keyframes tip-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Logo cloud ---------- */
.logo-cloud {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.logo-cloud-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.logo-cloud-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
}
.logo-cloud-item {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: -0.02em;
  transition: color 0.3s, opacity 0.3s;
  opacity: 0.6;
}
.logo-cloud-item:hover { color: var(--text); opacity: 1; }
.logo-cloud-item small {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- Cards (feature grid) ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  transition: all 0.3s var(--ease-out);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-lift);
}
.card .card-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--accent-soft);
  color: var(--accent-hi);
  transition: transform 0.3s var(--ease-spring);
}
.card:hover .card-icon { transform: scale(1.1) rotate(-3deg); }
.card .card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14px; line-height: 1.6; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-hi);
  transition: gap 0.2s;
}
.card .card-link:hover { gap: 10px; }

/* ---------- Feature showcase (alternating) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0;
}
.feature-row.reverse .feature-text { order: 2; }
.feature-text h2 { margin-bottom: 20px; }
.feature-text .lead { margin-bottom: 32px; }
.feature-checklist {
  list-style: none;
  display: grid;
  gap: 14px;
}
.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-muted);
}
.feature-checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237B6FF0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}
.feature-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}

/* ---------- Browser frame for visuals ---------- */
.browser-frame {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transform: perspective(1200px) rotateX(2deg) rotateY(-3deg);
  transition: transform 0.4s var(--ease-out);
}
.feature-row:hover .browser-frame { transform: perspective(1200px) rotateX(0deg) rotateY(0deg); }
.browser-frame-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.browser-frame-dots { display: flex; gap: 6px; }
.browser-frame-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ff6057;
}
.browser-frame-dots span:nth-child(2) { background: #ffbd2e; }
.browser-frame-dots span:nth-child(3) { background: #28c840; }
.browser-frame-url {
  flex: 1;
  font-size: 11px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
  background: var(--surface);
  padding: 4px 12px;
  border-radius: var(--r-sm);
  max-width: 320px;
  margin: 0 auto;
}
.browser-frame-body { padding: 24px; min-height: 320px; }

/* ---------- AI chat panel ---------- */
.ai-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hi);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lift);
}
.ai-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.ai-msg .ai-av {
  width: 28px; height: 28px;
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: var(--accent);
  color: white;
}
.ai-msg.user .ai-av { background: var(--surface-hi); color: var(--text); border: 1px solid var(--border); }
.ai-msg .ai-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  max-width: 90%;
}
.ai-msg.user .ai-bubble { background: var(--accent-soft); border-color: rgba(85, 70, 227, 0.25); }
.ai-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.ai-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typing 1.2s var(--ease-in-out) infinite;
}
.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}
.ai-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding-left: 38px;
}
.ai-chip {
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0;
  animation: chip-in 0.4s var(--ease-out) forwards;
}
.ai-chip:nth-child(1) { animation-delay: 4.2s; }
.ai-chip:nth-child(2) { animation-delay: 4.4s; }
.ai-chip:nth-child(3) { animation-delay: 4.6s; }
.ai-chip:hover { background: var(--accent-hi); }
@keyframes chip-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.testimonial {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  transition: all 0.3s var(--ease-out);
}
.testimonial:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}
.testimonial .stars {
  display: inline-flex;
  gap: 2px;
  color: #facc15;
  font-size: 14px;
  margin-bottom: 16px;
}
.testimonial blockquote {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 20px;
  font-weight: 500;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-author .av {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 14px;
}
.testimonial-author .info { display: flex; flex-direction: column; }
.testimonial-author .name { font-size: 14px; font-weight: 600; color: var(--text); }
.testimonial-author .role { font-size: 12px; color: var(--text-dim); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}
.price-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s var(--ease-out);
}
.price-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hi);
  box-shadow: var(--shadow-lift);
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(85, 70, 227, 0.06) 0%, var(--bg-elevated) 50%);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px -20px rgba(85, 70, 227, 0.4);
  transform: scale(1.03);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.price-card .badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 24px -4px var(--accent-glow);
}
.price-card .tier-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.price-card .tier-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}
.price-card .tier-price .amount {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.price-card .tier-price .unit { font-size: 15px; color: var(--text-muted); }
.price-card .tier-desc {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 24px;
  min-height: 40px;
}
.price-card ul {
  list-style: none;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}
.price-card li::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%237B6FF0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}
.price-card li.muted { color: var(--text-faint); }
.price-card li.muted::before {
  background: var(--surface);
  background-image: none;
}

/* ---------- Final CTA ---------- */
.cta-band {
  position: relative;
  padding: 120px 24px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-aurora);
  filter: blur(100px);
  opacity: 0.6;
  z-index: 0;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lead { max-width: 520px; margin: 0 auto 32px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px 24px;
  transition: border-color 0.2s;
}
.faq details:hover { border-color: var(--border-hi); }
.faq details[open] { border-color: var(--accent-soft); }
.faq summary {
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  font-weight: 300;
  transition: transform 0.2s var(--ease-out);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  padding: 80px 0 32px;
  border-top: 1px solid var(--border);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand { max-width: 320px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.2s;
}
.footer-socials a:hover {
  background: var(--accent-soft);
  color: var(--accent-hi);
  border-color: rgba(85, 70, 227, 0.3);
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .right { display: flex; align-items: center; gap: 16px; }
.theme-toggle {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.theme-toggle:hover { background: var(--surface-hi); color: var(--text); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-faint); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert {
  padding: 14px 18px;
  border-radius: var(--r-md);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-success { background: rgba(34, 197, 94, 0.1); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.3); }
.alert-error   { background: rgba(239, 68, 68, 0.1);  color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }

/* ---------- Steps (3-step process) ---------- */
.steps { counter-reset: step; }
.step {
  text-align: left;
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 0.3s var(--ease-out);
  position: relative;
}
.step:hover { transform: translateY(-4px); border-color: var(--accent-soft); }
.step .num {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--grad-primary);
  color: white;
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 24px -4px var(--accent-glow);
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; }

/* ---------- Changelog timeline ---------- */
.changelog-filters {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  width: fit-content;
}
.changelog-filters button {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: all 0.2s;
}
.changelog-filters button.active {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.changelog-timeline {
  position: relative;
  padding-left: 32px;
}
.changelog-timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px; bottom: 8px;
  width: 1px;
  background: var(--border);
}
.changelog-entry {
  position: relative;
  margin-bottom: 48px;
}
.changelog-entry::before {
  content: '';
  position: absolute;
  left: -28px; top: 12px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}
.changelog-entry.major::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.changelog-version {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.changelog-version .ver {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.changelog-version .tag {
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent-hi);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.changelog-version .tag.minor { background: var(--surface-hi); color: var(--text-muted); }
.changelog-version .tag.fix   { background: rgba(34, 197, 94, 0.12); color: var(--success); }
.changelog-version .date {
  font-size: 12px;
  color: var(--text-dim);
  margin-left: auto;
}
.changelog-entry h3 { font-size: 18px; margin-bottom: 8px; }
.changelog-entry p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.changelog-list {
  list-style: none;
  display: grid;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.changelog-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.changelog-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-hi);
  margin-top: 7px;
  flex-shrink: 0;
}
.changelog-list li.added    { color: var(--text); }
.changelog-list li.added::before { background: var(--success); }
.changelog-list li.changed::before { background: var(--warning); }
.changelog-list li.fixed::before   { background: var(--cyan); }

/* ---------- Docs layout ---------- */
.docs-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: flex-start;
}
.docs-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 16px;
}
.docs-nav-group { margin-bottom: 24px; }
.docs-nav-group h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.docs-nav-group ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.docs-nav-group a {
  display: block;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-muted);
  border-radius: var(--r-sm);
  transition: all 0.15s;
}
.docs-nav-group a:hover, .docs-nav-group a.active {
  background: var(--surface);
  color: var(--text);
}
.docs-content { max-width: 760px; }
.docs-content h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.docs-content h2 { font-size: 24px; margin: 40px 0 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.docs-content h3 { font-size: 18px; margin: 24px 0 12px; }
.docs-content p { margin-bottom: 16px; color: var(--text-muted); }
.docs-content ul, .docs-content ol { padding-left: 24px; margin-bottom: 16px; color: var(--text-muted); }
.docs-content li { margin-bottom: 8px; }
.docs-content code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  padding: 2px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent-hi);
}
.docs-content pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 16px;
}
.docs-content pre code {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}
.docs-content .callout {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(85, 70, 227, 0.3);
  border-radius: var(--r-md);
  margin: 20px 0;
  font-size: 14px;
  color: var(--text);
}
.docs-content .callout .ic { color: var(--accent-hi); flex-shrink: 0; }

/* ---------- API page ---------- */
.api-endpoint {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.api-endpoint-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.api-endpoint-head:hover { background: var(--surface); }
.api-method {
  padding: 3px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.api-method.get    { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.api-method.post   { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.api-method.put    { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.api-method.delete { background: rgba(239, 68, 68, 0.15);  color: #fca5a5; }
.api-endpoint .path {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.api-endpoint-body {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: none;
}
.api-endpoint.open .api-endpoint-body { display: block; }
.api-endpoint-body h5 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin: 16px 0 8px;
  font-weight: 600;
}
.api-endpoint-body h5:first-child { margin-top: 0; }

/* ---------- Legal page ---------- */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 8px; }
.legal-content .updated { font-size: 13px; color: var(--text-dim); margin-bottom: 40px; }
.legal-content h2 { font-size: 22px; margin: 40px 0 12px; padding-top: 24px; border-top: 1px solid var(--border); }
.legal-content h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 14px; }
.legal-content ul { padding-left: 24px; }

/* ---------- Use case (alternating) ---------- */
.use-case {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}
.use-case:first-of-type { border-top: 0; }
.use-case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.use-case.reverse .use-case-text { order: 2; }

/* ---------- Status indicators ---------- */
.status-list { display: flex; flex-direction: column; gap: 12px; }
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.status-row .left { display: flex; align-items: center; gap: 12px; }
.status-row .name { font-size: 14px; font-weight: 500; }
.status-row .indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.status-row .indicator .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 var(--success);
  animation: dot-pulse 2.5s infinite;
  --pulse-color: var(--success);
}
.status-row .indicator.degraded .dot { background: var(--warning); }
.status-row .indicator.down .dot { background: var(--danger); }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal[data-d="1"] { transition-delay: 100ms; }
.reveal[data-d="2"] { transition-delay: 200ms; }
.reveal[data-d="3"] { transition-delay: 300ms; }
.reveal[data-d="4"] { transition-delay: 400ms; }
.reveal[data-d="5"] { transition-delay: 500ms; }

/* ---------- Page header (sub-pages) ---------- */
.page-header {
  padding: 140px 0 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(circle, rgba(85, 70, 227, 0.25), transparent 60%);
  filter: blur(60px);
  z-index: 0;
}
.page-header > * { position: relative; z-index: 1; }
.page-header h1 { margin-bottom: 16px; }
.page-header .lead { max-width: 620px; margin: 0 auto; }

/* ---------- Utility tweaks ---------- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 64px 0;
}
.text-balance { text-wrap: balance; }
.no-wrap { white-space: nowrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: span 4; margin-bottom: 16px; }
}
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .feature-row.reverse,
  .use-case-grid, .use-case.reverse { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse .feature-text, .use-case.reverse .use-case-text { order: 0; }
  .testimonials { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .price-card.featured { transform: scale(1); }
  .price-card.featured:hover { transform: translateY(-4px); }
  .docs-layout { grid-template-columns: 1fr; gap: 32px; }
  .docs-sidebar { position: static; max-height: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .dashboard-mockup { margin-top: 60px; }
  .dashboard-body { height: 380px; }
  .kanban { gap: 8px; }
}
@media (max-width: 720px) {
  .nav-burger { display: inline-flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform 0.3s var(--ease-out);
    gap: 4px;
    align-items: flex-start;
  }
  .nav-toggle:checked ~ .main-nav { transform: translateY(0); }
  .main-nav > a { padding: 12px 14px; font-size: 16px; }
  .main-nav > a::after { display: none; }
  .nav-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 16px; }
  .nav-actions .btn { width: 100%; }

  .hero { padding: 110px 0 60px; }
  .hero h1 { font-size: clamp(34px, 9vw, 56px); }
  .section, .section-lg { padding: 64px 0; }
  .section-title { margin-bottom: 40px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .dashboard-mockup { margin-top: 40px; }
  .dashboard-body { height: 320px; }
  .kanban-col { padding: 8px; }
  .task-card { font-size: 11px; padding: 8px; }
  .mockup-tooltip { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { grid-column: span 1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .form-card { padding: 24px; }
  .browser-frame-body { padding: 16px; min-height: 220px; }
  .feature-row, .use-case-grid { padding: 40px 0; }
  .pricing-grid { gap: 16px; }
  .price-card { padding: 28px 22px; }
  .price-card .tier-price .amount { font-size: 44px; }
  .cta-band { padding: 80px 24px; }
  .page-header { padding: 110px 0 32px; }
}
@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 20px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .dashboard-side-trash, .dashboard-search { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-up { opacity: 1; transform: none; filter: none; }
  .dashboard-scene { animation: none; opacity: 1; transform: none; }
  .task-card { animation: none; opacity: 1; }
  .mockup-tooltip { animation: none; opacity: 1; }
  .ai-chip { animation: none; opacity: 1; }
  .aurora-bg::before, .cta-band::before { filter: blur(60px); }
}
