/* Command Central Landing Page v3 — CSS improvements */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --bg-card: #1c2128;
  --border: #30363d;
  --text: #c9d1d9;
  --text-bright: #e6edf3;
  --text-muted: #8b949e;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --green: #3fb950;
  --red: #f85149;
}

html { scroll-behavior: smooth; }

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Radial glow behind hero image */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(88, 166, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.hero .subtitle {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }

.hero-screenshot {
  margin-top: 56px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.hero-screenshot img,
.hero-screenshot svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  border: 1px solid rgba(88, 166, 255, 0.15);
  box-shadow:
    0 0 0 1px rgba(88, 166, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 24px 48px rgba(0, 0, 0, 0.2),
    0 0 80px rgba(88, 166, 255, 0.04);
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.hero-screenshot svg:hover,
.hero-screenshot img:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(88, 166, 255, 0.1),
    0 12px 32px rgba(0, 0, 0, 0.35),
    0 32px 64px rgba(0, 0, 0, 0.25),
    0 0 120px rgba(88, 166, 255, 0.06);
}

/* ─── Trust & Compatibility (unified) ─── */
.trust-compat {
  padding: 56px 0;
  border-top: 1px solid var(--border);
}

.trust-compat-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.compat-row {
  margin-bottom: 28px;
}

.compat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}

.compat-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.compat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s, background 0.2s;
}

.compat-pill:hover {
  border-color: rgba(88, 166, 255, 0.25);
  background: rgba(88, 166, 255, 0.06);
}

.compat-pill svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.trust-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 28px;
}

.trust-divider span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

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

.trust-number {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-bright);
  letter-spacing: -0.3px;
}

.trust-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

@media (max-width: 600px) {
  .trust-compat { padding: 40px 0; }
  .compat-pills { gap: 8px; }
  .compat-pill { padding: 6px 12px; font-size: 0.8rem; }
  .trust-row { gap: 32px; }
  .trust-number { font-size: 1rem; }
}

/* ─── Before / After ─── */
.before-after {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.before-after h2 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 40px;
}

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

.comparison-panel {
  position: relative;
  padding: 24px;
  border-radius: 12px;
}

/* "Before" panel — slightly rougher feel */
.comparison-panel:first-child {
  background: rgba(248, 81, 73, 0.03);
  border: 1px solid rgba(248, 81, 73, 0.12);
}

/* "After" panel — cleaner, elevated feel */
.comparison-panel:last-child {
  background: rgba(63, 185, 80, 0.04);
  border: 1px solid rgba(63, 185, 80, 0.15);
  box-shadow: 0 4px 24px rgba(63, 185, 80, 0.06);
}

.comparison-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.comparison-label--before {
  color: var(--red);
  background: rgba(248, 81, 73, 0.12);
}

.comparison-label--after {
  color: var(--green);
  background: rgba(63, 185, 80, 0.12);
}

.comparison-panel svg {
  width: 100%;
  height: auto;
  display: block;
}

.comparison-panel img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* ─── Features Section — Alternating Grid Layout ─── */
.features {
  padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid var(--border);
}

.features .container {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 6vw, 80px);
}

