/* ============ TCCFlow — Aurora Editorial ============ */
:root {
  /* Brand */
  --violet:    #7c3aed;
  --violet-2:  #8b5cf6;
  --violet-dk: #6d28d9;
  --cyan:      #06b6d4;
  --teal:      #14b8a6;
  --emerald:   #10b981;
  --amber:     #f59e0b;
  --rose:      #f43f5e;
  --blue:      #3b82f6;
  --orange:    #f97316;

  /* Light canvas */
  --bg:        #fafaf7;
  --bg-2:      #f3f2ec;
  --paper:     #ffffff;
  --ink:       #0f0d1e;
  --ink-2:     #2a2540;
  --muted:     #6b6480;
  --line:      #e7e3d8;
  --line-2:    #d9d4c4;

  --grad: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,58,237,.08), rgba(6,182,212,.08));

  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(15,13,30,.04), 0 1px 1px rgba(15,13,30,.03);
  --shadow:    0 10px 30px -12px rgba(15,13,30,.12), 0 4px 12px -6px rgba(15,13,30,.08);
  --shadow-lg: 0 30px 80px -30px rgba(15,13,30,.25), 0 10px 30px -15px rgba(124,58,237,.15);

  --font-display: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --font-body: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

[data-theme="dark"] {
  --bg:        #0a0818;
  --bg-2:      #120f24;
  --paper:     #15112a;
  --ink:       #f5f3ff;
  --ink-2:     #d8d3f0;
  --muted:     #9189ad;
  --line:      #251f40;
  --line-2:    #332a55;
  --shadow:    0 10px 30px -12px rgba(0,0,0,.5), 0 4px 12px -6px rgba(124,58,237,.25);
  --shadow-lg: 0 30px 80px -30px rgba(0,0,0,.7), 0 10px 30px -15px rgba(124,58,237,.35);
}

[data-accent="mono"] {
  --violet: #1a1430;
  --violet-2: #2a2350;
  --cyan: #5c5580;
  --grad: linear-gradient(135deg, #1a1430 0%, #5c5580 100%);
}
[data-accent="sunset"] {
  --violet: #ec4899;
  --violet-2: #f472b6;
  --cyan: #f97316;
  --grad: linear-gradient(135deg, #ec4899 0%, #f97316 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .4s, color .4s;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--violet); color: white; }

/* ============ Typography ============ */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.display em, .display i { font-style: italic; }
.mono { font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: .5;
}

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

/* ============ Layout ============ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
section { position: relative; }

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.brand img { width: 28px; height: 28px; }
.brand .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet);
  margin-left: 2px;
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.nav-links a { position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a:hover { color: var(--violet); }
.nav-cta {
  display: flex; align-items: center; gap: 10px;
}
@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .25s cubic-bezier(.2,.9,.3,1.2), background .2s, color .2s, box-shadow .25s;
  will-change: transform;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 6px 20px -8px rgba(15,13,30,.35);
}
.btn-primary:hover {
  background: var(--violet);
  box-shadow: 0 6px 24px -6px rgba(124,58,237,.5);
  color: #fff;
}
.btn-primary .arrow { transition: transform .3s; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px 16px;
}
.btn-ghost:hover { background: var(--bg-2); }

.btn-glass {
  background: color-mix(in srgb, var(--paper) 70%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-glass:hover { border-color: var(--violet); }

/* ============ Cursor blob ============ */
.cursor-blob {
  position: fixed;
  top: 0; left: 0;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124,58,237,.22), rgba(6,182,212,.15) 50%, transparent 75%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: blur(20px);
  mix-blend-mode: multiply;
  transition: opacity .4s;
  opacity: 0;
}
.cursor-blob.active { opacity: 1; }
[data-theme="dark"] .cursor-blob { mix-blend-mode: screen; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 60px 0 120px;
  overflow: hidden;
  z-index: 2;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 30%, transparent 75%);
  opacity: .5;
  z-index: 0;
  pointer-events: none;
}

/* Editorial hero */
.hero-editorial {
  position: relative;
  z-index: 2;
  padding-top: 40px;
}
.hero-eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-title {
  font-size: clamp(3.2rem, 9.2vw, 8.5rem);
  max-width: 14ch;
  margin: 0 0 40px;
  position: relative;
}
.hero-title .swap {
  display: inline-block;
  position: relative;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero-title .underline-draw {
  position: absolute;
  left: -2px; right: -2px;
  bottom: -6px;
  height: 12px;
  overflow: visible;
  pointer-events: none;
}
.hero-sub-row {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}
.hero-sub {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 52ch;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.8;
}
.hero-meta span { color: var(--ink); }
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 72px;
}
.hero-ctas .trust {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 12px;
}

/* product preview card */
.hero-preview {
  position: relative;
  margin-top: 24px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1800px) rotateX(3deg);
  transform-origin: top center;
  transition: transform .6s cubic-bezier(.2,.9,.3,1);
}
.hero-preview:hover { transform: perspective(1800px) rotateX(1deg); }
.preview-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.preview-chrome .dots { display: flex; gap: 6px; }
.preview-chrome .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-2);
}
.preview-chrome .url {
  margin-left: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--paper);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  flex: 1;
  max-width: 360px;
}

