:root {
  color-scheme: light;
  --paper: #f8fbff;
  --paper-strong: #ffffff;
  --ink: #14243d;
  --muted: #52647e;
  --line: #c9d7ea;
  --blue: #1559d1;
  --blue-soft: #e5efff;
  --blue-line: #8db4f2;
  --red: #d62839;
  --red-soft: #ffe6ea;
  --shadow: 0 22px 60px rgb(22 55 103 / 0.14);
  --small-shadow: 0 12px 32px rgb(22 55 103 / 0.11);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --topbar: 78px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(115deg, rgb(21 89 209 / 0.08), transparent 28%),
    linear-gradient(245deg, rgb(214 40 57 / 0.08), transparent 30%),
    var(--paper);
  color: var(--ink);
  font-family: "Aptos", "Avenir Next", "Segoe UI Variable", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0;
  overflow: hidden;
}

body::selection,
::selection {
  background: var(--red);
  color: #fff;
}

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

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

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

svg {
  display: block;
}

.fold-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(116deg, transparent 0 31%, rgb(21 89 209 / 0.12) 31.2% 31.45%, transparent 31.7% 100%),
    linear-gradient(64deg, transparent 0 44%, rgb(214 40 57 / 0.10) 44.2% 44.42%, transparent 44.7% 100%),
    linear-gradient(116deg, transparent 0 68%, rgb(21 89 209 / 0.08) 68.2% 68.45%, transparent 68.7% 100%);
  opacity: 0.9;
  z-index: -1;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 48px);
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgb(248 251 255 / 0.86);
  border-bottom: 1px solid rgb(201 215 234 / 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgb(22 55 103 / 0.08);
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  position: relative;
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
  background: #f7f9fc;
  border: 1px solid rgb(201 215 234 / 0.8);
  border-radius: 0;
  box-shadow: var(--small-shadow);
}

.brand-mark img {
  position: absolute;
  top: -22px;
  left: -21px;
  width: 100px;
  height: 100px;
  max-width: none;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.section-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.section-tabs::-webkit-scrollbar {
  display: none;
}

.section-tabs a {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.section-tabs a:hover,
.section-tabs a:focus-visible,
.section-tabs a.is-active {
  background: var(--blue-soft);
  border-color: var(--blue-line);
  color: var(--blue);
  outline: none;
}

.deck-controls {
  position: fixed;
  right: clamp(18px, 4vw, 56px);
  bottom: 18px;
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: rgb(248 251 255 / 0.9);
  border: 1px solid rgb(201 215 234 / 0.74);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgb(22 55 103 / 0.13);
  backdrop-filter: blur(18px);
  transform: translateZ(0);
}

.icon-button {
  width: 63px;
  height: 63px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-strong);
  color: var(--blue);
  cursor: pointer;
  box-shadow: 0 8px 18px rgb(22 55 103 / 0.07);
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--blue);
  outline: 3px solid rgb(21 89 209 / 0.18);
}

.icon-button svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-button {
  position: absolute;
  right: calc(100% + 12px);
  color: var(--red);
}

.scroll-button[hidden] {
  display: none;
}

.counter {
  min-width: 62px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

#deck {
  height: 100vh;
}

.slide {
  height: 100vh;
  padding: calc(var(--topbar) + 42px) clamp(18px, 5vw, 72px) 112px;
  display: none;
  align-content: start;
  gap: 34px;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-color: rgb(82 100 126 / 0.7) transparent;
}

.slide.is-active {
  display: grid;
}

.slide.is-active > * {
  animation: slide-content-enter 520ms var(--ease) both;
}

.slide.is-active > :nth-child(2) {
  animation-delay: 70ms;
}

@keyframes slide-content-enter {
  from {
    opacity: 0;
    transform: translate3d(42px, 0, 0);
    filter: blur(5px);
  }

  58% {
    opacity: 1;
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

.hero-slide {
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  align-items: center;
  align-content: center;
  gap: clamp(30px, 5vw, 76px);
}

.deck-label {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 8ch;
  margin-bottom: 18px;
  font-size: clamp(56px, 9vw, 118px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(38px, 6.2vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.8vw, 34px);
  line-height: 1.05;
}

h4 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.18;
}

p,
li {
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.55;
}

.hero-copy p:not(.deck-label),
.slide-heading p:not(.deck-label) {
  max-width: 66ch;
  margin-bottom: 0;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.hero-actions span,
.feature-cloud li {
  border: 1px solid var(--blue-line);
  border-radius: 12px;
  background: rgb(229 239 255 / 0.76);
  color: var(--blue);
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 800;
}

.hero-visual {
  margin: 0;
  position: relative;
  padding: 10px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, var(--blue-soft), transparent 40%),
    var(--paper-strong);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: skewX(-3deg);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  transform: skewX(3deg);
}

.slide-heading {
  max-width: 980px;
}

.objective-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1.05fr);
  gap: 24px;
  align-items: stretch;
}

