/* ═══════════════════════════════════════════════════════════
   SearchPort Marketing Site — Design Tokens & Components
   ═══════════════════════════════════════════════════════════ */

:root, [data-theme="dark"] {
  --font-body: 'Inter', -apple-system, 'Segoe UI', Helvetica, sans-serif;
  --bg: #080c14;
  --bg-elevated: #0c1220;
  --surface: #111827;
  --surface-2: #1a2236;
  --border: rgba(42, 91, 168, 0.15);
  --border-strong: rgba(42, 91, 168, 0.25);
  --text: #e8ecf2;
  --text-muted: #8494a7;
  --text-faint: #4a5568;
  --accent: #2A5BA8;
  --accent-bright: #4B7FCC;
  --accent-glow: rgba(42, 91, 168, 0.15);
  --navy: #0F1E36;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-card: 0 4px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--border);
  --shadow-glow: 0 0 80px rgba(42, 91, 168, 0.12);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ═══ NAV ═══ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-wordmark {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.nav-word-search { color: var(--text); }
.nav-word-port { color: var(--accent-bright); }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a {
  transition: color var(--transition-interactive);
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-login-link { color: var(--text-muted); font-size: 0.875rem; font-weight: 500; text-decoration: none; transition: color var(--transition-interactive); }
.nav-login-link:hover { color: var(--text); }
.mobile-menu-btn { display: none; color: var(--text-muted); }

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--transition-interactive);
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(42,91,168,0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-2); border-color: var(--accent); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 24px 60px;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(42,91,168,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,91,168,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(42,91,168,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 720px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(42,91,168,0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(42,91,168,0); }
}
.hero-title {
  font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.hero-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.metric-row {
  display: flex;
  align-items: baseline;
}
.metric-val {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.metric-suffix {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-bright);
}
.metric-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}
.hero-metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border-strong);
}

/* ═══ PRODUCT FRAME ═══ */
.hero-product {
  position: relative;
  margin-top: 48px;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
.product-frame {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.product-frame-sm { border-radius: var(--radius-md); }
.product-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.frame-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-faint);
  opacity: 0.4;
}
.frame-url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--text-faint);
  font-family: monospace;
}
.product-screenshot-area {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  background-image:
    linear-gradient(rgba(42,91,168,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42,91,168,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.product-screenshot-area-lg { aspect-ratio: 16 / 10; }
.screenshot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-faint);
  font-size: 13px;
}

/* ═══ SOCIAL PROOF ═══ */
.social-proof {
  padding: 32px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.social-proof-label {
  font-size: 14px;
  color: var(--text-faint);
}
.social-proof-label strong { color: var(--text-muted); }
.social-proof-link { color: inherit; text-decoration: none; border-bottom: 1px solid var(--text-faint); transition: color 0.2s, border-color 0.2s; }
.social-proof-link:hover { color: var(--accent); border-color: var(--accent); }
.social-proof-link strong { color: inherit; }

/* ═══ SECTIONS ═══ */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-bright);
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═══ PROBLEM ═══ */
.problem {
  padding: clamp(64px, 8vw, 120px) 0;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.problem-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}
.problem-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-bright);
}
.problem-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.problem-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══ FEATURES ═══ */
.features {
  padding: clamp(64px, 8vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.feature-card-large {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
}
.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-bright);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.feature-stat {
  margin-top: 20px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-bright);
}
.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}
.feature-card-visual {
  display: flex;
  align-items: center;
}

/* ═══ WORKFLOWS ═══ */
.workflows {
  padding: clamp(64px, 8vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.workflow-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.workflow-block:last-child { margin-bottom: 0; }
.workflow-block-reverse { direction: rtl; }
.workflow-block-reverse > * { direction: ltr; }
.workflow-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  line-height: 1;
  margin-bottom: 12px;
}
.workflow-text h3 {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}
.workflow-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.workflow-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.workflow-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.workflow-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
}

