:root {
  --ink: #132033;
  --muted: #5f6f85;
  --line: rgba(19, 32, 51, 0.16);
  --white: #ffffff;
  --cream: #fff4cf;
  --navy: #061b36;
  --blue: #147dff;
  --sky: #34cfff;
  --green: #22c77a;
  --yellow: #ffd641;
  --orange: #ff9432;
  --pink: #ff5fa8;
  --violet: #786cff;
  --shadow: 0 28px 72px rgba(20, 53, 103, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 4%, rgba(52, 207, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 10%, rgba(255, 214, 65, 0.22), transparent 30rem),
    linear-gradient(180deg, #eaf8ff 0%, #fff7d8 45%, #eaf8ff 100%);
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.72;
}

h1,
h2,
h3,
p,
summary,
strong,
a,
button {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p,
summary {
  text-wrap: pretty;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 22px;
  width: min(1120px, calc(100% - 40px));
  min-height: 68px;
  margin-top: 16px;
  padding: 0 18px;
  color: var(--white);
  background: rgba(6, 27, 54, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 214, 65, 0.55);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
  transition: opacity 240ms ease, transform 240ms ease, visibility 240ms ease;
}

.site-header.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -92px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 900;
}

.nav a:hover {
  color: var(--yellow);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.header-cta,
.button.primary {
  color: #07203c;
  background: linear-gradient(180deg, #fff47a, var(--yellow));
  border: 2px solid #fffbe0;
  box-shadow: 0 8px 0 rgba(129, 82, 0, 0.28), 0 18px 34px rgba(255, 214, 65, 0.26);
}

.button.secondary {
  color: var(--white);
  background: rgba(6, 27, 54, 0.82);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 132px max(5vw, calc((100vw - 1320px) / 2)) 96px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(4, 15, 32, 0.92) 0%, rgba(4, 15, 32, 0.72) 36%, rgba(4, 15, 32, 0.18) 72%),
    linear-gradient(180deg, rgba(4, 15, 32, 0.24), rgba(4, 15, 32, 0.56)),
    url("assets/genba-quest-hero.png") center right / cover;
  overflow: hidden;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 140px;
  content: "";
  background: linear-gradient(transparent, rgba(234, 248, 255, 0.82) 70%, #eaf8ff);
}

.hero-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-sky span {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  opacity: 0.9;
}

.hero-sky span:nth-child(1) {
  top: 18%;
  left: 42%;
}

.hero-sky span:nth-child(2) {
  top: 32%;
  right: 18%;
  background: var(--sky);
}

.hero-sky span:nth-child(3) {
  bottom: 24%;
  left: 12%;
  background: var(--pink);
}

.hero-copy,
.hero-window {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 800px;
}

.game-label,
.badge {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 6px 12px;
  color: #08233f;
  background: var(--yellow);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(78px, 8.2vw, 124px);
  line-height: 0.86;
  letter-spacing: 0;
  text-shadow: 0 8px 0 rgba(0, 0, 0, 0.22), 0 24px 40px rgba(0, 0, 0, 0.24);
}

h1 span {
  display: block;
}

.hero-catch {
  margin-bottom: 16px;
  color: var(--yellow);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 900;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.hero-lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 800;
}

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

.hero-window,
.job-board,
.screen-card,
.start-box,
.faq details {
  background: rgba(255, 255, 255, 0.96);
  border: 4px solid var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow), 0 0 0 3px rgba(6, 27, 54, 0.1);
}

.hero-window {
  align-self: center;
  justify-self: end;
  width: min(100%, 460px);
  padding: 28px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  transform: translateY(56px);
}

.window-title {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: var(--white);
  background: var(--navy);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hero-window p {
  margin-bottom: 18px;
  font-weight: 900;
  font-size: 18px;
}

.hero-window ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-window li {
  padding: 16px 12px;
  text-align: center;
  background: #e9f7ff;
  border: 2px solid rgba(20, 125, 255, 0.18);
  border-radius: 12px;
  font-weight: 900;
}

.about,
.system,
.screens,
.field-map,
.special,
.start,
.faq {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 5vw;
}

.screens {
  overflow: hidden;
  padding-top: 44px;
  padding-bottom: 56px;
}

.screens .section-title {
  max-width: 1120px;
  margin-bottom: 28px;
}

.screens .section-title h2 {
  font-size: clamp(38px, 4.6vw, 58px);
}

.section-title {
  max-width: 860px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-title span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 14px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.section-title h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.1;
}

.section-title p {
  max-width: 760px;
  margin: 10px auto 0;
}

.section-title.light h2 {
  color: var(--white);
}

.about-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 64px;
  align-items: center;
  overflow: hidden;
  padding: 58px;
  color: var(--white);
  background:
    radial-gradient(circle at 8% 0%, rgba(52, 207, 255, 0.22), transparent 22rem),
    linear-gradient(135deg, #071a35 0%, #0a2a55 100%);
  border-radius: 40px 12px 40px 12px;
  box-shadow: 0 30px 70px rgba(20, 53, 103, 0.2);
}

.about-layout::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  content: "";
  border: 44px solid rgba(52, 207, 255, 0.07);
  border-radius: 50%;
  pointer-events: none;
}

.screen-feature {
  position: relative;
  display: grid;
  justify-items: center;
  max-width: 520px;
  margin: 0 auto;
  perspective: 1200px;
  padding: 34px 0 70px;
}

.screen-feature::before {
  position: absolute;
  inset: auto 50% 24px auto;
  width: 340px;
  height: 54px;
  content: "";
  background: radial-gradient(ellipse, rgba(10, 36, 80, 0.28), rgba(10, 36, 80, 0.02) 68%, transparent 72%);
  transform: translateX(50%);
  filter: blur(4px);
}

.screen-feature::after {
  position: absolute;
  inset: 12px 50% auto auto;
  width: 360px;
  height: 360px;
  content: "";
  background: radial-gradient(circle, rgba(52, 207, 255, 0.24), transparent 66%);
  transform: translateX(50%);
  pointer-events: none;
}

.about-copy {
  position: relative;
  z-index: 1;
  padding: 0 42px 0 0;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.about-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  font-weight: 700;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-copy .about-kicker {
  margin: 0 0 14px;
  color: var(--sky);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.22em;
}

.about-copy .about-statement {
  margin: 0 0 24px;
  color: var(--white);
  font-size: clamp(26px, 3vw, 39px);
  font-weight: 900;
  line-height: 1.42;
}

.job-board {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.job-board div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  color: var(--white);
  background: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.job-board div:nth-child(2) {
  background: none;
}

.job-board div:nth-child(3) {
  background: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.job-board span,
.job-board strong {
  display: block;
}

.job-board span {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  color: #071a35;
  background: var(--sky);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.job-board div:nth-child(2) span {
  background: #64dfa8;
}

.job-board div:nth-child(3) span {
  background: var(--yellow);
}

.job-board strong {
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.35;
}

.system {
  max-width: none;
  color: var(--white);
  background:
    linear-gradient(rgba(6, 27, 54, 0.9), rgba(6, 27, 54, 0.94)),
    url("assets/genba-quest-hero.png") center / cover fixed;
}

.command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.command-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  min-height: 230px;
  padding: 28px;
  color: var(--ink);
  background: var(--white);
  border: 4px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.command-grid article::after {
  position: absolute;
  right: -36px;
  bottom: -42px;
  width: 118px;
  height: 118px;
  content: "";
  background: rgba(20, 125, 255, 0.1);
  border-radius: 50%;
}

.command-num {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--blue);
  border-radius: 14px;
  font-weight: 900;
}

.command-grid article:nth-child(2) .command-num {
  background: var(--green);
}

.command-grid article:nth-child(3) .command-num {
  background: var(--orange);
}

.command-grid article:nth-child(4) .command-num {
  background: var(--violet);
}

.command-grid article:nth-child(5) .command-num {
  background: var(--navy);
}

.command-grid article:nth-child(6) .command-num {
  background: var(--pink);
}

.command-grid h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.28;
}

.command-grid p,
.screen-card p,
.special p,
.start-box p,
.faq p {
  color: var(--muted);
}

.phone-frame {
  overflow: hidden;
  width: min(340px, 78vw);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  background: #071122;
  border: 10px solid #111827;
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.main-phone {
  position: relative;
  z-index: 1;
  transform: rotate(-1.2deg);
  transform-origin: center center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, box-shadow;
  box-shadow:
    0 44px 70px rgba(16, 45, 93, 0.28),
    24px 20px 36px rgba(20, 125, 255, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.main-phone::before {
  display: none;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: contrast(1.06) saturate(1.03);
}

.main-phone.is-switching {
  animation: phone-switch 520ms ease;
}

.main-phone.is-switching img {
  animation: screen-swap 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes phone-switch {
  0% {
    transform: rotate(-1.2deg) scale(1);
    box-shadow:
      0 44px 70px rgba(16, 45, 93, 0.28),
      24px 20px 36px rgba(20, 125, 255, 0.16),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  38% {
    transform: rotate(1deg) scale(1.018);
    box-shadow:
      0 58px 92px rgba(16, 45, 93, 0.32),
      34px 28px 42px rgba(20, 125, 255, 0.2),
      inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  }

  100% {
    transform: rotate(-1.2deg) scale(1);
    box-shadow:
      0 44px 70px rgba(16, 45, 93, 0.28),
      24px 20px 36px rgba(20, 125, 255, 0.16),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

@keyframes screen-swap {
  0% {
    opacity: 0.82;
    transform: scale(0.992);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.screen-card {
  padding: 32px;
}

.screen-card h3 {
  font-size: clamp(28px, 3.2vw, 44px);
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.numbers div {
  padding: 16px;
  background: #f5fbff;
  border: 2px solid rgba(20, 125, 255, 0.12);
  border-radius: 16px;
}

.numbers dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.numbers dd {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 900;
}

.screen-rail {
  display: grid;
  grid-auto-columns: minmax(280px, 360px);
  grid-auto-flow: column;
  gap: 20px;
  margin-top: 44px;
  padding: 6px 5vw 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--blue) rgba(20, 125, 255, 0.12);
}

.screen-slide {
  scroll-snap-align: center;
  overflow: hidden;
  background: var(--white);
  border: 4px solid var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow), 0 0 0 3px rgba(6, 27, 54, 0.08);
}

.screen-slide img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top center;
  background: #f8fafc;
}

.screen-slide div {
  padding: 20px;
}

.screen-slide span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.screen-slide h3 {
  margin-bottom: 8px;
}

.screen-slide p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.screen-switcher {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  grid-template-areas:
    "device tabs"
    "device description";
  column-gap: clamp(30px, 5vw, 72px);
  align-items: center;
  justify-items: center;
  max-width: 1120px;
  margin: 0 auto;
}

.screen-device {
  grid-area: device;
  position: relative;
  display: grid;
  justify-items: center;
  width: min(520px, 100%);
  perspective: 1200px;
  padding: 10px 0 44px;
}

.screen-device .main-phone {
  width: min(300px, 82vw);
}

.main-phone[data-screen-motion="start"] {
  transform: rotate(-1.2deg);
}

.main-phone[data-screen-motion="today"] {
  transform: rotate(-1deg);
}

.main-phone[data-screen-motion="calendar"] {
  transform: rotate(0.8deg);
}

.main-phone[data-screen-motion="sites"] {
  transform: rotate(-0.4deg);
}

.main-phone[data-screen-motion="communications"] {
  transform: rotate(1.1deg);
}

.main-phone[data-screen-motion="archive"] {
  transform: rotate(-0.7deg);
}

.main-phone[data-screen-motion="money"] {
  transform: rotate(0.6deg);
}

.main-phone[data-screen-motion="settings"] {
  transform: rotate(-0.9deg);
}

.screen-device::before {
  position: absolute;
  inset: auto 50% 22px auto;
  width: 300px;
  height: 46px;
  content: "";
  background: radial-gradient(ellipse, rgba(10, 36, 80, 0.28), rgba(10, 36, 80, 0.02) 68%, transparent 72%);
  transform: translateX(50%);
  filter: blur(4px);
}

.screen-device::after {
  position: absolute;
  inset: 0 50% auto auto;
  width: 300px;
  height: 300px;
  content: "";
  background: radial-gradient(circle, rgba(52, 207, 255, 0.24), transparent 66%);
  transform: translateX(50%);
  pointer-events: none;
}

.screen-tabs {
  grid-area: tabs;
  justify-self: stretch;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding: 12px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.82);
  border: 3px solid var(--white);
  border-radius: 999px;
  box-shadow: 0 16px 38px rgba(20, 53, 103, 0.1);
  scrollbar-width: none;
}

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

.screen-tab {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.screen-tab.is-active {
  color: var(--white);
  background: linear-gradient(180deg, var(--blue), #0755cf);
  box-shadow: 0 8px 18px rgba(20, 125, 255, 0.3);
}

.screen-description {
  grid-area: description;
  justify-self: stretch;
  width: min(760px, 100%);
  margin-top: 16px;
  padding: 26px 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 4px solid var(--white);
  border-radius: 26px;
  box-shadow: var(--shadow), 0 0 0 3px rgba(6, 27, 54, 0.08);
}

.screen-description span {
  display: none;
}

.screen-description h3 {
  max-width: 13em;
  margin: 0 auto 10px;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.28;
}

.screen-description p {
  max-width: 34em;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 800;
  line-height: 1.85;
}

.field-map {
  position: relative;
  isolation: isolate;
  max-width: none;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 18%, rgba(52, 207, 255, 0.24), transparent 18rem),
    radial-gradient(circle at 92% 84%, rgba(255, 214, 65, 0.3), transparent 20rem),
    linear-gradient(135deg, #f8fcff 0%, #e8f5ff 54%, #fff9df 100%);
}

.field-map::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(20, 125, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 125, 255, 0.055) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 84%, transparent);
}

.field-map .section-title {
  position: relative;
  z-index: 1;
  margin-bottom: 58px;
}

.field-map .section-title span {
  box-shadow: 0 10px 24px rgba(20, 125, 255, 0.24);
}

.field-map .section-title p {
  color: var(--muted);
  font-weight: 800;
}

.map-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 0 22px;
  list-style: none;
}

.map-route::before {
  position: absolute;
  top: 26px;
  right: 10%;
  left: 10%;
  height: 8px;
  content: "";
  background: linear-gradient(90deg, var(--blue), var(--green) 50%, var(--orange));
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(20, 125, 255, 0.2);
}

.map-route li {
  position: relative;
  min-height: 250px;
  padding: 34px 30px 30px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(20, 125, 255, 0.14);
  border-top: 5px solid var(--blue);
  border-radius: 8px 28px 28px;
  box-shadow: 0 22px 54px rgba(20, 53, 103, 0.12);
  backdrop-filter: blur(12px);
}

.map-route li span {
  position: absolute;
  top: -94px;
  left: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--white);
  background: var(--blue);
  border: 7px solid #f5fbff;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(20, 125, 255, 0.28);
  font-weight: 900;
  transform: translateX(-50%);
}

.map-route li::before {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--blue);
  content: attr(data-label);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.map-route li h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2.2vw, 29px);
  line-height: 1.35;
}

.map-route li p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.map-route li:nth-child(2) {
  border-top-color: var(--green);
}

.map-route li:nth-child(2) span {
  background: var(--green);
  box-shadow: 0 12px 28px rgba(34, 199, 122, 0.28);
}

.map-route li:nth-child(2)::before {
  color: var(--green);
}

.map-route li:nth-child(3) {
  border-top-color: var(--orange);
}

.map-route li:nth-child(3) span {
  background: var(--orange);
  box-shadow: 0 12px 28px rgba(255, 148, 50, 0.3);
}

.map-route li:nth-child(3)::before {
  color: var(--orange);
}

.special-panel,
.start-box {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding: 42px;
  background: var(--white);
  border: 4px solid rgba(20, 125, 255, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.special-panel img {
  width: 150px;
  border-radius: 32px;
  box-shadow: 0 18px 44px rgba(20, 53, 103, 0.18);
}

.start-box {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq details {
  padding: 22px 24px;
}

.faq summary {
  cursor: pointer;
  font-weight: 900;
}

.faq details p {
  margin: 14px 0 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 5vw;
  color: var(--white);
  background: var(--navy);
}

.site-footer p {
  margin: 0;
  font-weight: 900;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.76);
}

.install-page {
  min-height: 100vh;
}

.install-hero,
.install-note {
  max-width: 920px;
  margin: 0 auto;
  padding: 92px 5vw;
  text-align: center;
}

.install-logo {
  width: min(190px, 42vw);
  margin: 0 auto 26px;
  border-radius: 32px;
  box-shadow: 0 18px 42px rgba(17, 120, 255, 0.26);
}

.install-hero h1 {
  font-size: clamp(40px, 6vw, 78px);
}

.install-hero p,
.install-note p {
  color: var(--muted);
}

code {
  padding: 2px 6px;
  color: var(--ink);
  background: rgba(20, 125, 255, 0.1);
  border-radius: 4px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.94em;
}

@media (max-width: 980px) {
  .hero,
  .about-layout,
  .screen-feature,
  .screen-journey,
  .command-grid,
  .map-route,
  .special-panel,
  .start-box {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: end;
    min-height: 860px;
    background-position: 60% center;
  }

  .field-map .section-title {
    margin-bottom: 38px;
  }

  .map-route {
    gap: 18px;
    width: min(640px, calc(100% - 12px));
    padding: 8px 0 8px 62px;
  }

  .map-route::before {
    top: 24px;
    right: auto;
    bottom: 24px;
    left: 24px;
    width: 7px;
    height: auto;
    background: linear-gradient(180deg, var(--blue), var(--green) 50%, var(--orange));
  }

  .map-route li {
    min-height: 0;
    padding: 24px 24px 26px;
    border-top: 1px solid rgba(20, 125, 255, 0.14);
    border-left: 5px solid var(--blue);
    border-radius: 8px 24px 24px 8px;
  }

  .map-route li:nth-child(2) {
    border-top-color: rgba(20, 125, 255, 0.14);
    border-left-color: var(--green);
  }

  .map-route li:nth-child(3) {
    border-top-color: rgba(20, 125, 255, 0.14);
    border-left-color: var(--orange);
  }

  .map-route li span {
    top: 28px;
    left: -66px;
    width: 56px;
    height: 56px;
    border-width: 6px;
    transform: none;
  }

  .map-route li::before {
    margin-bottom: 10px;
  }

  .about-layout {
    gap: 34px;
    padding: 42px;
  }

  .about-copy {
    padding: 0 0 34px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .screen-sticky {
    position: relative;
    top: auto;
    min-height: auto;
  }

  .screen-steps {
    padding-top: 18px;
  }

  .screen-switcher {
    grid-template-columns: 1fr;
    grid-template-areas:
      "device"
      "tabs"
      "description";
    justify-items: center;
  }

  .screen-tabs {
    display: flex;
    flex-wrap: nowrap;
    width: min(920px, calc(100vw - 40px));
    margin-top: -22px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .screen-tab {
    flex: 0 0 auto;
    width: auto;
  }

  .screen-description {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .site-header.is-open .nav,
  .site-header.is-open .header-cta {
    display: flex;
    grid-column: 1 / -1;
  }

  .site-header.is-open .nav {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 8px;
  }

  .site-header.is-open .header-cta {
    width: 100%;
    margin-bottom: 16px;
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 28px);
    margin-top: 14px;
  }

  .hero {
    min-height: 780px;
    padding-top: 64px;
    background-position: 66% center;
  }

  h1 {
    font-size: clamp(54px, 17vw, 72px);
  }

  .hero-window {
    display: none;
  }

  .hero-catch {
    font-size: clamp(22px, 6.4vw, 28px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions,
  .site-footer {
    flex-direction: column;
  }

  .numbers,
  .hero-window ul {
    grid-template-columns: 1fr;
  }

  .about,
  .system,
  .screens,
  .field-map,
  .special,
  .start,
  .faq,
  .install-hero,
  .install-note {
    padding-block: 64px;
  }

  .screens {
    padding-block: 42px 50px;
  }

  .screens .section-title {
    margin-bottom: 18px;
  }

  .screens .section-title span {
    margin-bottom: 8px;
    padding: 5px 12px;
    font-size: 11px;
  }

  .screens .section-title h2 {
    font-size: clamp(30px, 9.2vw, 40px);
    line-height: 1.08;
  }

  .screens .section-title p {
    max-width: 330px;
    margin-inline: auto;
    font-size: 13px;
    line-height: 1.6;
  }

  .screen-switcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, calc(100vw - 32px));
    margin-inline: auto;
  }

  .screen-card,
  .special-panel,
  .start-box {
    padding: 24px;
  }

  .about-layout {
    gap: 24px;
    padding: 30px 24px;
    border-radius: 28px 8px 28px 8px;
  }

  .about-copy {
    padding: 0 0 26px;
  }

  .about-copy .about-statement {
    font-size: clamp(24px, 7vw, 30px);
  }

  .about-copy p {
    font-size: 16px;
  }

  .job-board div {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }

  .job-board strong {
    font-size: 19px;
  }

  .phone-frame {
    width: min(224px, calc(100vw - 96px));
    border-width: 7px;
    border-radius: 28px;
  }

  .screen-device {
    justify-self: center;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    padding: 0 0 58px;
  }

  .screen-device .main-phone {
    justify-self: center;
    width: min(224px, calc(100vw - 96px));
    margin-inline: auto;
    transform: rotate(-0.8deg);
    box-shadow:
      0 20px 36px rgba(16, 45, 93, 0.18),
      10px 12px 18px rgba(20, 125, 255, 0.1),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  .screen-device .main-phone[data-screen-motion="start"] {
    transform: rotate(-0.8deg);
  }

  .screen-device .main-phone[data-screen-motion="today"] {
    transform: rotate(-0.7deg);
  }

  .screen-device .main-phone[data-screen-motion="calendar"] {
    transform: rotate(0.7deg);
  }

  .screen-device .main-phone[data-screen-motion="sites"] {
    transform: rotate(-0.4deg);
  }

  .screen-device .main-phone[data-screen-motion="communications"] {
    transform: rotate(0.8deg);
  }

  .screen-device .main-phone[data-screen-motion="archive"] {
    transform: rotate(-0.5deg);
  }

  .screen-device .main-phone[data-screen-motion="money"] {
    transform: rotate(0.5deg);
  }

  .screen-device .main-phone[data-screen-motion="settings"] {
    transform: rotate(-0.6deg);
  }

  .screen-device .main-phone.is-switching {
    animation: phone-switch-mobile 520ms ease;
  }

  .screen-device::before {
    bottom: 34px;
    width: 224px;
    height: 28px;
    opacity: 0.48;
  }

  .screen-device::after {
    width: 224px;
    height: 224px;
    opacity: 0.46;
  }

  .screen-tabs {
    width: min(100%, calc(100vw - 32px));
    margin-top: -8px;
    padding: 8px;
  }

  .screen-tab {
    min-height: 42px;
    padding: 0 18px;
  }

  .screen-description {
    width: min(100%, calc(100vw - 32px));
    margin-top: 14px;
    padding: 22px 20px;
    border-radius: 22px;
  }

  .screen-description h3 {
    max-width: 11.5em;
    font-size: clamp(22px, 6.2vw, 26px);
    line-height: 1.35;
  }

  .screen-description p {
    max-width: 24em;
    font-size: 14.5px;
    line-height: 1.8;
  }

  @keyframes phone-switch-mobile {
    0% {
      transform: rotate(-0.8deg) scale(1);
      box-shadow:
        0 20px 36px rgba(16, 45, 93, 0.18),
        10px 12px 18px rgba(20, 125, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    }

    42% {
      transform: rotate(0.6deg) scale(1.006);
      box-shadow:
        0 24px 42px rgba(16, 45, 93, 0.2),
        12px 14px 20px rgba(20, 125, 255, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    100% {
      transform: rotate(-0.8deg) scale(1);
      box-shadow:
        0 20px 36px rgba(16, 45, 93, 0.18),
        10px 12px 18px rgba(20, 125, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    }
  }

  .screen-rail {
    grid-auto-columns: minmax(250px, 78vw);
    padding-inline: 5vw;
  }

  .screen-sticky::before {
    width: 300px;
  }

  .screen-sticky::after {
    width: 300px;
    height: 300px;
  }

  .screen-step {
    min-height: auto;
    padding: 22px;
  }
}
