:root {
  --bg: #14161a;
  --surface: #1b1e24;
  --surface-2: #22262e;
  --text: #f5f7fa;
  --muted: #aeb5c2;
  --blue: #3b82f6;
  --blue-light: #8bb8ff;
  --blue-dark: #1f5fc4;
  --line: #343943;
  --font-heading: "Sora", Arial, sans-serif;
  --font-body: "Public Sans", Arial, sans-serif;
  --container: 1180px;
  --section-space: clamp(4.75rem, 10vw, 8.5rem);
  --header-height: 4.25rem;
}

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

html {
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  overflow-x: clip; /* avoid body becoming a scroll container (Safari scroll clamp) */
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.6rem;
  left: 0.6rem;
  padding: 0.7rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-160%);
}

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

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 22, 26, 0.94);
  backdrop-filter: blur(16px);
}

.header-inner {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo > span {
  display: inline-grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid var(--blue);
  color: var(--blue-light);
  font-size: 0.72rem;
}

.nav-toggle {
  display: inline-flex;
  width: 2.7rem;
  height: 2.7rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  width: 1rem;
  height: 1px;
  background: currentColor;
}

.site-nav {
  position: fixed;
  inset: var(--header-height) 0 auto;
  display: none;
  max-height: calc(100vh - var(--header-height));
  overflow-y: auto;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.site-nav.is-open {
  display: flex;
  flex-direction: column;
}

.site-nav a {
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav .nav-cta {
  margin-top: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--blue);
  color: var(--text);
  text-align: center;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 4rem) 0 4rem;
  isolation: isolate;
}

.hero-photo {
  position: absolute;
  z-index: -3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 40%;
}

.hero-shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 22, 26, 0.62), rgba(20, 22, 26, 0.86)),
    radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.18), transparent 48%);
}

.hero-shade::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 75%, transparent);
}

.hero-content {
  text-align: center;
}

.eyebrow {
  margin: 0 0 1.4rem;
  color: var(--blue-light);
  font-family: var(--font-heading);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  margin: 0 auto;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 12vw, 8rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.92;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(245, 247, 250, 0.75);
}

