:root {
  color-scheme: light dark;
  --accent: #367c9c;
  --accent-strong: #245e79;
  --accent-soft: #dcecf3;
  --sky: #eef5f8;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-solid: #ffffff;
  --text: #14242d;
  --muted: #657681;
  --line: rgba(54, 124, 156, 0.15);
  --shadow: 0 24px 70px rgba(54, 124, 156, 0.16);
  --radius-large: 36px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--sky);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 5%, rgba(102, 181, 216, 0.31), transparent 28rem),
    radial-gradient(circle at 3% 34%, rgba(255, 255, 255, 0.95), transparent 30rem),
    var(--sky);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

figure { margin: 0; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-solid);
  color: var(--text);
  transform: translateY(-150%);
}

.skip-link:focus { transform: none; }

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  background: rgba(238, 245, 248, 0.8);
  -webkit-backdrop-filter: saturate(150%) blur(22px);
  backdrop-filter: saturate(150%) blur(22px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: 0 6px 18px rgba(54, 124, 156, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--accent); }

.hero {
  position: relative;
  overflow: clip;
  padding: 78px 0 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.78fr);
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 7px rgba(54, 124, 156, 0.1);
}

h1 {
  margin: 0;
  font-size: clamp(44px, 6.2vw, 78px);
  line-height: 1.09;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 720;
  box-shadow: 0 10px 28px rgba(54, 124, 156, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(54, 124, 156, 0.17);
}

.button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #fff;
}

.button svg {
  width: 18px;
  height: 18px;
}

.availability {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 570px;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(133, 200, 228, 0.42));
  filter: blur(1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.phone-shot {
  position: relative;
  width: min(290px, 76vw);
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.92);
  border-radius: 46px;
  background: #fff;
  box-shadow: var(--shadow);
  transform: rotate(2.5deg);
}

.phone-shot img,
.screen img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.app-icon-float {
  position: absolute;
  left: 3%;
  bottom: 12%;
  width: 110px;
  height: 110px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 54px rgba(38, 89, 112, 0.24);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transform: rotate(-7deg);
}

.app-icon-float img {
  width: 100%;
  height: 100%;
  border-radius: 22px;
}

.section { padding: 82px 0; }

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

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

.feature-card {
  min-height: 250px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-large);
  background: var(--surface);
  box-shadow: 0 20px 52px rgba(54, 124, 156, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.feature-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 36px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.feature-card h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.screens-section { overflow: hidden; }

.screens {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 242px);
  gap: 24px;
  overflow-x: auto;
  padding: 16px 8px 38px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.screens-shell { position: relative; }

.screens:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 6px;
  border-radius: 20px;
}

.screens-note {
  display: none;
  align-items: center;
  gap: 7px;
  margin: -6px 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.screen {
  overflow: hidden;
  border: 8px solid var(--surface-solid);
  border-radius: 34px;
  background: var(--surface-solid);
  box-shadow: 0 24px 60px rgba(54, 124, 156, 0.16);
  scroll-snap-align: start;
}

.screen img {
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: none;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(54, 124, 156, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent-strong);
  box-shadow: 0 12px 32px rgba(25, 74, 94, 0.22);
  font: inherit;
  font-size: 25px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.carousel-button:hover:not(:disabled) {
  background: var(--accent);
  color: #fff;
}

.carousel-button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.carousel-button:disabled {
  opacity: 0;
  pointer-events: none;
}

.carousel-button.previous { left: 10px; }
.carousel-button.next { right: 10px; }

@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .screens { cursor: grab; }
  .screens.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
  }
  .carousel-button { display: grid; }
}

.closing-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: clamp(30px, 5vw, 54px);
  border-radius: var(--radius-large);
  background: linear-gradient(135deg, #2a6c8a, #72b7d5);
  color: #fff;
  box-shadow: 0 30px 70px rgba(38, 89, 112, 0.28);
}

.closing-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -80px;
  top: -130px;
  border: 56px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.closing-card img {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(15, 50, 65, 0.24);
}

.closing-copy {
  position: relative;
  z-index: 1;
}

.closing-copy h2 {
  margin: 0;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.closing-copy p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.closing-card .button {
  position: relative;
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.25);
  background: #fff;
  color: #245e79;
  white-space: nowrap;
}

footer {
  padding: 38px 0 calc(38px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a { text-underline-offset: 4px; }

@media (max-width: 860px) {
  .hero { padding-top: 62px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .hero-visual { min-height: 540px; }
  .screens {
    grid-auto-columns: minmax(250px, 72vw);
    padding: 16px max(20px, calc((100vw - 1120px) / 2)) 38px;
    margin-inline: calc(50% - 50vw);
    scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screens-note { display: flex; }
  .screen { scroll-snap-align: center; }
  .closing-card { grid-template-columns: auto 1fr; }
  .closing-card .button { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav { min-height: 64px; }
  .brand img { width: 38px; height: 38px; border-radius: 10px; }
  .nav-links a:not(.support-link) { display: none; }
  .hero { padding: 52px 0 68px; }
  h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-copy { font-size: 16px; line-height: 1.85; }
  .hero-actions { align-items: stretch; }
  .button { width: 100%; }
  .hero-visual { min-height: 500px; }
  .hero-glow { width: 360px; height: 360px; }
  .phone-shot { width: 244px; border-width: 8px; border-radius: 39px; }
  .app-icon-float { left: 1%; bottom: 10%; width: 88px; height: 88px; border-radius: 24px; }
  .app-icon-float img { border-radius: 18px; }
  .section { padding: 64px 0; }
  .features { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .feature-number { margin-bottom: 28px; }
  .screens { grid-auto-columns: minmax(236px, 76vw); gap: 16px; }
  .closing-card { grid-template-columns: 1fr; text-align: center; }
  .closing-card img { margin-inline: auto; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #83c6e3;
    --accent-strong: #b7e2f4;
    --accent-soft: rgba(65, 145, 179, 0.22);
    --sky: #08111b;
    --surface: rgba(21, 34, 45, 0.84);
    --surface-solid: #15222d;
    --text: #f3f7f9;
    --muted: #9baab4;
    --line: rgba(144, 203, 228, 0.15);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  }

  body {
    background:
      radial-gradient(circle at 88% 5%, rgba(54, 124, 156, 0.28), transparent 28rem),
      radial-gradient(circle at 3% 34%, rgba(26, 54, 71, 0.58), transparent 30rem),
      var(--sky);
  }

  .site-header { background: rgba(8, 17, 27, 0.82); }
  .hero-glow { background: linear-gradient(145deg, rgba(54, 91, 111, 0.56), rgba(18, 42, 56, 0.22)); }
  .phone-shot { border-color: rgba(28, 43, 54, 0.97); }
  .feature-card { border-color: rgba(255, 255, 255, 0.06); }
  .carousel-button {
    border-color: rgba(144, 203, 228, 0.18);
    background: rgba(21, 34, 45, 0.94);
    color: var(--accent-strong);
  }
}

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