:root {
  color-scheme: dark;
  --bg: #06111f;
  --bg-alt: #0b1729;
  --panel: rgba(9, 19, 35, 0.9);
  --panel-strong: #0f1d33;
  --line: rgba(143, 174, 214, 0.18);
  --line-strong: rgba(143, 174, 214, 0.28);
  --text: #e8f0ff;
  --muted: #93a8cb;
  --accent: #54a6ff;
  --accent-strong: #7bc0ff;
  --accent-soft: rgba(84, 166, 255, 0.12);
  --success: #89d77b;
  --danger: #ff8c7a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 8px;
  --content-width: 1180px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    linear-gradient(180deg, rgba(4, 10, 18, 0.72) 0%, rgba(4, 10, 18, 0.92) 55%, rgba(4, 10, 18, 1) 100%),
    url("../images/dark.jpg") center/cover fixed no-repeat,
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
}

.site-main {
  padding-bottom: 72px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(5, 12, 23, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo,
.footer-logo {
  width: auto;
  height: 44px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-name {
  font-size: 1rem;
  font-weight: 700;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.8rem;
}

.brand-copy {
  min-width: 0;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--muted);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, #58abff 0%, #3589e8 100%);
  color: #051120;
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
}

.hero {
  padding: 72px 0 40px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(84, 166, 255, 0.12);
  border: 1px solid rgba(84, 166, 255, 0.22);
  color: #b6d8ff;
  font-size: 0.88rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  line-height: 1.02;
}

.hero p {
  margin: 0;
  max-width: 62ch;
  color: #c3d2ea;
  font-size: 1.05rem;
}

.hero-actions,
.stack-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.hero-point,
.info-card,
.stat-card,
.feature-card,
.location-card,
.service-card,
.support-card,
.doc-card,
.empty-state,
.panel-preview,
.flow-step,
.summary-card {
  background: linear-gradient(180deg, rgba(13, 24, 43, 0.92) 0%, rgba(10, 18, 32, 0.92) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-point {
  padding: 16px;
}

.hero-point strong,
.section-heading h2,
.service-card h3,
.feature-card h3,
.location-card h3,
.doc-card h3,
.support-card h3,
.flow-step h3,
.summary-card h3,
.panel-preview h3 {
  display: block;
  margin: 0 0 8px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-visual-card {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px;
  background: rgba(5, 12, 23, 0.82);
  border: 1px solid var(--line);
  border-radius: 6px;
  backdrop-filter: blur(18px);
}

.hero-visual-card strong {
  font-size: 1rem;
}

.hero-visual-card p {
  color: var(--muted);
  margin-top: 8px;
}

.section {
  padding: 28px 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.stats-grid,
.feature-grid,
.location-grid,
.service-grid,
.support-grid,
.doc-grid,
.flow-grid,
.summary-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.location-grid,
.service-grid,
.support-grid,
.doc-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.flow-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.stat-card,
.feature-card,
.location-card,
.service-card,
.support-card,
.doc-card,
.flow-step,
.summary-card,
.panel-preview,
.empty-state {
  padding: 22px;
}

.stat-card strong {
  font-size: 1.65rem;
}

.stat-card span,
.feature-card p,
.location-card p,
.service-card p,
.doc-card p,
.support-card p,
.panel-preview p,
.flow-step p,
.summary-card p,
.muted {
  color: var(--muted);
}

.section-divider {
  height: 1px;
  margin: 16px 0 8px;
  background: linear-gradient(90deg, rgba(84, 166, 255, 0) 0%, rgba(84, 166, 255, 0.35) 50%, rgba(84, 166, 255, 0) 100%);
}

.list-clean {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.list-clean li + li {
  margin-top: 8px;
}

.location-card small,
.service-meta,
.doc-meta {
  color: #b8cae5;
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
  background: #08111f;
}

.service-card header,
.doc-card header {
  margin-bottom: 10px;
}

.service-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.kicker {
  color: #b6d8ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(137, 215, 123, 0.12);
  border: 1px solid rgba(137, 215, 123, 0.22);
  color: #b6efad;
  font-size: 0.85rem;
  font-weight: 600;
}

.alert {
  padding: 16px 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 140, 122, 0.22);
  background: rgba(255, 140, 122, 0.08);
  color: #ffd1c8;
}

.alert.info {
  border-color: rgba(84, 166, 255, 0.2);
  background: rgba(84, 166, 255, 0.08);
  color: #cbe1ff;
}

.empty-state {
  text-align: center;
}

.page-heading {
  padding: 54px 0 18px;
}

.page-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3vw, 3rem);
}

.page-heading p {
  margin: 0;
  max-width: 74ch;
  color: var(--muted);
}

.panel-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 24px;
  align-items: center;
}

.panel-preview-shell {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.panel-preview-shell img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.panel-preview-stats {
  display: grid;
  gap: 12px;
}

.flow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(84, 166, 255, 0.16);
  color: var(--accent-strong);
  font-weight: 700;
  margin-bottom: 12px;
}

.doc-list-group {
  display: grid;
  gap: 18px;
}

.doc-list-group h2 {
  margin: 0;
  font-size: 1.25rem;
}

.doc-view {
  padding: 28px;
}

.doc-view h1,
.doc-view h2,
.doc-view h3,
.doc-view h4 {
  color: var(--text);
}

.doc-view a {
  color: var(--accent-strong);
}

.doc-view pre,
.doc-view code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.doc-view pre {
  overflow-x: auto;
  padding: 16px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}

.doc-view table {
  width: 100%;
  border-collapse: collapse;
}

.doc-view th,
.doc-view td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
}

.cta-band {
  padding: 28px 0 0;
}

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 24px 26px;
  background: linear-gradient(135deg, rgba(29, 72, 138, 0.55) 0%, rgba(12, 25, 45, 0.95) 100%);
  border: 1px solid rgba(113, 176, 255, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 10, 18, 0.78);
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer-grid h2 {
  font-size: 0.95rem;
  margin: 0 0 14px;
}

.footer-copy {
  color: var(--muted);
  max-width: 32ch;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 1080px) {
  .hero-layout,
  .panel-preview,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .location-grid,
  .service-grid,
  .support-grid,
  .doc-grid,
  .flow-grid,
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-shell {
    grid-template-columns: auto auto;
    gap: 16px;
  }

  .nav-toggle {
    display: inline-block;
    justify-self: end;
  }

  .primary-nav,
  .header-actions {
    display: none;
  }

  .primary-nav.is-open,
  .header-actions.is-open {
    display: flex;
  }

  .header-shell {
    padding: 14px 0;
  }

  .site-header .container {
    display: grid;
  }

  .primary-nav.is-open {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    padding-top: 12px;
  }

  .header-actions {
    grid-column: 1 / -1;
    display: none;
    flex-wrap: wrap;
    margin-top: 6px;
  }

  .header-actions.is-open {
    display: flex;
  }

  .header-actions .button {
    flex: 1 1 180px;
  }

  .hero,
  .page-heading {
    padding-top: 42px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--content-width));
  }

  .hero-points,
  .stats-grid,
  .feature-grid,
  .location-grid,
  .service-grid,
  .support-grid,
  .doc-grid,
  .flow-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .cta-panel,
  .site-footer {
    padding-left: 0;
    padding-right: 0;
  }
}
