*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0b2545;
  --navy-mid:  #134074;
  --blue:      #1a6fb5;
  --blue-lt:   #dbeafe;
  --text:      #1e293b;
  --muted:     #64748b;
  --border:    #e2e8f0;
  --bg:        #ffffff;
  --bg-alt:    #f8fafc;
  --green:     #22c55e;
  --mono: 'Menlo', 'Consolas', 'Courier New', monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text); line-height: 1.65; background: var(--bg); font-size: 16px; }
a { color: var(--blue); }
a:hover { color: var(--navy-mid); }

/* ── Navigation ── */
.site-nav {
  background: var(--navy);
  position: sticky; top: 0; z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between; height: 58px;
}
.nav-brand {
  font-weight: 800; font-size: 1.2rem; color: #fff;
  text-decoration: none; letter-spacing: -0.03em;
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-brand .accent { color: #60a5fa; }
.nav-tagline {
  font-size: 0.62rem; color: rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 400;
  border-left: 1px solid rgba(255,255,255,0.15); padding-left: 0.5rem; line-height: 1.35;
}
.nav-links { display: flex; list-style: none; gap: 0; }
.nav-links li a {
  display: flex; align-items: center; height: 58px; padding: 0 0.85rem;
  color: rgba(255,255,255,0.72); text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  transition: color 0.15s, background 0.15s;
}
.nav-links li a:hover { color: #fff; background: rgba(255,255,255,0.07); }
.nav-cta { display: flex; align-items: center; }
.nav-cta a {
  background: var(--blue) !important; color: white !important;
  margin-left: 0.5rem; border-radius: 4px; height: 34px !important;
  padding: 0 1rem !important; font-size: 0.82rem !important;
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-right: -10px;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: #fff; border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-cta a:hover { background: var(--navy-mid) !important; }

/* ── Hero ── */
.hero {
  background: linear-gradient(150deg, #0b2545 0%, #134074 55%, #1a6fb5 100%);
  color: white; padding: 5rem 1.5rem 4.5rem;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
.hero-eyebrow {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4); margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: 2.75rem; font-weight: 800;
  letter-spacing: -0.04em; line-height: 1.15; margin-bottom: 1.25rem;
}
.hero h1 .hl { color: #93c5fd; }
.hero-sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.7);
  max-width: 520px; margin: 0 auto 2rem; line-height: 1.7;
}
.hero-actions { display: flex; justify-content: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 2.5rem;
  max-width: 640px; margin: 0 auto;
}
.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,0.12); }
.hero-stat { padding: 0 1rem; text-align: center; }
.hero-stat .val { font-size: 1.75rem; font-weight: 700; color: #93c5fd; font-family: var(--mono); letter-spacing: -0.02em; }
.hero-stat .lbl { font-size: 0.65rem; color: rgba(255,255,255,0.42); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.2rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center;
  padding: 0.625rem 1.375rem; border-radius: 5px;
  font-size: 0.875rem; font-weight: 600; text-decoration: none;
  transition: all 0.15s; cursor: pointer; border: none;
}
.btn-primary { background: #fff; color: var(--navy); }
.btn-primary:hover { background: #f0f9ff; color: var(--navy); }
.btn-outline { background: transparent; color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.08); color: white; border-color: rgba(255,255,255,0.5); }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--navy-mid); color: white; }
.btn-ghost { background: var(--bg-alt); color: var(--navy); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--border); color: var(--navy); }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 1.5rem; }
.section-alt { background: var(--bg-alt); }
.section-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--blue); font-weight: 600; margin-bottom: 0.4rem; }
.section h2 { font-size: 1.625rem; font-weight: 700; color: var(--navy); letter-spacing: -0.025em; }
.section h2 + p { color: var(--muted); margin-top: 0.5rem; max-width: 560px; }
.section-header { margin-bottom: 2.5rem; }

