:root {
  --primary: #2563eb;
  --secondary: #7c3aed;
  --accent: #06b6d4;
  --dark: #0f172a;
  --gray: #64748b;
  --light: #f8fafc;
  --white: #ffffff;
  --success: #10b981;
  --border: #e2e8f0;
  --gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #06b6d4 100%);
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--dark);
  background: var(--white);
  font-family: Inter, "SF Pro Display", "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

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

p {
  margin: 0 0 1rem;
  color: var(--gray);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.7rem, 8vw, 5.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.15rem;
}

ul {
  padding-left: 1.2rem;
}

.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: 840px;
}

.skip-link,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--dark);
}

.brand-mark,
.brand-mark-img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.brand-mark {
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--gradient);
}

.brand-mark-img {
  object-fit: cover;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu a {
  padding: 9px 12px;
  border-radius: var(--radius);
  color: var(--gray);
  font-weight: 700;
  font-size: 0.94rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
  background: #eef4ff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--dark);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 20% 18%, rgba(37, 99, 235, 0.22), transparent 28%),
    radial-gradient(circle at 68% 10%, rgba(124, 58, 237, 0.18), transparent 28%),
    radial-gradient(circle at 88% 70%, rgba(6, 182, 212, 0.2), transparent 26%),
    var(--light);
}

.hero-grid,
.split,
.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(36px, 7vw, 84px);
  align-items: center;
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-subtitle {
  color: var(--dark);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
}

.lead {
  font-size: 1.08rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.btn,
.store-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 12px 18px;
  font-weight: 850;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover,
.store-btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: var(--gradient);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.24);
}

.btn-secondary,
.store-btn {
  color: var(--dark);
  background: var(--white);
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.btn-light {
  color: var(--primary);
  background: var(--white);
}

.store-btn {
  min-width: 128px;
  background: #0f172a;
  color: var(--white);
  border-color: #0f172a;
}

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

.phone-frame {
  width: min(315px, 78vw);
  aspect-ratio: 0.55;
  border: 12px solid #111827;
  border-radius: 34px;
  background: #eef2ff;
  box-shadow: var(--shadow);
  padding: 18px;
  transform: rotate(4deg);
}

.phone-frame.real-screen {
  overflow: hidden;
  padding: 0;
  background: #111827;
}

.phone-frame.real-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.secondary-screen {
  position: absolute;
  right: 6px;
  width: min(245px, 58vw);
  opacity: 0.72;
  transform: translate(18%, 8%) rotate(-5deg);
  z-index: 0;
}

.hero-visual .phone-frame:first-child {
  position: relative;
  z-index: 1;
}

.phone-top {
  width: 90px;
  height: 8px;
  margin: 0 auto 20px;
  border-radius: 99px;
  background: #111827;
}

.app-screen {
  min-height: 94%;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.screen-toolbar {
  width: 60%;
  height: 12px;
  margin-bottom: 28px;
  border-radius: 99px;
  background: var(--gradient);
}

.document-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.document-card span {
  display: block;
  height: 10px;
  margin-bottom: 12px;
  border-radius: 99px;
  background: #cbd5e1;
}

.document-card .short {
  width: 64%;
}

.signature-line {
  margin-top: 30px;
  padding-top: 8px;
  border-top: 2px solid var(--accent);
  color: var(--secondary);
  font-weight: 900;
  font-style: italic;
}

.tool-pills {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.tool-pills span,
.tag-list span {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--primary);
  background: #eef4ff;
  font-weight: 800;
  font-size: 0.82rem;
}

.metric-card {
  position: absolute;
  right: 0;
  bottom: 48px;
  width: min(240px, 58vw);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  z-index: 2;
}

.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card span {
  color: var(--gray);
  font-size: 0.93rem;
}

.metric-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}

.section,
.page-shell {
  padding: clamp(72px, 10vw, 118px) 0;
}

.section-muted {
  background: var(--light);
}

.section-heading,
.page-heading {
  max-width: 790px;
  margin-bottom: 36px;
}

.app-card,
.feature-card,
.mini-card,
.contact-panel,
.notice {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.app-card {
  padding: clamp(22px, 4vw, 34px);
}

.app-card.featured {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.84)),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.16), transparent 40%);
}

.app-card.wide {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: start;
}

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

.home-app-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.home-app-card h3 {
  font-size: 1.08rem;
}

.home-app-card p {
  font-size: 0.95rem;
}

.home-app-media {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 150px;
}

.home-app-screen {
  width: 96px;
  height: 150px;
  border: 5px solid #111827;
  border-radius: 16px;
  object-fit: cover;
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.app-list {
  display: grid;
  gap: 18px;
}

.app-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  flex: 0 0 72px;
  border-radius: 18px;
  color: var(--white);
  background: var(--gradient);
  font-weight: 950;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}

.app-icon.large {
  width: 104px;
  height: 104px;
  border-radius: 26px;
  font-size: 1.35rem;
}

.app-icon-img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.2);
}