/* ─── Feature Card: 2-column grid ─── */
.feature-card {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(450px, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 16px;
  transition: background 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Reversed card: visual left, text right */
.feature-card--reverse {
  grid-template-columns: minmax(450px, 1fr) minmax(0, 400px);
}

.feature-card--reverse .feature-content {
  order: 2;
}

.feature-card--reverse .feature-visual {
  order: 1;
}

/* ─── Text Content ─── */
.feature-content {
  max-width: 400px;
}

.feature-content h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-content p {
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.feature-content code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.85em;
  color: var(--accent);
}

/* ─── Visual (SVG) Container ─── */
.feature-visual {
  min-width: 0;
}

.feature-visual svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-card:hover .feature-visual svg {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* ─── Compatibility ─── */
/* old .compatibility styles removed — now in .trust-compat */

/* ─── Install Snippet ─── */
.install-snippet {
  padding: 64px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.install-snippet h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 24px;
}

.snippet-block {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 32px;
  margin-bottom: 16px;
}

.snippet-block code {
  font-family: 'Cascadia Code', 'Fira Code', 'SF Mono', monospace;
  font-size: 1rem;
  color: var(--accent);
  letter-spacing: 0.3px;
}

.snippet-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.snippet-note a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.snippet-note a:hover {
  border-bottom-color: var(--accent);
}

/* ─── Coming Soon ─── */
.coming-soon {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.coming-soon h2 {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 40px;
}

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

.roadmap-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
}

.roadmap-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(88, 166, 255, 0.1);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.roadmap-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 8px;
}

.roadmap-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── Stay Connected ─── */
.stay-connected {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.stay-connected h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.quiet-note {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin: 0 auto;
}

.quiet-note a {
  color: var(--accent);
  text-decoration: none;
}
.quiet-note a:hover { text-decoration: underline; }

.stay-connected .quiet-note {
  margin-bottom: 32px;
}

.email-form {
  max-width: 420px;
  margin: 0 auto;
}

.signup-form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.signup-form input[type="email"] {
  flex: 1;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.signup-form input[type="email"]:focus {
  border-color: var(--accent);
}

.signup-form input[type="email"]::placeholder {
  color: var(--text-muted);
}

.form-note {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.form-note a {
  color: var(--accent);
  text-decoration: none;
}
.form-note a:hover { text-decoration: underline; }

/* ─── Quiet CTA ─── */
/* quiet-cta removed — merged into footer */

/* ─── Footer ─── */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 12px;
}

.footer-dot {
  margin: 0 12px;
  color: var(--border);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-x {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-x svg {
  transition: transform 0.2s, color 0.2s;
}

.footer-x:hover svg {
  transform: scale(1.15);
  color: var(--text-bright);
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ─── Placeholder Images (replace with real screenshots) ─── */
.placeholder-img {
  background:
    var(--bg-alt)
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 8px,
      rgba(48, 54, 61, 0.3) 8px,
      rgba(48, 54, 61, 0.3) 9px
    );
  border: 1.5px dashed var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  position: relative;
}

/* "Screenshot coming" badge */
.placeholder-img::before {
  content: '📷 WIREFRAME';
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 8px;
  opacity: 0.7;
}

.placeholder-hero {
  min-height: 400px;
}

.placeholder-compare {
  min-height: 300px;
}

.placeholder-walkthrough {
  min-height: 260px;
}

.placeholder-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.placeholder-desc {
  color: var(--text-muted);
  font-size: 0.8rem;
  max-width: 280px;
  line-height: 1.5;
  opacity: 0.6;
  font-style: italic;
}

/* ─── SVG Placeholders ─── */
.svg-placeholder {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.hero-screenshot .svg-placeholder {
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

/* ─── Features Responsive: Tablet ─── */
@media (max-width: 1024px) and (min-width: 769px) {
  .feature-card {
    grid-template-columns: minmax(0, 340px) minmax(350px, 1fr);
    gap: 24px;
    padding: 20px;
  }

  .feature-card--reverse {
    grid-template-columns: minmax(350px, 1fr) minmax(0, 340px);
  }
}

/* ─── Features Responsive: Mobile ─── */
@media (max-width: 768px) {
  .feature-card,
  .feature-card--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 0;
  }

  .feature-card--reverse .feature-content {
    order: 0;
  }

  .feature-card--reverse .feature-visual {
    order: 0;
  }

  .feature-content {
    max-width: 100%;
  }

  .feature-visual svg {
    max-width: 500px;
  }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .comparison {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .comparison-panel {
    padding: 20px;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 14px 22px;
    font-size: 1rem;
  }

  .signup-form input[type="email"] {
    padding: 14px 16px;
    font-size: 1rem;
  }

  .feature-text p,
  .compat-text,
  .quiet-note,
  .roadmap-card p {
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .hero { padding: 80px 0 60px; }
  .signup-form { flex-direction: column; }
  .signup-form .btn { width: 100%; justify-content: center; }

  .placeholder-hero { min-height: 280px; }
  .placeholder-compare { min-height: 220px; }
  .placeholder-walkthrough { min-height: 200px; }
}

/* ─── Site Nav ─── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.85);
  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;
  height: 48px;
}

.nav-brand {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-brand:hover {
  color: var(--text-bright);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--text-bright);
  text-decoration: none;
}

.nav-link--active {
  color: var(--text-bright);
}

/* ─── Use Cases ─── */
.use-cases {
  padding: 80px 0;
}

.use-cases h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 48px;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.use-case {
  text-align: center;
  padding: 24px 16px;
}

.use-case-emoji {
  font-size: 2rem;
  display: block;
  margin-bottom: 16px;
}

.use-case p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
}

.use-case strong {
  color: var(--text-bright);
}

@media (max-width: 640px) {
  .use-case-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