/* Manifesto hero variant */
.hero-manifesto {
  padding: 80px 0 140px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-manifesto .manifest-title {
  font-size: clamp(3rem, 8vw, 7rem);
  max-width: 18ch;
  margin: 0 auto 48px;
  line-height: 1;
}
.hero-manifesto .manifest-title em { color: var(--violet); font-style: italic; }

/* Product-first hero */
.hero-product {
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero-product .prod-title {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  max-width: 16ch;
  margin: 16px auto 24px;
}
.hero-product .prod-sub {
  max-width: 46ch;
  margin: 0 auto 36px;
  color: var(--ink-2);
  font-size: 1.125rem;
}

/* ============ Running ticker ============ */
.ticker {
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  z-index: 2;
  background: var(--bg);
}
.ticker-track {
  display: flex;
  gap: 72px;
  animation: ticker 48s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.875rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ticker-item .pin {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--violet);
}
.ticker-item:nth-child(4n) .pin { background: var(--cyan); }
.ticker-item:nth-child(4n+1) .pin { background: var(--emerald); }
.ticker-item:nth-child(4n+2) .pin { background: var(--amber); }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ HOW IT WORKS ============ */
.how {
  padding: 140px 0;
  background: var(--bg);
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1;
  margin: 16px 0 0;
  letter-spacing: -0.02em;
}
.section-head h2 em { font-style: italic; color: var(--violet); }
.section-head .desc {
  color: var(--ink-2);
  font-size: 1.0625rem;
  max-width: 48ch;
}
@media (max-width: 820px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

.trail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
}
.trail::before {
  content: "";
  position: absolute;
  top: 92px; left: 4%; right: 4%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--line-2) 0 6px, transparent 6px 14px);
  z-index: 0;
}
.step {
  position: relative;
  padding: 0 8px;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--ink);
  position: relative;
  z-index: 1;
  margin: 0 auto 28px;
  transition: all .4s cubic-bezier(.2,.9,.3,1);
}
.step:hover .step-num {
  background: var(--grad);
  color: white;
  border-color: transparent;
  transform: scale(1.1);
  box-shadow: 0 10px 24px -10px rgba(124,58,237,.5);
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  text-align: center;
}
.step p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.55;
  text-align: center;
}
@media (max-width: 820px) {
  .trail { grid-template-columns: 1fr 1fr; }
  .trail::before { display: none; }
}

/* ============ FEATURES ============ */
.features {
  padding: 140px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: 16px;
}
.feat {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.9,.3,1), box-shadow .4s, border-color .3s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feat h3 {
  font-family: var(--font-display);
  font-size: 1.875rem;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.feat p {
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin: 0;
}
.feat .feat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 16px;
}
.feat-big { grid-column: span 4; grid-row: span 2; }
.feat-tall { grid-column: span 2; grid-row: span 2; }
.feat-wide { grid-column: span 4; }
.feat-sm { grid-column: span 2; }

