/* ═══════════════════════════════════════════════════════
   SignalApps — Marketing Site Styles
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=DM+Serif+Display&family=JetBrains+Mono:wght@500;700&display=swap');

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

:root {
  /* Colors */
  --color-bg: #ffffff;
  --color-bg-subtle: #f9fafb;
  --color-bg-muted: #f3f4f6;
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-text: #374151;
  --color-text-secondary: #6b7280;
  --color-text-muted: #9ca3af;
  --color-heading: #111827;
  --color-accent: #10b981;
  --color-accent-hover: #059669;
  --color-accent-subtle: #ecfdf5;
  --color-accent-muted: #d1fae5;
  --color-green: #10b981;
  --color-green-dark: #065f46;

  /* Typography */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;

  /* Layout */
  --max-width: 1120px;
  --max-width-narrow: 720px;
  --header-height: 56px;

  /* Misc */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --transition: 200ms ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--space-xl));
}

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

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: 2.5rem; letter-spacing: -0.03em; }
h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
h4 { font-size: 1rem; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

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

/* ── Layout ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

section {
  padding: var(--space-4xl) 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-heading);
}

.logo:hover {
  text-decoration: none;
  color: var(--color-heading);
}

.logo-icon {
  width: 24px;
  height: 24px;
}

.logo-text {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text-muted {
  font-weight: 400;
  color: var(--color-text-muted);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.header-nav a {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.header-nav a:hover {
  color: var(--color-heading);
  text-decoration: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  color: var(--color-text);
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-sans);
  line-height: 1.4;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-heading);
  color: #ffffff;
  border-color: var(--color-heading);
}

.btn-primary:hover {
  background: #1f2937;
  color: #ffffff;
  border-color: #1f2937;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-sm {
  padding: 0.4375rem 1rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-md);
}

.btn-lg {
  padding: 0.6875rem 1.75rem;
  font-size: 0.9375rem;
}

.btn-arrow {
  transition: transform var(--transition);
}

.btn:hover .btn-arrow {
  transform: translateX(2px);
}

/* ── Hero ── */
.hero {
  padding: calc(var(--header-height) + var(--space-5xl)) 0 var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.04) 0%, transparent 60%),
    var(--color-bg);
}

/* Dot grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--color-border) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 70%);
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.375rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-xs);
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Hero logo lockup */
.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-bottom: var(--space-2xl);
}

.hero-logo-icon {
  width: 56px;
  height: 56px;
}

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

.hero-logo-text-muted {
  font-weight: 400;
  color: var(--color-text-muted);
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero wordmark (below subhead) */
.hero-wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--space-2xl);
}

.hero-wordmark-icon {
  width: 36px;
  height: 36px;
}

.hero-wordmark-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.02em;
}

.hero-wordmark-text-muted {
  font-weight: 400;
  color: var(--color-text-muted);
}

.hero-subhead {
  font-size: 1.1875rem;
  color: var(--color-text-secondary);
  font-weight: 400;
  max-width: 90%;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-underline {
  position: relative;
  display: inline-block;
}

.hero-underline svg {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 12px;
}

.hero .subtitle {
  font-size: 1.1875rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  font-weight: 400;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.hero-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.hero-link:hover {
  color: var(--color-heading);
}

/* ── Signal Rings (decorative) ── */
.signal-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.signal-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.06);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: signal-pulse 6s ease-in-out infinite;
}

.signal-ring-1 { width: 320px; height: 320px; }
.signal-ring-2 { width: 480px; height: 480px; animation-delay: 0.8s; border-color: rgba(16, 185, 129, 0.04); }
.signal-ring-3 { width: 640px; height: 640px; animation-delay: 1.6s; border-color: rgba(16, 185, 129, 0.025); }

@keyframes signal-pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.04); }
}

/* ── Cards ── */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-xl) var(--space-2xl);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.0625rem;
}

.card p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.card-label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-sm);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.card-icon svg {
  width: 22px;
  height: 22px;
}

/* ── Grid Layouts ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

/* ── Products Section ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.product-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.product-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
}

.product-badge-live {
  background: var(--color-accent-subtle);
  color: var(--color-green-dark);
  text-decoration: none;
  transition: background var(--transition);
}

.product-badge-live:hover {
  background: var(--color-accent-muted);
  color: var(--color-green-dark);
}

.product-badge-blue {
  background: #dbeafe;
  color: #1e40af;
  text-decoration: none;
  transition: background var(--transition);
}

.product-badge-blue:hover {
  background: #bfdbfe;
  color: #1e40af;
}

.product-badge-soon {
  background: var(--color-bg-muted);
  color: var(--color-text-muted);
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

/* Product wordmark (icon + name inline) */
.product-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-heading);
  text-decoration: none;
  transition: opacity var(--transition);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-wordmark:hover {
  color: var(--color-heading);
  opacity: 0.7;
}

.product-wordmark-sales .logo-text {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.sales-bold {
  font-weight: 700;
  color: var(--color-heading);
}

.sales-muted {
  font-weight: 400;
  color: var(--color-text-muted);
}

.product-wordmark-img {
  height: 56px;
  width: auto;
}


.product-card p {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ── Footer ── */
.site-footer {
  background: #0f172a;
  padding: var(--space-2xl) 0 var(--space-md);
  color: #94a3b8;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand .logo-text {
  color: #f1f5f9;
}

.footer-brand .logo-text-muted {
  color: #64748b;
}

.footer-brand p {
  color: #64748b;
  font-size: 0.875rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--space-sm);
}

.footer-col a {
  color: #94a3b8;
  font-size: 0.875rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #e2e8f0;
  text-decoration: none;
}

.footer-disabled {
  color: #475569;
  font-size: 0.875rem;
  cursor: default;
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: #475569;
}

.footer-bottom a {
  color: #64748b;
  font-size: 0.8125rem;
}

.footer-bottom a:hover {
  color: #94a3b8;
}

/* ── Mobile Navigation ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-xl);
  z-index: 99;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: var(--space-sm) 0;
  color: var(--color-text-secondary);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.mobile-nav a:hover {
  color: var(--color-heading);
  text-decoration: none;
}

.mobile-nav .btn {
  margin-top: var(--space-md);
  width: 100%;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════ */

@media (max-width: 767px) {
  :root {
    --space-4xl: 3rem;
    --space-5xl: 4rem;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subhead {
    font-size: 1.0625rem;
  }

  .hero .subtitle {
    font-size: 1.0625rem;
  }

  .container {
    padding: 0 var(--space-lg);
  }

  /* Header */
  .header-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Grids */
  .grid-3,
  .product-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* Hero buttons */
  .hero-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero-subhead {
    font-size: 1rem;
  }
}
