:root {
  --ink: #172033;
  --muted: #5f6b7a;
  --line: #dfe5ec;
  --surface: #ffffff;
  --surface-soft: #f5f8fb;
  --brand: #3157d5;
  --brand-dark: #2444ad;
  --accent: #e8edff;
  --success: #17745b;
  --shadow: 0 18px 48px rgba(23, 32, 51, 0.09);
  --radius: 18px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand-dark);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(49, 87, 213, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(223, 229, 236, 0.85);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 760;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
}

.hero-logo {
  width: clamp(96px, 12vw, 132px);
  height: auto;
  margin-bottom: 1.25rem;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  padding: 0.55rem 0.72rem;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--brand-dark);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.25rem;
}

.hero {
  overflow: hidden;
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(98, 128, 236, 0.18), transparent 27rem),
    linear-gradient(180deg, #f8faff 0%, #fff 85%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.18;
}

h1 {
  max-width: 780px;
  margin-bottom: 1.2rem;
  font-size: clamp(2.35rem, 6vw, 4.5rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

.lead {
  max-width: 690px;
  margin: 0 0 1.8rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.23rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid var(--brand);
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-weight: 740;
  text-decoration: none;
}

.button:hover {
  background: var(--brand-dark);
  color: #fff;
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: #bcc8d6;
  background: var(--surface-soft);
  color: var(--brand-dark);
}

.preview-card {
  padding: 1.3rem;
  border: 1px solid rgba(49, 87, 213, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--brand-dark);
  font-weight: 800;
}

.preview-top strong,
.preview-top span {
  display: block;
}

.preview-top span {
  color: var(--muted);
  font-size: 0.82rem;
}

.bubble {
  width: fit-content;
  max-width: 88%;
  margin: 1rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 4px 14px 14px;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 0.92rem;
}

.bubble.sent {
  margin-left: auto;
  border-radius: 14px 4px 14px 14px;
  background: var(--brand);
  color: #fff;
}

.translation-label {
  display: block;
  margin-top: 0.35rem;
  opacity: 0.78;
  font-size: 0.73rem;
}

.section {
  padding: clamp(3.8rem, 8vw, 6rem) 0;
}

.section.soft {
  border-block: 1px solid #edf1f5;
  background: var(--surface-soft);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 2rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-kicker {
  display: inline-grid;
  min-width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 1rem;
  place-items: center;
  border-radius: 9px;
  background: var(--accent);
  color: var(--brand-dark);
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.check-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 1.65rem;
}

.check-list li::before {
  position: absolute;
  top: 0.12rem;
  left: 0;
  color: var(--success);
  content: "✓";
  font-weight: 900;
}

.release-panel {
  padding: clamp(1.6rem, 5vw, 3rem);
  border-radius: 24px;
  background: var(--ink);
  color: #fff;
}

.release-panel p {
  max-width: 650px;
  color: #c7d0df;
}

.coming-soon {
  display: inline-flex;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 750;
}

.page-hero {
  padding: clamp(3.8rem, 8vw, 6rem) 0 2.8rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8faff, #fff);
}

.page-hero h1 {
  max-width: 820px;
  margin-bottom: 0.8rem;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.page-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.document {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 3rem;
  padding: 3rem 0 5rem;
}

.document article {
  min-width: 0;
}

.document article section {
  padding-top: 0.5rem;
  margin-bottom: 2.2rem;
}

.document article h2 {
  font-size: 1.45rem;
}

.document article h3 {
  margin-top: 1.3rem;
}

.document article p,
.document article li {
  color: #445064;
}

.document article ul {
  padding-left: 1.25rem;
}

.document-aside {
  position: sticky;
  top: 94px;
  align-self: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
}

.document-aside strong,
.document-aside a {
  display: block;
}

.document-aside strong {
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
}

.document-aside a {
  padding: 0.3rem 0;
  font-size: 0.88rem;
  text-decoration: none;
}

.notice {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--brand);
  border-radius: 0 10px 10px 0;
  background: var(--accent);
  color: #2c3e78;
}

.center-card {
  width: min(650px, calc(100% - 2rem));
  margin: clamp(4rem, 12vw, 8rem) auto;
  padding: clamp(1.8rem, 6vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow);
}

.center-card h1 {
  margin-inline: auto;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
}

.center-card p {
  color: var(--muted);
}

.site-footer {
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--brand-dark);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 0.65rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 0.7rem;
  }

  .hero-grid,
  .split {
    grid-template-columns: 1fr;
  }

  .preview-card {
    max-width: 520px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .document {
    grid-template-columns: 1fr;
  }

  .document-aside {
    position: static;
    order: -1;
  }
}

@media (max-width: 580px) {
  .container {
    width: min(100% - 1.25rem, 1120px);
  }

  .header-inner {
    min-height: 64px;
  }

  .hero {
    padding-top: 3.8rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