@media (max-width: 980px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-big, .feat-tall, .feat-wide, .feat-sm { grid-column: span 2; grid-row: auto; }
}

/* Illustration canvases inside feature cards */
.feat-illus {
  position: relative;
  margin-top: 20px;
  height: 180px;
  border-radius: 14px;
  background: var(--bg-2);
  overflow: hidden;
  border: 1px solid var(--line);
}

/* Gantt mini */
.gantt-mini { padding: 14px; display: flex; flex-direction: column; gap: 8px; height: 100%; }
.gantt-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; }
.gantt-row .lbl {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--muted);
  text-transform: uppercase;
}
.gantt-row .bar {
  height: 14px;
  border-radius: 4px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.gantt-row .bar::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 4px;
  background: var(--grad);
}
.gantt-row.r1 .bar::before { left: 5%; width: 40%; }
.gantt-row.r2 .bar::before { left: 20%; width: 55%; background: linear-gradient(90deg, var(--cyan), var(--teal)); }
.gantt-row.r3 .bar::before { left: 40%; width: 30%; background: linear-gradient(90deg, var(--emerald), var(--cyan)); }
.gantt-row.r4 .bar::before { left: 55%; width: 35%; background: linear-gradient(90deg, var(--amber), var(--rose)); }
.gantt-row.r5 .bar::before { left: 70%; width: 25%; background: linear-gradient(90deg, var(--violet-2), var(--violet)); }

