:root {
  --header: #0f172a;
  --primary: #dc2626;
  --primary-dark: #b91c1c;
  --primary-soft: #fef2f2;
  --ink: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --focus: #2563eb;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px -16px rgba(15, 23, 42, .18);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-200%);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform .16s ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* Header */

.site-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.brand svg {
  width: auto;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
}

.brand-tag {
  font-size: 11.5px;
  color: var(--muted-2);
  font-weight: 500;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.managed {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted-2);
  white-space: nowrap;
}

.header-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.header-link:hover {
  background: var(--line-soft);
  border-color: #cbd5e1;
}

/* Hero */

.hero {
  padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .14);
  flex-shrink: 0;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
  font-size: clamp(30px, 4.6vw, 48px);
  text-wrap: balance;
}

.domain-pill {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  width: fit-content;
  padding: 10px 14px;
  background: var(--header);
  color: #fff;
  border-radius: 12px;
  font-size: clamp(15px, 2.4vw, 19px);
  font-weight: 700;
  letter-spacing: -.01em;
}

.domain-pill svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #86efac;
}

.domain-pill span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.lead {
  margin: 18px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(15.5px, 1.6vw, 17.5px);
  line-height: 1.7;
}

.lead strong {
  color: var(--ink);
  font-weight: 700;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15.5px;
  text-decoration: none;
  border: 1px solid transparent;
  line-height: 1.2;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: #cbd5e1;
}

.btn-secondary:hover {
  background: var(--line-soft);
  border-color: #94a3b8;
}

.status-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  max-width: 34em;
}

.status-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--muted);
}

.status-list strong {
  color: var(--ink);
  font-weight: 650;
}

.status-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
}

.status-icon.neutral {
  background: var(--line-soft);
  color: var(--muted);
}

.status-icon svg {
  width: 13px;
  height: 13px;
}

/* Illustration */

.illus-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.illus-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.illus-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--muted);
  font-weight: 600;
}

.illus-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  display: inline-block;
}

.illus-body {
  padding: 18px 18px 8px;
  background:
    radial-gradient(420px 220px at 85% 0%, #eff6ff 0%, transparent 60%),
    #fff;
}

.illus-card svg.illus {
  display: block;
  width: 100%;
  height: auto;
}

.illus-caption {
  margin: 0;
  padding: 12px 18px 18px;
  font-size: 13.5px;
  color: var(--muted-2);
  border-top: 1px dashed var(--line);
  background: #fff;
}

/* Reduced motion default: illustration fully visible.
   JS adds .is-anim to stage initial hidden states. */
.illus .anim-hidden {
  opacity: 1;
}

.js-anim .illus .anim-hidden {
  opacity: 0;
}

/* Services */

.services {
  padding: clamp(8px, 2vw, 20px) 0 clamp(36px, 5vw, 64px);
}

.section-head {
  max-width: 640px;
}

.section-kicker {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
}

.section-head h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 3.2vw, 32px);
  letter-spacing: -.025em;
  line-height: 1.2;
  text-wrap: balance;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.service-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-grid li {
  min-width: 0;
}

.service {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.service:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-50, #eff6ff);
  color: #1d4ed8;
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service h3 {
  margin: 14px 0 0;
  font-size: 16.5px;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.service p {
  margin: 8px 0 0;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  flex: 1;
}

.service a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--primary-dark);
  text-decoration: none;
  min-height: 32px;
  width: fit-content;
}

.service a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service a svg {
  width: 15px;
  height: 15px;
}

/* Help strip */

.help {
  margin: 0 0 clamp(36px, 5vw, 56px);
}

.help-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  background: var(--header);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 22px 24px;
}

.help-box h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 22px);
  letter-spacing: -.02em;
  color: #fff;
}

.help-box p {
  margin: 6px 0 0;
  font-size: 14.5px;
  color: #cbd5e1;
  max-width: 44em;
}

.help-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.help-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}

.help-primary {
  background: #fff;
  color: var(--ink);
}

.help-primary:hover {
  background: var(--line-soft);
}

.help-ghost {
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
}

.help-ghost:hover {
  background: rgba(255, 255, 255, .1);
}

/* Footer */

.site-footer {
  margin-top: auto;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 340px;
}

.footer-brand svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.footer-brand p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-brand strong {
  color: var(--ink);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  padding: 6px 0;
}

.footer-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-base {
  width: 100%;
  margin: 6px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted-2);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: space-between;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .illus-card {
    max-width: 640px;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .managed {
    display: none;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(1120px, 100% - 32px);
  }

  .site-header .container {
    min-height: 64px;
  }

  .brand svg {
    height: 34px;
  }

  .brand-tag {
    display: none;
  }

  .header-link {
    padding: 8px 12px;
    font-size: 13.5px;
  }

  .domain-pill {
    width: 100%;
    border-radius: 10px;
  }

  .cta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
    min-height: 52px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service {
    padding: 18px;
  }

  .help-box {
    padding: 20px;
  }

  .help-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .help-actions a {
    justify-content: center;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
