:root {
  color-scheme: light;
  --red: #e30000;
  --red-soft: #ff3b30;
  --blue: #2f6fbf;
  --blue-2: #4a84c6;
  --ink: #05070a;
  --muted: #606772;
  --quiet: #d4d4d4;
  --glass: rgba(255, 255, 255, .7);
  --shadow: 0 28px 90px rgba(15, 23, 42, .16);
  --radius: 8px;
  --stage-w: min(calc(100vw - 48px), calc((100dvh - 126px) * 16 / 9));
  --stage-h: calc(var(--stage-w) * 9 / 16);
}

@supports not (height: 100dvh) {
  :root {
    --stage-w: min(calc(100vw - 48px), calc((100vh - 126px) * 16 / 9));
  }
}

@media (min-width: 1280px) {
  :root {
    --stage-w: min(calc(100vw - clamp(160px, 12vw, 360px)), calc((100dvh - 126px) * 16 / 9), 2200px);
  }
}

@media (min-width: 1280px) {
  @supports not (height: 100dvh) {
    :root {
      --stage-w: min(calc(100vw - clamp(160px, 12vw, 360px)), calc((100vh - 126px) * 16 / 9), 2200px);
    }
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(135deg, #eef6ff 0%, #f8fbff 48%, #fff5f3 100%);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(5, 7, 10, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 7, 10, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}

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

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 58px var(--stage-h) 58px;
  gap: 14px;
  width: 100vw;
  height: 100dvh;
  place-content: center;
  padding: 14px 32px;
}

.topbar,
.controls,
.stage-wrap {
  width: var(--stage-w);
  margin: 0 auto;
}

.topbar,
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--red-soft);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(227, 0, 0, .22);
}

.brand-title {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.05;
}

.brand-subtitle,
.tiny-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.stage-wrap {
  height: var(--stage-h);
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.stage::before {
  inset: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .9)),
    repeating-linear-gradient(135deg, rgba(47, 111, 191, .05) 0 1px, transparent 1px 34px);
}

.stage::after {
  right: -8%;
  top: -20%;
  width: 54%;
  height: 140%;
  border: 2px solid rgba(5, 7, 10, .08);
  border-radius: 120px;
  transform: rotate(-30deg);
  box-shadow:
    -180px 220px 0 -8px rgba(5, 7, 10, .035),
    -40px 510px 0 -18px rgba(5, 7, 10, .035);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 22px;
  padding: 44px 52px 30px;
}

.slide-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--quiet);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.eyebrow::before {
  content: "";
  width: 112px;
  height: 8px;
  background: var(--red);
}

.blank-content {
  align-self: center;
  max-width: 980px;
}

h1 {
  max-width: 920px;
  margin: 0;
  color: #000;
  font-size: 86px;
  line-height: .98;
  font-weight: 950;
  letter-spacing: 0;
}

.accent {
  color: var(--red);
}

.lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: #555c66;
  font-size: 30px;
  line-height: 1.16;
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--glass);
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .1);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
}

.control-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 112px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--glass);
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .1);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  cursor: pointer;
  transition: transform 160ms cubic-bezier(.2, .8, .2, 1), background 160ms cubic-bezier(.2, .8, .2, 1);
}

.nav-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .9);
}

.nav-button.primary {
  background: var(--red-soft);
  color: #fff;
}

.nav-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 3;
}

@media (max-height: 820px) {
  :root {
    --stage-w: min(calc(100vw - 40px), calc((100dvh - 114px) * 16 / 9));
  }

  .shell {
    grid-template-rows: 40px var(--stage-h) 42px;
    gap: 8px;
    padding-block: 8px;
  }

  .slide {
    padding: 28px 44px 20px;
    gap: 10px;
  }

  h1 {
    font-size: 64px;
  }

  .lead {
    font-size: 24px;
  }
}

@media (min-width: 1280px) {
  :root {
    --stage-w: min(94vw, calc((100dvh - 126px) * 16 / 9), 2200px);
  }

  .shell {
    grid-template-rows: 42px var(--stage-h) 48px;
    gap: 8px;
    padding-block: 10px;
  }

  .features-title,
  .service-title {
    font-size: clamp(48px, 6dvh, 78px) !important;
  }
}

@media (min-width: 1280px) and (max-height: 820px) {
  :root {
    --stage-w: min(96vw, calc((100dvh - 114px) * 16 / 9), 2200px);
  }
}

@media (max-width: 760px), (max-width: 900px) and (orientation: portrait), (max-width: 940px) and (max-height: 520px) {
  :root {
    --stage-w: min(calc(100vw - 28px), 520px);
    --mobile-page-pad: 12px;
    --mobile-safe-bottom: max(var(--mobile-page-pad), env(safe-area-inset-bottom));
    --mobile-gap: 10px;
    --mobile-topbar-h: clamp(52px, 7vh, 60px);
    --mobile-topbar-h: clamp(52px, 7dvh, 60px);
    --mobile-controls-h: clamp(50px, 7vh, 60px);
    --mobile-controls-h: clamp(50px, 7dvh, 60px);
    --stage-h: calc(100vh - var(--mobile-page-pad) - var(--mobile-safe-bottom) - var(--mobile-topbar-h) - var(--mobile-controls-h) - (var(--mobile-gap) * 2));
    --stage-h: calc(100dvh - var(--mobile-page-pad) - var(--mobile-safe-bottom) - var(--mobile-topbar-h) - var(--mobile-controls-h) - (var(--mobile-gap) * 2));
  }

  html,
  body {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: hidden;
  }

  body {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .shell {
    grid-template-rows: var(--mobile-topbar-h) minmax(0, var(--stage-h)) var(--mobile-controls-h);
    align-content: center;
    place-content: center;
    gap: var(--mobile-gap);
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--mobile-page-pad) 14px var(--mobile-safe-bottom);
  }

  .topbar,
  .controls,
  .stage-wrap {
    width: 100%;
    max-width: var(--stage-w);
  }

  .topbar {
    min-height: 0;
    height: var(--mobile-topbar-h);
  }

  .stage-wrap {
    height: var(--stage-h);
    min-height: 0;
  }

  .stage {
    height: 100%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .slide {
    position: relative;
    inset: auto;
    min-height: 100%;
    padding: clamp(18px, 3.6dvh, 24px);
  }

  .eyebrow {
    font-size: 16px;
  }

  .eyebrow::before {
    width: 54px;
    height: 6px;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    margin-top: 14px;
    font-size: 18px;
  }

  .nav-button {
    min-width: clamp(46px, 12vw, 54px);
    width: clamp(46px, 12vw, 54px);
    height: clamp(46px, 6dvh, 52px);
    padding: 0;
  }

  .controls {
    position: relative;
    bottom: auto;
    height: var(--mobile-controls-h);
    z-index: 10;
  }

  .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

@media (max-width: 360px) {
  .topbar .brand-subtitle {
    display: none;
  }
}
