/* =============================================
   OpenTrust — Design System & Global Styles
   ============================================= */

:root {
  --color-bg: #ffffff;
  --color-surface: #f8f9fb;
  --color-surface-alt: #f1f3f6;
  --color-border: #e5e7eb;
  --color-border-light: #f0f1f3;
  --color-text: #111827;
  --color-text-secondary: #6b7280;
  --color-text-muted: #9ca3af;
  --color-primary: #111827;
  --color-primary-hover: #1f2937;
  --color-accent: #059669;
  --color-accent-light: #d1fae5;
  --color-gradient-start: #059669;
  --color-gradient-end: #10b981;

  --font-heading: 'Sora', 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Noto Sans SC', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.08);
  --shadow-xl: 0 24px 64px rgba(0,0,0,.10);

  --container-max: 1200px;
  --section-padding: 120px;
  --nav-height: 72px;

  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }

/* =============================================
   Layout
   ============================================= */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================
   Buttons
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  transition: all .2s var(--ease-out);
  white-space: nowrap;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  border-color: var(--color-border);
  color: var(--color-text);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--color-text);
  background: var(--color-surface);
}

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

.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* =============================================
   Navigation
   ============================================= */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}

.navbar.scrolled {
  border-bottom-color: var(--color-border-light);
  box-shadow: 0 1px 8px rgba(0,0,0,.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 30px;
  height: 30px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.logo-open { color: var(--color-text); }
.logo-trust { color: var(--color-text-secondary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color .2s;
  position: relative;
}
.nav-links a:hover { color: var(--color-text); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-text);
  transition: width .2s var(--ease-out);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: all .2s;
}
.lang-btn.active {
  background: #fff;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.lang-btn:hover:not(.active) { color: var(--color-text-secondary); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all .3s var(--ease-out);
}

/* =============================================
   Hero Section
   ============================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-height) + 40px);
  padding-bottom: 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 40%, black 30%, transparent 70%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .12;
}
.hero-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--color-accent);
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
}
.hero-glow-2 {
  width: 400px;
  height: 400px;
  background: #6366f1;
  bottom: 10%;
  right: 10%;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.04);
  animation: float 20s ease-in-out infinite;
}
.hero-orb-1 { width: 300px; height: 300px; top: 10%; left: -5%; animation-delay: 0s; }
.hero-orb-2 { width: 200px; height: 200px; top: 20%; right: -3%; animation-delay: -7s; }
.hero-orb-3 { width: 150px; height: 150px; bottom: 20%; left: 15%; animation-delay: -14s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(10px, -15px); }
  50% { transform: translate(-5px, 10px); }
  75% { transform: translate(8px, 5px); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  max-width: 640px;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 40px;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: -.02em;
}

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

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* Dashboard Preview */

.hero-visual {
  width: 100%;
  max-width: 960px;
  margin: 40px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.dashboard-preview {
  background: #0f1117;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.2), 0 0 0 1px rgba(255,255,255,.05) inset;
}

.dash-header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 12px;
}

.dash-dots {
  display: flex;
  gap: 6px;
}
.dash-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dash-dots span:nth-child(1) { background: #ff5f57; }
.dash-dots span:nth-child(2) { background: #febc2e; }
.dash-dots span:nth-child(3) { background: #28c840; }

.dash-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.4);
  letter-spacing: .02em;
}

.dash-live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: #28c840;
  letter-spacing: .05em;
}

.dash-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #28c840;
  animation: live-pulse 2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(40,200,64,.4); }
  50% { opacity: .7; box-shadow: 0 0 0 4px rgba(40,200,64,0); }
}

.dash-body {
  display: flex;
  min-height: 320px;
}

