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

:root {
  --bg: #fafaf9;
  --bg-elevated: #ffffff;
  --bg-subtle: #f5f5f4;
  --bg-muted: #e7e5e4;
  
  --text: #1c1917;
  --text-secondary: #57534e;
  --text-muted: #a8a29e;
  --text-inverse: #ffffff;
  
  --border: #e7e5e4;
  --border-subtle: #f5f5f4;
  --border-strong: #d6d3d1;
  --hairline: #e7e5e4;
  
  --accent: #1c1917;
  --accent-hover: #292524;
  --accent-subtle: #f5f5f4;
  --accent-muted: #e7e5e4;
  
  --success: #059669;
  --warning: #f59e0b;
  
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow: 0 1px 2px 0 rgb(0 0 0 / 0.06);
  --shadow-md: 0 4px 8px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 12px 24px -4px rgb(0 0 0 / 0.08);
  --shadow-xl: 0 24px 48px -8px rgb(0 0 0 / 0.1);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Page-wide vertical grid — hairlines that span the full document height */
body::before,
body::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-strong);
  z-index: 2;
  pointer-events: none;
}

body::before {
  left: max(24px, calc(50% - 600px));
}

body::after {
  right: max(24px, calc(50% - 600px));
}

@media (max-width: 767px) {
  body::before,
  body::after {
    display: none;
  }
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 640px) {
  .container {
    padding: 0 32px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 48px;
  }
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
}

p {
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn:focus-visible {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text-muted);
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
  border-radius: var(--radius-xl);
}

.btn-full {
  width: 100%;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  border-bottom-color: var(--border-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

/* Logo — Split Flap */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.7;
}

.logo-mark {
  display: flex;
  gap: 2px;
  background: var(--text);
  border-radius: 6px;
  padding: 2px;
  height: 40px;
  overflow: hidden;
  line-height: 1;
}

.flap {
  width: 18px;
  height: 36px;
  background: #0a0a0a;
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  font-size: 14px;
  font-weight: 700;
  color: #eee;
  position: relative;
  overflow: hidden;
}

.flap::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #222;
  z-index: 1;
}

.flap.flipping {
  animation: flapFlip 0.15s ease-in-out;
}

@keyframes flapFlip {
  0% { transform: scaleY(1); }
  50% { transform: scaleY(0.1); filter: brightness(0.5); }
  100% { transform: scaleY(1); }
}

/* Nav */
.nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.nav a:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

@media (min-width: 640px) {
  .nav {
    display: flex;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero */
.hero {
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #ffffff 20%,
    var(--bg) 100%
  );
}

/* Grid pattern confined inside the content frame, with a radial opacity gradient */
.hero-grid {
  position: absolute;
  top: 0;
  bottom: 0;
  left: max(24px, calc(50% - 600px));
  right: max(24px, calc(50% - 600px));
  background:
    linear-gradient(to right, #ebe8e5 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, #ebe8e5 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: linear-gradient(180deg, transparent 10%, black 60%, black 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 10%, black 60%, black 100%);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 767px) {
  .hero-grid {
    left: 0;
    right: 0;
  }
}


@media (min-width: 768px) {
  .hero {
    padding: 88px 0 96px;
  }
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  margin-bottom: 20px;
  transition: border-color 0.15s ease, color 0.15s ease;
  letter-spacing: 0.01em;
}

.hero-kicker strong {
  font-weight: 600;
  color: var(--text);
}

.hero-kicker:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.hero-kicker svg {
  opacity: 0.6;
}

.hero-title {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 16px;
  color: var(--text);
}

.hero-description {
  font-size: clamp(15px, 1.25vw, 17px);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* Demo */
.demo-container {
  margin-top: 56px;
}

.demo-window {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.02),
    0 24px 48px -12px rgba(0,0,0,0.12),
    0 8px 16px -6px rgba(0,0,0,0.06);
  overflow: hidden;
  animation: demoIn 0.6s ease 0.2s both;
}

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

.demo-header {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  gap: 12px;
}

.demo-dots {
  display: flex;
  gap: 6px;
}

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

.demo-dots span:nth-child(1) { background: #d6d3d1; }
.demo-dots span:nth-child(2) { background: #a8a29e; }
.demo-dots span:nth-child(3) { background: #78716c; }

.demo-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.demo-spacer {
  flex: 1;
}

.demo-layout {
  display: flex;
  min-height: 440px;
}

@media (max-width: 640px) {
  .demo-sidebar {
    display: none;
  }
}

.demo-sidebar {
  width: 180px;
  flex-shrink: 0;
  border-right: 1px solid var(--hairline);
  background: var(--bg);
  padding: 16px 8px;
}

.demo-sidebar-head {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px 10px;
}

.demo-convos {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.demo-convos li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  cursor: default;
}

.demo-convos li.active {
  background: var(--bg-muted);
  color: var(--text);
  font-weight: 500;
}

.convo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.demo-convos li.active .convo-dot {
  background: var(--success);
}

.convo-dot.dim {
  background: var(--border-strong);
}

.demo-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-elevated);
}

.demo-subheader {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline);
}

.demo-user-info {
  flex: 1;
  min-width: 0;
}

.demo-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  white-space: nowrap;
  cursor: default;
}

.mode-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
}

