/* ===========================
   TERRA COMMAND — LANDING PAGE
   =========================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

/* --- Variables --- */
:root {
  --bg: #060b14;
  --surface: #0b1525;
  --surface-2: #111e30;
  --fg: #e8f0fc;
  --fg-muted: #7a90b4;
  --accent: #00e5ff;
  --accent-dim: rgba(0,229,255,0.12);
  --accent-glow: rgba(0,229,255,0.3);
  --orange: #ff8c00;
  --green: #00e87a;
  --red: #ff4455;
  --border: rgba(255,255,255,0.07);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6,11,20,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.logo-icon {
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.logo-accent { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--fg); }

/* --- Section base --- */
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1rem;
  text-transform: uppercase;
}
.section-headline {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1rem;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 2rem 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 40%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
  pointer-events: none;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 1.5rem;
}
.hero-lede {
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-signals {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.signal-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
}
.signal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.signal-dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.signal-dot.cyan { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.signal-dot.orange { background: var(--orange); box-shadow: 0 0 8px var(--orange); }

/* UI Frame (product screenshot) */
.ui-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,229,255,0.06), 0 30px 60px rgba(0,0,0,0.5);
}
.ui-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.ui-title {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
}
.ui-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.1em;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.ui-screen {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0a1525;
}
.product-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ui-footer {
  display: flex;
  justify-content: space-around;
  padding: 0.6rem;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  font-family: var(--font-head);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
}

/* Hero stats bar */
.hero-stats {
  max-width: 1200px;
  margin: 3rem auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem 2rem;
  position: relative;
  z-index: 1;
}
.stat {
  text-align: center;
}
.stat-value {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* --- Capabilities --- */
.capabilities {
  padding: 100px 0;
  position: relative;
}
.capabilities::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  opacity: 0.3;
}
.capabilities .section-headline {
  max-width: 600px;
  margin-bottom: 4rem;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.cap-card {
  background: var(--surface);
  padding: 2rem 1.75rem;
  transition: background 0.2s;
}
.cap-card:hover { background: var(--surface-2); }
.cap-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  display: block;
}
.cap-card h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.cap-card p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* --- Differentiators --- */
.differentiators {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.diff-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.diff-body {
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* Comparison table */
.diff-table {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.diff-row {
  display: grid;
  grid-template-columns: 1fr 140px 140px;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.diff-row:last-child { border-bottom: none; }
.diff-header-row {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
  background: var(--surface-2);
}
.diff-brand { color: var(--fg-muted); }
.diff-tc { color: var(--accent); }
.diff-feature { font-size: 0.85rem; color: var(--fg); }
.diff-yes { color: var(--green); font-size: 1rem; }
.diff-no { color: var(--fg-muted); font-size: 0.9rem; }
.diff-maybe { color: var(--orange); font-size: 0.75rem; }
.diff-price { font-size: 0.75rem; color: var(--fg-muted); }
.diff-tc-price { font-size: 0.85rem; color: var(--accent); font-weight: 600; }

/* Quote block */
.quote-block {
  padding: 2.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.quote-text {
  font-size: 1.125rem;
  color: var(--fg-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}
.quote-attr {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
}

/* --- Pricing --- */
.pricing {
  padding: 100px 0;
}
.pricing-sub {
  color: var(--fg-muted);
  font-size: 1rem;
  margin-bottom: 3rem;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 40px rgba(0,229,255,0.1);
}
.pc-badge {
  position: absolute;
  top: -12px;
  left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.3rem 1rem;
  border-radius: 20px;
}
.pc-label {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.pc-price {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.pc-price .pc-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--fg-muted);
}
.pc-tagline {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}
.pc-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}
.pc-features li {
  font-size: 0.875rem;
  padding-left: 1.5rem;
  position: relative;
}
.pc-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 0.8rem;
}
.pc-features li.exc {
  color: var(--fg-muted);
  opacity: 0.5;
}
.pc-features li.exc::before { content: '✕'; color: var(--fg-muted); }
.pc-cta {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-align: center;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-transform: uppercase;
}
.pc-cta-feat {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* --- Closing --- */
.closing {
  padding: 100px 0;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.closing-signals {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.cs-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--fg-muted);
  text-transform: uppercase;
}
.cs-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.closing-headline {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 1rem;
}
.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
}

/* --- Footer --- */
.site-footer {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.footer-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.footer-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--fg-muted);
  opacity: 0.5;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { order: -1; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-layout { grid-template-columns: 1fr; gap: 3rem; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 80px 1.5rem 40px; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; justify-content: center; }
  .stat-divider { display: none; }
  .cap-grid { grid-template-columns: 1fr; }
  .closing-signals { flex-direction: column; align-items: center; gap: 1rem; }
}