/* Avatar stack */
.avatars { display: flex; }
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  margin-left: -10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
}
.avatar:first-child { margin-left: 0; }
.avatar.c1 { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.avatar.c2 { background: linear-gradient(135deg, #06b6d4, #14b8a6); }
.avatar.c3 { background: linear-gradient(135deg, #f59e0b, #f97316); }
.avatar.c4 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.avatar.c5 { background: linear-gradient(135deg, #f43f5e, #ec4899); }

/* Chat card */
.chat-bubbles { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bubble {
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.8125rem;
  max-width: 80%;
  line-height: 1.35;
}
.bubble.them {
  background: var(--bg-2);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.bubble.me {
  background: var(--grad);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.bubble .who {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: .7;
  display: block;
  margin-bottom: 2px;
}

/* AI Card */
.ai-card {
  padding: 16px;
  background: linear-gradient(135deg, rgba(124,58,237,.06), rgba(6,182,212,.06));
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-prompt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.ai-response {
  font-size: 0.8125rem;
  color: var(--ink);
  line-height: 1.45;
  padding: 10px 12px;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--line);
  position: relative;
}
.ai-response::before {
  content: "✨";
  position: absolute;
  top: -6px; left: -6px;
  background: var(--violet);
  color: white;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.625rem;
}

/* Calendar mini */
.cal-mini {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-day {
  aspect-ratio: 1;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
}
.cal-day.head { border: none; background: transparent; color: var(--muted); font-size: 0.625rem; text-transform: uppercase; }
.cal-day.active { background: var(--grad); color: white; border-color: transparent; font-weight: 600; }
.cal-day.has-event::after {
  content: ""; position: absolute; bottom: 3px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--violet);
}
.cal-day.has-event.c { background-color: transparent; }
.cal-day.has-event:nth-child(5)::after { background: var(--cyan); }
.cal-day.has-event:nth-child(12)::after { background: var(--amber); }

/* ============ DEMO ============ */
.demo {
  padding: 140px 0;
  background: var(--bg);
}
.demo-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.demo-tabs {
  display: flex;
  gap: 6px;
  padding: 14px 14px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  flex-wrap: wrap;
}
.demo-tab {
  padding: 10px 18px;
  font-size: 0.875rem;
  color: var(--muted);
  border-radius: 10px 10px 0 0;
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
  transition: color .2s, background .2s;
  position: relative;
  bottom: -1px;
}
.demo-tab.active {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom-color: var(--paper);
}
.demo-tab:hover:not(.active) { color: var(--ink); }
.demo-body { padding: 32px; min-height: 520px; }

/* Kanban */
.kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.kanban-col {
  background: var(--bg-2);
  border-radius: 14px;
  padding: 14px;
  min-height: 440px;
}
.kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 4px;
}
.kanban-col-head .title {
  font-size: 0.8125rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.kanban-col-head .title .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.kanban-col[data-col="todo"] .title .dot { background: var(--slate, #94a3b8); }
.kanban-col[data-col="doing"] .title .dot { background: var(--blue); }
.kanban-col[data-col="review"] .title .dot { background: var(--amber); }
.kanban-col[data-col="done"] .title .dot { background: var(--emerald); }
.kanban-col-head .count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--paper);
  padding: 2px 8px;
  border-radius: 999px;
}
.kanban-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 10px;
  cursor: grab;
  transition: transform .2s, box-shadow .2s;
  user-select: none;
}
.kanban-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.kanban-card:active { cursor: grabbing; }
.kanban-card .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.tag-pesquisa { background: rgba(6,182,212,.12); color: var(--cyan); }
.tag-escrita { background: rgba(124,58,237,.12); color: var(--violet); }
.tag-revisao { background: rgba(245,158,11,.14); color: var(--amber); }
.tag-urgente { background: rgba(244,63,94,.12); color: var(--rose); }
.tag-reuniao { background: rgba(16,185,129,.12); color: var(--emerald); }
.kanban-card .title {
  font-size: 0.875rem;
  line-height: 1.35;
  margin-bottom: 10px;
  font-weight: 500;
}
.kanban-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
}
.kanban-card .meta .avatars .avatar { width: 22px; height: 22px; font-size: 0.625rem; margin-left: -6px; }

.demo-note {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* Timeline demo */
.timeline {
  position: relative;
  padding: 10px 0;
}
.timeline-grid {
  display: grid;
  grid-template-columns: 180px repeat(12, 1fr);
  gap: 2px;
  align-items: center;
}
.timeline-grid.head {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}
.timeline-grid.head .wk { text-align: center; }
.timeline-row .task-name {
  font-size: 0.875rem;
  font-weight: 500;
  padding-right: 12px;
}
.timeline-row .task-name small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.timeline-row {
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  min-height: 56px;
  align-items: center;
}
.timeline-row:last-child { border: none; }
.timeline-cell {
  height: 32px;
  position: relative;
}
.timeline-bar {
  position: absolute;
  top: 4px; bottom: 4px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: white;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-weight: 500;
  overflow: hidden;
  transition: filter .2s;
  cursor: pointer;
}
.timeline-bar:hover { filter: brightness(1.1); }

/* Chat demo */
.chat-demo {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  height: 480px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.chat-sidebar {
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 16px 10px;
  overflow-y: auto;
}
.chat-channel {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--ink-2);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.chat-channel .hash { color: var(--muted); margin-right: 6px; }
.chat-channel:hover { background: var(--paper); }
.chat-channel.active { background: var(--grad); color: white; }
.chat-channel.active .hash { color: rgba(255,255,255,.7); }
.chat-channel .unread {
  background: var(--rose);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 600;
}
.chat-channel.active .unread { background: rgba(255,255,255,.25); }

.chat-main {
  display: flex;
  flex-direction: column;
  background: var(--paper);
}
.chat-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.chat-head small {
  font-weight: 400;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}
.chat-messages {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}
.chat-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.chat-msg .avatar { flex-shrink: 0; }
.chat-msg .body { flex: 1; }
.chat-msg .who {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-right: 6px;
}
.chat-msg .time {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
}
.chat-msg .text {
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 2px;
}
.chat-msg.ai {
  background: linear-gradient(135deg, rgba(124,58,237,.04), rgba(6,182,212,.04));
  padding: 12px;
  border-radius: 12px;
  margin: 0 -12px;
}
.chat-msg.ai .who { color: var(--violet); }
.chat-input {
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  display: flex; gap: 10px;
  align-items: center;
}
.chat-input input {
  flex: 1;
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 10px;
  color: var(--ink);
  outline: none;
}
.chat-input input:focus { border-color: var(--violet); background: var(--paper); }
.chat-input .send {
  background: var(--grad);
  color: white;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

/* AI demo */
.ai-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  min-height: 440px;
}
.ai-side {
  background: var(--bg-2);
  border-radius: 14px;
  padding: 20px;
  border: 1px solid var(--line);
}
.ai-side h4 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 500;
}
.ai-doc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-2);
  min-height: 300px;
}
.ai-doc h5 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 400;
}
.ai-doc p { margin: 0 0 10px; }
.ai-doc .highlight {
  background: linear-gradient(180deg, transparent 55%, rgba(245,158,11,.35) 55%);
  padding: 0 2px;
}
.ai-side.output {
  background: linear-gradient(180deg, rgba(124,58,237,.05), rgba(6,182,212,.05));
}
.ai-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 16px;
}
.ai-btn {
  padding: 10px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--ink-2);
  text-align: left;
  display: flex; align-items: center; gap: 10px;
  transition: all .2s;
}
.ai-btn:hover {
  border-color: var(--violet);
  color: var(--ink);
  transform: translateX(2px);
}
.ai-btn .emoji { font-size: 1rem; }
.ai-btn.active {
  background: var(--grad);
  color: white;
  border-color: transparent;
}
.ai-output-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ink-2);
  min-height: 220px;
  position: relative;
}
.ai-output-box .typing::after {
  content: "▊";
  animation: blink 1s infinite;
  color: var(--violet);
}
@keyframes blink { 50% { opacity: 0; } }

@media (max-width: 820px) {
  .ai-demo, .chat-demo { grid-template-columns: 1fr; height: auto; }
  .kanban { grid-template-columns: 1fr 1fr; }
  .timeline-grid { grid-template-columns: 100px repeat(12, 1fr); font-size: 0.625rem; }
  .timeline-row .task-name { font-size: 0.75rem; }
}

/* ============ PERSONAS ============ */
.personas {
  padding: 140px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.persona-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.9,.3,1), border-color .3s;
}
.persona-card:hover { transform: translateY(-6px); border-color: var(--violet); }
.persona-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--grad);
  opacity: 0;
  filter: blur(40px);
  transition: opacity .4s;
}
.persona-card:hover::before { opacity: .25; }
.persona-card .role {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 12px;
}
.persona-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.persona-card .bio {
  font-size: 0.9375rem;
  color: var(--ink-2);
  margin-bottom: 20px;
  line-height: 1.5;
}
.persona-card .pains {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.8125rem;
}
.persona-card .pains li {
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--ink-2);
  border-top: 1px dashed var(--line);
}
.persona-card .pains li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--violet);
  font-weight: 600;
}
.persona-card .persona-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.35;
  color: var(--ink);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  position: relative;
}
.persona-card .persona-quote::before {
  content: "“";
  font-size: 3rem;
  position: absolute;
  top: 6px; left: -4px;
  color: var(--violet);
  line-height: 1;
  opacity: .3;
}
@media (max-width: 980px) {
  .persona-grid { grid-template-columns: 1fr; }
}

