/* ============================================================
   TelemetryLab.ai — Stealth Landing Page
   Color System: Alt-Carbon Grid (from platform)
   ============================================================ */

/* ── Design Tokens ── */
:root {
  --bg:           #0c0f14;
  --bg-panel:     #121722;
  --bg-elevated:  #171d2a;
  --bg-surface:   #1d2434;

  --ink:          #edf2fa;
  --ink-muted:    #98a5bc;
  --ink-dim:      #5a6580;

  --line:         #2d3548;
  --line-subtle:  rgba(45, 53, 72, 0.5);

  --accent:       #39d98a;
  --accent-2:     #4f87ff;
  --good:         #39b976;
  --warn:         #d8a64a;
  --bad:          #de6262;

  --gradient:     linear-gradient(135deg, #39d98a, #4f87ff);
  --gradient-soft: linear-gradient(135deg, rgba(57,217,138,0.15), rgba(79,135,255,0.08));

  --font-heading: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:    'IBM Plex Mono', 'SF Mono', monospace;

  --radius:       8px;
  --radius-lg:    12px;
  --radius-xl:    16px;

  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.28);
  --shadow-md:    0 10px 26px rgba(0, 0, 0, 0.32);
  --shadow-glow:  0 0 40px rgba(57, 217, 138, 0.08);

  --max-width:    1120px;
  --nav-height:   72px;
}


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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

img, svg { display: block; }

::selection {
  background: rgba(57, 217, 138, 0.25);
  color: var(--ink);
}


/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(12, 15, 20, 0.8);
  border-bottom: 1px solid var(--line-subtle);
  transition: background 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark { flex-shrink: 0; }

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.logo-text--sm { font-size: 15px; }

.logo-accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink-muted);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link--cta {
  color: var(--bg);
  background: var(--accent);
  font-weight: 600;
  padding: 8px 20px;
}

.nav-link--cta:hover {
  color: var(--bg);
  background: #2fc77d;
  transform: translateY(-1px);
}


/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 32px 80px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

.hero-grid canvas {
  width: 100%;
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-align: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 12px;
  background: rgba(57, 217, 138, 0.08);
  border: 1px solid rgba(57, 217, 138, 0.2);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}


/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 0 rgba(57, 217, 138, 0), var(--shadow-sm);
}

.btn-primary:hover {
  background: #2fc77d;
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(57, 217, 138, 0.15), var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-muted);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.03);
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 14px 28px;
}


/* ── Hero Visual ── */
.hero-visual {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  z-index: 1;
}

.signal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.signal-ring--1 {
  width: 120px;
  height: 120px;
  border-color: rgba(57, 217, 138, 0.15);
  animation: ringPulse 3s ease-in-out infinite;
}

.signal-ring--2 {
  width: 200px;
  height: 200px;
  border-color: rgba(79, 135, 255, 0.1);
  animation: ringPulse 3s ease-in-out infinite 0.5s;
}

.signal-ring--3 {
  width: 280px;
  height: 280px;
  border-color: rgba(57, 217, 138, 0.05);
  animation: ringPulse 3s ease-in-out infinite 1s;
}

.signal-core {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


/* ── Sections ── */
.section {
  padding: 120px 32px;
  position: relative;
}

.section--dark {
  background: var(--bg-panel);
  border-top: 1px solid var(--line-subtle);
  border-bottom: 1px solid var(--line-subtle);
}

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

.section-inner--narrow {
  max-width: 640px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-muted);
  max-width: 640px;
}


/* ── Stats ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line-subtle);
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -0.03em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}


/* ── Pillars ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
}

.pillar {
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.pillar:hover {
  border-color: rgba(57, 217, 138, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(57, 217, 138, 0.08);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.pillar-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
}


/* ── Audiences ── */
.audiences {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.audience {
  padding: 28px;
  background: var(--bg-panel);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  transition: border-color 0.3s;
}

.audience:hover {
  border-color: rgba(79, 135, 255, 0.25);
}

.audience-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  padding: 4px 10px;
  background: rgba(79, 135, 255, 0.1);
  border-radius: 4px;
  margin-bottom: 16px;
}

.audience p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-muted);
}


/* ── Contact Form ── */
.contact-form {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input::placeholder {
  color: var(--ink-dim);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(57, 217, 138, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-alt {
  text-align: center;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line-subtle);
}

.contact-alt p {
  font-size: 14px;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.email-link {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s;
}

.email-link:hover {
  color: #2fc77d;
}


/* ── Footer ── */
.footer {
  padding: 48px 32px;
  border-top: 1px solid var(--line-subtle);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

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

.footer-links a {
  font-size: 14px;
  color: var(--ink-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-legal {
  text-align: right;
}

.footer-legal p {
  font-size: 12px;
  color: var(--ink-dim);
}

.footer-location {
  margin-top: 2px;
}


/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes ringPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 0.6;
  }
}


/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── Responsive ── */
@media (max-width: 900px) {
  .pillars,
  .audiences,
  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 60px);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .nav-links .nav-link:not(.nav-link--cta) {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 80px 20px;
  }

  .stat-value {
    font-size: 36px;
  }
}
