/* === VARIABLES === */
:root {
  --bg: #0a0d14;
  --bg-card: #0f1520;
  --bg-card-hover: #131a27;
  --fg: #e8eaf0;
  --fg-muted: #6b7a99;
  --fg-dim: #4a5570;
  --accent: #2d7fff;
  --accent-glow: rgba(45, 127, 255, 0.15);
  --accent-dim: rgba(45, 127, 255, 0.08);
  --green: #00d68f;
  --green-dim: rgba(0, 214, 143, 0.1);
  --red: #ff4d6a;
  --red-dim: rgba(255, 77, 106, 0.1);
  --orange: #ff9f43;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(45, 127, 255, 0.3);
  --radius: 8px;
  --font-mono: 'Fira Code', 'Cascadia Code', monospace;
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* === LAYOUT === */
.section-inner { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-size: 36px; font-weight: 600; line-height: 1.2; color: var(--fg); letter-spacing: -0.02em; }

/* === NAV === */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10, 13, 20, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1140px; margin: 0 auto; padding: 0 40px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-mono); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.logo-bracket { color: var(--accent); }
.nav-links { display: flex; gap: 32px; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--fg-muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }

/* === HERO === */
.hero { padding: 120px 0 80px; }
.hero-inner { max-width: 1140px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hero-badge { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); background: var(--accent-dim); border: 1px solid var(--border-accent); padding: 6px 14px; border-radius: 20px; margin-bottom: 24px; }
.hero-headline { font-size: 52px; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
.hero-sub { font-size: 17px; color: var(--fg-muted); line-height: 1.65; max-width: 480px; margin-bottom: 40px; }
.hero-stats { display: flex; align-items: center; gap: 24px; }
.stat { display: flex; flex-direction: column; }
.stat-val { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--fg); }
.stat-label { font-size: 11px; color: var(--fg-muted); margin-top: 2px; letter-spacing: 0.02em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* === AGENT DIAGRAM === */
.hero-visual { display: flex; justify-content: center; }
.agent-diagram { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 32px; width: 100%; max-width: 380px; }
.node { background: var(--bg-card-hover); border: 1px solid var(--border); border-radius: 8px; padding: 20px 24px; text-align: center; }
.node-agent { border-color: var(--border-accent); }
.node-inner { font-family: var(--font-mono); font-size: 15px; font-weight: 600; }
.node-sub { font-size: 11px; color: var(--fg-muted); margin-top: 4px; font-family: var(--font-mono); }
.connection-line { display: flex; align-items: center; justify-content: center; padding: 16px 0; position: relative; }
.line { height: 1px; width: 40px; background: var(--border); }
.line-dashes { height: 1px; flex: 1; background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 4px, transparent 4px, transparent 8px); opacity: 0.5; }
.activity-row { display: flex; gap: 12px; margin-top: 20px; }
.activity-item { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot-blue { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.dot-orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }

/* === PROBLEM === */
.problem { padding: 80px 0; background: var(--bg); }
.problem-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.problem-card { padding: 32px; border-radius: 12px; border: 1px solid var(--border); }
.problem-old { background: rgba(255, 77, 106, 0.03); border-color: rgba(255, 77, 106, 0.12); }
.problem-new { background: rgba(0, 214, 143, 0.03); border-color: rgba(0, 214, 143, 0.12); }
.card-label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 24px; }
.problem-items { display: flex; flex-direction: column; gap: 24px; }
.problem-item { display: flex; gap: 14px; }
.pi-icon { color: var(--red); flex-shrink: 0; margin-top: 2px; }
.problem-old .pi-icon { color: var(--red); }
.problem-new .pi-icon { color: var(--green); }
.pi-icon-green { color: var(--green) !important; }
.pi-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.pi-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.55; }

/* === CAPABILITIES === */
.capabilities { padding: 80px 0; background: var(--bg); border-top: 1px solid var(--border); }
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 28px; transition: border-color 0.2s; }
.cap-card:hover { border-color: var(--border-accent); }
.cap-icon { width: 44px; height: 44px; background: var(--accent-dim); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 16px; }
.cap-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.cap-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.6; margin-bottom: 16px; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--font-mono); font-size: 10px; font-weight: 500; padding: 4px 10px; background: var(--accent-dim); border: 1px solid var(--border-accent); border-radius: 20px; color: var(--accent); }

