/* ============================================
   Annunciator.io — Marketing Site Styles
   Aviation instrument panel aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

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

:root {
  --bg-primary: #0a0a0f;
  --bg-surface: #12121a;
  --bg-surface-hover: #1a1a26;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);
  --text-primary: #e0e0e0;
  --text-secondary: #888;
  --text-muted: #555;
  --green: #00ff88;
  --green-dim: #00cc6a;
  --yellow: #ffaa00;
  --red: #ff3344;
  --blue: #4488ff;
  --green-glow: 0 0 20px rgba(0, 255, 136, 0.4), 0 0 40px rgba(0, 255, 136, 0.15);
  --yellow-glow: 0 0 20px rgba(255, 170, 0, 0.4), 0 0 40px rgba(255, 170, 0, 0.15);
  --red-glow: 0 0 20px rgba(255, 51, 68, 0.4), 0 0 40px rgba(255, 51, 68, 0.15);
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Fira Code', monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
}

/* Grid background pattern */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: #44ffaa;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo:hover {
  color: var(--text-primary);
  text-shadow: none;
}

.nav-logo .logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: var(--green-glow);
  animation: pulse-green 3s ease-in-out infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  text-shadow: none;
}

.nav-cta {
  background: transparent;
  border: 1px solid var(--green);
  color: var(--green) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.nav-cta:hover {
  background: rgba(0, 255, 136, 0.1) !important;
  box-shadow: var(--green-glow) !important;
  color: var(--green) !important;
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 6px 0;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: #0a0a0f;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.25);
}

.btn-primary:hover {
  background: #33ffaa;
  color: #0a0a0f;
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.4), 0 0 60px rgba(0, 255, 136, 0.15);
  transform: translateY(-2px);
  text-shadow: none;
}

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

.btn-secondary:hover {
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(0, 255, 136, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 800px;
  margin: 0 auto 24px;
  color: var(--text-primary);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 80px;
}

/* --- Annunciator Panel Mockup --- */
.panel-mockup {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  position: relative;
  box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.panel-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.panel-light {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.4s ease;
}

.light-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.light-indicator.green {
  background: var(--green);
  box-shadow: var(--green-glow);
}

.light-indicator.yellow {
  background: var(--yellow);
  box-shadow: var(--yellow-glow);
}

.light-indicator.red {
  background: var(--red);
  box-shadow: var(--red-glow);
}

.light-indicator.off {
  background: #333;
  box-shadow: none;
}

.light-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Section Headers --- */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 580px;
  line-height: 1.7;
}

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

.section-header .section-desc {
  margin: 0 auto;
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s ease;
}

.step-card:hover {
  border-color: rgba(0, 255, 136, 0.2);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.15);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Light Types --- */
.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.type-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 36px 28px;
  transition: all 0.3s ease;
}

.type-card:hover {
  border-color: rgba(0, 255, 136, 0.2);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.type-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.type-icon.webhook {
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.15);
}

.type-icon.active {
  background: rgba(68, 136, 255, 0.08);
  border: 1px solid rgba(68, 136, 255, 0.15);
}

.type-icon.data {
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.15);
}

.type-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.type-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.feature-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 28px 24px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: rgba(0, 255, 136, 0.15);
  background: var(--bg-surface-hover);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
  display: block;
}

.feature-item h3 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 40px 32px;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(0, 255, 136, 0.3);
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.06);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--bg-primary);
  background: var(--green);
  padding: 4px 12px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-tier {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.pricing-price {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-period {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

.coming-soon-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--yellow);
  background: rgba(255, 170, 0, 0.08);
  border: 1px solid rgba(255, 170, 0, 0.2);
  padding: 3px 10px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

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

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

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

.footer-brand {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-primary);
  text-shadow: none;
}

/* --- Animations --- */
@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4), 0 0 16px rgba(0, 255, 136, 0.15);
  }
  50% {
    box-shadow: 0 0 14px rgba(0, 255, 136, 0.6), 0 0 28px rgba(0, 255, 136, 0.25);
  }
}

@keyframes pulse-yellow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 170, 0, 0.4), 0 0 16px rgba(255, 170, 0, 0.15);
  }
  50% {
    box-shadow: 0 0 14px rgba(255, 170, 0, 0.6), 0 0 28px rgba(255, 170, 0, 0.25);
  }
}

@keyframes pulse-red {
  0%, 100% {
    box-shadow: 0 0 8px rgba(255, 51, 68, 0.4), 0 0 16px rgba(255, 51, 68, 0.15);
  }
  50% {
    box-shadow: 0 0 14px rgba(255, 51, 68, 0.6), 0 0 28px rgba(255, 51, 68, 0.25);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-in-up 0.6s ease forwards;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 72px 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }

  .hero-buttons {
    flex-direction: column;
    margin-bottom: 48px;
  }

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

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

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

  .panel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .panel-mockup {
    padding: 20px;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

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