/* =========================================================
   Signalscope — Marketing Site Styles
   Palette: #007BFF (Blue), #00C6B5 (Teal), #28A745 (Green)
   Fonts:  Montserrat (headings), Lato (body)
   ========================================================= */

:root {
  --blue:       #007BFF;
  --teal:       #00C6B5;
  --green:      #28A745;
  --red:        #DC3545;
  --dark:       #0d1117;
  --dark-2:     #161b22;
  --dark-3:     #1c2330;
  --text:       #e6edf3;
  --text-muted: #8b949e;
  --border:     rgba(255,255,255,0.08);
  --card-bg:    rgba(255,255,255,0.04);
  --radius:     12px;
  --transition: 0.25s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lato', sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--blue); }

h1,h2,h3,h4,h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

/* ---- Utility ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.gradient-text {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0,198,181,0.15);
  color: var(--teal);
  border: 1px solid rgba(0,198,181,0.3);
  margin-bottom: 16px;
}
.section { padding: 100px 0; }
.section-title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 16px; }
.section-sub { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 60px; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13,17,23,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.navbar.scrolled { background: rgba(13,17,23,0.97); }
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
}
.nav-logo svg { flex-shrink: 0; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--card-bg); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0,123,255,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,123,255,0.5);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--card-bg);
  border-color: rgba(255,255,255,0.18);
  color: var(--text);
}
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
#hero-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.35;
}
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(0,123,255,0.18) 0%, rgba(0,198,181,0.08) 50%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 80px 0;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 6px var(--green); }
  50% { box-shadow: 0 0 18px var(--green); }
}
.eyebrow-text { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.05em; }
.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 60px; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 2px; }

/* ---- Logos / Trust Bar ---- */
.trust-bar {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--dark-2);
}
.trust-bar-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 24px;
}
.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}
.trust-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.55;
  transition: opacity var(--transition);
}
.trust-logo:hover { opacity: 0.9; }

/* ---- Feature Grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  border-color: rgba(0,198,181,0.35);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,198,181,0.08);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(0,123,255,0.15), rgba(0,198,181,0.15));
  border: 1px solid rgba(0,198,181,0.2);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.925rem; color: var(--text-muted); line-height: 1.65; }

/* ---- How It Works ---- */
.how-section { background: var(--dark-2); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  position: relative;
}
.how-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  z-index: 0;
}
.how-step {
  text-align: center;
  padding: 32px 24px;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 30px rgba(0,198,181,0.3);
}
.how-step h3 { font-size: 1rem; margin-bottom: 8px; }
.how-step p { font-size: 0.875rem; color: var(--text-muted); }

