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

:root {
  --bg: #0a0a0f;
  --bg2: #12121a;
  --bg3: #1a1a26;
  --surface: #1e1e2e;
  --border: #2a2a3a;
  --text: #e4e4ef;
  --text-dim: #8888a0;
  --accent: #f97316;
  --accent2: #fb923c;
  --blue: #38bdf8;
  --green: #4ade80;
  --red: #f87171;
  --yellow: #facc15;
  --purple: #a78bfa;
  --font: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent2); }

/* === Buttons === */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 8px;
  font-weight: 600; font-size: 1rem; transition: all .2s; border: 2px solid transparent;
}
.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); color: #fff; transform: translateY(-1px); }
.btn-outline { border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* === Nav === */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 15, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 960px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 60px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); }
.nav-logo img { border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-dim); font-size: 0.9rem; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* === Hero === */
.hero {
  padding: 160px 24px 100px; text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(249,115,22,0.08) 0%, transparent 60%);
}
.hero-inner { max-width: 700px; margin: 0 auto; }
.hero-logo { width: 120px; height: auto; border-radius: 16px; margin-bottom: 32px; box-shadow: 0 0 60px rgba(249,115,22,0.15); }
.hero h1 { font-size: 2.8rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero-sub { font-size: 1.15rem; color: var(--text-dim); max-width: 540px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 28px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 12px; justify-content: center; }
.hero-badges img { height: 20px; }

/* === Features === */
.features { padding: 100px 0; }
.features h2 { text-align: center; font-size: 2rem; margin-bottom: 56px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px; transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

/* === Architecture === */
.architecture { padding: 100px 0; background: var(--bg2); }
.architecture h2 { text-align: center; font-size: 2rem; margin-bottom: 48px; }

.arch-flow {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  flex-wrap: wrap; margin-bottom: 40px;
}
.arch-node {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 28px; text-align: center; min-width: 140px;
}
.arch-label { display: block; font-weight: 700; font-size: 1rem; }
.arch-node .arch-detail { display: block; color: var(--text-dim); font-size: 0.8rem; margin-top: 4px; }
.arch-arrow { color: var(--text-dim); font-size: 1.5rem; font-weight: 300; }

.arch-user { border-color: var(--blue); }
.arch-agent { border-color: var(--purple); }
.arch-guardian { border-color: var(--accent); }
.arch-tools { border-color: var(--green); }

.arch-detail-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 32px; max-width: 520px; margin: 0 auto;
}
.arch-detail-card strong { display: block; margin-bottom: 12px; font-size: 1.1rem; }
.arch-detail-card ol { padding-left: 20px; }
.arch-detail-card li { margin-bottom: 8px; color: var(--text-dim); font-size: 0.95rem; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 0.75rem; font-weight: 600; margin-right: 6px; vertical-align: middle;
}
.tag-fast { background: rgba(56,189,248,0.15); color: var(--blue); }
.tag-deep { background: rgba(167,139,250,0.15); color: var(--purple); }
.tag-policy { background: rgba(249,115,22,0.15); color: var(--accent); }
.tag-check { background: rgba(74,222,128,0.15); color: var(--green); }

/* === Quickstart === */
.quickstart { padding: 100px 0; }
.quickstart h2 { text-align: center; font-size: 2rem; margin-bottom: 40px; }

.code-block {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; max-width: 640px; margin: 0 auto;
}
.code-header {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot.red { background: var(--red); }
.code-dot.yellow { background: var(--yellow); }
.code-dot.green { background: var(--green); }
.code-title { margin-left: 8px; color: var(--text-dim); font-size: 0.8rem; }

.code-block pre {
  padding: 20px 24px; overflow-x: auto; font-size: 0.88rem; line-height: 1.7;
}
.code-block code { font-family: var(--mono); color: var(--text); }
.c-comment { color: var(--text-dim); }
.c-prompt { color: var(--green); }
.c-output { color: var(--accent); }

/* === Footer === */
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.footer-brand img { border-radius: 6px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }

/* === Mobile === */
@media (max-width: 700px) {
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; padding: 20px 24px; gap: 16px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 120px 20px 70px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .arch-flow { flex-direction: column; }
  .arch-arrow { transform: rotate(90deg); }
  .footer-inner { flex-direction: column; text-align: center; }
}