@media (max-width: 640px) {
  .demo-mode {
    display: none;
  }
}

.demo-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #57534e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.demo-username {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.demo-userstatus {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.demo-chat {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  font-size: 14px;
  line-height: 1.5;
  animation: messageIn 0.4s ease both;
}

.msg:nth-child(1) { animation-delay: 0.6s; }
.msg:nth-child(2) { animation-delay: 0.8s; }
.msg:nth-child(3) { animation-delay: 1.0s; }

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

.msg-customer {
  align-self: flex-end;
  max-width: 78%;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
}

.msg-agent {
  align-self: flex-start;
  max-width: 85%;
  padding: 4px 2px;
  color: var(--text);
}

.demo-reasoning {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 2px;
  cursor: default;
  animation: messageIn 0.4s ease 1.6s both;
}

.ai-suggestion {
  background: #fef9c3;
  border: 1px solid #facc15;
  border-radius: var(--radius);
  padding: 14px 16px;
  animation: messageIn 0.4s ease 1.2s both;
  margin-top: 4px;
}

.ai-suggestion-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #713f12;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ai-suggestion-body {
  font-size: 14px;
  color: #422006;
  line-height: 1.55;
  margin-bottom: 12px;
}

.ai-suggestion-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  margin-bottom: 12px;
  border-top: 1px solid rgba(113, 63, 18, 0.18);
}

.src-label {
  font-size: 11px;
  font-weight: 600;
  color: #713f12;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}

.src-chip {
  font-size: 11px;
  font-weight: 500;
  color: #713f12;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(113, 63, 18, 0.2);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-variant-numeric: tabular-nums;
}

.ai-suggestion-actions {
  display: flex;
  gap: 6px;
}

.ai-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ai-btn-primary {
  background: var(--text);
  color: var(--bg);
}

.ai-btn-primary:hover {
  background: var(--accent-hover);
}

.ai-btn-secondary {
  background: rgba(255,255,255,0.6);
  color: var(--text);
}

.ai-btn-secondary:hover {
  background: rgba(255,255,255,0.9);
}

.ai-btn-ghost {
  background: transparent;
  color: #78350f;
}

.ai-btn-ghost:hover {
  color: #422006;
}

.chat-typing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 38px;
  animation: messageIn 0.4s ease 1.4s both;
}