/* ============ PRICING ============ */
.pricing { padding: 140px 0; background: var(--bg); }
.price-toggle {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin: 24px 0 48px;
  position: relative;
}
.price-toggle button {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 999px;
  color: var(--muted);
  transition: color .2s;
  position: relative;
  z-index: 1;
}
.price-toggle button.active { color: var(--ink); }
.price-toggle .slider {
  position: absolute;
  top: 4px; bottom: 4px;
  background: var(--paper);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.9,.3,1), width .35s;
}
.price-toggle .savings {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  background: var(--emerald);
  color: white;
  padding: 1px 6px;
  border-radius: 999px;
  vertical-align: middle;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.highlight {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  position: relative;
}
[data-theme="dark"] .price-card.highlight { background: var(--grad); color: white; border: none; }
.price-card.highlight .price-name { color: white; }
.price-card.highlight .price-sub { color: rgba(255,255,255,.7); }
.price-card.highlight .price-feat li { color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.12); }
.price-card.highlight .price-feat li::before { color: var(--cyan); }
.price-card.highlight .btn-primary { background: white; color: var(--ink); }
.price-card.highlight .btn-primary:hover { background: var(--cyan); color: var(--ink); }
.price-card .popular {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--grad);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.price-name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.price-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 24px;
  min-height: 40px;
}
.price-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  font-family: var(--font-display);
}
.price-value .amount {
  font-size: 3.75rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.price-value .currency { font-size: 1.25rem; color: var(--muted); }
.price-value .period { font-size: 0.9375rem; color: var(--muted); font-family: var(--font-body); }
.price-feat {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
  font-size: 0.875rem;
}
.price-feat li {
  padding: 10px 0 10px 24px;
  position: relative;
  border-top: 1px dashed var(--line);
  color: var(--ink-2);
  line-height: 1.4;
}
.price-feat li:last-child { border-bottom: 1px dashed var(--line); }
.price-feat li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 10px;
  color: var(--violet);
  font-weight: 700;
}
.price-feat li.off { color: var(--muted); text-decoration: line-through; opacity: .6; }
.price-feat li.off::before { content: "–"; color: var(--muted); }

