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

:root {
  --bg: #0a0b10;
  --bg2: #0f1117;
  --surface: #1a1d27;
  --border: #2a2d3a;
  --text: #e4e4e7;
  --text-muted: #9ca3af;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-glow: rgba(99, 102, 241, 0.15);
  --green: #22c55e;
  --radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Nav ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.logo-icon {
  vertical-align: middle;
  margin-right: 8px;
  border-radius: 4px;
}
.logo-prefix {
  color: var(--accent-hover);
  font-weight: 600;
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-btn {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 7px 18px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-btn:hover {
  background: var(--accent-hover) !important;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 24px 16px;
  gap: 12px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 4px 0;
}

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* ─── Hero ─── */
.hero {
  padding: 160px 0 80px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--accent-hover);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  background: linear-gradient(to bottom, #fff 30%, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Code Preview ─── */
.code-section {
  padding: 0 0 80px;
}

.code-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
}

.code-dots {
  display: flex;
  gap: 6px;
  padding: 14px 16px 0;
}

.code-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.code-title {
  padding: 0 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.code-window pre {
  padding: 16px 20px 20px;
  overflow-x: auto;
  font-family: "SF Mono", Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text);
}

.c-gray { color: #6b7280; }
.c-green { color: #22c55e; }
.c-str { color: #fbbf24; }
.c-key { color: #818cf8; }
.c-num { color: #34d399; }
.c-comment { color: #6b7280; font-style: italic; }

/* ─── Nav sign-in ─── */
.nav-signin {
  color: var(--text-muted) !important;
}
.nav-signin:hover {
  color: var(--text) !important;
}

/* ─── Stats Bar ─── */
.stats-bar {
  padding: 0 0 80px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-hover);
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Highlight feature cards ─── */
.highlight-card {
  grid-column: span 1;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.feature-tags span {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}
.feature-card code {
  background: var(--bg);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.82rem;
  font-family: "SF Mono", Monaco, Consolas, monospace;
}
.icon-orange { background: rgba(251, 146, 60, 0.12); color: #fb923c; }
.icon-green { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.icon-pink { background: rgba(244, 114, 182, 0.12); color: #f472b6; }
.icon-blue { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }

/* ─── Label Showcase ─── */
.label-showcase {
  padding: 80px 0;
  background: var(--bg2);
}
.showcase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.showcase-text h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.showcase-text > p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.showcase-list {
  list-style: none;
}
.showcase-list li {
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}
.showcase-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.showcase-list li strong {
  color: var(--text);
}

/* Mock label */
.mock-label {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  font-size: 0.78rem;
}
.mock-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--text);
}
.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0 2px;
}
.mock-name {
  font-weight: 600;
  color: var(--text);
  font-size: 0.78rem;
}
.mock-val {
  color: var(--text-muted);
  font-size: 0.72rem;
}
.mock-pct {
  font-size: 0.72rem;
  font-weight: 600;
  min-width: 42px;
  text-align: right;
}
.mock-pct.good { color: var(--green); }
.mock-pct.warn { color: #fbbf24; }
.mock-bar {
  height: 4px;
  background: #1e2130;
  border-radius: 2px;
  margin-bottom: 10px;
  overflow: hidden;
}
.mock-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}
.fill-gray { background: #9ca3af; }
.fill-blue { background: #818cf8; }
.fill-orange { background: #fbbf24; }
.fill-pink { background: #f472b6; }
.fill-green { background: #22c55e; }

/* ─── Features ─── */
.features {
  padding: 80px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
}

.feature-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Endpoints ─── */
.endpoints {
  padding: 0 0 80px;
}

.endpoint-table {
  max-width: 680px;
  margin: 32px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.endpoint-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.endpoint-row:last-child {
  border-bottom: none;
}

.method {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  min-width: 48px;
  text-align: center;
  flex-shrink: 0;
}

.method.get {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.method.post {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.endpoint-row code {
  font-family: "SF Mono", Monaco, Consolas, monospace;
  font-size: 0.85rem;
  color: var(--text);
  flex-shrink: 0;
}

.endpoint-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-left: auto;
}

/* ─── Pricing ─── */
.pricing {
  padding: 80px 0;
  background: var(--bg2);
}

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

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
  text-align: center;
  position: relative;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}

.price-badge {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-tier {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.03em;
}

.price-dollar {
  font-size: 1.5rem;
  vertical-align: super;
  font-weight: 600;
  color: var(--text-muted);
}

.price-cents {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
  text-align: left;
}

.price-features li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(42, 45, 58, 0.5);
  padding-left: 24px;
  position: relative;
}

.price-features li:last-child {
  border-bottom: none;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.5 4L5.5 10L2.5 7' stroke='%2322c55e' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

/* ─── CTA ─── */
.cta {
  padding: 80px 0;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 8px;
  max-width: 240px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

/* ─── Endpoints section ─── */
.endpoints {
  padding: 80px 0;
}
.section-sub code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85rem;
  font-family: "SF Mono", Monaco, Consolas, monospace;
}
.endpoint-table {
  max-width: 780px;
}

/* ─── ICP Section ─── */
.icp-section {
  padding: 0 0 80px;
}
.icp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.icp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.2s;
}
.icp-card:hover {
  border-color: var(--accent);
}
.icp-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: 14px;
}
.icp-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.icp-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── Trust Section ─── */
.trust-section {
  padding: 80px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
.trust-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trust-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius);
  color: var(--accent);
  flex-shrink: 0;
}
.trust-label {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.trust-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.trust-desc code {
  background: var(--bg);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-family: "SF Mono", Monaco, Consolas, monospace;
}

/* ─── Outcomes Section ─── */
.outcomes-section {
  padding: 80px 0;
  background: var(--bg2);
}
.outcomes-grid {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}
.outcome-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
}
.outcome-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.outcome-after {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.04);
}
.outcome-before {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.outcome-arrow {
  color: var(--accent);
  flex-shrink: 0;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-sub { font-size: 1rem; }

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

  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .showcase-content { grid-template-columns: 1fr; }
  .mock-label { grid-template-columns: 1fr; }

  .icp-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .outcomes-grid { flex-direction: column; }
  .outcome-arrow { transform: rotate(90deg); }

  .endpoint-row { flex-wrap: wrap; gap: 8px; }
  .endpoint-desc { margin-left: 0; flex-basis: 100%; padding-left: 64px; font-size: 0.8rem; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 40px; flex-wrap: wrap; }

  .section-title { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-lg { width: 100%; }
  .pricing-grid { max-width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .icp-grid { grid-template-columns: 1fr; }
}