/* ---- Capability Tabs ---- */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: -1px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.cap-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color var(--transition);
}
.cap-item:hover { border-color: rgba(0,198,181,0.3); }
.cap-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(40,167,69,0.15);
  border: 1px solid rgba(40,167,69,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.cap-check svg { width: 11px; height: 11px; color: var(--green); }
.cap-item-text { font-size: 0.875rem; }
.cap-item-text strong { display: block; margin-bottom: 2px; }
.cap-item-text span { color: var(--text-muted); font-size: 0.8rem; }

/* ---- ScopeRTC spotlight ---- */
.scopertc-section { background: var(--dark-2); }
.scopertc-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.scopertc-visual {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
#rtc-canvas { width: 100%; height: 100%; }
.scopertc-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.scopertc-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.rtc-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0,123,255,0.2), rgba(0,198,181,0.2));
  border: 1px solid rgba(0,198,181,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rtc-icon svg { width: 18px; height: 18px; }
.scopertc-list li div strong { display: block; font-size: 0.925rem; margin-bottom: 2px; }
.scopertc-list li div span { font-size: 0.83rem; color: var(--text-muted); }

/* ---- Mesh Fabric spotlight ---- */
.mesh-section { background: var(--dark); }
.mesh-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.mesh-visual {
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
#mesh-canvas { width: 100%; aspect-ratio: 4/3; display: block; }
.mesh-stat-row {
  display: flex;
  border-top: 1px solid var(--border);
}
.mesh-stat {
  flex: 1;
  padding: 14px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.mesh-stat:last-child { border-right: none; }
.mesh-stat-val {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mesh-stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mesh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.mesh-pill {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(0,123,255,0.1);
  border: 1px solid rgba(0,123,255,0.25);
  color: var(--blue);
  letter-spacing: 0.03em;
}

/* ---- Architecture ---- */
.arch-diagram {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.arch-diagram::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,198,181,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.arch-nodes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  z-index: 1;
}
.arch-node {
  text-align: center;
}
.arch-node-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid;
  transition: transform var(--transition), box-shadow var(--transition);
}
.arch-node-icon:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.arch-node-icon.blue { background: rgba(0,123,255,0.12); border-color: rgba(0,123,255,0.3); }
.arch-node-icon.teal { background: rgba(0,198,181,0.12); border-color: rgba(0,198,181,0.3); }
.arch-node-icon.green { background: rgba(40,167,69,0.12); border-color: rgba(40,167,69,0.3); }
.arch-node-icon svg { width: 28px; height: 28px; }
.arch-node h4 { font-size: 0.8rem; margin-bottom: 4px; }
.arch-node p { font-size: 0.72rem; color: var(--text-muted); }
.arch-flow-label {
  text-align: center;
  margin-top: 32px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.arch-flow-label span { display: flex; align-items: center; gap: 6px; }
.arch-flow-dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---- Security Section ---- */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.security-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.security-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0,198,181,0.1);
  border: 1px solid rgba(0,198,181,0.2);
}
.security-icon svg { width: 22px; height: 22px; color: var(--teal); }
.security-card h4 { font-size: 0.925rem; margin-bottom: 4px; }
.security-card p { font-size: 0.83rem; color: var(--text-muted); }

/* ---- Pricing ---- */
.pricing-section { background: var(--dark-2); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.pricing-card:hover {
  border-color: rgba(0,198,181,0.3);
  box-shadow: 0 8px 32px rgba(0,198,181,0.07);
}
.pricing-card.popular {
  border-color: var(--teal);
  background: rgba(0,198,181,0.05);
}
.popular-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.plan-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 8px;
}
.plan-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.plan-price sup { font-size: 1.2rem; vertical-align: super; }
.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.plan-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
}
.plan-features li svg { width: 16px; height: 16px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.plan-features li.muted { color: var(--text-muted); }
.plan-features li.muted svg { color: var(--text-muted); }

/* ---- CTA Banner ---- */
.cta-section {
  background: linear-gradient(135deg, rgba(0,123,255,0.12) 0%, rgba(0,198,181,0.08) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-inner h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); max-width: 560px; }
.cta-inner p { color: var(--text-muted); margin-top: 8px; }

/* ---- Footer ---- */
.footer {
  background: var(--dark-2);
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); margin: 12px 0 20px; max-width: 280px; }
.footer-col h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.875rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.social-link:hover { border-color: var(--teal); color: var(--teal); }
.social-link svg { width: 16px; height: 16px; }

/* ---- Mobile nav ---- */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--dark-2);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 24px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 12px 0; color: var(--text-muted); font-size: 1rem; border-bottom: 1px solid var(--border); }
  .mobile-menu .btn { margin-top: 8px; width: 100%; justify-content: center; }
  .hero h1 { font-size: 2.2rem; }
  .hero-actions .btn-lg { width: 100%; justify-content: center; }
  .scopertc-inner { grid-template-columns: 1fr; }
  .mesh-inner { grid-template-columns: 1fr; }
  .arch-nodes { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { text-align: center; justify-content: center; }
  .how-steps::before { display: none; }
  .hero-stats { gap: 24px; }
}
@media (max-width: 480px) {
  .arch-nodes { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ---- Misc ---- */
::selection { background: rgba(0,198,181,0.3); }
