/* ========================================
   SHIPBIT - Theme CSS
   Dark, technical, confident
   ======================================== */

:root {
  --bg-primary: #08080f;
  --bg-secondary: #0e0e1a;
  --bg-card: #12121f;
  --bg-code: #0a0a14;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.12);
  --text-primary: #f0f0f8;
  --text-secondary: #8888a8;
  --text-muted: #555570;
  --border: rgba(255, 255, 255, 0.07);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
}

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

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 15, 0.8);
  backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 2rem 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  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: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}
.glow-1 {
  width: 600px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}
.glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(100, 80, 255, 0.08) 0%, transparent 70%);
  bottom: 50px;
  left: -80px;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 2rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 9vw, 6rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}
.hero-headline .highlight {
  color: var(--accent);
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 2.5rem;
  display: inline-flex;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 2rem;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Features */
.features {
  padding: 100px 2rem;
  background: var(--bg-secondary);
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: rgba(0, 212, 170, 0.3);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Code Demo */
.code-demo {
  padding: 100px 2rem;
  background: var(--bg-primary);
}
.demo-container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
}
.demo-window {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.window-dots {
  display: flex;
  gap: 6px;
}
.window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--text-muted);
}
.window-dots span:nth-child(1) { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }
.window-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: 'SF Mono', 'Fira Code', monospace;
  margin-left: 8px;
}
.demo-content {
  padding: 2rem 1.75rem;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.88rem;
  line-height: 2;
}
.terminal-line {
  margin-bottom: 0.25rem;
}
.prompt {
  color: var(--accent);
  margin-right: 8px;
}
.cmd {
  color: var(--text-primary);
}
.terminal-output {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.terminal-output .success { color: var(--accent); }
.terminal-output .info { color: var(--text-secondary); }
.demo-aside {
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}
.demo-aside h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.demo-aside ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.demo-aside ul li {
  color: var(--text-secondary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.demo-aside ul li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* Closing */
.closing {
  padding: 120px 2rem;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.closing::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}
.closing-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.closing-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.closing-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.closing-inner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}
.closing-cta {
  display: flex;
  justify-content: center;
}
.cta-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  padding: 3rem 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
  }
  .stat-divider {
    width: 60px;
    height: 1px;
  }
  .demo-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .demo-aside {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
}