/* ============ tokens ============ */
:root {
  --bg: #0b0d12;
  --bg-2: #10131a;
  --panel: #141823;
  --panel-2: #1a1f2d;
  --border: #262d3d;
  --text: #e8ecf4;
  --muted: #9aa4b8;
  --accent: #ff7a1a;
  --accent-2: #ffb347;
  --ok: #3ddc84;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.accent { color: var(--accent); }
.muted { color: var(--muted); }
code { font-family: var(--mono); font-size: 0.9em; }

/* ============ background ============ */
.bg-grid {
  position: fixed; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
}
.bg-glow {
  position: fixed; z-index: -1;
  top: -320px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 620px;
  background: radial-gradient(closest-side, rgba(255,122,26,0.16), transparent);
  filter: blur(10px);
  pointer-events: none;
}

/* ============ header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11,13,18,0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 1.05rem; }
.brand-mark { color: var(--accent); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.45; } }
.nav { display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.nav-cta {
  color: var(--accent) !important; border: 1px solid var(--accent);
  padding: 7px 16px; border-radius: 99px; transition: all 0.2s;
}
.nav-cta:hover { background: var(--accent); color: #14100a !important; }

/* ============ hero ============ */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center; padding-top: 84px; padding-bottom: 72px;
}
.kicker {
  font-family: var(--mono); font-size: 0.82rem; color: var(--ok);
  letter-spacing: 0.06em; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.gradient-text {
  background: linear-gradient(92deg, var(--accent) 10%, var(--accent-2) 60%, #ffd9a0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); margin-top: 20px; font-size: 1.06rem; max-width: 34rem; }
.lede code { color: var(--accent-2); background: rgba(255,122,26,0.08); padding: 2px 7px; border-radius: 6px; }

.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 12px 24px; border-radius: 10px; transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), #ff9440);
  color: #171006; box-shadow: 0 8px 28px rgba(255,122,26,0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255,122,26,0.4); }
.btn-ghost { color: var(--text); border: 1px solid var(--border); background: var(--panel); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-big { padding: 15px 34px; font-size: 1.05rem; }

.hero-stats { list-style: none; display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.7rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.hero-stats span { color: var(--muted); font-size: 0.82rem; }

/* terminal */
.hero-terminal {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,122,26,0.06);
  min-height: 320px;
}
.term-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  background: var(--panel-2); border-bottom: 1px solid var(--border);
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.term-title { margin-left: 10px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.term-body { padding: 18px; font-family: var(--mono); font-size: 0.84rem; line-height: 1.75; min-height: 260px; }
.term-body .line { white-space: pre-wrap; word-break: break-word; }
.term-body .cmd { color: var(--text); }
.term-body .cmd::before { content: "$ "; color: var(--accent); }
.term-body .out { color: var(--muted); }
.term-body .ok-line { color: var(--ok); }
.term-body .url { color: var(--accent-2); text-decoration: underline; }
.cursor {
  display: inline-block; width: 8px; height: 1.05em; background: var(--accent);
  vertical-align: text-bottom; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============ sections ============ */
.section { padding: 72px 24px; }
.section-tag { font-family: var(--mono); color: var(--accent); font-size: 0.85rem; margin-bottom: 10px; }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.section-sub { color: var(--muted); margin-top: 10px; max-width: 40rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 18px; margin-top: 38px; }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0; transition: opacity 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: #38445c; box-shadow: 0 16px 40px rgba(0,0,0,0.4); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(255,122,26,0.1); color: var(--accent); margin-bottom: 16px;
}
.card-icon svg { width: 23px; height: 23px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; }
.card-cmd {
  display: block; margin-top: 14px; font-size: 0.74rem; color: var(--accent-2);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 11px;
  overflow-x: auto; white-space: nowrap;
}

/* ============ workflow ============ */
.flow { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 26px; margin-top: 38px; align-items: start; }
.flow-steps { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.flow-steps li {
  display: flex; gap: 16px; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 22px;
}
.step-n {
  flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-weight: 600; color: var(--accent);
  background: rgba(255,122,26,0.1); border: 1px solid rgba(255,122,26,0.35);
}
.flow-steps h3 { font-size: 1rem; margin-bottom: 4px; }
.flow-steps p { color: var(--muted); font-size: 0.9rem; }
.flow-note {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(255,122,26,0.3); border-radius: var(--radius); padding: 26px;
  position: sticky; top: 86px;
}
.flow-note h3 { color: var(--accent-2); margin-bottom: 10px; }
.flow-note p { color: var(--muted); font-size: 0.93rem; }

/* ============ proof ============ */
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 38px; }
.proof-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.proof-card h3 { margin-bottom: 14px; font-size: 1.02rem; }
.proof-card pre {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: 0.76rem; line-height: 1.7; color: var(--muted);
}
.proof-card pre code { color: inherit; }
.proof-note { margin-top: 12px; color: var(--muted); font-size: 0.88rem; }
.uptime { display: flex; flex-direction: column; gap: 10px; font-family: var(--mono); font-size: 0.85rem; }
.uptime-row { display: flex; justify-content: space-between; padding: 9px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; }
.ok { color: var(--ok); }
.asks { list-style: none; margin-top: 6px; display: flex; flex-direction: column; gap: 9px; }
.asks li {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px;
  padding: 9px 13px; font-size: 0.88rem; color: var(--muted); font-style: italic;
}
.asks li::before { content: "› "; color: var(--accent); font-style: normal; font-weight: 700; }

/* ============ CTA ============ */
.cta-section { padding-bottom: 96px; }
.cta {
  text-align: center; padding: 72px 32px; border-radius: 22px;
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(255,122,26,0.16), transparent),
    var(--panel);
  border: 1px solid var(--border);
}
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; }
.cta p { color: var(--muted); margin: 16px auto 30px; max-width: 34rem; }

/* ============ footer ============ */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0 40px; }
.footer-inner { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.footer-inner code { color: var(--accent-2); }

/* ============ reveal animation ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .brand-mark, .cursor { animation: none; }
}

/* ============ responsive ============ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 36px; }
  .flow { grid-template-columns: 1fr; }
  .flow-note { position: static; }
  .nav { display: none; }
}