.hero-content > p:not(.eyebrow) {
  max-width: 38rem;
  margin: 1.8rem auto 0;
  color: #d5d9e0;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin: 2rem auto 0;
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button--ghost,
.button--outline {
  border-color: #5b6270;
  background: rgba(20, 22, 26, 0.35);
}

.stats-strip {
  border-block: 1px solid var(--line);
  background: #101216;
}

.stats-grid {
  display: grid;
}

.stats-grid > div {
  display: flex;
  min-height: 10rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.stats-grid > div:last-child {
  border-bottom: 0;
}

.stat-value {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 10vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.stat-prefix {
  color: var(--blue-light);
}

.stats-grid > div > span:last-child {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.section-heading {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(2.8rem, 7vw, 4.8rem);
}

.section-heading h2,
.faq h2,
.contact h2 {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 8vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.section-heading > p,
.faq header > p:last-child,
.contact-copy > div > p:last-child {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
}

.bento-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 22rem;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  background: var(--surface);
}

.service-card--planning {
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.15), transparent 55%),
    var(--surface);
}

.card-number {
  color: var(--blue-light);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
}

.service-card h3 {
  max-width: 13ch;
  margin: 0 0 0.8rem;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 6vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.service-card p {
  max-width: 32rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.service-card a {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 600;
}

.signal {
  display: flex;
  height: 7rem;
  align-items: end;
  justify-content: center;
  gap: 0.6rem;
  margin-block: 1.5rem;
}

.signal i {
  display: block;
  width: 1.25rem;
  border: 1px solid var(--blue);
  background: rgba(59, 130, 246, 0.12);
}

.signal i:nth-child(1) {
  height: 35%;
}

.signal i:nth-child(2) {
  height: 58%;
}

.signal i:nth-child(3) {
  height: 82%;
}

.signal i:nth-child(4) {
  height: 100%;
  background: var(--blue);
}

.orbit {
  position: relative;
  width: 8rem;
  height: 8rem;
  align-self: center;
  margin-block: 1rem;
  border: 1px solid #4b5260;
  border-radius: 50%;
}

.orbit::before,
.orbit::after {
  position: absolute;
  inset: 20%;
  border: 1px solid #4b5260;
  border-radius: 50%;
  content: "";
}

.orbit::after {
  inset: 42%;
  border: 0;
  background: var(--blue);
}

.orbit span {
  position: absolute;
  top: 10%;
  left: 17%;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--blue-light);
}

.process {
  border-block: 1px solid var(--line);
  background: #101216;
}

.section-heading--center {
  text-align: center;
}

.section-heading--center h2,
.section-heading--center > p {
  margin-inline: auto;
}

.process-row {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-row li {
  position: relative;
  min-width: 0;
  padding: 1.8rem 0;
  border-top: 1px solid var(--line);
}

.process-row li > span {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 50%;
  color: var(--blue-light);
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 600;
}

.process-row h3 {
  margin: 1.2rem 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
}

.process-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.pricing {
  background: var(--surface);
}

.pricing-grid {
  display: grid;
  gap: 1rem;
}

.price-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 34rem;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2.3rem);
  border: 1px solid #464c58;
  background: var(--bg);
}

.price-card--featured {
  border-color: var(--blue);
  box-shadow: inset 0 3px 0 var(--blue);
}

.popular {
  margin: 0 0 1.5rem;
  color: var(--blue-light);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.plan-name {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
}

.price {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.price span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0;
}

.plan-copy {
  min-height: 5.5rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.price-card ul {
  display: grid;
  gap: 0.7rem;
  margin: 1.7rem 0 2rem;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  color: #d7dbe1;
  font-size: 0.83rem;
  list-style: none;
}

.price-card li::before {
  margin-right: 0.6rem;
  color: var(--blue-light);
  content: "—";
}

.price-card .button {
  width: 100%;
  margin-top: auto;
}

.faq-layout {
  display: grid;
  gap: 3rem;
}

.faq header > p:last-child {
  margin-top: 1.4rem;
}

.accordion {
  border-top: 1px solid #545b68;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0;
}

.faq-item button {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) 2rem;
  gap: 1rem;
  align-items: center;
  padding: 1.4rem 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-item button span {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  justify-self: end;
  border: 1px solid #555d69;
  color: var(--blue-light);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
}

.faq-item button[aria-expanded="true"] span {
  background: var(--blue);
  color: var(--text);
  transform: rotate(45deg);
}

.faq-item > div {
  padding: 0 3rem 1.5rem 0;
}

.faq-item > div[hidden] {
  display: none;
}

.faq-item p {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact {
  display: grid;
  border-top: 1px solid var(--line);
  background: #101216;
}

.contact-copy,
.contact form {
  min-width: 0;
  padding: var(--section-space) max(1rem, calc((100vw - var(--container)) / 2));
}

.contact-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4rem;
  background:
    radial-gradient(circle at 20% 25%, rgba(59, 130, 246, 0.24), transparent 38%),
    var(--surface);
}

.contact h2 {
  max-width: 12ch;
}

.contact-copy > div > p:last-child {
  margin-top: 1.5rem;
}

.contact address {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: #c8ced8;
  font-size: 0.8rem;
  font-style: normal;
}

.field-row {
  display: grid;
  gap: 1rem;
}

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  margin-bottom: 0.45rem;
  color: #d7dbe1;
  font-size: 0.72rem;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #4d5460;
  border-radius: 0;
  background: var(--surface);
  color: var(--text);
  padding: 0.85rem 0.9rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue-light);
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.form-status {
  min-height: 1.7em;
  margin: 0.8rem 0 0;
  color: var(--blue-light);
  font-size: 0.8rem;
}

.site-footer {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem 1.5rem;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
}

@media (min-width: 580px) {
  .hero-actions {
    width: fit-content;
    flex-direction: row;
  }

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

@media (min-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid > div {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .stats-grid > div:last-child {
    border-right: 0;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1.2fr) minmax(15rem, 0.8fr);
    align-items: end;
  }

  .section-heading--center {
    display: block;
  }

  .section-heading--center > p {
    margin-top: 1.2rem;
  }

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

  .service-card {
    min-height: 25rem;
  }

  .service-card--planning,
  .service-card--institutional {
    grid-column: span 7;
  }

  .service-card--investment,
  .service-card--business {
    grid-column: span 5;
  }

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

  .process-row li {
    padding: 1.8rem;
    border-right: 1px solid var(--line);
  }

  .process-row li:nth-child(even) {
    border-right: 0;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (min-width: 940px) {
  body.nav-open {
    overflow: auto;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    max-height: none;
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .site-nav a {
    padding: 0;
    border: 0;
    font-size: 0.76rem;
  }

  .site-nav .nav-cta {
    margin: 0 0 0 0.6rem;
    padding: 0.65rem 0.85rem;
  }

  .process-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
  }

  .process-row li {
    min-height: 18rem;
    padding: 2rem 1.5rem;
    border-top: 0;
    border-right: 1px solid var(--line);
  }

  .process-row li:nth-child(even) {
    border-right: 1px solid var(--line);
  }

  .process-row li:last-child {
    border-right: 0;
  }

  .faq-layout {
    grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(4rem, 8vw, 8rem);
  }

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

  .contact-copy {
    padding-left: max(2rem, calc((100vw - var(--container)) / 2));
    padding-right: clamp(2rem, 6vw, 6rem);
  }

  .contact form {
    padding-right: max(2rem, calc((100vw - var(--container)) / 2));
    padding-left: clamp(2rem, 6vw, 6rem);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .site-nav a,
  .button,
  .service-card,
  .service-card a,
  .faq-item button span {
    transition:
      border-color 180ms ease,
      background-color 180ms ease,
      color 180ms ease,
      transform 180ms ease;
  }

  .site-nav a:hover,
  .service-card a:hover {
    color: var(--blue-light);
  }

  .button:hover {
    border-color: var(--blue-light);
    background: var(--blue-dark);
  }

  .service-card:hover {
    border-color: #5a6372;
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Standard: back-to-top button with scroll-progress ring */
.btt-button {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900;
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(17, 17, 17, 0.85); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  display: grid; place-items: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.btt-button.btt-visible { opacity: 1; visibility: visible; transform: none; }
.btt-button:focus-visible { outline: 3px solid #3b82f6; outline-offset: 3px; }
.btt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.btt-ring circle { fill: none; stroke-width: 3; }
.btt-ring-track { stroke: rgba(255, 255, 255, 0.22); }
.btt-ring-fill { stroke: #3b82f6; stroke-dasharray: 125.66; stroke-dashoffset: 125.66; stroke-linecap: round; }
.btt-arrow { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .btt-button { transition: none; } }
