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

:root {
  --bg: #0D1117;
  --bg-alt: #131a24;
  --fg: #E8EAF0;
  --fg-muted: #7A8494;
  --accent: #F5A623;
  --accent-dim: rgba(245, 166, 35, 0.12);
  --border: rgba(245, 166, 35, 0.15);
  --card-bg: rgba(255,255,255,0.03);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === Typography === */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; }

/* === Navbar === */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(13, 17, 23, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-brand { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--fg); }
.nav-links { display: flex; align-items: center; gap: 12px; }
.nav-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(245, 166, 35, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 166, 35, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 100%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.06) 0%, transparent 70%);
  bottom: 0;
  left: 20%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
}

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

@keyframes pulse-badge {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-headline {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 24px;
  line-height: 1.08;
}

.headline-accent {
  color: var(--accent);
  position: relative;
}

.hero-sub {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}

.stat { padding: 0 28px; }
.stat:first-child { padding-left: 0; }

.stat-value {
  display: block;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 11px;
  color: var(--fg-muted);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

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

/* === Hero Card === */
.hero-right { display: flex; justify-content: center; }

.float-card {
  background: rgba(20, 26, 36, 0.95);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 340px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), 0 0 40px rgba(245, 166, 35, 0.05);
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(245, 166, 35, 0.05);
}

.card-dots { display: flex; gap: 6px; }
.card-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border);
}
.card-dots span:nth-child(1) { background: #FF5F57; }
.card-dots span:nth-child(2) { background: #FFBD2E; }
.card-dots span:nth-child(3) { background: #28CA42; }

.card-title {
  font-size: 11px;
  font-family: var(--font-head);
  color: var(--accent);
  letter-spacing: 0.05em;
}

.card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }

.tx-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
}

.tx-label { font-size: 12px; color: var(--fg-muted); }
.tx-amount { font-family: var(--font-head); font-size: 13px; font-weight: 600; }
.tx-amount.positive { color: #4ADE80; }

.tx-split {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  font-size: 10px;
}

.split-label { color: var(--fg-muted); }
.split-badge {
  font-size: 9px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.card-footer {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.balance-row { display: flex; justify-content: space-between; }
.balance-label { font-size: 11px; color: var(--fg-muted); }
.balance-value { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--fg); }
.balance-value.muted { color: var(--fg-muted); }

.card-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(245, 166, 35, 0.06);
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--fg-muted);
}

.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4ADE80;
  animation: pulse-badge 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* === Section Labels === */
.section-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* === Problem === */
.problem { padding: 100px 48px; background: var(--bg-alt); }
.problem-inner { max-width: 1100px; margin: 0 auto; }

.problem-headline {
  font-size: clamp(32px, 4vw, 56px);
  color: var(--fg);
  margin-bottom: 56px;
  line-height: 1.15;
}

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

.problem-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.2s;
}

.problem-card:hover { border-color: rgba(245, 166, 35, 0.3); }

.problem-icon {
  width: 48px; height: 48px;
  background: var(--accent-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-card h3 {
  font-size: 18px;
  color: var(--fg);
  margin-bottom: 12px;
}

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

/* === Solution === */
.solution { padding: 100px 48px; }
.solution-inner { max-width: 1100px; margin: 0 auto; text-align: center; }

.solution-headline {
  font-size: clamp(32px, 4vw, 56px);
  color: var(--fg);
  margin-bottom: 80px;
  line-height: 1.15;
}

.agent-diagram {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 1;
}

.agent-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.agent-core {
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: 20px;
  padding: 28px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 40px rgba(245, 166, 35, 0.15);
}

.agent-name { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--fg); }
.agent-role { font-size: 12px; color: var(--accent); letter-spacing: 0.08em; }

.agent-orbit {
  position: absolute;
  inset: 0;
}

.orbit-item {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 160px;
  text-align: left;
}

.orbit-label { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--accent); margin-bottom: 4px; }
.orbit-desc { font-size: 11px; color: var(--fg-muted); line-height: 1.5; }

/* Position orbit items in a circle around center */
.orbit-1 { top: 5%; left: 50%; transform: translateX(-50%); }
.orbit-2 { top: 25%; right: 0; }
.orbit-3 { bottom: 25%; right: 0; }
.orbit-4 { bottom: 5%; left: 50%; transform: translateX(-50%); }
.orbit-5 { bottom: 25%; left: 0; }

/* === Features === */
.features { padding: 100px 48px; background: var(--bg-alt); }
.features-inner { max-width: 1100px; margin: 0 auto; }

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

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  transition: border-color 0.2s;
}

.feature-card:hover { border-color: rgba(245, 166, 35, 0.3); }

.feature-icon-wrap {
  width: 56px; height: 56px;
  background: var(--accent-dim);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-card h3 {
  font-size: 18px;
  color: var(--fg);
  margin-bottom: 12px;
}

.feature-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.65; margin-bottom: 16px; }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  font-size: 13px;
  color: var(--fg-muted);
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* === Manifesto === */
.manifesto { padding: 100px 48px; }
.manifesto-inner { max-width: 800px; margin: 0 auto; text-align: center; }

.manifesto-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin-bottom: 48px;
}

.manifesto-quote {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 48px;
  font-style: italic;
}

.manifesto-sub { font-size: 15px; color: var(--fg-muted); line-height: 1.7; }

/* === Closing === */
.closing { padding: 100px 48px; }
.closing-inner { max-width: 1100px; margin: 0 auto; text-align: center; }

.closing-visual {
  margin-bottom: 60px;
  position: relative;
}

.closing-orb {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.15) 0%, transparent 70%);
  margin: 0 auto 32px;
  filter: blur(2px);
}

.closing-title {
  font-family: var(--font-head);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
}

.closing-tagline {
  font-family: var(--font-head);
  font-size: clamp(18px, 2vw, 24px);
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-top: 16px;
}

.closing-message p {
  font-size: 18px;
  color: var(--fg-muted);
  line-height: 1.7;
}

.closing-message p + p { margin-top: 8px; }

/* === Footer === */
.footer { padding: 40px 48px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.footer-copy { font-size: 13px; color: var(--fg-muted); }

/* === Responsive === */
@media (max-width: 768px) {
  .navbar { padding: 16px 24px; }
  .hero { padding: 100px 24px 60px; }
  .hero-content { grid-template-columns: 1fr; gap: 48px; }
  .hero-right { order: -1; }
  .float-card { width: 100%; max-width: 340px; }
  .problem { padding: 60px 24px; }
  .problem-grid { grid-template-columns: 1fr; }
  .solution { padding: 60px 24px; }
  .agent-orbit { display: none; }
  .features { padding: 60px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .manifesto { padding: 60px 24px; }
  .closing { padding: 60px 24px; }
  .footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .stat-divider { display: none; }
}