.typing-indicator {
  display: flex;
  gap: 3px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s ease infinite;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

.typing-text {
  font-size: 13px;
  color: var(--text-muted);
}

/* Grid-intersection markers — tiny split-flap silhouettes where section boundaries meet the vertical frame */
.stat-section,
.features,
.industry-section,
.overview-section {
  position: relative;
}

.stat-section::before,
.stat-section::after,
.features::before,
.features::after,
.industry-section::before,
.industry-section::after,
.overview-section::before,
.overview-section::after {
  content: '';
  position: absolute;
  top: -7px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background:
    linear-gradient(to bottom,
      var(--hairline) 0,
      var(--hairline) calc(50% - 0.5px),
      var(--bg) calc(50% - 0.5px),
      var(--bg) calc(50% + 0.5px),
      var(--hairline) calc(50% + 0.5px),
      var(--hairline) 100%);
  z-index: 3;
  pointer-events: none;
}

.stat-section::before,
.features::before,
.industry-section::before,
.overview-section::before {
  left: calc(max(24px, calc(50% - 600px)) - 3.5px);
}

.stat-section::after,
.features::after,
.industry-section::after,
.overview-section::after {
  right: calc(max(24px, calc(50% - 600px)) - 3.5px);
}

/* Pricing-row corners — flap markers at all four intersections */
.pricing-row {
  position: relative;
}

.flap-marker {
  position: absolute;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  background:
    linear-gradient(to bottom,
      var(--hairline) 0,
      var(--hairline) calc(50% - 0.5px),
      var(--bg) calc(50% - 0.5px),
      var(--bg) calc(50% + 0.5px),
      var(--hairline) calc(50% + 0.5px),
      var(--hairline) 100%);
  z-index: 3;
  pointer-events: none;
}

.flap-marker-tl { top: -7px; left: -4px; }
.flap-marker-tr { top: -7px; right: -4px; }
.flap-marker-bl { bottom: -7px; left: -4px; }
.flap-marker-br { bottom: -7px; right: -4px; }

@media (max-width: 767px) {
  .stat-section::before,
  .stat-section::after,
  .features::before,
  .features::after,
  .industry-section::before,
  .industry-section::after,
  .overview-section::before,
  .overview-section::after,
  .flap-marker {
    display: none;
  }
}

/* Big Stat */
.stat-section {
  padding: 96px 0;
  text-align: center;
  border-top: 1px solid var(--hairline);
}

.stat-big {
  font-size: clamp(88px, 14vw, 160px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 16px;
}

.stat-label {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 640px;
  margin: 0 auto 16px;
  color: var(--text);
}

.stat-caption {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Features */
.features {
  padding: 96px 0;
  border-top: 1px solid var(--hairline);
}

.section-header {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 48px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
}

.feature-highlight {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .feature-highlight {
    grid-column: span 2;
  }
}

.feature-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border: 1px solid var(--hairline);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.feature-visual {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

.throughput-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.throughput-bar:last-child {
  margin-bottom: 0;
}

.throughput-fill {
  height: 6px;
  background: var(--text);
  border-radius: 999px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 4px;
}

.throughput-bar span {
  font-size: 13px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 100px;
}

/* For Your Industry */
.industry-section {
  padding: 96px 0;
  border-top: 1px solid var(--hairline);
  background: var(--bg-subtle);
}

.industry-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.industry-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s ease;
}

.industry-tile:hover {
  border-color: var(--border-strong);
}

.industry-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.industry-q {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  line-height: 1.35;
}

.industry-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.industry-sources .src-chip {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

/* Sentiment indicator in Control Room cards */
.ov-sentiment {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  padding: 6px 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: #991b1b;
  font-weight: 500;
}

.sent-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sent-negative {
  background: #dc2626;
}

/* Overview Section */
.overview-section {
  padding: 100px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--hairline);
}

.overview-mock {
  max-width: 900px;
  margin: 48px auto 0;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.02),
    0 20px 50px -12px rgba(0,0,0,0.08);
  overflow: hidden;
}

.overview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg-elevated);
}

.overview-tabs {
  display: flex;
  gap: 4px;
}

