/* ── HOMEPAGE SPECIFIC STYLES ──────────────────────── */

/* ── HERO SECTION ──────────────────────────────────── */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(59,130,246,0.12) 0%, rgba(1,226,165,0.06) 50%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-700);
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-500);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

h1.hero-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(48px, 5.5vw, 80px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto 24px;
  animation: fadeUp 0.6s ease 0.1s both;
}

h1.hero-title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-3);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.7;
  font-weight: 400;
  animation: fadeUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 64px;
  animation: fadeUp 0.6s ease 0.3s both;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--brand-600);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 2px rgba(4,118,255,0.2), 0 4px 16px rgba(4,118,255,0.15);
}
.btn-lg:hover { background: var(--brand-700); transform: translateY(-2px); box-shadow: 0 4px 24px rgba(4,118,255,0.3); }

.btn-lg-ghost {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-lg-ghost:hover { background: var(--surface-2); transform: translateY(-1px); }

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-4);
  animation: fadeUp 0.6s ease 0.35s both;
}

.hero-trust span { color: var(--ink-3); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── DASHBOARD PREVIEW ─────────────────────────────── */
.dashboard-preview {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  animation: fadeUp 0.8s ease 0.4s both;
}

.browser-chrome {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 14px 14px 0 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: none;
}

.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-2);
}
.browser-dots span:nth-child(1) { background: #FC615D; }
.browser-dots span:nth-child(2) { background: #FDBC40; }
.browser-dots span:nth-child(3) { background: #34C749; }

.browser-url {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 5px 12px;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  color: var(--ink-4);
}

.dashboard-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(15,23,42,0.12);
}

.dash-inner {
  display: flex;
  height: 520px;
}

/* Dashboard sidebar */
.dash-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: var(--ink-2);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}

.dash-logo-area {
  padding: 0 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-logo-icon { display: flex; align-items: center; }

.dash-logo-text {
  font-family: 'Merriweather', serif;
  font-size: 13px;
  color: #fff;
}

.dash-nav-item {
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 0;
}
.dash-nav-item:hover { color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.05); }
.dash-nav-item.active {
  color: #fff;
  background: rgba(59,130,246,0.2);
  border-right: 2px solid var(--brand-500);
}

.dash-nav-section {
  padding: 16px 16px 4px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-icon { font-size: 16px; }

/* Dashboard main */
.dash-main {
  flex: 1;
  background: #F8FAFC;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-topbar {
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-topbar-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

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

.dash-pill {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: #D1FAE5;
  color: #065F46;
}

.dash-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: white;
  font-weight: 600;
}

.dash-content {
  flex: 1;
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* KPI Row */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.kpi-label {
  font-size: 12px;
  color: var(--ink-4);
  font-weight: 500;
  margin-bottom: 4px;
}

.kpi-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.kpi-change {
  font-size: 12px;
  font-weight: 600;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 3px;
}
.kpi-change.neg { color: #DC2626; }

/* Chart area */
.chart-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  flex: 1;
}

.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  overflow: hidden;
}

.chart-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chart-sub {
  font-size: 12px;
  color: var(--ink-4);
  font-weight: 400;
}

/* SVG chart mockup */
.sparkline { width: 100%; height: 110px; }

/* Table card */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.table-header-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 8px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.th {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table-data-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.table-data-row:last-child { border-bottom: none; }

.td { font-size: 14px; color: var(--ink-2); }
.td.keyword { font-weight: 500; }
.td.green { color: #059669; font-weight: 600; }
.td.red { color: #DC2626; font-weight: 600; }

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.status-dot::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
}

/* AI chat overlay */
.ai-chat-bubble {
  position: absolute;
  bottom: 80px;
  right: 30px;
  width: 260px;
  background: var(--ink);
  border-radius: 14px 14px 4px 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(10,15,30,0.4);
  animation: floatIn 1s ease 1.4s both;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.ai-label-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-400);
  animation: pulse 1.5s ease infinite;
}

.ai-text {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}

.ai-text strong { color: #fff; }

.ai-cta-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.ai-btn {
  padding: 5px 10px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  border: none;
}

.ai-btn-accept {
  background: var(--brand-600);
  color: #fff;
}

.ai-btn-dismiss {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

/* ── LOGOS SECTION ─────────────────────────────────── */
.logos-section {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.logos-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  padding: 0 40px;
}

.logo-placeholder {
  font-family: 'Merriweather', serif;
  font-size: 13px;
  color: var(--ink-4);
  letter-spacing: -0.02em;
}

/* Platform logo badges */
.platform-logos-row { gap: 12px; flex-wrap: wrap; justify-content: center; }
.platform-logo-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: all 0.2s;
}
.platform-logo-badge:hover {
  border-color: var(--brand-400);
  box-shadow: 0 2px 12px rgba(4,118,255,0.1);
  transform: translateY(-1px);
}

/* ── STATS BAR ─────────────────────────────────────── */
.stats-bar {
  padding: 64px 40px;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 32px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Merriweather', serif;
  font-size: 52px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.stat-num span { color: var(--brand-600); }

.stat-desc {
  font-size: 15px;
  color: var(--ink-3);
  max-width: 140px;
  margin: 0 auto;
  line-height: 1.4;
}

/* ── FEATURES GRID ─────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.feature-cell {
  background: var(--surface);
  padding: 32px;
  transition: background 0.2s;
}
.feature-cell:hover { background: var(--brand-50); }

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-cell:hover .feature-icon {
  background: var(--brand-600);
  border-color: var(--brand-600);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(4,118,255,0.25);
}

/* SVG icon base styles */
.feat-svg {
  width: 26px;
  height: 26px;
  overflow: visible;
}

.feat-svg .stroke {
  fill: none;
  stroke: var(--brand-600);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.feat-svg .fill-accent {
  fill: var(--brand-100);
  stroke: none;
  transition: fill 0.3s ease;
}

.feature-cell:hover .feat-svg .stroke {
  stroke: #fff;
}

.feature-cell:hover .feat-svg .fill-accent {
  fill: rgba(255,255,255,0.2);
}

.feature-cell:hover .icon-chat .dot1,
.feature-cell:hover .icon-chat .dot2,
.feature-cell:hover .icon-chat .dot3 {
  fill: #fff;
}

/* Draw-on animation */
.feat-svg .draw {
  fill: none;
  stroke: var(--brand-600);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke 0.3s ease;
}

.feature-cell:hover .feat-svg .draw {
  stroke: #fff;
  animation: drawOn 0.5s ease forwards;
}

@keyframes drawOn {
  to { stroke-dashoffset: 0; }
}

/* Individual icon animations */

/* Bid - arrow bounces */
.icon-bid .arrow-up {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: center bottom;
  transform-box: fill-box;
}
.feature-cell:hover .icon-bid .arrow-up {
  animation: arrowBounce 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes arrowBounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(-2px); }
}

/* Copy - pencil writes */
.icon-copy .pencil-tip {
  transform-origin: bottom right;
  transform-box: fill-box;
}
.feature-cell:hover .icon-copy .pencil-tip {
  animation: writeAnim 0.4s ease forwards;
}
@keyframes writeAnim {
  0%,100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(4deg); }
}

/* Chat - dots pulse */
.icon-chat .dot1 { animation: none; }
.icon-chat .dot2 { animation: none; }
.icon-chat .dot3 { animation: none; }
.feature-cell:hover .icon-chat .dot1 {
  animation: dotPulse 0.8s ease 0s infinite;
}
.feature-cell:hover .icon-chat .dot2 {
  animation: dotPulse 0.8s ease 0.15s infinite;
}
.feature-cell:hover .icon-chat .dot3 {
  animation: dotPulse 0.8s ease 0.3s infinite;
}
@keyframes dotPulse {
  0%,100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(1.8); opacity: 0.7; }
}

/* Competitor - eye pupil tracks */
.icon-competitor .pupil {
  transform-origin: center;
  transform-box: fill-box;
}
.feature-cell:hover .icon-competitor .pupil {
  animation: eyeScan 1.2s ease infinite;
}
@keyframes eyeScan {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
}

/* Attribution - nodes connect */
.icon-attrib .node {
  transform-origin: center;
  transform-box: fill-box;
}
.feature-cell:hover .icon-attrib .node {
  animation: nodePop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
.feature-cell:hover .icon-attrib .node:nth-child(2) { animation-delay: 0.08s; }
.feature-cell:hover .icon-attrib .node:nth-child(3) { animation-delay: 0.16s; }
@keyframes nodePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1.2); }
}

/* Shield - checkmark draws */
.icon-shield .check-mark {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}
.feature-cell:hover .icon-shield .check-mark {
  animation: checkDraw 0.4s ease 0.1s forwards;
}
@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

/* Profit - coin rises */
.icon-profit .coin {
  transform-origin: center;
  transform-box: fill-box;
}
.feature-cell:hover .icon-profit .coin {
  animation: coinRise 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes coinRise {
  0% { transform: translateY(0); }
  100% { transform: translateY(-3px); }
}

/* Agency - expand out */
.icon-agency .outer-ring {
  transform-origin: center;
  transform-box: fill-box;
}
.feature-cell:hover .icon-agency .outer-ring {
  animation: ringExpand 0.5s ease forwards;
}
@keyframes ringExpand {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.25); opacity: 0.6; }
}

