:root {
  --blue: #315cf4;
  --blue-dark: #2447bd;
  --cyan: #26becb;
  --green: #68a83e;
  --coral: #ea685d;
  --amber: #d58b24;
  --night: #0b1324;
  --night-soft: #142138;
  --ink: #111827;
  --muted: #5a6879;
  --line: #dce3e9;
  --canvas: #f5f7f8;
  --surface: #ffffff;
  --mint: #edf8f5;
  --header-height: 70px;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
}

body, button { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3, p, a, span, b, small, li { overflow-wrap: anywhere; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.scroll-progress {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 3px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  transform-origin: left;
  background: var(--cyan);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  min-height: var(--header-height);
  padding: 13px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(220, 227, 233, 0.9);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  transition: box-shadow 180ms ease;
}

.site-header.is-scrolled { box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08); }
.brand { display: inline-flex; align-items: center; min-width: 126px; }
.brand img { width: auto; height: 34px; }

.site-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--blue);
  content: "";
  transition: transform 180ms ease;
}

.site-nav a:hover { color: var(--blue); }
.site-nav a:hover::after { transform: scaleX(1); }
.header-actions { position: relative; display: flex; gap: 10px; align-items: center; }
.app-launcher { position: relative; }

.app-toggle,
.menu-toggle {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--night);
}

.app-toggle {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 820;
}

.app-toggle:hover { border-color: var(--blue); color: var(--blue); }
.app-grid { display: grid; grid-template-columns: repeat(2, 5px); gap: 3px; }
.app-grid i { width: 5px; height: 5px; border-radius: 1px; background: currentColor; }

.app-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 258px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 55px rgba(11, 19, 36, 0.18);
}

.app-menu[hidden] { display: none; }
.app-menu a { display: grid; grid-template-columns: 66px 1fr; gap: 8px; padding: 13px 12px; border-radius: 5px; }
.app-menu a:hover { background: var(--canvas); color: var(--blue); }
.app-menu b { font-size: 14px; }
.app-menu span { color: var(--muted); font-size: 13px; }

.menu-toggle { display: none; width: 44px; padding: 0; place-content: center; gap: 4px; }
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--night); transition: transform 180ms ease, opacity 180ms ease; }
.site-header.nav-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.nav-open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero {
  --hero-media-x: 0px;
  --hero-media-y: 0px;
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: min(720px, calc(100svh - 84px));
  overflow: hidden;
  background: var(--night);
  color: #fff;
}

.hero-media,
.hero-media img,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  z-index: -3;
  transform: translate3d(var(--hero-media-x), var(--hero-media-y), 0) scale(1.035);
  transition: transform 360ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.hero-media img {
  object-fit: cover;
  object-position: center;
  animation: hero-breathe 16s ease-in-out infinite alternate;
}

.hero-scrim { z-index: -2; background: rgba(5, 12, 24, 0.34); }

.hero-inner {
  display: flex;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  align-items: center;
  padding: 66px 0 150px;
}