.dash-sidebar {
  width: 48px;
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dash-nav-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  transition: all .2s;
  cursor: pointer;
}
.dash-nav-icon:hover { color: rgba(255,255,255,.6); background: rgba(255,255,255,.04); }
.dash-nav-icon.active { color: #fff; background: rgba(255,255,255,.08); }

.dash-main {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dash-stat {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  padding: 16px;
}

.dash-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dash-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  font-weight: 500;
}

.dash-badge {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
}
.dash-badge.green { background: rgba(40,200,64,.12); color: #4ade80; }
.dash-badge.blue { background: rgba(96,165,250,.12); color: #60a5fa; }
.dash-badge.red { background: rgba(248,113,113,.12); color: #f87171; }

.dash-stat-value {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.dash-stat-value small {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.4);
}

.dash-stat-bar {
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}

.dash-stat-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, #4ade80, #22c55e);
  transition: width 1s var(--ease-out);
}
.dash-stat-bar-fill.purple { background: linear-gradient(90deg, #a78bfa, #8b5cf6); }
.dash-stat-bar-fill.red { background: linear-gradient(90deg, #fca5a5, #f87171); }

.dash-activity {
  flex: 1;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius-md);
  padding: 16px;
}

.dash-activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
}

.dash-activity-rate {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  font-weight: 500;
}

.dash-activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.dash-activity-row {
  display: grid;
  grid-template-columns: 60px 10px 72px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: 12px;
}
.dash-activity-row:last-child { border-bottom: none; }

.dash-time {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.25);
}

.agent-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.agent-dot.green { background: #4ade80; }
.agent-dot.red { background: #f87171; }
.agent-dot.cyan { background: #22d3ee; }
.agent-dot.blue { background: #60a5fa; }
.agent-dot.orange { background: #fb923c; }

.dash-agent {
  font-weight: 600;
  color: rgba(255,255,255,.7);
  font-size: 12px;
}

.dash-action {
  color: rgba(255,255,255,.3);
  font-size: 11px;
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-status {
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
}
.dash-status.allowed { background: rgba(40,200,64,.1); color: #4ade80; }
.dash-status.blocked { background: rgba(248,113,113,.1); color: #f87171; }
.dash-status.review { background: rgba(251,191,36,.1); color: #fbbf24; }

/* =============================================
   Trusted By
   ============================================= */

.trusted-by {
  padding: 48px 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface);
}

.trusted-label {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.logo-item {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-muted);
  opacity: .5;
  transition: opacity .2s;
  letter-spacing: .02em;
}
.logo-item:hover { opacity: .8; }

/* =============================================
   Market Context
   ============================================= */

.market-context {
  padding: 80px 0;
}

.context-card {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 48px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
}

.context-quote-mark {
  font-size: 80px;
  font-family: Georgia, serif;
  color: var(--color-accent);
  opacity: .15;
  line-height: 1;
  position: absolute;
  top: 20px;
  left: 40px;
}

.context-source {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.context-card blockquote {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 32px;
  font-weight: 400;
}
.context-card blockquote strong {
  color: var(--color-accent);
  font-weight: 700;
}

/* =============================================
   Section Header (shared)
   ============================================= */

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

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  letter-spacing: .03em;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 17px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* =============================================
   Benefits Section
   ============================================= */

.benefits {
  padding: var(--section-padding) 0;
}

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

.benefit-card {
  padding: 40px 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all .3s var(--ease-out);
}
.benefit-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
}
.benefit-icon svg { width: 100%; height: 100%; }

.benefit-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.benefit-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* =============================================
   Agents Section
   ============================================= */

.agents-section {
  padding: var(--section-padding) 0;
  background: var(--color-surface);
}

.agents-showcase {
  max-width: 1000px;
  margin: 0 auto;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.agent-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  text-align: center;
  transition: all .3s var(--ease-out);
}
.agent-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.agent-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.agent-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.agent-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.agent-provider {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
  display: block;
  margin-bottom: 8px;
}

.agent-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.agent-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 16px;
}

.agent-features span {
  padding: 4px 10px;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  font-size: 11px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.agent-trust-score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-bar {
  flex: 1;
  height: 4px;
  background: var(--color-surface-alt);
  border-radius: 2px;
  overflow: hidden;
}

.trust-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-gradient-end));
  border-radius: 2px;
}

.agent-trust-score > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
}

/* Also supports */

.agents-also {
  text-align: center;
  padding: 32px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.agents-also-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 16px;
}

.agents-also-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all .2s;
}
.agent-pill:hover {
  border-color: var(--color-border);
  background: var(--color-bg);
}

.agent-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.agent-pill-more {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  font-weight: 600;
}

/* =============================================
   Capabilities Section
   ============================================= */

.capabilities {
  padding: var(--section-padding) 0;
}

.capabilities-tabs {
  max-width: 1000px;
  margin: 0 auto;
}

.tab-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-full);
  margin-bottom: 40px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: all .2s var(--ease-out);
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active {
  background: var(--color-bg);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}
.tab-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.tab-panels { position: relative; }

.tab-panel {
  display: none;
  animation: fadeIn .3s var(--ease-out);
}
.tab-panel.active { display: block; }

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

.panel-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.panel-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.panel-feature h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.panel-feature p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Visual Cards */

.visual-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.visual-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 16px;
}

.visual-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border-light);
}
.visual-row:last-child { border-bottom: none; }

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

.v-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.v-verified { color: var(--color-accent); }
.v-score {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-accent);
}
.v-allowed {
  padding: 3px 10px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  border-radius: var(--radius-full);
  font-size: 12px;
}

/* Policy rules */

.policy-rule {
  padding: 16px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.policy-rule:last-child { margin-bottom: 0; }

.rule-condition {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-secondary);
  padding: 3px 0;
}

.rule-action {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}
.rule-action.allow {
  background: rgba(5,150,105,.08);
  color: var(--color-accent);
}
.rule-action.deny {
  background: rgba(239,68,68,.08);
  color: #ef4444;
}

/* Threat items */

.threat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.threat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.threat-icon {
  font-size: 16px;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.threat-item.critical .threat-icon { background: rgba(239,68,68,.08); }
.threat-item.warning .threat-icon { background: rgba(245,158,11,.08); }
.threat-item.info .threat-icon { background: rgba(59,130,246,.08); }

.threat-item div { flex: 1; }
.threat-item strong {
  font-size: 13px;
  display: block;
  margin-bottom: 2px;
}
.threat-item p {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.4;
}

.threat-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  white-space: nowrap;
}
.threat-item.critical .threat-status { background: rgba(239,68,68,.08); color: #ef4444; }
.threat-item.warning .threat-status { background: rgba(245,158,11,.08); color: #f59e0b; }
.threat-item.info .threat-status { background: rgba(59,130,246,.08); color: #3b82f6; }

/* Integration grid */

.integration-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.int-item {
  padding: 14px 8px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: all .2s;
}
.int-item:hover {
  border-color: var(--color-border);
  color: var(--color-text);
}

/* =============================================
   Use Cases
   ============================================= */

.usecases {
  padding: var(--section-padding) 0;
  background: var(--color-surface);
}

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

.usecase-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all .3s var(--ease-out);
}
.usecase-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.usecase-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--color-accent);
}
.usecase-icon svg { width: 100%; height: 100%; }

.usecase-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.usecase-card p {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.usecase-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}
.usecase-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* =============================================
   Pricing
   ============================================= */

.pricing {
  padding: var(--section-padding) 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: all .3s var(--ease-out);
}
.pricing-card:hover {
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.pricing-card.popular:hover {
  transform: scale(1.04);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.pricing-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: 24px;
}

.pricing-header h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.pricing-price {
  margin-bottom: 8px;
}

.price-amount {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.price-period {
  font-size: 15px;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.pricing-header p {
  font-size: 14px;
  color: var(--color-text-muted);
}

.pricing-features {
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 10px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  border-bottom: 1px solid var(--color-border-light);
  position: relative;
  padding-left: 24px;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 13px;
}

/* =============================================
   CTA Section
   ============================================= */

.cta-section {
  padding: var(--section-padding) 0;
  background: var(--color-surface);
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  background: var(--color-primary);
  color: #fff;
}

.cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: var(--color-accent);
  filter: blur(200px);
  opacity: .15;
  top: -50%;
  right: -10%;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}

.cta-content p {
  font-size: 16px;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  margin-bottom: 40px;
}

.cta-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cta-form input,
.cta-form select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.cta-form input::placeholder { color: rgba(255,255,255,.4); }
.cta-form select { color: rgba(255,255,255,.4); }
.cta-form select option { background: var(--color-primary); color: #fff; }
.cta-form input:focus,
.cta-form select:focus {
  border-color: rgba(255,255,255,.3);
}

.cta-form .btn-primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
  margin-top: 4px;
}
.cta-form .btn-primary:hover {
  background: rgba(255,255,255,.9);
  transform: translateY(-1px);
}

/* =============================================
   Footer
   ============================================= */

.footer {
  padding: 80px 0 32px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border-light);
}

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

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

.footer-brand p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--color-text-secondary);
  padding: 6px 0;
  transition: color .2s;
}
.footer-links a:hover { color: var(--color-text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--color-border-light);
}

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

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 13px;
  color: var(--color-text-muted);
  transition: color .2s;
}
.footer-legal a:hover { color: var(--color-text); }

