:root {
  color-scheme: dark;
  --bg: #181a1f;
  --surface: #22252b;
  --surface-strong: #2a2e35;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f7f7f5;
  --muted: #a9adb4;
  --soft: #d7dae0;
  --danger: #ff817a;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.shell { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.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; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; 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-size: 22px; font-weight: 760; }
.brand img { width: 46px; height: 46px; border-radius: 11px; }
.language-picker { height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--soft); background: var(--surface); }
.language-picker svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.language-picker select { border: 0; outline: 0; color: inherit; background: transparent; cursor: pointer; }

.hero { min-height: calc(100svh - 83px); display: grid; grid-template-columns: minmax(320px, 0.88fr) minmax(480px, 1.12fr); align-items: center; gap: clamp(42px, 7vw, 96px); padding-block: 58px 42px; overflow: hidden; }
.hero-copy { max-width: 510px; }
.eyebrow { margin: 0 0 16px; color: var(--accent); font-size: 13px; font-weight: 760; text-transform: uppercase; letter-spacing: 0; }
h1 { margin: 0; max-width: 620px; font-size: 82px; line-height: 1.02; letter-spacing: 0; }
.hero-lede { margin: 24px 0 0; max-width: 520px; color: var(--muted); font-size: 22px; }
.platform-actions { margin-top: 38px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.platform-button { min-width: 0; min-height: 66px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 7px; color: var(--text); background: var(--surface); text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
a.platform-button:hover { background: var(--surface-strong); border-color: var(--accent); transform: translateY(-2px); }
.platform-button.is-coming { color: var(--soft); cursor: default; }
.platform-icon { flex: 0 0 25px; width: 25px; height: 25px; fill: currentColor; }
.platform-icon.line-icon { fill: none; stroke: currentColor; stroke-width: 1.8; }
.platform-button span { min-width: 0; display: grid; }
.platform-button strong { font-size: 14px; line-height: 1.25; }
.platform-button small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.2; text-transform: uppercase; }

.product-visual { position: relative; min-height: min(660px, 70vw); display: flex; align-items: center; justify-content: center; padding: 24px 10px 0; }
.product-visual::before { content: ""; position: absolute; left: 8%; right: 8%; bottom: 4%; height: 1px; background: var(--line); }
.phone { position: relative; width: min(286px, 42%); aspect-ratio: 1242 / 2688; margin: 0; overflow: hidden; border: 5px solid #08090b; border-radius: 34px; background: #08090b; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.phone-chats { z-index: 2; transform: translate(7%, -2%); }
.phone-moments { z-index: 1; transform: translate(-7%, 7%); }

.site-footer { border-top: 1px solid var(--line); background: #14161a; }
.footer-inner { min-height: 190px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 20px 48px; padding-block: 36px; }
.footer-brand { display: grid; gap: 5px; }
.footer-brand strong { font-size: 20px; }
.footer-brand span, .copyright { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; }
.footer-links a { color: var(--soft); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--accent); }
.copyright { grid-column: 1 / -1; margin: 0; }

.legal-main { width: min(860px, calc(100% - 48px)); min-height: calc(100svh - 83px); margin-inline: auto; padding: 62px 0 90px; }
.legal-main .back { display: inline-flex; margin-bottom: 34px; color: var(--muted); text-decoration: none; }
.legal-main .back:hover { color: var(--text); }
.legal-main h1 { font-size: 58px; }
.legal-main h2 { margin: 38px 0 12px; font-size: 22px; }
.legal-main p, .legal-main li { color: var(--soft); }
.legal-main p { margin: 14px 0; }
.legal-main ul { padding-left: 22px; }
.legal-main li + li { margin-top: 8px; }
.legal-main a { color: var(--accent); }
.updated { color: var(--muted) !important; }
.delete-panel { max-width: 560px; margin-top: 34px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.form-step { display: grid; gap: 12px; }
.form-label { color: var(--soft); font-weight: 700; }
.form-input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 6px; outline: none; color: var(--text); background: #15171b; }
.form-input:focus { border-color: var(--accent); }
.action-button { min-height: 50px; margin-top: 4px; border: 0; border-radius: 6px; color: #031536; background: var(--accent); font-weight: 760; cursor: pointer; }
.action-button.danger { color: #1d0807; background: var(--danger); }
.action-button:disabled { cursor: wait; opacity: 0.58; }
.form-message { min-height: 24px; margin-bottom: 0 !important; color: var(--muted) !important; }
.form-message.error { color: var(--danger) !important; }

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; padding-top: 72px; }
  .hero-copy { max-width: 680px; text-align: center; margin-inline: auto; }
  h1 { font-size: 64px; }
  .eyebrow, .hero-lede { margin-inline: auto; }
  .product-visual { min-height: 610px; padding-top: 0; }
  .phone { width: min(270px, 42%); }
}

@media (max-width: 620px) {
  .shell, .legal-main { width: min(100% - 32px, var(--max)); }
  .header-inner { min-height: 70px; }
  .brand { font-size: 20px; }
  .brand img { width: 40px; height: 40px; border-radius: 10px; }
  .language-picker { height: 38px; padding-left: 10px; }
  .language-picker svg { display: none; }
  .hero { min-height: auto; gap: 34px; padding-block: 58px 30px; }
  h1 { font-size: 44px; }
  .hero-lede { font-size: 18px; }
  .platform-actions { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
  .platform-button { min-height: 62px; padding-inline: 16px; }
  .product-visual { min-height: min(540px, 142vw); padding-inline: 0; }
  .phone { width: 48%; border-width: 4px; border-radius: 25px; }
  .phone-chats { transform: translate(5%, -2%); }
  .phone-moments { transform: translate(-5%, 6%); }
  .footer-inner { min-height: 0; grid-template-columns: 1fr; padding-block: 34px; }
  .footer-links { justify-content: flex-start; display: grid; gap: 13px; }
  .copyright { grid-column: auto; }
  .legal-main { padding-top: 46px; }
  .legal-main h1 { font-size: 40px; }
  .delete-panel { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