.ov-tab {
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ov-tab.active {
  background: var(--bg);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.overview-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.overview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px;
}

@media (min-width: 640px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ov-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ov-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.ov-card-highlight {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #fffbeb 0%, var(--bg-elevated) 100%);
}

.ov-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ov-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.ov-meta {
  flex: 1;
  min-width: 0;
}

.ov-name {
  font-size: 14px;
  font-weight: 600;
}

.ov-time {
  font-size: 12px;
  color: var(--text-muted);
}

.ov-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.ov-badge-waiting {
  background: #fef3c7;
  color: #92400e;
}

.ov-badge-online {
  background: #d1fae5;
  color: #065f46;
}

.ov-badge-urgent {
  background: #fee2e2;
  color: #991b1b;
}

.ov-preview {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 21px;
}

.ov-typing {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.ov-typing span {
  width: 5px;
  height: 5px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s ease infinite;
}

.ov-typing span:nth-child(1) { animation-delay: 0s; }
.ov-typing span:nth-child(2) { animation-delay: 0.2s; }
.ov-typing span:nth-child(3) { animation-delay: 0.4s; }

.ov-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ov-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.ov-tag-ai {
  background: #dbeafe;
  color: #1e40af;
}

.ov-tag-sent {
  background: var(--bg-subtle);
  color: var(--text-muted);
}

.ov-tag-draft {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
}

.ov-tag-auto {
  background: #d1fae5;
  color: #065f46;
}

.ov-btn {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  border: none;
  background: var(--text);
  color: white;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ov-btn:hover {
  opacity: 0.9;
}

/* Pricing */
.pricing {
  padding: 100px 0;
  background: var(--bg);
}

.pricing-row {
  display: grid;
  grid-template-columns: 1fr;
  margin-left: max(24px, calc(50% - 600px));
  margin-right: max(24px, calc(50% - 600px));
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}

@media (min-width: 768px) {
  .pricing-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-tier + .pricing-tier {
    border-left: 1px solid var(--hairline);
  }
  .pricing-tier:nth-child(3) {
    border-left: none;
  }
}

@media (min-width: 1024px) {
  .pricing-row {
    grid-template-columns: repeat(4, 1fr);
  }
  .pricing-tier:nth-child(3) {
    border-left: 1px solid var(--hairline);
  }
}

.pricing-tier {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
}

.pricing-popular {
  background: #faf3e3;
  position: relative;
}

.pricing-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.pricing-head h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: #7c2d12;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 999px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.price {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}

.period {
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 22px;
  min-height: 42px;
}

.pricing-tier .btn-full {
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.pricing-features li svg {
  flex-shrink: 0;
  color: var(--text-muted);
}

/* CTA */
.cta {
  padding: 128px 0;
  background: var(--bg-elevated);
  text-align: center;
}

.cta-dark {
  background: var(--text);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
}

/* Mask the page-wide fixed verticals where they cross the dark block */
.cta-dark::before,
.cta-dark::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--text);
  z-index: 3;
  pointer-events: none;
}

.cta-dark::before {
  left: calc(max(24px, calc(50% - 600px)) - 1px);
}

.cta-dark::after {
  right: calc(max(24px, calc(50% - 600px)) - 1px);
}

.cta-content {
  max-width: 560px;
  margin: 0 auto;
}

.cta h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.cta-dark h2 {
  color: var(--text-inverse);
}

.cta p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.55;
}

.cta-dark p {
  color: #d6d3d1;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn-primary-inverse {
  background: var(--text-inverse);
  color: var(--text);
}

.btn-primary-inverse:hover {
  background: #f5f5f4;
}

.btn-ghost-inverse {
  background: transparent;
  color: #d6d3d1;
  border: 1px solid #44403c;
}

.btn-ghost-inverse:hover {
  color: var(--text-inverse);
  border-color: #78716c;
}

/* Footer */
.footer {
  padding: 64px 0 32px;
  background: var(--bg);
  border-top: 1px solid var(--hairline);
}

.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 280px 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-tagline a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--hairline);
  transition: border-color 0.2s ease;
}

.footer-tagline a:hover {
  border-color: var(--text);
}

.footer-links {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text);
}

.footer-column a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 4px 0;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-column a:hover {
  color: var(--text);
  transform: translateX(2px);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