/* ═══ COMPARISON ═══ */
.comparison {
  padding: clamp(64px, 8vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.comparison-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.comparison-table {
  min-width: 600px;
  font-size: 14px;
}
.comparison-table th, .comparison-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.comparison-table th:first-child, .comparison-table td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
}
.comparison-table th {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding-bottom: 16px;
}
.comp-sp { color: var(--accent-bright) !important; }
.check { color: var(--accent-bright); font-size: 16px; font-weight: 700; }
.x-mark { color: var(--text-faint); font-size: 14px; }
.x-mark.partial { color: var(--text-muted); font-size: 12px; font-style: italic; }

/* ═══ PRICING ═══ */
.pricing {
  padding: clamp(64px, 8vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--transition-interactive), transform var(--transition-interactive);
}
.pricing-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.pricing-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(42,91,168,0.15);
}
.pricing-card-featured:hover { border-color: var(--accent-bright); }
.pricing-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.pricing-tier {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}
.pricing-price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}
.pricing-features li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-features li::before {
  content: '✓';
  color: var(--accent-bright);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

/* ═══ QUOTE ═══ */
.quote-section {
  padding: clamp(64px, 8vw, 100px) 0;
  border-top: 1px solid var(--border);
}
.pull-quote {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.pull-quote p {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.4rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 20px;
  max-width: none;
}
.pull-quote footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pull-quote footer strong { font-size: 14px; color: var(--text); }
.pull-quote footer span { font-size: 13px; color: var(--text-muted); }

/* ═══ CTA ═══ */
.cta {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(42,91,168,0.08) 0%, transparent 70%);
}
.cta-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.cta-content h2 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 16px;
}
.cta-content > p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}
.cta-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.cta-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  max-width: 340px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-interactive);
}
.cta-form input[type="email"]:focus { border-color: var(--accent); }
.cta-form input[type="email"]::placeholder { color: var(--text-faint); }
.cta-success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-bright);
  font-size: 14px;
  font-weight: 500;
}
.cta-fine {
  font-size: 12px;
  color: var(--text-faint);
}

/* ═══ FOOTER ═══ */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}
.footer-brand { max-width: 280px; }
.footer-tagline {
  font-size: 14px;
  color: var(--text-faint);
  margin-top: 12px;
}
.footer-links { display: flex; gap: 64px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-faint);
  transition: color var(--transition-interactive);
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
}

