/* ========================================
   SHIPSTACK — Theme CSS
   ======================================== */

:root {
  --bg: #0B0F1A;
  --bg-elevated: #111827;
  --bg-card: #141B2D;
  --fg: #E8EAF0;
  --fg-muted: #8892A4;
  --accent: #FF6B00;
  --accent-dim: rgba(255, 107, 0, 0.12);
  --teal: #64FFDA;
  --teal-dim: rgba(100, 255, 218, 0.1);
  --border: rgba(136, 146, 164, 0.12);
  --border-strong: rgba(136, 146, 164, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 56px;
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
  color: var(--fg);
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 780px;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid rgba(100, 255, 218, 0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  margin-bottom: 2rem;
}

.hero-headline {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.hero-headline .line {
  display: block;
}

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

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* Hero code block */
.hero-code {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.8;
  overflow-x: auto;
}

.code-comment { color: var(--fg-muted); font-style: italic; }
.code-fn { color: var(--teal); }
.code-out { color: var(--fg-muted); }
.code-agent { color: var(--accent); }

/* ---- Features ---- */
.features {
  padding: 6rem 2rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-header {
  max-width: 1100px;
  margin: 0 auto 4rem;
}

.features-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-dim);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--fg);
}

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

/* ---- Manifesto ---- */
.manifesto {
  padding: 8rem 2rem;
  background: var(--bg);
}

.manifesto-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

blockquote {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: var(--fg-muted);
  font-style: normal;
  border: none;
  position: relative;
}

blockquote::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 2rem;
}

blockquote em {
  color: var(--accent);
  font-style: normal;
}

/* ---- How It Works ---- */
.how {
  padding: 6rem 2rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.how-header {
  max-width: 900px;
  margin: 0 auto 4rem;
  text-align: center;
}

.how-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.how-steps {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.how-step:last-child {
  border-bottom: none;
}

.step-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  padding-top: 0.1rem;
}

.step-content h3 {
  font-size: 1.1rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.step-content p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- Closing ---- */
.closing {
  padding: 8rem 2rem;
  background: var(--bg);
  text-align: center;
}

.closing-inner h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
}

.closing-inner p {
  font-size: 1rem;
  color: var(--fg-muted);
  margin-bottom: 3rem;
}

.closing-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 1.2rem;
  color: var(--fg-muted);
}

/* ---- Footer ---- */
.footer {
  padding: 4rem 2rem 2rem;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto 3rem;
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  max-width: 260px;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.3rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--fg-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .navbar { padding: 0 1rem; }
  .nav-links { display: none; }
  .hero { padding: 5rem 1rem 3rem; }
  .features { padding: 4rem 1rem; }
  .manifesto { padding: 5rem 1rem; }
  .how { padding: 4rem 1rem; }
  .how-step { grid-template-columns: 50px 1fr; gap: 1rem; }
  .closing { padding: 5rem 1rem; }
  .footer { padding: 3rem 1rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 2rem; }
  .footer-links { gap: 2rem; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--fg-muted); }

/* ---- Selection ---- */
::selection { background: var(--accent); color: var(--bg); }