.hero-copy { width: min(610px, 100%); }
.eyebrow { margin-bottom: 14px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: 0; }
.eyebrow.light { color: #7ee2e8; }

.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(64px, 8vw, 118px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 600px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(19px, 2.2vw, 27px);
  line-height: 1.45;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--blue); color: #fff; }
.button.primary:hover { background: var(--blue-dark); }
.button.light { border-color: rgba(255, 255, 255, 0.64); background: rgba(11, 19, 36, 0.44); color: #fff; }
.button.light:hover { background: #fff; color: var(--night); }
.button.dark { background: var(--night); color: #fff; }

.hero-routes {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 104px;
  border-top: 1px solid rgba(255, 255, 255, 0.23);
  background: rgba(7, 15, 28, 0.78);
  backdrop-filter: blur(12px);
}

.hero-routes a {
  position: relative;
  display: grid;
  grid-template-columns: 34px auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 20px max(22px, calc((100vw - 1240px) / 6));
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 180ms ease;
}
.hero-routes a:last-child { border-right: 0; }
.hero-routes a:hover { background: rgba(49, 92, 244, 0.42); }
.hero-routes span { color: #7ee2e8; font-size: 12px; font-weight: 900; }
.hero-routes b { font-size: 18px; }
.hero-routes small { color: rgba(255, 255, 255, 0.66); font-size: 13px; }
.hero-routes i { font-style: normal; font-size: 22px; }

.section { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 102px 0; }
.section-heading { max-width: 780px; margin-bottom: 42px; }
.section-heading.narrow { max-width: 720px; }
h2 { margin-bottom: 16px; font-size: clamp(34px, 4vw, 56px); line-height: 1.08; letter-spacing: 0; }
.section-heading > p:last-child,
.process-copy > p,
.field-copy > p { color: var(--muted); font-size: 18px; line-height: 1.7; }

.product-switcher {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.09);
}

.product-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); background: #eef2f4; }
.product-tabs button {
  display: flex;
  gap: 12px;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-weight: 880;
}
.product-tabs button:last-child { border-right: 0; }
.product-tabs button span { color: #8794a5; font-size: 11px; }
.product-tabs button.is-active { background: var(--surface); color: var(--blue); box-shadow: inset 0 -3px var(--blue); }

.product-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr); min-height: 510px; }
.product-panel.is-changing .product-media,
.product-panel.is-changing .product-copy { opacity: 0; transform: translateY(8px); }
.product-media-wrap { position: relative; min-height: 510px; overflow: hidden; background: var(--night); }
.product-media { width: 100%; height: 100%; object-fit: cover; transition: opacity 180ms ease, transform 180ms ease; }
.product-chip { position: absolute; top: 18px; left: 18px; padding: 8px 11px; border-radius: 4px; background: var(--night); color: #fff; font-size: 12px; font-weight: 900; }
.product-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(34px, 5vw, 64px); transition: opacity 180ms ease, transform 180ms ease; }
.product-copy h3 { margin-bottom: 17px; font-size: clamp(30px, 3vw, 43px); line-height: 1.08; }
.product-copy > p:not(.eyebrow):not(.product-note) { color: var(--muted); font-size: 17px; line-height: 1.65; }
.product-copy ul { display: grid; gap: 12px; margin: 8px 0 28px; padding: 0; list-style: none; }
.product-copy li { position: relative; padding-left: 23px; color: #334155; font-weight: 670; }
.product-copy li::before { position: absolute; top: 0.55em; left: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--green); content: ""; }
.product-link, .text-link { display: inline-flex; gap: 12px; align-items: center; width: fit-content; color: var(--blue); font-weight: 900; }
.product-link span, .text-link span { transition: transform 160ms ease; }
.product-link:hover span, .text-link:hover span { transform: translateX(5px); }
.product-note { margin: 16px 0 0; color: #7b8797; font-size: 13px; }

.process-band { background: var(--night); color: #fff; }
.process-inner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 70px; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 94px 0; }
.process-copy > p { color: rgba(255, 255, 255, 0.69); }
.light-link { color: #7ee2e8; }
.process-steps { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.22); border-left: 1px solid rgba(255, 255, 255, 0.22); list-style: none; }
.process-steps li { display: grid; min-height: 168px; align-content: center; padding: 26px; border-right: 1px solid rgba(255, 255, 255, 0.22); border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.process-steps span { margin-bottom: 18px; color: #7ee2e8; font-size: 12px; font-weight: 900; }
.process-steps b { font-size: 22px; }
.process-steps small { margin-top: 7px; color: rgba(255, 255, 255, 0.57); }

.field-story { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(38px, 6vw, 84px); align-items: center; }
.field-media { overflow: hidden; min-height: 520px; border-radius: 8px; background: #dfe6e8; }
.field-media img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.field-facts { margin: 28px 0 30px; border-top: 1px solid var(--line); }
.field-facts p { display: grid; grid-template-columns: 110px 1fr; gap: 16px; margin: 0; padding: 15px 0; border-bottom: 1px solid var(--line); }
.field-facts span { color: var(--muted); }

.packages { padding-top: 72px; border-top: 1px solid var(--line); }
.package-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--surface); }
.package-grid article { min-height: 250px; padding: 34px; border-right: 1px solid var(--line); }
.package-grid article:last-child { border-right: 0; }
.package-grid article.featured { background: var(--mint); box-shadow: inset 0 4px var(--green); }
.package-grid span { color: var(--blue); font-size: 12px; font-weight: 900; }
.package-grid h3 { margin: 28px 0 13px; font-size: 28px; }
.package-grid p { color: var(--muted); line-height: 1.65; }
.package-action { display: flex; gap: 22px; align-items: center; margin-top: 26px; }
.package-action > span { max-width: 530px; color: var(--muted); font-size: 14px; }

.final-cta { position: relative; overflow: hidden; background: var(--coral); color: #fff; }
.final-cta::after { position: absolute; top: -50%; right: 8%; width: 2px; height: 200%; transform: rotate(24deg); background: rgba(255, 255, 255, 0.4); box-shadow: 28px 0 rgba(255, 255, 255, 0.17), 56px 0 rgba(255, 255, 255, 0.08); content: ""; }
.final-cta-inner { position: relative; z-index: 1; width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 82px 0; }
.final-cta h2 { max-width: 750px; }
.final-cta p:not(.eyebrow) { max-width: 650px; font-size: 18px; }

.site-footer { display: grid; grid-template-columns: 1.25fr 1fr 1fr auto; gap: 34px; align-items: start; padding: 44px max(24px, calc((100vw - 1240px) / 2)); border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; }
.footer-brand { display: grid; gap: 9px; }
.footer-brand img { width: 128px; }
.site-footer nav { display: grid; gap: 9px; }
.site-footer a:hover { color: var(--blue); }

.js-enabled .reveal { opacity: 0; transform: translateY(26px); transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.75, 0.2, 1); }
.js-enabled .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-enabled .hero-copy.is-visible > * { animation: hero-copy-enter 620ms cubic-bezier(0.2, 0.75, 0.2, 1) both; }
.js-enabled .hero-copy.is-visible > :nth-child(2) { animation-delay: 70ms; }
.js-enabled .hero-copy.is-visible > :nth-child(3) { animation-delay: 140ms; }
.js-enabled .hero-copy.is-visible > :nth-child(4) { animation-delay: 210ms; }

@keyframes hero-breathe { from { transform: scale(1); } to { transform: scale(1.025); } }
@keyframes hero-copy-enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 960px) {
  .site-nav { gap: 18px; }
  .product-panel { grid-template-columns: 1fr; }
  .product-media-wrap { min-height: 430px; }
  .product-copy { min-height: 430px; }
  .process-inner, .field-story { grid-template-columns: 1fr; }
  .field-media, .field-media img { min-height: 440px; }
  .site-footer { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-height: 64px; }
  .site-header { grid-template-columns: auto 1fr auto; min-height: var(--header-height); padding: 10px 16px; }
  .brand img { height: 30px; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 12px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 18px 35px rgba(17, 24, 39, 0.12);
  }
  .site-header.nav-open .site-nav { display: grid; gap: 0; }
  .site-nav a { min-height: 48px; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .app-toggle > span:last-child { display: none; }
  .app-toggle { width: 44px; justify-content: center; padding: 0; }
  .menu-toggle { display: grid; }
  .app-menu { right: -54px; width: min(288px, calc(100vw - 32px)); }

  .hero { min-height: min(690px, calc(100svh - 20px)); }
  .hero-media img { object-position: 58% center; }
  .hero-scrim { background: rgba(5, 12, 24, 0.53); }
  .hero-inner { width: calc(100% - 36px); align-items: flex-start; padding: 88px 0 190px; }
  .hero h1 { font-size: clamp(62px, 20vw, 88px); }
  .hero-lead { font-size: 19px; line-height: 1.5; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-routes { grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 126px; }
  .hero-routes a { grid-template-columns: 1fr; gap: 4px; align-content: center; padding: 14px 10px; }
  .hero-routes small { min-height: 34px; }
  .hero-routes i { position: absolute; top: 12px; right: 9px; font-size: 15px; }

  .section { width: calc(100% - 36px); padding: 76px 0; }
  h2 { font-size: clamp(34px, 10vw, 46px); }
  .section-heading > p:last-child, .process-copy > p, .field-copy > p { font-size: 16px; }
  .product-tabs button { min-height: 58px; gap: 6px; font-size: 14px; }
  .product-tabs button span { display: none; }
  .product-media-wrap { min-height: 270px; }
  .product-copy { min-height: 0; padding: 31px 24px 36px; }
  .product-copy h3 { font-size: 32px; }
  .process-inner { width: calc(100% - 36px); gap: 42px; padding: 74px 0; }
  .process-steps li { min-height: 140px; padding: 20px; }
  .process-steps b { font-size: 18px; }
  .field-media, .field-media img { min-height: 300px; }
  .field-facts p { grid-template-columns: 92px 1fr; }
  .package-grid { grid-template-columns: 1fr; }
  .package-grid article { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .package-grid article:last-child { border-bottom: 0; }
  .package-action { align-items: stretch; flex-direction: column; }
  .final-cta-inner { width: calc(100% - 36px); padding: 68px 0; }
  .site-footer { grid-template-columns: 1fr; padding: 38px 18px; }
}

@media (max-width: 390px) {
  .hero-routes small { font-size: 11px; }
  .hero-routes b { font-size: 16px; }
  .process-steps { grid-template-columns: 1fr; }
  .process-steps li { min-height: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .hero-media { transform: none !important; }
  .js-enabled .reveal { opacity: 1; transform: none; }
}
