/* ============================================
   Signal Scoping — Light Watercolor Theme
   Matches the cream/navy/blue/gold logo
   ============================================ */

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

:root {
  --bg-primary: #FBF9F5;
  --bg-secondary: #F4EFE6;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --text-primary: #081F3F;
  --text-secondary: #3D556E;
  --text-muted: #6B7C92;
  --accent-blue: #6094C7;
  --accent-blue-bright: #4A78AC;
  --accent-gold: #CFA447;
  --accent-gold-bright: #B88A2E;
  --border-subtle: rgba(8, 31, 63, 0.10);
  --border-strong: rgba(8, 31, 63, 0.18);
  --shadow-card: 0 2px 12px rgba(8, 31, 63, 0.06);
  --shadow-card-hover: 0 14px 40px rgba(8, 31, 63, 0.12);
  --shadow-gold: 0 8px 24px rgba(207, 164, 71, 0.25);
  --gradient-hero: linear-gradient(135deg, #FBF9F5 0%, #F4EFE6 50%, #E6EBF2 100%);
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1200px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; display: block; }

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 249, 245, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 2rem;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 58px;
  width: 58px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  font-weight: 600;
}

.nav-logo-text span {
  color: var(--accent-gold-bright);
}

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width var(--transition);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--text-primary);
  color: var(--bg-primary) !important;
  padding: 0.65rem 1.5rem !important;
  border-radius: 6px;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.5px;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--accent-blue-bright) !important;
  color: var(--bg-primary) !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -25%;
  width: 80%;
  height: 160%;
  background: radial-gradient(ellipse, rgba(96, 148, 199, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(207, 164, 71, 0.10) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-weight: 700;
}

.hero-text h1 .highlight {
  color: var(--accent-gold-bright);
}

.hero-text .subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.8;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-logo img {
  width: 420px;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(8, 31, 63, 0.10));
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.9rem 2.1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--accent-blue-bright);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(8, 31, 63, 0.20);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.btn-outline:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Sections --- */
.section {
  padding: 6rem 2rem;
}

.section-dark {
  background: var(--bg-secondary);
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  color: var(--accent-gold-bright);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 0.75rem;
}

/* --- Cards Grid --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-gold));
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border-strong);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
}

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

/* --- Stats Row --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.stat {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--accent-gold-bright);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Process / Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.step {
  padding: 2rem;
  position: relative;
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--accent-blue);
  opacity: 0.30;
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 700;
}

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

/* --- Page Header (inner pages) --- */
.page-header {
  padding: 10rem 2rem 4rem;
  background: var(--gradient-hero);
  text-align: center;
  position: relative;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Content Blocks --- */
.content-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.content-block.reverse {
  direction: rtl;
}

.content-block.reverse > * {
  direction: ltr;
}

.content-block h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  font-weight: 700;
}

.content-block p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.content-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

/* --- Pricing / Service Tiers --- */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: start;
}

.tier {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 3rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}

.tier:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.tier.featured {
  border-color: var(--accent-gold);
  border-width: 2px;
  position: relative;
  box-shadow: var(--shadow-gold);
}

.tier.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: var(--text-primary);
  padding: 0.35rem 1.3rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tier h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 700;
}

.tier-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.tier ul {
  list-style: none;
  margin-bottom: 2rem;
}

.tier ul li {
  padding: 0.6rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tier ul li::before {
  content: '\2713';
  color: var(--accent-gold-bright);
  font-weight: bold;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(96, 148, 199, 0.18);
}

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

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 300px;
}

.footer h4 {
  color: var(--text-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.7rem;
}

.footer ul a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer ul a:hover {
  color: var(--accent-gold-bright);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #E6EBF2 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.cta-banner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-text .subtitle { margin-left: auto; margin-right: auto; }
  .hero-logo img { width: 280px; }
  .hero-text h1 { font-size: 2.5rem; }
  .btn-group { justify-content: center; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .content-block, .content-block.reverse { grid-template-columns: 1fr; direction: ltr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 600px) {
  .hero-text h1 { font-size: 2rem; }
  .section-header h2 { font-size: 1.8rem; }
  .page-header h1 { font-size: 2rem; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* Detector page — 'what you're missing' list */
.section ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}
.section ul li::before {
  content: '\26A0';
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--accent-gold-bright);
  font-size: 1.1rem;
}

/* --- Clickable detector cards --- */
.card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  color: inherit;
}

.card-link h3,
.card-link p {
  color: var(--text-primary);
}

.card-link p {
  color: var(--text-secondary);
}

.card-cta {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--accent-gold-bright);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: transform var(--transition), color var(--transition);
}

.card-link:hover .card-cta {
  color: var(--accent-blue-bright);
  transform: translateX(4px);
}

/* Tier-list page lists should override the warning-icon bullet */
.tier ul li::before { content: '\2713'; color: var(--accent-gold-bright); font-size: 1rem; top: 0.5rem; }
.tier ul li { padding-left: 1.75rem; }