/* Brain - spark pulses */
.icon-brain .spark {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.feature-cell:hover .icon-brain .spark {
  animation: sparkFlash 1s ease infinite;
}
.feature-cell:hover .icon-brain .spark:nth-child(2) { animation-delay: 0.2s; }
.feature-cell:hover .icon-brain .spark:nth-child(3) { animation-delay: 0.4s; }
@keyframes sparkFlash {
  0%,100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1); }
}

.feature-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ── AI SECTION ──────────────────────────────────────── */
.ai-section {
  padding: 96px 40px;
  background: var(--ink-2);
  position: relative;
  overflow: hidden;
}

.ai-section-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.ai-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ai-section-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

h2.ai-section-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(36px, 3.5vw, 54px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}

h2.ai-section-title em {
  font-style: italic;
  color: var(--brand-400);
}

.ai-section-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 36px;
}

.ai-feature-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ai-feat-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(59,130,246,0.2);
  border: 1px solid rgba(59,130,246,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  color: var(--brand-400);
  margin-top: 1px;
}

.ai-feat-text {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.ai-feat-text strong { color: #fff; }

/* Chat UI mockup */
.chat-mockup {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}

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

.chat-header-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-500);
  animation: pulse 2s ease infinite;
}

.chat-header-label {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
}

.chat-body {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.chat-msg.user { flex-direction: row-reverse; }

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}

