/* =============================================
   Crater Scope — Landing Page
   Aesthetic: Refined industrial minimalism
   Palette: Warm darks, gold accent, blue primary
   ============================================= */

:root {
  --bg: #111;
  --bg-elevated: #181818;
  --bg-card: #1a1a1a;
  --bg-dark-section: #0c0c0c;
  --border: #222;
  --border-hover: #333;
  --text: #999;
  --text-heading: #e8e8e8;
  --text-muted: #555;
  --blue: #4285F4;
  --gold: #F5A623;
  --gold-dim: rgba(245, 166, 35, 0.15);
  --green: #34d399;
  --red: #f87171;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --max-width: 1100px;
  --nav-height: 56px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.88em;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-heading);
}

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

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: #3b78e0;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(66, 133, 244, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-heading);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.btn-sm { padding: 6px 16px; font-size: 13px; border-radius: 6px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-full { width: 100%; }

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-heading);
  letter-spacing: -0.01em;
}

.nav-logo img {
  width: 22px;
  height: 22px;
}

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

.nav-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.15s;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-login {
  font-size: 13px;
  color: var(--text);
  transition: color 0.15s;
}

.nav-login:hover {
  color: var(--text-heading);
}

/* ---- Hero ---- */

.hero {
  padding: calc(var(--nav-height) + 80px) 24px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid rgba(245, 166, 35, 0.2);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text-heading);
  margin-bottom: 20px;
}

.hero-title em {
  font-size: 1.05em;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  max-width: 540px;
  margin: 0 auto 32px;
}

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

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* Hero Visual — Terminal mockup */

.hero-visual {
  max-width: 680px;
  margin: 0 auto;
}

.terminal {
  background: #0d0d0d;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.03),
    0 20px 60px -15px rgba(0,0,0,0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: #141414;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #333;
}

.terminal-dots span:first-child { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:last-child { background: #28c840; }

.terminal-title {
  font-size: 12px;
  color: var(--text-muted);
  flex: 1;
  text-align: center;
  margin-right: 42px;
}

.terminal-body {
  padding: 20px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px;
  line-height: 1.7;
}

.term-line {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.term-prompt {
  color: var(--blue);
  flex-shrink: 0;
}

.term-icon {
  color: var(--gold);
  flex-shrink: 0;
}

.term-text {
  color: var(--text-heading);
}

.term-response .term-text {
  color: var(--text);
}

.scope-block code {
  background: rgba(245, 166, 35, 0.1);
  color: var(--gold);
  border: 1px solid rgba(245, 166, 35, 0.15);
}

.scope-tag {
  display: inline-block;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 100px;
  margin: 4px 4px 4px 0;
  font-family: var(--font-body);
}

.scope-low {
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.15);
}

.scope-dim {
  color: var(--text-muted);
  font-size: 12px;
}

/* ---- Social Proof ---- */

.social-proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px;
}

.social-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.social-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.social-logos {
  display: flex;
  gap: 32px;
}

.social-logo {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}

.social-soon sup {
  font-size: 9px;
  color: var(--gold);
  margin-left: 3px;
}

/* ---- Sections ---- */

.section {
  padding: 100px 24px;
}

.section-dark {
  background: var(--bg-dark-section);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-body);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.section-sub {
  font-size: 16px;
  color: var(--text);
  max-width: 500px;
  margin: 0 auto;
}

/* ---- Steps ---- */

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

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

.step:hover {
  border-color: var(--border-hover);
}

.step-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.step-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-desc {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

/* ---- Comparison ---- */

.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.comparison-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}

.comparison-with {
  border-color: rgba(66, 133, 244, 0.3);
}

.comparison-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comparison-list li {
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.x-mark {
  color: var(--red);
  font-weight: 600;
  flex-shrink: 0;
  width: 16px;
}

.check-mark {
  color: var(--green);
  font-weight: 600;
  flex-shrink: 0;
  width: 16px;
}

/* ---- Features Grid ---- */

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

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

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

.feature-icon {
  font-size: 22px;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

/* ---- Pricing ---- */

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

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  position: relative;
}

.pricing-featured {
  border-color: var(--blue);
  box-shadow: 0 0 40px -10px rgba(66, 133, 244, 0.15);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  padding: 3px 14px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.pricing-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.pricing-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-features li {
  font-size: 13px;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 12px;
}

/* ---- CTA ---- */

.cta-section {
  text-align: center;
  padding: 120px 24px;
}

.cta-title {
  font-family: var(--font-body);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 600;
  color: var(--text-heading);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 16px;
  color: var(--text);
  margin-bottom: 32px;
}

.cta-actions {
  margin-bottom: 24px;
}

.cta-install {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cta-install code {
  font-size: 14px;
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--gold);
}

/* ---- Footer ---- */

.footer {
  border-top: 1px solid var(--border);
  padding: 60px 24px 32px;
  background: var(--bg-dark-section);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.15s;
}

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

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

/* ---- Animations ---- */

.hero-inner,
.hero-visual,
.step,
.feature-card,
.comparison-col,
.pricing-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease forwards;
}

.hero-inner { animation-delay: 0.1s; }
.hero-visual { animation-delay: 0.3s; }
.step:nth-child(1) { animation-delay: 0.1s; }
.step:nth-child(2) { animation-delay: 0.2s; }
.step:nth-child(3) { animation-delay: 0.3s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .nav-links { display: none; }

  .steps,
  .features-grid,
  .pricing-grid,
  .comparison {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .social-inner {
    flex-direction: column;
    gap: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
