:root {
  --page: #08090e;
  --surface: #0e1017;
  --panel: #131620;
  --line: #1a1e2a;
  --line-hover: #2a3040;
  --text: #e8eaf0;
  --muted: #6b7280;
  --dim: #4b5060;
  --blue: #3b82f6;
  --blue-hover: #2563eb;
  --blue-glow: rgba(59, 130, 246, .12);
  --red: #dc2626;
  --red-hover: #b91c1c;
  --red-glow: rgba(220, 38, 38, .10);
  --max: 1200px;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
}

* { box-sizing: border-box; margin: 0; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--page);
  font: 400 15px/1.6 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 9, 14, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font: 650 .85rem/1 var(--mono);
  letter-spacing: .08em;
}
.brand-logo { display: block; }
.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  padding: 8px 14px;
  color: var(--muted);
  font-size: .8rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}
.nav-link:hover { color: var(--text); text-decoration: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border: 1px solid transparent;
  color: #fff;
  background: transparent;
  font: 500 .8rem/1 'Inter', sans-serif;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.button-outline { border-color: var(--line); color: var(--muted); }
.button-outline:hover { border-color: var(--line-hover); color: var(--text); }
.button-primary { background: var(--blue); }
.button-primary:hover { background: var(--blue-hover); }
.button-ghost { color: var(--muted); }
.button-ghost:hover { color: var(--text); text-decoration: none; }
.button-us { background: var(--red); }
.button-us:hover { background: var(--red-hover); }

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 30% 40%, rgba(59, 130, 246, .07), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, transparent, black 15%, black 80%, transparent);
}
.hero-split {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 100px 0 110px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text { max-width: 520px; }
.eyebrow {
  margin-bottom: 16px;
  color: var(--blue);
  font: 600 .68rem/1 var(--mono);
  letter-spacing: .14em;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: #fff;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-sub a { color: var(--blue); }
.hero-actions { display: flex; gap: 10px; }
.hero-powered {
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 28px;
}
.hero-powered a { color: var(--blue); }
.hero-actions .button { padding: 11px 22px; font-size: .85rem; }

/* ── DNS Mock ── */
.mock-window {
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.mock-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.mock-dot {
  width: 8px;
  height: 8px;
  background: var(--line-hover);
  display: block;
}
.mock-title {
  margin-left: 8px;
  color: var(--dim);
  font: 500 .7rem/1 var(--mono);
  letter-spacing: .02em;
}
.mock-table {
  width: 100%;
  border-collapse: collapse;
  font: 400 .75rem/1.5 var(--mono);
}
.mock-table th {
  padding: 8px 12px;
  text-align: left;
  color: var(--dim);
  font-weight: 500;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.mock-table td {
  padding: 7px 12px;
  color: var(--muted);
  border-bottom: 1px solid rgba(26, 30, 42, .6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.mock-table tbody tr { transition: background .15s; }
.mock-table tbody tr:hover { background: rgba(59, 130, 246, .04); }
.mock-row-highlight { background: rgba(59, 130, 246, .06); }
.rec-badge {
  display: inline-block;
  padding: 2px 6px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
}
.rec-a { background: #2563eb; }
.rec-aaaa { background: #7c3aed; }
.rec-cname { background: #0891b2; }
.rec-mx { background: #c026d3; }
.rec-txt { background: #059669; }
.rec-caa { background: #d97706; }
.rec-https { background: #dc2626; }

/* ── Features ── */
.features {
  padding: 100px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.features-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}
.features .eyebrow { text-align: center; }
.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 56px;
  color: #fff;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature-card {
  padding: 32px 28px;
  background: var(--surface);
  transition: background .2s;
}
.feature-card:hover { background: var(--panel); }
.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--blue);
  background: var(--blue-glow);
}
.feature-card h3 {
  margin-bottom: 8px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: #fff;
}
.feature-card p {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.65;
}

/* ── CTA ── */
.cta-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.cta-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: #fff;
  margin-bottom: 10px;
}
.cta-inner p {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: .95rem;
}
.cta-inner .button { padding: 12px 24px; font-size: .85rem; }

/* ── Footer ── */
footer {
  margin-top: auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.footer-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand {
  display: block;
  color: #fff;
  text-decoration: none;
  font: 650 .85rem/1 var(--mono);
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.footer-tagline { color: var(--dim); font-size: .8rem; }
.footer-powered { color: var(--dim); font-size: .75rem; margin-top: 4px; }
.footer-powered a { color: var(--muted); }
.footer-powered a:hover { color: var(--text); }
.footer-entity-label {
  color: var(--dim);
  font: 600 .6rem/1 var(--mono);
  letter-spacing: .12em;
  margin-bottom: 8px;
}
.footer-entity-name {
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.footer-entity-detail {
  color: var(--muted);
  font-size: .75rem;
  margin-bottom: 2px;
}
.footer-entity-detail a { color: var(--muted); }
.footer-entity-detail a:hover { color: var(--text); }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 10px;
}
.footer-links a {
  color: var(--dim);
  font-size: .7rem;
  text-decoration: none;
}
.footer-links a:hover { color: var(--muted); }

/* ── Dialog ── */
.region-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.region-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.dialog-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
}
.dialog-header {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.dialog-header .eyebrow { margin-bottom: 4px; }
.dialog-header h2 { font-size: 1.3rem; font-weight: 700; color: #fff; }
.dialog-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.dialog-close:hover { border-color: var(--line-hover); color: var(--text); }

.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
}

.service-card {
  display: flex;
  padding: 28px;
  background: var(--panel);
}
.service-card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  padding: 24px;
  transition: border-color .2s, background .2s, box-shadow .2s;
  background: var(--surface);
}
.service-card:hover .service-card-inner {
  border-color: var(--blue);
  background: rgba(59, 130, 246, .03);
  box-shadow: 0 0 0 1px var(--blue), inset 0 0 40px -20px var(--blue-glow);
}
.service-card-us:hover .service-card-inner {
  border-color: var(--red);
  background: rgba(220, 38, 38, .03);
  box-shadow: 0 0 0 1px var(--red), inset 0 0 40px -20px var(--red-glow);
}

.service-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.service-flag { display: block; }

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.service-sub {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: 12px;
}
.service-entity {
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}
.service-detail {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 2px;
}
.service-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 12px 0 16px;
}
.service-legal a {
  color: var(--dim);
  font-size: .7rem;
  text-decoration: none;
}
.service-legal a:hover { color: var(--muted); text-decoration: underline; }
.service-go {
  display: flex;
  align-items: center;
  padding: 14px 0;
  margin-top: auto;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  border-top: 1px solid var(--line);
  text-decoration: none;
  transition: color .15s;
  cursor: pointer;
}
.service-card-us .service-go { color: var(--red); }
.service-card:hover .service-go { color: #60a5fa; }
.service-card-us:hover .service-go { color: #f87171; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-text { max-width: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero-split { padding: 60px 0 70px; }
  .hero-mock { display: none; }
  .features { padding: 60px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 60px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .service-split { grid-template-columns: 1fr; }
  .dialog-content { width: calc(100% - 24px); }
  .nav-link { display: none; }
}