/* ═══ ANIMATIONS ═══ */
.anim-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.anim-fade.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Hero elements animate on load, not on scroll */
.hero .anim-fade {
  /* Keep initial state, JS will trigger */
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-large { grid-column: span 3; grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-actions { display: none; }
  .mobile-menu-btn { display: flex; }
  .problem-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card-large { grid-column: span 1; }
  .workflow-block, .workflow-block-reverse { grid-template-columns: 1fr; direction: ltr; }
  .workflow-block-reverse > * { direction: ltr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .hero-metrics { gap: 20px; }
  .hero-metric-divider { height: 32px; }
  .metric-val { font-size: 22px; }
  .comparison-table { min-width: 500px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-metrics { flex-direction: column; gap: 16px; }
  .hero-metric-divider { width: 40px; height: 1px; }
  .cta-form { flex-direction: column; align-items: stretch; }
  .cta-form input[type="email"] { max-width: none; min-width: 0; }
  .cta-form .btn { width: 100%; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 40px; }
}

/* ═══════════════════════════════════════════════════════
   HERO MARQUEE — Animated screen tiles
   ═══════════════════════════════════════════════════════ */

.hero-marquee {
  width: 100%;
  overflow-x: hidden;
  overflow-y: visible;          /* allow tiles to lift upward on hover */
  padding: 48px 0 16px;         /* extra bottom padding for shadow room */
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
}

.marquee-track:hover,
.screen-tile-img:hover ~ * {
  animation-play-state: paused;
}
/* Pause scroll on any tile hover */
.marquee-track:has(.screen-tile-img:hover) {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Individual screen tile */
.screen-tile {
  width: 340px;
  height: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* Tile title bar */
.tile-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  background: rgba(15,30,54,0.6);
  border-bottom: 1px solid var(--border);
}

.tile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.tile-dot:nth-child(1) { background: #FF5F57; }
.tile-dot:nth-child(2) { background: #FEBC2E; }
.tile-dot:nth-child(3) { background: #28C840; }

.tile-url {
  font-size: 9px;
  color: var(--text-muted);
  margin-left: 6px;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* Tile section header */
.tile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tile-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

.tile-count {
  font-size: 9px;
  color: var(--text-muted);
}

.tile-tag {
  font-size: 9px;
  background: rgba(42,91,168,0.2);
  color: var(--accent);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(42,91,168,0.3);
}

/* Score badges */
.score-badge {
  font-size: 8.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.score-badge.strong  { background: rgba(34,197,94,0.15);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.score-badge.good    { background: rgba(42,91,168,0.2);   color: #7da9e0; border: 1px solid rgba(42,91,168,0.35); }
.score-badge.possible{ background: rgba(234,179,8,0.15);  color: #fbbf24; border: 1px solid rgba(234,179,8,0.25); }
.score-badge.weak    { background: rgba(239,68,68,0.1);   color: #f87171; border: 1px solid rgba(239,68,68,0.2); }

/* Mock table */
.mock-table {
  width: 100%;
  font-size: 9px;
  color: var(--text);
  border-collapse: collapse;
  padding: 0 12px;
  display: table;
}

.mock-table th {
  font-size: 8px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 4px 4px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.mock-table td {
  padding: 4px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-table tr:hover td { background: rgba(255,255,255,0.03); }

.mock-table.mock-table-sm th,
.mock-table.mock-table-sm td {
  font-size: 9px;
  padding: 4px 6px;
}

.highlight-row td {
  color: var(--accent);
  font-weight: 500;
}

/* Mock financial model badges */
.model-badges {
  display: flex;
  gap: 6px;
  padding: 8px 12px 10px;
  flex-wrap: wrap;
}

.model-badge {
  font-size: 8px;
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
}

.model-badge.accent-badge {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Mock kanban */
.mock-kanban {
  display: flex;
  gap: 6px;
  padding: 6px 10px 8px;
  overflow: hidden;
  flex: 1;
}

.kanban-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kanban-col-header {
  font-size: 8px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px 3px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.kanban-col-header span {
  background: var(--border);
  color: var(--text-muted);
  border-radius: 10px;
  padding: 0 4px;
  font-size: 7px;
}

.kanban-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 5px 6px;
  font-size: 8.5px;
  color: var(--text);
  line-height: 1.3;
  min-height: 34px;
}

.kanban-card.highlight-card {
  border-color: rgba(42,91,168,0.5);
}

.kanban-card.accent-card {
  background: rgba(42,91,168,0.12);
  border-color: var(--accent);
}

/* Mock AI chat */
.mock-chat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 10px 8px;
  overflow: hidden;
  flex: 1;
}

.chat-msg {
  font-size: 9px;
  line-height: 1.4;
  padding: 5px 8px;
  border-radius: 6px;
  max-width: 90%;
}

.chat-msg.user {
  background: rgba(42,91,168,0.2);
  color: var(--text);
  align-self: flex-end;
  border: 1px solid rgba(42,91,168,0.3);
}

.chat-msg.ai {
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--border);
  align-self: flex-start;
}

.chat-deal-list {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-deal {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  color: var(--text-muted);
}

/* Mock deal scoring view */
.mock-score {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  flex: 1;
}

.score-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.score-ring-label {
  font-size: 7.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.score-criteria {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.criterion {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  color: var(--text);
}

.criterion.warn { color: #fbbf24; }

.crit-icon {
  font-size: 9px;
  font-weight: 700;
  width: 12px;
  flex-shrink: 0;
}

.criterion.pass .crit-icon { color: #4ade80; }
.criterion.warn .crit-icon { color: #fbbf24; }

/* ═══════════════════════════════════════════════════════
   WHY SEARCHPORT SECTION
   ═══════════════════════════════════════════════════════ */

.why-section {
  padding: 120px 0;
}

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

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px 32px;
  transition: border-color 0.25s, transform 0.25s;
}

.why-card:hover {
  border-color: rgba(42,91,168,0.5);
  transform: translateY(-3px);
}

.why-icon {
  width: 52px;
  height: 52px;
  background: rgba(42,91,168,0.12);
  border: 1px solid rgba(42,91,168,0.25);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.why-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-metrics { flex-direction: column; gap: 16px; }
  .hero-metric-divider { width: 40px; height: 1px; }
  .cta-form { flex-direction: column; align-items: stretch; }
  .cta-form input[type="email"] { max-width: none; min-width: 0; }
  .cta-form .btn { width: 100%; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 40px; }
}

/* ═══════════════════════════════════════════════════════
   EMAIL INTELLIGENCE TILE
   ═══════════════════════════════════════════════════════ */

.tile-handled {
  font-size: 9px;
  font-weight: 600;
  color: #4ade80;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  padding: 2px 7px;
  border-radius: 3px;
}

.mock-email {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 12px 8px;
  flex: 1;
  overflow: hidden;
}

.email-from-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.email-from-label {
  font-size: 8px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  width: 42px;
  flex-shrink: 0;
  padding-top: 1px;
}

.email-from-val {
  font-size: 9px;
  color: var(--text);
  line-height: 1.4;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-attach {
  color: var(--accent);
}

.email-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding: 8px;
  background: rgba(42,91,168,0.06);
  border: 1px solid rgba(42,91,168,0.15);
  border-radius: 6px;
}

.email-action {
  font-size: 9px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.3;
}

.ea-check {
  color: #4ade80;
  font-weight: 700;
  font-size: 9px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   MARQUEE — REAL SCREENSHOT TILES
═══════════════════════════════════════════════════════ */
.screen-tile-img {
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  /* pop-out base state */
  transform: translateY(0) scale(1);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
  cursor: default;
}
.screen-tile-img:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 24px 56px rgba(0,0,0,0.65);
  z-index: 10;
}
.screen-tile-img .tile-bar {
  flex-shrink: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.screen-tile-img img {
  width: 100%;
  height: 300px;               /* B: taller tiles — enough to read content */
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 0 0 10px 10px;
}

/* ═══════════════════════════════════════════════════════
   FEATURES GRID — 6-CARD SYMMETRICAL (3+3)
═══════════════════════════════════════════════════════ */
.features-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .features-grid-6 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .features-grid-6 {
    grid-template-columns: 1fr;
  }
}

/* Feature cards now have a screenshot thumbnail at bottom */
.features-grid-6 .feature-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.features-grid-6 .feature-card h3 {
  margin-bottom: 8px;
}
.features-grid-6 .feature-card p {
  flex: 1;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.feature-img-wrap {
  margin-top: 16px;
  border-radius: 10px;
  overflow: visible;            /* allow pop-out shadow */
  border: none;                 /* crops have their own built-in fade — no hard border needed */
}
.feature-img-wrap img {
  width: 100%;
  height: 180px;                /* A: taller crop — content is legible */
  object-fit: cover;
  object-position: top left;
  display: block;
  border-radius: 10px;
  transform: translateY(0) scale(1);
  box-shadow: 0 6px 24px rgba(0,0,0,0.5);
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.feature-card:hover .feature-img-wrap img {
  transform: translateY(-7px) scale(1.04);
  box-shadow: 0 20px 48px rgba(0,0,0,0.65);
}

/* ═══════════════════════════════════════════════════════
   WORKFLOW — VIDEO EMBED
═══════════════════════════════════════════════════════ */
.workflow-video-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.workflow-video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

/* Stack layout for workflow 04: video on top, chart screenshot pinned below */
.workflow-video-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.workflow-video-stack .video-primary {
  max-height: 300px;
}
.video-stack-img {
  border-top: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.video-stack-img img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: top left;
  display: block;
}

/* Remove old screenshot-placeholder inside workflow blocks */
.workflow-visual .product-screenshot-area {
  padding: 0;
  min-height: unset;
  background: transparent;
}


/* ═══════════════════════════════════════════════════════
   FEATURE CARD — EXPANDABLE IMAGE LIGHTBOX
═══════════════════════════════════════════════════════ */

/* The clickable wrapper */
.lb-trigger {
  position: relative;
  cursor: zoom-in;
}

/* Expand hint badge — shown on hover */
.lb-hint {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  background: rgba(15, 30, 54, 0.85);
  border: 1px solid rgba(42, 91, 168, 0.5);
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.lb-hint svg {
  flex-shrink: 0;
  color: var(--accent);
}
.lb-trigger:hover .lb-hint,
.lb-trigger:focus .lb-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Darken image slightly on hover and reinforce the pop-out */
.lb-trigger:hover img,
.lb-trigger:focus img {
  filter: brightness(0.82);
  transform: translateY(-6px) scale(1.04) !important;
  box-shadow: 0 20px 48px rgba(0,0,0,0.65) !important;
}
.lb-trigger img {
  transition:
    filter 0.2s ease,
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Focus ring for keyboard accessibility */
.lb-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* ─── Lightbox Overlay ─── */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 10, 20, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.lb-overlay.lb-open {
  opacity: 1;
  pointer-events: all;
}

.lb-img {
  max-width: min(1200px, 94vw);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  transform: scale(0.95);
  transition: transform 0.22s ease;
  object-fit: contain;
}
.lb-overlay.lb-open .lb-img {
  transform: scale(1);
}

.lb-caption {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  margin: 0;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.lb-close:hover {
  background: rgba(255,255,255,0.16);
}


/* ═══════════════════════════════════════════════════════
   HERO — SPLIT LAYOUT (v2)
   Left ~40% content | Right ~60% vertical marquee
   ═══════════════════════════════════════════════════════ */

.hero-split {
  height: 100vh;
  max-height: 100vh;
  display: grid;
  grid-template-columns: 42% 1fr;
  align-items: center;
  padding: 0;
  overflow: hidden;
  position: relative;
  contain: layout;
}

/* Left column — vertically centered content */
.hero-left {
  position: relative;
  z-index: 2;
  padding: 120px 48px 80px 5vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Override centered styles from old hero */
.hero-split .hero-title {
  text-align: left;
  margin-bottom: 20px;
}

.hero-split .hero-badge {
  justify-content: flex-start;
}

.hero-split .hero-sub {
  text-align: left;
  margin: 0 0 32px;
  max-width: 480px;
}

.hero-split .hero-ctas {
  justify-content: flex-start;
  margin-bottom: 40px;
}

.hero-split .hero-metrics {
  justify-content: flex-start;
}

/* Right column — full-height vertical marquee */
.hero-right {
  position: relative;
  height: 100vh;
  overflow: hidden;
  contain: strict;              /* prevent marquee animation from triggering page reflow */
  /* Top+bottom fade mask */
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Vertical marquee container */
.hero-marquee-v {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Scrolling track — column of tiles */
.marquee-track-v {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  animation: marquee-scroll-v 60s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.marquee-track-v:has(.screen-tile-v:hover) {
  animation-play-state: paused;
}

@keyframes marquee-scroll-v {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* Individual vertical marquee tile */
.screen-tile-v {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transform: translateY(0) scale(1);
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
  cursor: default;
}

.screen-tile-v:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 20px 56px rgba(0,0,0,0.7);
  z-index: 10;
}

.screen-tile-v .tile-bar {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.screen-tile-v img {
  width: 100%;
  aspect-ratio: 16 / 10;        /* reserve space to prevent reflow; show full screenshot */
  object-fit: cover;
  object-position: top left;
  display: block;
}

/* Right-edge glow removed — show full screenshots */

/* Hero bg-grid only behind left column */
.hero-split .hero-bg-grid {
  grid-column: 1;
  grid-row: 1;
}

/* ═══ Hero split responsive ═══ */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: unset;
  }
  .hero-left {
    padding: 100px 24px 40px;
    text-align: center;
  }
  .hero-split .hero-title,
  .hero-split .hero-sub,
  .hero-split .hero-badge {
    text-align: center;
    justify-content: center;
  }
  .hero-split .hero-ctas,
  .hero-split .hero-metrics {
    justify-content: center;
  }
  .hero-split .hero-sub {
    margin: 0 auto 32px;
    max-width: 560px;
  }
  .hero-right {
    height: 320px;
    margin-right: 0;
    overflow: hidden;
  }
  .marquee-track-v {
    flex-direction: row;
    animation: marquee-scroll-mobile 45s linear infinite;
    width: max-content;
    height: 100%;
  }
  .marquee-track-v:has(.screen-tile-v:hover) {
    animation-play-state: paused;
  }
  @keyframes marquee-scroll-mobile {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .screen-tile-v {
    width: 280px;
    flex-shrink: 0;
  }
  .screen-tile-v img {
    height: auto;
  }
  .hero-right {
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  }
  .hero-right::after { display: none; }
}

@media (max-width: 768px) {
  .hero-right { height: 240px; }
  .screen-tile-v { width: 240px; }
  .screen-tile-v img { height: auto; }
}


/* ═══════════════════════════════════════════════════════
   CORE PLATFORM — TABBED FEATURE SHOWCASE
   ═══════════════════════════════════════════════════════ */

.tab-showcase {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.25);
}

/* ── Tab bar ── */
.tab-bar {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    background var(--transition-interactive);
  flex-shrink: 0;
}

.tab-btn svg {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity var(--transition-interactive);
}

.tab-btn:hover {
  color: var(--text);
  background: rgba(42,91,168,0.06);
}
.tab-btn:hover svg { opacity: 1; }

.tab-btn.tab-active {
  color: var(--text);
  border-bottom-color: var(--accent-bright);
  background: rgba(42,91,168,0.08);
}
.tab-btn.tab-active svg {
  opacity: 1;
  color: var(--accent-bright);
}

/* ── Progress bar + pause/play row ── */
.tab-progress-row {
  display: flex;
  align-items: center;
}

.tab-progress-row .tab-progress-track {
  flex: 1;
}

.tab-progress-track {
  height: 2px;
  background: var(--border);
  overflow: hidden;
}

.tab-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
}

.tab-pause-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
}

.tab-pause-btn:hover {
  color: var(--accent);
}

.tab-pause-btn.paused .pause-icon { display: none; }
.tab-pause-btn.paused .play-icon { display: block !important; }

/* ── Tab panels ── */
.tab-panels {
  position: relative;
  height: 560px;                /* fixed height — prevents layout shift when switching tabs */
  overflow: hidden;
}

.tab-panel {
  display: none;
  grid-template-columns: 35% 1fr;
  gap: 0;
  align-items: stretch;
  height: 560px;
}

.tab-panel-active {
  display: grid;
}

/* Fade transition between panels */
.tab-panel-enter {
  opacity: 0;
  display: grid !important;
  animation: tabFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Left: description + bullets ── */
.tab-content-left {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--border);
  overflow-y: auto;
}

.tab-content-left h3 {
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 14px;
}

.tab-content-left p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: none;
}

.tab-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tab-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: none;
}

.tab-bullets li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  margin-top: 6px;
}

/* ── Right: large screenshot or video ── */
.tab-content-right {
  background: #050a14;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.tab-media-frame {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.tab-frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.tab-frame-url {
  margin-left: 10px;
  font-size: 11px;
  color: var(--text-faint);
  font-family: monospace;
  letter-spacing: 0.01em;
}

/* Screenshot inside tab */
.tab-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

/* Video inside tab */
.tab-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  display: block;
}

/* ── Responsive tab showcase ── */
@media (max-width: 900px) {
  .tab-panel,
  .tab-panel-active {
    grid-template-columns: 1fr;
  }
  .tab-content-left {
    padding: 32px 24px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .tab-content-right {
    padding: 20px;
  }
  .tab-screenshot,
  .tab-video {
    height: 280px;
  }
  .tab-panels {
    height: auto;
  }
  .tab-panel {
    height: auto;
  }
  .tab-btn {
    padding: 12px 14px;
    font-size: 12px;
    gap: 5px;
  }
  .tab-btn svg { display: none; }
}

@media (max-width: 600px) {
  .tab-content-right {
    padding: 16px;
  }
  .tab-screenshot,
  .tab-video {
    height: 220px;
  }
}

/* ═══════════════════════════════════════════════════════════
   NEW SECTIONS — Spec Implementation
   ═══════════════════════════════════════════════════════════ */

/* ═══ HERO METRICS — Fine Print ═══ */
.metric-fine {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 2px;
  display: block;
  line-height: 1.4;
}

/* ═══ PROBLEM GRID — 4 cards ═══ */
.problem-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .problem-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .problem-grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ═══ AI DIFFERENCE SECTION ═══ */
.ai-difference {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ai-diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

@media (max-width: 1024px) {
  .ai-diff-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
}

.ai-diff-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.ai-diff-card:hover {
  border-color: rgba(42, 91, 168, 0.45);
  box-shadow: 0 8px 40px rgba(42, 91, 168, 0.1);
}

.ai-diff-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-glow);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  flex-shrink: 0;
}

.ai-diff-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.ai-diff-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-bright);
  letter-spacing: -0.01em;
}

.ai-diff-card > p:not(.ai-diff-desc) {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.75;
}

.ai-example-interaction {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.ai-ex-user,
.ai-ex-response {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ai-ex-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.ai-ex-user .ai-ex-label {
  color: var(--text-muted);
}

.ai-ex-response .ai-ex-label {
  color: var(--accent-bright);
}

.ai-ex-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
}

.ai-ex-user .ai-ex-text {
  color: var(--text);
  font-style: normal;
  font-weight: 500;
}

/* ═══ WORKFLOW 06 — AI Prompts ═══ */
.workflow-ai-prompts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.ai-prompt-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 200ms var(--ease-out);
}

.ai-prompt-card:hover {
  border-color: rgba(42, 91, 168, 0.4);
}

.ai-prompt-q {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.ai-prompt-q svg {
  flex-shrink: 0;
  color: var(--accent-bright);
  margin-top: 1px;
}

.ai-prompt-a {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-left: 22px;
  font-style: italic;
}

/* ═══ WORKFLOW 07 — Beacon Feed Demo ═══ */
.beacon-feed-demo {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

.beacon-feed-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.beacon-card {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 180ms var(--ease-out);
}

.beacon-card:last-child {
  border-bottom: none;
}

.beacon-card:hover {
  background: var(--bg-elevated);
}

.beacon-card-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.beacon-card-warning .beacon-card-type { color: #e09e2b; }
.beacon-card-proposal .beacon-card-type { color: var(--accent-bright); }
.beacon-card-email .beacon-card-type { color: #7ec8a4; }
.beacon-card-created .beacon-card-type { color: #a78bfa; }
.beacon-card-status .beacon-card-type { color: var(--text-muted); }

.beacon-card-text {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

.beacon-card-action {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-bright);
  cursor: pointer;
  align-self: flex-start;
}

.beacon-card-action:hover {
  text-decoration: underline;
}

/* ═══ KNOWLEDGE & EXPERTISE SECTION ═══ */
.expertise-section {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 64px;
}

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

.expertise-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.expertise-card:hover {
  border-color: rgba(42, 91, 168, 0.4);
  box-shadow: 0 4px 24px rgba(42, 91, 168, 0.08);
}

.expertise-q {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
}

.expertise-q svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.expertise-a {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 26px;
  border-left: 2px solid var(--border-strong);
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border-left: 2px solid rgba(42, 91, 168, 0.3);
}

/* ═══ CTA SELECT (qualifying dropdown) ═══ */
.cta-select {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font-body);
  padding: 12px 16px;
  outline: none;
  transition: border-color 180ms var(--ease-out);
  cursor: pointer;
  min-width: 240px;
}

.cta-select:focus {
  border-color: var(--accent-bright);
  color: var(--text);
}

.cta-select option {
  background: var(--surface);
  color: var(--text);
}

/* cta-form base defined above */

/* ═══ RESPONSIVE: Workflow visual for AI prompts + Beacon ═══ */
@media (max-width: 900px) {
  .workflow-ai-prompts {
    max-width: 100%;
  }
  .beacon-feed-demo {
    max-width: 100%;
  }
}
