:root {
  --bg: #08111f;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-strong: #0f1a2d;
  --text: #e5eefb;
  --muted: #95a8c4;
  --accent: #38bdf8;
  --accent-strong: #7dd3fc;
  --line: rgba(125, 211, 252, 0.16);
  --shadow: 0 24px 52px rgba(2, 8, 23, 0.42);
  --content-width: 1120px;
  --radius-lg: 28px;
  --radius-md: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.22), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(59, 130, 246, 0.18), transparent 24%),
    linear-gradient(180deg, #0b1220 0%, var(--bg) 52%, #050a14 100%);
}

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

.page-shell {
  width: min(var(--content-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 30px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: "Bahnschrift", "Aptos", sans-serif;
  font-weight: 700;
}

.brand-mark {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
  margin-left: -22px;
}

.nav-links a {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.84rem;
  font-weight: 700;
}

.eyebrow,
.service-index,
.timeline span,
 .card-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

.eyebrow {
  display: none;
}

.brand-text {
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 24px;
  color: var(--muted);
}

.mobile-nav {
  display: none;
}

.mobile-nav-toggle {
  list-style: none;
}

.mobile-nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-links a:hover,
.brand:hover .brand-text {
  color: var(--accent-strong);
}

.hero-grid {
  display: block;
  flex: 1;
  padding: 28px 0 18px;
}

.hero-copy {
  width: 100%;
}

.hero-copy h1,
.section-heading h2 {
  font-family: "Bahnschrift", "Aptos Narrow", "Aptos", sans-serif;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0;
}

.section-copy {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  margin: 18px 0 0;
}

.hero-copy h1 {
  max-width: none;
  font-size: clamp(3.1rem, 5.4vw, 4.8rem);
  margin-top: 14px;
}

.lead {
  max-width: 78ch;
  font-size: 1.1rem;
  line-height: 1.72;
  color: var(--muted);
  margin: 26px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, background 180ms ease;
  font-weight: 700;
}

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

.button-primary {
  background: var(--accent);
  color: #03111e;
  border-color: transparent;
}

.button-secondary {
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  backdrop-filter: blur(14px);
}

.service-card,
.intro-grid article,
.timeline article,
.service-detail-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.section {
  padding: 84px 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(125, 211, 252, 0.34) 18%, rgba(125, 211, 252, 0.34) 82%, transparent 100%);
}

.section-heading {
  width: 100%;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  margin-top: 12px;
}

.intro-grid,
.services-grid,
.timeline,
.service-detail-grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

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

.intro-grid article,
.service-card,
.timeline article,
.service-detail-grid article {
  padding: 28px;
  border-radius: var(--radius-md);
}

.intro-grid h3,
.service-card h3,
.timeline h3,
.service-detail-grid h3 {
  margin: 0 0 14px;
  font-size: 1.28rem;
  line-height: 1.35;
}

.intro-grid p,
.service-card p,
.timeline p,
.service-detail-grid p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
}

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

.service-index {
  color: var(--accent);
}

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

.timeline span {
  color: var(--accent-strong);
}

.service-detail-grid span {
  color: var(--accent-strong);
}

.service-note {
  margin-top: 14px !important;
}

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

.feature-list li {
  margin-top: 10px;
  font-size: 1rem;
  line-height: 1.68;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: linear-gradient(180deg, rgba(8, 17, 31, 0) 0%, rgba(4, 10, 20, 0.74) 100%);
  white-space: nowrap;
}

.footer p {
  margin: 0;
  flex: 0 0 auto;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}

.footer-social-links,
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.78);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.footer-icon-link:hover {
  transform: translateY(-2px);
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(125, 211, 252, 0.28);
}

.footer-icon-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.footer-icon-link span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-text-link svg {
  display: none;
}

.legal-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 0 72px;
}

.legal-page h1,
.legal-page h2 {
  font-family: "Bahnschrift", "Aptos Narrow", "Aptos", sans-serif;
  letter-spacing: -0.03em;
}

.legal-page section {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 20px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 920px) {
  .page-shell {
    width: min(var(--content-width), calc(100% - 28px));
  }

  .nav {
    padding: 14px 0;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
  }

  .brand-text {
    font-size: 1.12rem;
  }

  .hero-grid {
    padding-top: 22px;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 8vw, 4rem);
  }

  .lead,
  .section-copy {
    font-size: 1.02rem;
  }

  .footer {
    gap: 12px;
  }

  .footer-links,
  .footer-social-links,
  .footer-legal-links {
    gap: 8px;
  }

  .footer-icon-link {
    min-height: 36px;
    padding: 0 11px;
  }

  .footer-icon-link svg {
    width: 16px;
    height: 16px;
  }

  .footer-icon-link span {
    font-size: 0.76rem;
  }

  .intro-grid,
  .services-grid,
  .timeline,
  .service-detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .section {
    padding: 64px 0;
  }
}

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

  .nav {
    align-items: center;
    gap: 12px;
    padding: 20px 0;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    white-space: normal;
  }

  .brand {
    gap: 2px;
  }

  .brand-mark {
    width: 74px;
    height: 74px;
    margin-left: -14px;
  }

  .brand-text {
    font-size: 1.2rem;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav {
    display: block;
    margin-left: auto;
    position: relative;
  }

  .mobile-nav-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.78);
    cursor: pointer;
  }

  .mobile-nav-toggle span {
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
  }

  .mobile-nav[open] .mobile-nav-toggle {
    border-color: rgba(125, 211, 252, 0.28);
    background: rgba(56, 189, 248, 0.12);
  }

  .mobile-nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    display: grid;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
  }

  .mobile-nav-menu a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
  }

  .mobile-nav-menu a:hover {
    background: rgba(56, 189, 248, 0.12);
  }

  .footer-links {
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .footer-social-links,
  .footer-legal-links {
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
  }

  .footer-legal-links {
    gap: 12px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: clamp(2.45rem, 12vw, 3.4rem);
  }

  .hero-grid {
    padding-top: 20px;
  }

  .lead,
  .section-copy,
  .intro-grid p,
  .service-card p,
  .service-detail-grid p,
  .feature-list li {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .section-heading h2 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 28px;
  }

  .button {
    width: 100%;
  }

  .intro-grid article,
  .service-card,
  .timeline article,
  .service-detail-grid article,
  .legal-page section {
    padding: 22px;
  }

  .footer {
    gap: 14px;
    padding-top: 28px;
  }

  .footer p {
    width: 100%;
  }

  .footer-icon-link {
    min-height: 38px;
    padding: 0 12px;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: calc(100% - 20px);
  }

  .nav-links a,
  .eyebrow,
  .card-label {
    font-size: 0.72rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.2rem, 11.5vw, 3rem);
  }

  .section {
    padding: 56px 0;
  }

  .section::before {
    top: -6px;
  }
}
