:root {
  --bg: #1128ff;
  --bg-deep: #071199;
  --bg-soft: #3d53ff;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --surface-solid: #f7f4ef;
  --text: #f8f8ff;
  --text-muted: rgba(248, 248, 255, 0.76);
  --text-dark: #11142b;
  --accent: #ff9b3d;
  --accent-soft: #ffd4a8;
  --line: rgba(255, 255, 255, 0.16);
  --shadow: 0 20px 60px rgba(6, 8, 45, 0.25);
  --radius: 28px;
  --radius-sm: 18px;
  --content: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 201, 103, 0.15), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.14), transparent 18%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 25%, var(--bg-deep) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
}

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

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

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

.site-header,
.site-footer,
.section {
  position: relative;
  z-index: 1;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 auto;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
}

.section {
  padding: 52px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 42px;
  align-items: center;
  min-height: 72vh;
  padding-top: 70px;
  padding-bottom: 90px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.6rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
  max-width: 10ch;
}

h1 span,
.section-heading h2 span {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
}

.hero-text,
.story-copy p,
.service-card p,
.compare-card li,
.process-step p,
.cta p,
.site-footer p {
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--text-muted);
}

.hero-text {
  max-width: 60ch;
  margin-bottom: 28px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible,
.inline-link:hover,
.inline-link:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--surface-solid);
  color: var(--text-dark);
  box-shadow: var(--shadow);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  position: relative;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
}

.hero-panel::before {
  width: 180px;
  height: 180px;
  right: 10%;
  top: -30px;
  background: rgba(255, 160, 69, 0.36);
}

.hero-panel::after {
  width: 240px;
  height: 240px;
  left: -8%;
  bottom: 40px;
  background: rgba(255, 255, 255, 0.1);
}

.floating-card,
.service-card,
.compare-card,
.process-step,
.cta {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.floating-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius);
}

.floating-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -34px auto;
  width: 180px;
  height: 180px;
  border-radius: 32px;
  transform: rotate(28deg);
  background: linear-gradient(180deg, rgba(255, 155, 61, 0.95), rgba(255, 95, 95, 0.72));
}

.card-label {
  margin-bottom: 16px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
}

.card-large h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  max-width: 10ch;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.card-large p {
  position: relative;
  z-index: 1;
  max-width: 24ch;
  color: rgba(248, 248, 255, 0.82);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.metric {
  padding: 20px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.metric span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.story-visual {
  position: relative;
  min-height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top left, rgba(255, 155, 61, 0.9), rgba(255, 155, 61, 0) 42%),
    radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 40%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.ribbon {
  position: absolute;
  border-radius: 999px;
  transform: rotate(-24deg);
}

.ribbon-one {
  inset: 32px auto auto -42px;
  width: 260px;
  height: 86px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 214, 160, 0.76));
}

.ribbon-two {
  inset: auto -30px 98px auto;
  width: 300px;
  height: 100px;
  background: linear-gradient(90deg, rgba(255, 122, 68, 0.88), rgba(255, 202, 117, 0.84));
}

.ribbon-three {
  inset: auto auto 32px 30px;
  width: 180px;
  height: 70px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.32));
}

.story-copy {
  max-width: 54ch;
}

.inline-link {
  display: inline-flex;
  margin-top: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-weight: 700;
}

.card-grid,
.comparison-grid,
.process-grid {
  display: grid;
  gap: 18px;
}

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

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

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

.service-card,
.compare-card,
.process-step {
  padding: 28px;
  border-radius: var(--radius-sm);
}

.service-card h3,
.compare-card h3,
.process-step h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.compare-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.compare-card li + li {
  margin-top: 10px;
}

.featured {
  background: var(--surface-solid);
  color: var(--text-dark);
}

.featured .card-label,
.featured li,
.featured p {
  color: rgba(17, 20, 43, 0.78);
}

.featured ul {
  color: rgba(17, 20, 43, 0.82);
}

.process-step span {
  display: inline-flex;
  margin-bottom: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--accent-soft);
}

.cta {
  padding: 38px;
  border-radius: var(--radius);
  text-align: center;
}

.cta h2 {
  max-width: 14ch;
  margin: 0 auto 18px;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.cta p {
  max-width: 56ch;
  margin: 0 auto;
}

.cta a {
  color: var(--surface-solid);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
  padding: 34px 0 48px;
}

.footer-title,
.footer-meta {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-muted);
}

.footer-meta {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal,
  .button,
  .inline-link,
  .nav-cta {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .story-grid,
  .card-grid,
  .comparison-grid,
  .process-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .footer-meta {
    justify-content: flex-start;
    text-align: left;
  }
}

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

  .section {
    padding: 38px 0;
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .section-heading h2,
  .cta h2 {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .floating-card,
  .service-card,
  .compare-card,
  .process-step,
  .cta {
    padding: 22px;
  }

  .story-visual {
    min-height: 280px;
  }
}