.crease-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(123deg, rgb(255 255 255 / 0.94), rgb(248 251 255 / 0.88)),
    var(--paper-strong);
  box-shadow: var(--small-shadow);
}

.crease-card > * {
  position: relative;
}

.main-card {
  display: grid;
  align-content: end;
  min-height: 310px;
  background:
    linear-gradient(138deg, rgb(21 89 209 / 0.96), rgb(21 89 209 / 0.80)),
    var(--blue);
}

.main-card h3,
.main-card p {
  color: #fff;
}

.signal-list {
  display: grid;
  gap: 14px;
}

.signal-list div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 0.74);
  box-shadow: 0 10px 26px rgb(22 55 103 / 0.07);
}

.signal-list strong,
.signal-list span {
  display: block;
}

.signal-list strong {
  margin-bottom: 7px;
  color: var(--red);
  font-size: 18px;
}

.signal-list span {
  color: var(--muted);
  line-height: 1.45;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.strategy-grid {
  align-items: stretch;
}

.span-2 {
  grid-column: span 2;
}

.card-topline {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.card-topline span,
.flow-list span {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
}

.subcards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.subcards > div,
.role-list > div {
  padding: 18px;
  border-radius: 16px;
  background: rgb(229 239 255 / 0.56);
  border: 1px solid rgb(141 180 242 / 0.48);
}

.subcards.compact {
  grid-template-columns: 1fr;
}

.crease-card strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}

.platform-card {
  background:
    linear-gradient(145deg, rgb(255 230 234 / 0.72), rgb(255 255 255 / 0.94) 36%),
    var(--paper-strong);
}

.platform-lead {
  color: var(--blue);
  font-size: 21px;
  font-weight: 900;
}

.feature-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.feature-cloud li {
  font-size: 13px;
  line-height: 1.1;
}

.operation-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(420px, 1.42fr);
  gap: 22px;
  align-items: start;
}

.flow-card {
  min-height: 100%;
}

.flow-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
}

.team-card {
  grid-row: span 2;
}

.role-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.infra-card {
  grid-column: 1;
}

.infra-card ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.links-layout {
  display: grid;
  grid-template-columns: minmax(280px, 560px);
}

.link-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.example-link-button {
  width: fit-content;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  margin-top: 10px;
  padding: 12px 18px;
  border: 1px solid var(--blue);
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgb(21 89 209 / 0.18);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.example-link-button:hover,
.example-link-button:focus-visible {
  background: #0f49b0;
  outline: 3px solid rgb(21 89 209 / 0.18);
  box-shadow: 0 16px 34px rgb(21 89 209 / 0.24);
  transform: translateY(-1px);
}

.progress-shell {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 22;
  height: 5px;
  background: rgb(201 215 234 / 0.72);
  transform: translateZ(0);
}

.progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transform: scaleX(0.25);
  transform-origin: left center;
  transition: transform 260ms var(--ease);
}

@media (max-width: 1000px) {
  .topbar {
    flex-wrap: wrap;
    height: auto;
    row-gap: 10px;
  }

  :root {
    --topbar: 124px;
  }

  .hero-slide,
  .objective-panel,
  .operation-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    transform: none;
  }

  .hero-visual img {
    transform: none;
  }

  .infra-card {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar: 116px;
  }

  .topbar {
    justify-content: center;
    gap: 12px;
    padding: 12px 14px;
  }

  .brand small {
    display: none;
  }

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

  .brand-mark img {
    top: -18px;
    left: -17px;
    width: 80px;
    height: 80px;
  }

  .deck-controls {
    right: 14px;
    gap: 6px;
    bottom: 14px;
    padding: 6px;
    border-radius: 14px;
  }

  .icon-button {
    width: 57px;
    height: 57px;
    border-radius: 14px;
  }

  .icon-button svg {
    width: 28px;
    height: 28px;
  }

  .scroll-button {
    right: calc(100% + 8px);
  }

  .section-tabs a {
    padding: 8px 10px;
    font-size: 13px;
  }

  .slide {
    padding: calc(var(--topbar) + 26px) 16px 104px;
    gap: 24px;
  }

  h1 {
    font-size: clamp(54px, 16vw, 74px);
  }

  h2 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .hero-copy p:not(.deck-label),
  .slide-heading p:not(.deck-label) {
    font-size: 18px;
  }

  .card-grid,
  .subcards,
  .role-list {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .main-card {
    min-height: 250px;
  }
}

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

  .slide.is-active {
    animation: none;
  }

  .slide.is-active > * {
    animation: slide-content-enter-reduced 220ms ease-out both;
  }

  @keyframes slide-content-enter-reduced {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }
}
