:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #fbfcff;
  --text: #172033;
  --muted: #647084;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #0f766e;
  --warm: #b45309;
  --border: #dbe3ef;
  --blue-soft: #eef5ff;
  --green-soft: #edf7f4;
  --warm-soft: #fff7ed;
  --shadow: 0 12px 30px rgba(23, 32, 51, 0.08);
}

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

html {
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 0.8rem;
  color: #ffffff;
  background: var(--text);
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, 1080px);
  margin: 0 auto;
}

.container.narrow {
  width: min(100% - 2rem, 820px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.brand:hover {
  color: var(--primary);
  text-decoration: none;
}

.brand-lockup {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.brand-product {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.2;
}

.brand-separator {
  margin-left: 0.25rem;
  color: #9aa5b5;
  font-weight: 400;
  line-height: 1.2;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem 0.9rem;
  min-width: 0;
}

.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--primary);
}

.app-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.app-nav .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 0.65rem 0;
}

.app-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.4rem 0.9rem;
}

.app-nav-links a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.4;
  text-decoration: none;
}

.app-nav-links a:hover,
.app-nav-links a[aria-current="page"] {
  color: var(--primary);
  text-decoration: none;
}

.hero {
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 34rem),
    linear-gradient(145deg, #ffffff 0%, #eef5ff 54%, #edf7f4 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: 2rem;
  padding: 4rem 0;
}

.hero.app-hero .container {
  width: min(100% - 2rem, 820px);
  align-items: start;
}

.hero.hero-simple .container {
  display: block;
  padding: 3.2rem 0;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 750;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.3;
}

h1 {
  max-width: 760px;
  font-size: 2.25rem;
  font-weight: 800;
}

h2 {
  font-size: 1.375rem;
  font-weight: 760;
}

h3 {
  margin-top: 1.4rem;
  color: var(--text);
  font-size: 1rem;
  font-weight: 720;
}

p {
  margin: 0.75rem 0 0;
}

ul,
ol {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

li + li {
  margin-top: 0.35rem;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.language-label {
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 720;
}

.language-actions {
  gap: 0.4rem;
}

.language-actions .button {
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
}

.language-actions .button.secondary {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.64);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.65rem 1rem;
  color: #ffffff;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 720;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  color: #ffffff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  text-decoration: none;
}

.button.secondary {
  color: var(--text);
  background: #ffffff;
  border-color: var(--border);
}

.button.secondary:hover {
  color: var(--primary-dark);
  background: var(--surface-soft);
}

.button.disabled,
.button.disabled:hover {
  color: var(--muted);
  background: var(--surface-soft);
  border-color: var(--border);
  cursor: default;
}

.main {
  padding: 2.5rem 0 4rem;
}

.section {
  margin-top: 2.5rem;
}

.section:first-child {
  margin-top: 0;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 620px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1rem;
}

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

.card,
.app-card,
.notice,
.legal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.card,
.app-card {
  padding: 1.35rem;
  box-shadow: 0 1px 0 rgba(23, 32, 51, 0.03);
}

.card + .card {
  margin-top: 1rem;
}

.card p,
.app-card p {
  color: var(--muted);
}

.related-links ul {
  display: grid;
  gap: 0;
  margin-top: 1rem;
  padding: 0;
  list-style: none;
}

.related-links li {
  margin: 0;
  border-top: 1px solid var(--border);
}

.related-links a {
  display: flex;
  align-items: center;
  min-height: 2.85rem;
  padding: 0.65rem 0;
  color: var(--primary);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 0.93rem;
  font-weight: 650;
  line-height: 1.35;
  text-decoration: none;
}

.related-links a:hover {
  color: var(--primary-dark);
  background: transparent;
}

.app-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 1rem;
}

.app-card .button-row {
  margin-top: auto;
}

.app-card-details {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.app-card-details summary {
  width: fit-content;
  color: var(--primary);
  font-size: 0.93rem;
  font-weight: 720;
  cursor: pointer;
}

.app-card-details summary:hover,
.app-card-details summary:focus-visible {
  color: var(--primary-dark);
}

.app-card-details summary:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
  border-radius: 4px;
}

.app-card-details .meta-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.app-card.soon {
  background: var(--warm-soft);
  border-color: #fed7aa;
}

.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.65rem;
  padding: 0.25rem 0.65rem;
  color: var(--primary-dark);
  background: var(--blue-soft);
  border: 1px solid #c7dcff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.1;
}

.badge.green {
  color: var(--accent);
  background: var(--green-soft);
  border-color: #b9e2d8;
}

.badge.warm {
  color: var(--warm);
  background: var(--warm-soft);
  border-color: #fed7aa;
}