@media (max-width: 980px) { .price-grid { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
.faq-section { padding: 140px 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.faq-list { max-width: 860px; margin: 60px auto 0; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 8px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.faq-q:hover { color: var(--violet); }
.faq-q .plus {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-family: var(--font-body);
  transition: transform .4s cubic-bezier(.2,.9,.3,1), background .2s, color .2s;
}
.faq-item.open .faq-q .plus {
  transform: rotate(45deg);
  background: var(--violet);
  color: white;
  border-color: var(--violet);
}
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .5s cubic-bezier(.2,.9,.3,1);
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner {
  padding: 0 8px 28px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
  max-width: 70ch;
}

/* ============ CTA Final ============ */
.cta-final {
  padding: 160px 0 180px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-final::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 800px; height: 800px;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(140px);
  opacity: .18;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  margin: 0 0 32px;
  max-width: 16ch;
  margin-inline: auto;
  letter-spacing: -0.02em;
  position: relative;
}
.cta-final h2 em { color: var(--violet); font-style: italic; }
.cta-final .ctas { display: inline-flex; gap: 14px; position: relative; flex-wrap: wrap; justify-content: center; }

/* ============ Footer ============ */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.875rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.footer-brand h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 12px 0 8px;
  letter-spacing: -0.01em;
}
.footer-brand p { color: var(--muted); max-width: 40ch; }
.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink-2); transition: color .2s; }
.footer-col a:hover { color: var(--violet); }
.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.2,.9,.3,1), transform .7s cubic-bezier(.2,.9,.3,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ============ Tweaks panel ============ */
.tweaks {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 100;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  width: 280px;
  font-size: 0.8125rem;
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: all .3s cubic-bezier(.2,.9,.3,1);
}
.tweaks.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.tweaks h4 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tweaks h4 .close {
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink-2);
}
.tweak-row {
  margin-bottom: 14px;
}
.tweak-row:last-child { margin-bottom: 0; }
.tweak-row .lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.tweak-opts {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  background: var(--bg-2);
  padding: 3px;
  border-radius: 10px;
}
.tweak-opts button {
  padding: 7px 6px;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 7px;
  color: var(--muted);
  transition: all .2s;
}
.tweak-opts button.on {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.tweak-switch {
  display: flex; justify-content: space-between; align-items: center;
}
.switch {
  width: 36px; height: 20px;
  background: var(--line-2);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background .2s;
}
.switch::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: white;
  border-radius: 50%;
  transition: transform .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch.on { background: var(--violet); }
.switch.on::after { transform: translateX(16px); }