.nav-github {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color .2s;
}
.nav-github:hover { color: var(--color-text); }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: 14px;
  transition: color .2s;
}
.footer-social-link:hover { color: var(--color-text); }

/* =============================================
   Animations & Scroll Effects
   ============================================= */

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .mobile-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 24px;
    gap: 0;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open a {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 16px;
  }
  .nav-links.open a:last-child { border-bottom: none; }

  .benefits-grid,
  .usecases-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .agents-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel-content {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --nav-height: 64px;
  }

  .hero { padding-top: calc(var(--nav-height) + 20px); }

  .hero h1 { font-size: 32px; }

  .hero-subtitle { font-size: 15px; }

  .hero-cta {
    flex-direction: column;
    gap: 12px;
  }
  .hero-cta .btn { width: 100%; }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
  .stat-divider { display: none; }
  .stat-item { padding: 0 16px; }

  .hero-visual { margin-top: 24px; }

  .dash-sidebar { display: none; }
  .dash-stats-row { grid-template-columns: 1fr; }
  .dash-activity-row {
    grid-template-columns: 50px 8px 1fr auto;
  }
  .dash-action { display: none; }

  .benefits-grid,
  .agents-grid,
  .usecases-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: none;
  }
  .pricing-card.popular:hover {
    transform: translateY(-4px);
  }

  .tab-nav {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tab-btn {
    padding: 8px 14px;
    font-size: 13px;
    flex-shrink: 0;
  }
  .tab-btn svg { width: 16px; height: 16px; }

  .section-header { margin-bottom: 40px; }

  .context-card { padding: 32px 24px; }
  .context-card blockquote { font-size: 17px; }

  .form-row { grid-template-columns: 1fr; }

  .cta-card { padding: 48px 24px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer-legal { gap: 16px; }

  .integration-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero h1 { font-size: 28px; }

  .stat-number { font-size: 22px; }

  .trusted-logos { gap: 24px; }
  .logo-item { font-size: 13px; }

  .agent-features span { font-size: 10px; padding: 3px 8px; }
  .agents-also-list { gap: 6px; }
  .agent-pill { font-size: 12px; padding: 5px 10px; }
}