/* ── Feature Grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature-card {
  background: white; border: 1px solid var(--border); border-radius: 8px;
  padding: 1.5rem; transition: box-shadow 0.2s;
}
.feature-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--blue-lt); display: flex; align-items: center;
  justify-content: center; margin-bottom: 1rem; font-size: 1.1rem;
}
.feature-card h3 { font-size: 0.95rem; font-weight: 600; color: var(--navy); margin-bottom: 0.4rem; }
.feature-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead th {
  background: var(--navy); color: rgba(255,255,255,0.9);
  padding: 0.625rem 1rem; text-align: left;
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap;
}
tbody td { padding: 0.625rem 1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:nth-child(even) td { background: #fafbfc; }
tbody tr:hover td { background: #eff6ff; }

/* ── Status dot ── */
.status-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green); margin-right: 0.35rem; vertical-align: middle;
}

/* ── Page Layout ── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: white; padding: 3.5rem 1.5rem 3rem;
}
.page-header h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.03em; }
.page-header p { color: rgba(255,255,255,0.6); margin-top: 0.5rem; font-size: 1rem; }

.page-body { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.page-body h2 {
  font-size: 1.2rem; font-weight: 700; color: var(--navy);
  margin: 2.5rem 0 0.875rem; padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--blue-lt); letter-spacing: -0.02em;
}
.page-body h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin: 1.75rem 0 0.5rem; }
.page-body p { margin-bottom: 1rem; }
.page-body ul, .page-body ol { margin: 0.25rem 0 1rem 1.5rem; }
.page-body li { margin-bottom: 0.3rem; }
.page-body strong { color: var(--navy); }
.page-body a { color: var(--blue); font-weight: 500; }
.page-body code {
  font-family: var(--mono); font-size: 0.82em;
  background: var(--bg-alt); padding: 0.15em 0.4em;
  border-radius: 3px; border: 1px solid var(--border); color: var(--navy-mid);
}
.page-body table { margin: 1rem 0 1.5rem; }
.page-body .table-wrap { margin: 1rem 0 1.5rem; }

/* ── Info boxes ── */
.info-box {
  background: #eff6ff; border-left: 4px solid var(--blue);
  padding: 1rem 1.25rem; border-radius: 0 6px 6px 0; margin: 1.25rem 0; font-size: 0.9rem;
}

/* ── Terminal/WHOIS output ── */
.terminal {
  background: #0d1117; color: #c9d1d9; font-family: var(--mono);
  font-size: 0.82rem; padding: 1.5rem; border-radius: 8px;
  white-space: pre; overflow-x: auto; line-height: 1.8; margin: 1.5rem 0;
}
.terminal .c  { color: #6e7681; }
.terminal .k  { color: #79c0ff; }
.terminal .v  { color: #a5d6ff; }
.terminal .s  { color: #7ee787; }
.terminal .w  { color: #ff7b72; }
.terminal .lk { color: #58a6ff; text-decoration: none; }
.terminal .lk:hover { text-decoration: underline; }

/* ── Footer ── */
footer { background: #060e1a; color: rgba(255,255,255,0.45); padding: 3.5rem 1.5rem 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand { font-weight: 800; font-size: 1.1rem; color: white; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.footer-brand span { color: #60a5fa; }
.footer-desc { font-size: 0.83rem; line-height: 1.65; color: rgba(255,255,255,0.35); max-width: 280px; }
.footer-status { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: rgba(255,255,255,0.3); margin-top: 1rem; }
.footer-col h5 {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4); font-weight: 600; margin-bottom: 0.875rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { font-size: 0.83rem; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.15s; }
.footer-col ul li a:hover { color: rgba(255,255,255,0.75); }
.footer-bottom {
  padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; color: rgba(255,255,255,0.18);
}
/* Easter egg #2: near-invisible footer link */
.footer-nhp {
  font-size: 0.68rem; color: rgba(255,255,255,0.1);
  text-decoration: none; letter-spacing: 0.06em; transition: color 0.4s;
}
.footer-nhp:hover { color: rgba(255,255,255,0.35); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2rem; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 58px; left: 0; right: 0;
    background: var(--navy); padding: 0.5rem 1.5rem 1rem;
    box-shadow: 0 8px 12px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links li a { height: 46px; padding: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-cta { padding-top: 0.75rem; }
  .nav-cta a { margin-left: 0; width: 100%; justify-content: center; border-bottom: 0 !important; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.75rem; }
  .page-header h1 { font-size: 1.5rem; }
}