.app-icon-img.large {
  width: 104px;
  height: 104px;
  border-radius: 26px;
}

.app-card-screenshot {
  width: min(100%, 210px);
  height: 455px;
  aspect-ratio: 600 / 1300;
  margin: 20px 0 4px;
  border: 8px solid #111827;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  background: #111827;
}

.play-card-screenshot {
  width: min(100%, 280px);
  height: 420px;
  margin: 20px 0 4px;
  border: 8px solid #111827;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  background: #111827;
}

.app-media {
  display: grid;
  grid-template-columns: 72px 96px;
  gap: 14px;
  align-items: start;
}

.app-media-screen {
  width: 96px;
  height: 208px;
  aspect-ratio: 600 / 1300;
  border: 5px solid #111827;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  background: #111827;
}

.play-media-screen {
  width: 112px;
  height: 168px;
  aspect-ratio: auto;
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 25px;
  margin-top: 10px;
  color: var(--gray);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
}

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

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

.feature-card {
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.icon-dot {
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    var(--gradient) border-box;
  border: 8px solid transparent;
}

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

.trust-list div {
  padding: 18px;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: var(--light);
}

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

.trust-list span {
  color: var(--gray);
}

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

.press-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.press-card-shot {
  width: 100%;
  height: 220px;
  margin: 10px 0 4px;
  border: 6px solid #111827;
  border-radius: 18px;
  object-fit: cover;
  object-position: top center;
  background: #111827;
  box-shadow: var(--shadow-soft);
}

.press-logo {
  width: min(100%, 260px);
  height: auto;
  margin: 0 0 22px;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.link-snippets {
  display: grid;
  gap: 14px;
}

.link-snippets div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--light);
}

.link-snippets code {
  display: block;
  overflow-wrap: anywhere;
  color: var(--primary);
  font-weight: 800;
}

.cta-section {
  padding: 84px 0;
  background: var(--gradient);
  color: var(--white);
}

.cta-inner {
  text-align: center;
  max-width: 760px;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.86);
}

.app-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 56px;
}

.content-section {
  margin-top: 46px;
}

.mini-card {
  min-height: 76px;
  display: flex;
  align-items: center;
  padding: 18px;
  color: var(--dark);
  font-weight: 800;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notice,
.contact-panel,
.download-panel {
  padding: clamp(22px, 4vw, 34px);
}

.notice {
  margin-top: 42px;
  border-color: rgba(37, 99, 235, 0.24);
  background: #f0f7ff;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 34px 0 50px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.2), transparent 38%);
  box-shadow: var(--shadow-soft);
}

.download-panel.bottom {
  margin-top: 54px;
  margin-bottom: 0;
}

.download-panel .button-row {
  margin-top: 0;
  justify-content: flex-end;
}

.screenshot-section {
  margin: 54px 0 18px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

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

.screenshot-grid img {
  width: 100%;
  height: clamp(520px, 52vw, 680px);
  aspect-ratio: 600 / 1300;
  border: 8px solid #111827;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
  background: #111827;
}

.play-grid img {
  height: clamp(420px, 44vw, 560px);
  aspect-ratio: auto;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 850;
}

details p {
  padding: 0 18px 18px;
}

.legal {
  max-width: 900px;
}

.legal h2 {
  margin-top: 34px;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.legal a,
.contact-panel a,
.notice a {
  color: var(--primary);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 56px 0 28px;
  background: #0f172a;
  color: var(--white);
}

.site-footer p {
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 36px;
  align-items: start;
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--white);
}

.footer-link-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 28px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links h2 {
  margin-bottom: 4px;
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0;
}

.footer-links a {
  color: #dbeafe;
  font-weight: 750;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(226, 232, 240, 0.18);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
  }

  .secondary-screen {
    width: min(210px, 48vw);
  }

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

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

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

  .screenshot-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x proximity;
  }

  .screenshot-grid img {
    height: 368px;
    scroll-snap-align: start;
  }

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

  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-panel .button-row {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 12px;
  }

  .nav-toggle.is-open span:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(3) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(4) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    padding-top: 48px;
  }

  .phone-frame {
    width: min(280px, 74vw);
    transform: none;
  }

  .secondary-screen {
    right: -6px;
    transform: translate(18%, 10%) rotate(-4deg);
  }

  .metric-card {
    right: 50%;
    bottom: 0;
    transform: translateX(50%);
  }

  .app-card.wide,
  .app-hero {
    grid-template-columns: 1fr;
  }

  .app-media {
    grid-template-columns: 72px 88px;
  }

  .button-row > * {
    width: 100%;
  }

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

  .home-app-grid {
    grid-template-columns: 1fr;
  }

  .home-app-media {
    min-height: 132px;
  }

  .home-app-screen {
    width: 88px;
    height: 132px;
  }

  .screenshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: visible;
  }

  .screenshot-grid img {
    height: 260px;
    border-width: 5px;
    border-radius: 18px;
  }

  .footer-link-groups {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
