/* =========================================
   DocCompiler.ai — Landing Page Styles
   Mobile-first, dark theme
   ========================================= */

/* --- Design Tokens --- */
:root {
  --bg:        #0a0a0f;
  --bg-2:      #15151f;
  --bg-3:      #1c1c2a;
  --text:      #f0f0f5;
  --text-2:    #b0b0be;
  --text-3:    #808090;
  --accent:    #635bff;
  --accent-2:  #7a73ff;
  --border:    #2a2a3a;
  --border-2:  #3f3f52;
  --green:     #22c55e;
  --radius:    8px;
  --radius-lg: 12px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

img {
  max-width: 100%;
  display: block;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-signin:hover {
  background: var(--bg-3);
  border-color: var(--text-3);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn:active {
  transform: scale(0.98);
}

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

.btn-primary:hover {
  background: var(--accent-2);
}

/* --- Hero --- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 56px;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(99, 91, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-2);
  background: rgba(99, 91, 255, 0.1);
  border: 1px solid rgba(99, 91, 255, 0.25);
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 32px;
}

.hero .btn {
  margin-bottom: 40px;
}

/* --- Proof Stats --- */
.proof-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.proof-value {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.proof-label {
  font-size: 0.8125rem;
  color: var(--text-3);
  font-weight: 500;
}

.proof-divider {
  width: 1px;
  height: 32px;
  background: var(--border-2);
}

/* --- Sections --- */
.section {
  padding: 64px 0;
}

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

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 40px;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  border-color: var(--accent);
  background: var(--bg-3);
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.card-text {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* --- Steps --- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 600px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

.step-body {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* --- Input Mockup --- */
.input-mockup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  color: var(--text-2);
  overflow-x: auto;
  white-space: nowrap;
}

.input-icon {
  color: var(--text-3);
  font-size: 0.75rem;
}

/* --- Terminal / Code Block --- */
.terminal {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 640px;
  margin: 0 auto;
}

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

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-2);
}

.terminal-title {
  margin-left: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-3);
}

.terminal-body {
  padding: 20px;
  overflow-x: auto;
}

.terminal-body code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.8;
  white-space: pre;
  display: block;
  color: var(--text-2);
}

.t-green {
  color: var(--green);
}

.t-bold {
  color: var(--text);
  font-weight: 600;
}

.t-muted {
  color: var(--text-3);
}

/* --- CTA Section --- */
.section-cta {
  text-align: center;
  padding: 72px 0;
}

.cta-sub {
  font-size: 1.0625rem;
  color: var(--text-2);
  margin-bottom: 28px;
  margin-top: -16px;
}

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

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  font-size: 0.8125rem;
  color: var(--text-3);
}

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

.footer-link {
  font-size: 0.8125rem;
  color: var(--text-3);
  transition: color 0.15s ease;
}

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

/* =========================================
   Tablet — 768px+
   ========================================= */
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }

  .nav-inner {
    padding: 0 32px;
    height: 64px;
  }

  .hero {
    padding: 120px 0 72px;
  }

  .section {
    padding: 80px 0;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .card-grid .card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .proof-stats {
    gap: 40px;
  }

  .proof-value {
    font-size: 1.75rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* =========================================
   Desktop — 1024px+
   ========================================= */
@media (min-width: 1024px) {
  .hero {
    padding: 140px 0 88px;
  }

  .hero-glow {
    width: 900px;
    height: 500px;
  }

  .section {
    padding: 96px 0;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-grid .card:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: auto;
  }

  .steps {
    max-width: 680px;
  }
}
