:root {
  color-scheme: light;
  --navy: #161c32;
  --navy-strong: #0d1326;
  --navy-soft: #27304d;
  --yellow: #f7c948;
  --yellow-soft: #fff5cf;
  --surface: #ffffff;
  --surface-alt: #f4f6fb;
  --text: #161c32;
  --muted: #667085;
  --line: #dde2ec;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 10px 30px rgba(22, 28, 50, 0.08);
  --shadow-device: 0 34px 80px rgba(22, 28, 50, 0.22);
  --content-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--surface-alt);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(247, 201, 72, 0.16), transparent 30rem),
    radial-gradient(circle at 90% 15%, rgba(74, 98, 170, 0.1), transparent 34rem),
    linear-gradient(180deg, #ffffff 0%, #f8f9fc 58%, #f2f4f9 100%);
  color: var(--text);
  font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 226, 236, 0.8);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  min-height: 76px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark-image {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(22, 28, 50, 0.18);
  object-fit: cover;
}

.brand-pro {
  color: #c99700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.86fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
  padding-block: 64px 34px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 52px;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: var(--navy);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.055em;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(3rem, 5.7vw, 5.35rem);
}

.page-hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.35rem);
}

.lead {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store-button,
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.store-button {
  min-width: 190px;
  background: var(--navy);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(22, 28, 50, 0.18);
}

.store-button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--navy);
  box-shadow: none;
}

.store-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}

.hero-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.product-preview {
  position: relative;
  width: min(540px, 100%);
  min-width: 0;
  justify-self: end;
}

.product-preview::before {
  position: absolute;
  top: 2%;
  left: 50%;
  width: min(500px, 110%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 34%, rgba(247, 201, 72, 0.34), transparent 28%),
    radial-gradient(circle at 62% 52%, rgba(99, 117, 185, 0.18), transparent 46%);
  content: "";
  filter: blur(22px);
  opacity: 0.88;
  pointer-events: none;
  transform: translateX(-50%);
}

.screen-showcase {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
}

.device-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  touch-action: pan-y;
  user-select: none;
}

.device-halo {
  position: absolute;
  width: 80%;
  max-width: 360px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 90px rgba(22, 28, 50, 0.11);
  filter: blur(2px);
}

.hero-device {
  position: relative;
  z-index: 1;
  width: min(292px, 100%);
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 40px;
  background: linear-gradient(155deg, #202943 0%, #080d1b 70%);
  box-shadow: var(--shadow-device);
}

.hero-device::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 32%);
  content: "";
  pointer-events: none;
}

.device-screen {
  position: relative;
  aspect-ratio: 1179 / 2556;
  overflow: hidden;
  border-radius: 31px;
  background: #f5f6fa;
}

.device-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: translateX(18px) scale(0.992);
  transition: opacity 260ms ease, transform 320ms ease;
}

.device-slide.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.carousel-arrow {
  position: relative;
  z-index: 3;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(221, 226, 236, 0.92);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(22, 28, 50, 0.12);
  color: var(--navy);
  cursor: pointer;
  font-size: 1.16rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.carousel-arrow:hover {
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(22, 28, 50, 0.16);
  transform: translateY(-2px);
}

.carousel-arrow:active {
  transform: translateY(0) scale(0.97);
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.showcase-dots {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  margin-top: 18px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfd5e1;
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.carousel-dot:hover {
  transform: scale(1.15);
}

.carousel-dot.is-active {
  width: 28px;
  background: var(--navy);
}

.section {
  padding-block: 36px 64px;
}

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

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 17px;
  place-items: center;
  border-radius: 14px;
  background: var(--yellow-soft);
  color: #7c5e00;
  font-size: 1.12rem;
  font-weight: 900;
}

.feature-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.12rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.page-hero {
  padding-block: 64px 24px;
}

.document-card,
.support-card {
  margin: 16px 0 60px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.document-card h2,
.document-card h3,
.support-card h2 {
  color: var(--navy);
  line-height: 1.25;
}

.document-card h2 {
  margin: 30px 0 10px;
  font-size: 1.42rem;
}

.document-card h2:first-child {
  margin-top: 0;
}

.document-card p,
.document-card li,
.support-card p {
  color: var(--muted);
}

.document-card a,
.support-card a {
  color: #4c3a00;
  font-weight: 800;
}

.notice {
  margin-top: 22px;
  padding: 17px 18px;
  border: 1px solid #eadca5;
  border-radius: 16px;
  background: var(--yellow-soft);
  color: #5f4a00;
  font-weight: 700;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-alt);
}

.contact-item strong {
  display: block;
  color: var(--navy);
}

.site-footer {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
}

.footer-wrap {
  display: flex;
  min-height: 120px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.footer-links a {
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--navy);
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid rgba(247, 201, 72, 0.75);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 52px 28px;
  }

  .hero-copy {
    max-width: 760px;
    padding-top: 0;
  }

  .product-preview {
    width: min(600px, 100%);
    margin-inline: auto;
    justify-self: center;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    min-height: 68px;
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 26px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--content-width), calc(100% - 28px));
  }

  .hero {
    gap: 22px;
    padding-block: 38px 24px;
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.035em;
  }

  .lead {
    margin-top: 20px;
  }

  .cta-row {
    margin-top: 24px;
  }

  .cta-row,
  .store-button,
  .button {
    width: 100%;
  }

  .screen-showcase {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .hero-device {
    width: min(258px, 100%);
    padding: 7px;
    border-radius: 35px;
  }

  .device-screen {
    border-radius: 28px;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .showcase-dots {
    margin-top: 15px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-block: 32px 52px;
  }

  .page-hero {
    padding-top: 44px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