.meta-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.meta-list li {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.meta-list strong {
  color: var(--text);
}

.notice {
  padding: 1rem 1.15rem;
  background: var(--warm-soft);
  border-color: #fed7aa;
}

.notice p {
  color: #7c2d12;
}

.visual-panel {
  width: min(100%, 340px);
  margin-left: auto;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(219, 227, 239, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.visual-panel[aria-label] {
  min-width: 0;
}

.primewall-placeholder {
  min-height: 440px;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.8)),
    linear-gradient(135deg, #172033 0%, #1f4a5c 48%, #2f6f5f 100%);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 24px 56px rgba(23, 32, 51, 0.24);
}

.primewall-frame {
  display: grid;
  min-height: 100%;
  align-content: space-between;
  gap: 2rem;
}

.primewall-title {
  margin: 0;
  font-size: 2.15rem;
  font-weight: 850;
  letter-spacing: 0;
}

.primewall-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.primewall-lanes span {
  display: grid;
  min-height: 13rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 800;
}

.primewall-lanes span:nth-child(2) {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(167, 243, 208, 0.76);
}

.primewall-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
}

.screenshot-panel {
  width: min(100%, 360px);
  padding: 0.85rem;
}

.screenshot-carousel {
  position: relative;
  display: flex;
  flex-direction: column;
}

.screenshot-viewport {
  min-width: 0;
}

.screenshot-slider {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 0.8rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-snap-stop: always;
  scrollbar-width: thin;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}

.screenshot-carousel.is-ready .screenshot-slider {
  scrollbar-width: none;
}

.screenshot-carousel.is-ready .screenshot-slider::-webkit-scrollbar {
  display: none;
}

.screenshot-slider img,
.screenshot-slider [data-carousel-slide] {
  display: block;
  width: 100%;
  aspect-ratio: 1242 / 2688;
  object-fit: cover;
  border: 1px solid rgba(219, 227, 239, 0.9);
  border-radius: 8px;
  background: #172033;
  scroll-snap-align: center;
  user-select: none;
  -webkit-user-drag: none;
}

.screenshot-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.screenshot-carousel.is-ready .screenshot-controls {
  display: flex;
}

.screenshot-arrow,
.screenshot-dot {
  appearance: none;
  padding: 0;
  color: var(--primary);
  background: #ffffff;
  border: 1px solid var(--border);
  cursor: pointer;
}

.screenshot-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(23, 32, 51, 0.08);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1;
}

.screenshot-arrow:hover,
.screenshot-arrow:focus-visible {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.screenshot-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.screenshot-dot {
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: #b9c5d7;
  border-color: transparent;
}

.screenshot-dot[aria-current="true"] {
  width: 1.55rem;
  background: var(--primary);
}

.screenshot-dot:hover,
.screenshot-dot:focus-visible {
  background: var(--primary-dark);
}

.screenshot-arrow:focus-visible,
.screenshot-dot:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 3px;
}

.legal-page .card {
  margin-top: 1rem;
}

.legal-page .card:first-child {
  margin-top: 0;
}

.legal-page h2 {
  font-size: 1.18rem;
}

.legal-page p,
.legal-page li {
  color: var(--text);
}

.site-footer {
  padding: 2.2rem 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0.35rem 0 0;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 999px;
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.25);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .container {
    width: min(100% - 1.5rem, 1080px);
  }

  .hero .container {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.72fr);
    gap: 1.5rem;
    padding: 3.2rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  .visual-panel {
    width: min(100%, 300px);
    padding: 1rem;
  }

  .screenshot-panel {
    width: min(100%, 320px);
  }

}

@media (max-width: 760px) {
  .site-header .container,
  .footer-grid {
    display: block;
  }

  .nav {
    justify-content: flex-start;
    margin-top: 0.65rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .nav a {
    flex: 0 0 auto;
  }

  .app-nav .container {
    display: block;
  }

  .app-nav-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .app-nav-links a {
    flex: 0 0 auto;
  }

  .hero .container {
    grid-template-columns: 1fr;
    padding: 2.7rem 0;
  }

  .visual-panel {
    margin: 0 auto;
  }

  .screenshot-panel {
    width: min(100%, 340px);
    padding: 0.75rem;
  }

  .screenshot-arrow {
    width: 2.7rem;
    height: 2.7rem;
  }

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

  h1 {
    font-size: 1.875rem;
  }

  .meta-list li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-width: 560px) {
  .container,
  .container.narrow {
    width: min(100% - 1rem, 1080px);
  }

  .site-header .container {
    padding: 0.7rem 0;
  }

  .hero.hero-simple .container,
  .hero .container {
    padding: 2.2rem 0;
  }

  .hero.app-hero .container {
    width: min(100% - 1rem, 820px);
  }

  h1 {
    font-size: 1.65rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-actions,
  .button-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .card,
  .app-card {
    padding: 1.1rem;
  }

  .section {
    margin-top: 1.7rem;
  }

  .section-header {
    display: block;
  }

  .visual-panel {
    width: min(100%, 280px);
  }

  .screenshot-panel {
    width: min(100%, 300px);
  }

  .screenshot-controls {
    gap: 0.55rem;
    margin-top: 0.75rem;
  }

  .screenshot-dot {
    width: 0.68rem;
    height: 0.68rem;
  }

  .screenshot-dot[aria-current="true"] {
    width: 1.65rem;
  }

}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .button-row {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .main,
  .hero .container,
  .hero.hero-simple .container {
    padding: 0;
  }

  .card,
  .legal-box,
  .notice {
    border-color: #999999;
    box-shadow: none;
  }
}