.chat-avatar.ai {
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  color: white;
}

.chat-avatar.human {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 260px;
}

.chat-bubble.ai {
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.2);
  color: rgba(255,255,255,0.85);
  border-radius: 4px 12px 12px 12px;
}

.chat-bubble.human {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border-radius: 12px 4px 12px 12px;
}

.chat-action-row {
  display: flex;
  gap: 8px;
  padding: 0 18px 18px;
}

.chat-action-btn {
  padding: 7px 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
}

.chat-action-btn.confirm {
  background: var(--brand-600);
  color: white;
}

.chat-action-btn.cancel {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
}

.chat-input-bar {
  margin: 0 18px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-input-text {
  flex: 1;
  font-size: 14px;
  color: rgba(255,255,255,0.35);
  font-family: 'DM Sans', sans-serif;
}

.chat-send-icon {
  font-size: 16px;
  color: var(--brand-500);
}

/* ── HOW IT WORKS ────────────────────────────────────── */
.how-section {
  padding: 96px 40px;
  background: var(--surface-2);
}

.how-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  position: relative;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--brand-200), var(--accent-400));
}

.how-step {
  position: relative;
  text-align: center;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Merriweather', serif;
  font-size: 16px;
  color: var(--brand-600);
  margin: 0 auto 20px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 6px var(--surface-2);
}

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

.step-desc {
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ── AUTONOMY MODES ──────────────────────────────────── */
.modes-section {
  padding: 96px 40px;
}

.modes-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 56px;
}

.mode-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  background: var(--surface);
  position: relative;
  transition: all 0.2s;
  cursor: pointer;
}

.mode-card:hover {
  border-color: var(--brand-400);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(4,118,255,0.1);
}

.mode-card.featured {
  border-color: var(--brand-500);
  background: var(--brand-50);
}

.mode-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  background: var(--brand-600);
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mode-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.mode-card:hover .mode-icon {
  background: var(--brand-50);
  border-color: var(--brand-200);
  transform: scale(1.05);
}

.mode-card.featured .mode-icon {
  background: var(--brand-100);
  border-color: var(--brand-300);
}

.mode-svg {
  width: 26px;
  height: 26px;
  overflow: visible;
}