/* === HOW IT WORKS === */
.howitworks { padding: 80px 0; background: var(--bg); border-top: 1px solid var(--border); }
.steps-row { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: start; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.step-num { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 16px; }
.step-title { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.step-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.6; margin-bottom: 16px; }
.step-detail { display: flex; flex-direction: column; gap: 8px; }
.detail-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-muted); }
.detail-item svg { color: var(--green); flex-shrink: 0; }
.step-connector { display: flex; align-items: center; padding: 0 16px; padding-top: 80px; }
.connector-line { width: 40px; height: 1px; background: var(--border); }
.connector-arrow { font-family: var(--font-mono); font-size: 16px; color: var(--fg-dim); margin-left: 4px; }

/* === SECURITY === */
.security { padding: 80px 0; background: var(--bg); border-top: 1px solid var(--border); }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.security-title { font-size: 28px; font-weight: 600; line-height: 1.3; margin-bottom: 16px; letter-spacing: -0.02em; }
.security-sub { font-size: 14px; color: var(--fg-muted); line-height: 1.65; margin-bottom: 32px; }
.security-points { display: flex; flex-direction: column; gap: 24px; }
.sp-item { display: flex; gap: 14px; }
.sp-icon { width: 36px; height: 36px; background: var(--accent-dim); border: 1px solid var(--border-accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.sp-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.sp-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.55; }

/* === AUDIT LOG === */
.audit-log { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.audit-header { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--fg-muted); margin-bottom: 20px; }
.audit-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }
.audit-entries { display: flex; flex-direction: column; gap: 12px; }
.audit-entry { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 6px; border: 1px solid transparent; }
.audit-allow { background: var(--green-dim); border-color: rgba(0, 214, 143, 0.12); }
.audit-block { background: var(--red-dim); border-color: rgba(255, 77, 106, 0.12); }
.audit-escalate { background: rgba(255, 159, 67, 0.07); border-color: rgba(255, 159, 67, 0.12); }
.ae-time { font-family: var(--font-mono); font-size: 10px; color: var(--fg-dim); }
.ae-action { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); }
.ae-action .code { color: var(--fg); }
.ae-badge { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 8px; border-radius: 3px; }
.allow { background: rgba(0, 214, 143, 0.15); color: var(--green); }
.blocked { background: rgba(255, 77, 106, 0.15); color: var(--red); }
.escalate { background: rgba(255, 159, 67, 0.15); color: var(--orange); }

/* === CLOSING === */
.closing { padding: 100px 0; background: var(--bg); border-top: 1px solid var(--border); }
.closing-content { max-width: 720px; margin: 0 auto; text-align: center; }
.closing-headline { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 20px; }
.closing-sub { font-size: 16px; color: var(--fg-muted); line-height: 1.65; margin-bottom: 40px; max-width: 560px; margin-left: auto; margin-right: auto; }
.closing-statement { font-family: var(--font-mono); font-size: 13px; color: var(--fg-muted); line-height: 1.8; border: 1px solid var(--border); padding: 28px 36px; border-radius: 10px; background: var(--bg-card); }

/* === FOOTER === */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-inner { max-width: 1140px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { font-family: var(--font-mono); font-size: 16px; font-weight: 600; }
.footer-desc { font-size: 13px; color: var(--fg-muted); line-height: 1.6; max-width: 300px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col-title { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 4px; }
.footer-col a { font-size: 13px; color: var(--fg-muted); transition: color 0.15s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { max-width: 1140px; margin: 0 auto; padding: 24px 40px 0; border-top: 1px solid var(--border); font-size: 12px; color: var(--fg-dim); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-headline { font-size: 38px; }
  .caps-grid { grid-template-columns: 1fr 1fr; }
  .problem-columns { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
  .steps-row { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
  .section-inner, .hero-inner, .nav-inner, .footer-inner, .footer-bottom { padding-left: 20px; padding-right: 20px; }
  .hero { padding-top: 88px; }
  .hero-headline { font-size: 32px; }
  .section-title { font-size: 26px; }
  .caps-grid { grid-template-columns: 1fr; }
  .closing-headline { font-size: 28px; }
  .nav-links { display: none; }
}