:root {
  --bg: #0b1220;
  --bg-alt: #111827;
  --surface: #1e293b;
  --text: #f8fafc;
  --text-muted: #cbd5e1;
  --teal: #00b4d8;
  --teal-hover: #00c4e8;
  --border: #334155;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --max-width: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1.05rem;
}
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.header-inner { display: flex; align-items: center; height: 100%; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.15rem; }
.logo strong { color: var(--teal); }
.nav { display: flex; gap: 1.4rem; margin-left: auto; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--teal); }
.nav-toggle { background: none; border: none; cursor: pointer; padding: 0.4rem; display: none; flex-direction: column; gap: 5px; margin-left: auto; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; }

.hero { padding: 6rem 0 5rem; text-align: center; background: linear-gradient(180deg, #0b1220 0%, #111827 100%); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.12; margin: 0 0 1.25rem; color: #ffffff; letter-spacing: -0.02em; }
.hero-lead { font-size: 1.2rem; color: #e2e8f0; max-width: 720px; margin: 0 auto 2.5rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.9rem 1.75rem; border-radius: 8px; font-weight: 600; text-decoration: none; border: none; cursor: pointer; transition: all 0.2s; font-size: 1rem; }
.btn-primary { background: var(--teal); color: #0b1220; }
.btn-primary:hover { background: var(--teal-hover); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: #ffffff; border: 1.5px solid #475569; }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }
.btn-full { width: 100%; }

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 2.1rem; font-weight: 700; margin: 0 0 0.75rem; color: #ffffff; }
.section-intro { color: var(--text-muted); font-size: 1.1rem; max-width: 720px; margin-bottom: 2.5rem; }

.grid-2, .grid-3 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); padding: 1.75rem; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.card h3 { margin: 0 0 0.6rem; font-size: 1.3rem; color: #ffffff; }
.center-cta { text-align: center; margin-top: 3rem; }

.privacy-box, .outage-question, .certifications {
  margin-top: 2.5rem; padding: 1.75rem; border-radius: var(--radius);
  background: #1e293b; border: 1px solid var(--border);
}
.outage-question { background: #0f172a; border-left: 4px solid var(--teal); }
.outage-question h3 { margin-top: 0; color: #ffffff; font-size: 1.4rem; }

/* Diagram styles */
.diagram-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; margin-top: 2rem; }
.diagram-card { background: var(--surface); padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); }
.diagram { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin: 1.5rem 0; font-size: 0.9rem; text-align: center; }
.node { padding: 0.6rem 1rem; border-radius: 8px; background: #334155; min-width: 140px; }
.node.isp { background: #0ea5e9; color: #0b1220; font-weight: 600; }
.node.demarc { background: #475569; }
.node.bad-router { background: #7f1d1d; }
.node.good-gateway { background: #065f46; }
.arrow { color: var(--teal); font-size: 1.4rem; }
.branches { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 0.5rem; }
.branch { padding: 0.4rem 0.7rem; border-radius: 6px; font-size: 0.8rem; }
.branch.strong { background: #065f46; }
.branch.weak { background: #7f1d1d; }

/* Certifications */
.cert-grid { display: grid; gap: 1rem; margin-top: 1rem; }
.cert-item { display: flex; justify-content: space-between; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.coming-soon { background: #334155; color: #cbd5e1; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }

.cta-section { background: #020617; color: #ffffff; padding: 6rem 0; }
.cta-section h2 { color: #ffffff; font-size: 2.3rem; font-weight: 700; margin-bottom: 0.75rem; }
.cta-section .section-intro { color: #e2e8f0; font-size: 1.15rem; max-width: 640px; margin-left: auto; margin-right: auto; text-align: center; }
.contact-form { max-width: 560px; margin: 2.5rem auto 0; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.45rem; font-weight: 500; color: #f1f5f9; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.9rem 1rem; border: 1px solid #475569; border-radius: 8px;
  background: #1e293b; color: #f8fafc; font-size: 1rem; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.25); }
.form-note { text-align: center; margin-top: 1.25rem; color: #cbd5e1; }
.form-note a { color: var(--teal); font-weight: 600; }
.form-message { margin-top: 1rem; text-align: center; font-weight: 500; min-height: 1.5em; }

.site-footer { background: #020617; color: #94a3b8; text-align: center; padding: 2.5rem 1rem; font-size: 0.95rem; }
.site-footer a { color: var(--teal); text-decoration: none; }

@media (max-width: 768px) {
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; background: #111827; flex-direction: column; padding: 1.5rem; border-bottom: 1px solid var(--border); display: none; }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { padding: 4rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .cta-section { padding: 4rem 0; }
  .cta-section h2 { font-size: 1.9rem; }
  .diagram { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}