.mode-svg .ms {
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.mode-svg .mf {
  fill: var(--surface-3);
  stroke: none;
  transition: fill 0.3s ease;
}

.mode-card:hover .mode-svg .ms,
.mode-card.featured .mode-svg .ms {
  stroke: var(--brand-600);
}

.mode-card:hover .mode-svg .mf,
.mode-card.featured .mode-svg .mf {
  fill: var(--brand-100);
}

/* Manual - hand raises */
.icon-manual .palm {
  transform-origin: center bottom;
  transform-box: fill-box;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.mode-card:hover .icon-manual .palm {
  transform: translateY(-3px);
}

/* Advisory - tick draws */
.icon-advisory .tick {
  stroke-dasharray: 18;
  stroke-dashoffset: 18;
}
.mode-card:hover .icon-advisory .tick {
  animation: modeCheck 0.4s ease forwards;
}
@keyframes modeCheck {
  to { stroke-dashoffset: 0; }
}

/* Copilot - dial rotates */
.icon-copilot .dial {
  transform-origin: 50% 50%;
  transform-box: fill-box;
}
.mode-card:hover .icon-copilot .dial,
.mode-card.featured .icon-copilot .dial {
  animation: dialSpin 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards;
}
@keyframes dialSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(40deg); }
}

/* Autopilot - orbit spins */
.icon-autopilot .orbit {
  transform-origin: 13px 13px;
  transform-box: fill-box;
}
.mode-card:hover .icon-autopilot .orbit {
  animation: orbitSpin 1s linear infinite;
}
@keyframes orbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mode-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.mode-desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 16px;
}

.mode-detail {
  font-size: 13px;
  color: var(--ink-4);
  font-family: 'DM Mono', monospace;
  padding: 6px 10px;
  background: var(--surface-3);
  border-radius: 6px;
}

/* ── TESTIMONIALS ────────────────────────────────────── */
.testimonials-section {
  padding: 96px 40px;
  background: var(--surface-2);
}

.testimonials-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

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

.testimonial-quote {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

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

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--accent-500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.author-role {
  font-size: 13px;
  color: var(--ink-4);
}

/* ── PRICING ─────────────────────────────────────────── */
.pricing-section {
  padding: 96px 40px;
}

.pricing-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
  text-align: left;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  background: var(--surface);
  position: relative;
  transition: all 0.2s;
}

.pricing-card:hover {
  border-color: var(--brand-400);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(4,118,255,0.1);
}

.pricing-card.featured {
  border-color: var(--brand-500);
  border-width: 2px;
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  background: linear-gradient(135deg, var(--brand-600), var(--accent-500));
  color: white;
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: 'Merriweather', serif;
  font-size: 56px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--ink-4);
  vertical-align: top;
  margin-top: 8px;
  display: inline-block;
}

.pricing-freq {
  font-size: 15px;
  color: var(--ink-4);
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 15px;
  color: var(--ink-3);
  margin-bottom: 24px;
  line-height: 1.5;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
}

.pricing-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #D1FAE5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #059669;
  flex-shrink: 0;
}

.btn-plan {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-plan-primary {
  background: var(--brand-600);
  color: white;
}
.btn-plan-primary:hover { background: var(--brand-700); }

.btn-plan-ghost {
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--border);
}
.btn-plan-ghost:hover { background: var(--surface-3); }

/* ── CTA SECTION ─────────────────────────────────────── */
.cta-section {
  padding: 96px 40px;
  background: var(--ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.2) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }

h2.cta-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(42px, 4vw, 66px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}

h2.cta-title em {
  font-style: italic;
  color: var(--brand-400);
}

.cta-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.5);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.btn-cta-primary {
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,255,255,0.2); }

.btn-cta-ghost {
  padding: 16px 36px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-cta-ghost:hover { border-color: rgba(255,255,255,0.4); color: #fff; }

/* ── RESPONSIVE ────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-steps { grid-template-columns: repeat(2, 1fr); }
  .how-steps::before { display: none; }
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .ai-section-inner { grid-template-columns: 1fr; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .chart-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero { padding-top: 100px; padding-bottom: 60px; }
  .logos-row { padding: 0 20px; }
  .stats-bar { padding: 40px 20px; }
  .how-steps { grid-template-columns: 1fr; }
  .modes-grid { grid-template-columns: repeat(2, 1fr); }
}
