/* trueslash.ru — same design language as the apps: deep #0A0A10, green #00E676,
   #1C1C22 cards, soft glows. Animations use transform/opacity only. */
:root {
  --bg: #0a0a10;
  --surface: #15151b;
  --card: #1a1a21;
  --card-2: #22222b;
  --card-border: rgba(255, 255, 255, 0.1);
  --stroke: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.5);
  --accent: #00e676;
  --accent-2: #00c853;
  --accent-ink: #00351b;
  --accent-soft: rgba(0, 230, 118, 0.14);
  --violet: #8b6cf6;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: "Inter", "Segoe UI Variable", "Segoe UI", "Noto Sans", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", "DejaVu Sans Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
code { font-family: var(--mono); font-size: 0.9em; }
.hidden { display: none !important; }
.muted { color: var(--text-muted); }
.small { font-size: 0.88rem; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; position: relative; z-index: 1; }

/* background */
.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.bg-glow::before, .bg-glow::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(10px);
}
.bg-glow::before {
  width: 110vmax; height: 110vmax; left: 50%; top: -55vmax; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 200, 120, 0.22), rgba(10, 10, 16, 0) 72%);
  animation: drift 18s ease-in-out infinite;
}
.bg-glow::after {
  width: 80vmax; height: 80vmax; right: -30vmax; top: 40vh;
  background: radial-gradient(closest-side, rgba(110, 70, 220, 0.16), rgba(10, 10, 16, 0) 72%);
  animation: drift 24s ease-in-out infinite reverse;
}
@keyframes drift { 50% { transform: translate(-46%, 4vh) scale(1.06); } }

/* header (also used by docs.html) */
header, .site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(10, 10, 16, 0.6);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.scrolled, header.scrolled { border-bottom-color: var(--card-border); background: rgba(10, 10, 16, 0.82); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: flex; }
.logo-link { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; font-size: 1.2rem; letter-spacing: 0.02em; }
.logo-link:hover { text-decoration: none; }
.logo-icon { width: 40px; height: 40px; border-radius: 12px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav-links a { color: var(--text-muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 0.95rem; transition: color 0.2s, background-color 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.nav-cta { margin-left: 4px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  border: 1px solid var(--stroke); background: var(--card-2); color: var(--text);
  font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: transform 0.18s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.3s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.28); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: linear-gradient(135deg, #3dffa0, var(--accent) 40%, var(--accent-2)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 10px 30px rgba(0, 230, 118, 0.25); }
.btn-primary:hover { box-shadow: 0 14px 40px rgba(0, 230, 118, 0.38); border-color: transparent; }
.btn-ghost { background: rgba(255, 255, 255, 0.04); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.02rem; border-radius: 16px; }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: 0.92rem; }
.btn.disabled { opacity: 0.5; pointer-events: none; }
.btn:focus-visible, .tab:focus-visible, .icon-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.link-small { font-size: 0.88rem; color: var(--text-muted); text-align: center; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--card-border); background: rgba(255,255,255,0.04); color: var(--text); cursor: pointer; }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn.ok { color: var(--accent); border-color: var(--accent); }

/* hero */
.hero { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; padding: 64px 0 40px; }
.platform-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; background: rgba(255,255,255,0.05); border: 1px solid var(--card-border); color: var(--text-muted); }
.pill svg { width: 1em; height: 1em; color: var(--accent); }
.pill-soon { border-style: dashed; }
.pill-soon svg { color: var(--text-faint); }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
.grad { background: linear-gradient(110deg, #ffffff 0%, var(--accent) 45%, #7cf5c4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--text-muted); margin: 0 0 28px; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.version-line { color: var(--text-faint); font-size: 0.92rem; margin-top: 18px; }
.version-line strong { color: var(--text); }
.hero-badge { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 0.85rem; margin-bottom: 18px; }

.hero-visual { position: relative; aspect-ratio: 1.25; }
.laptop {
  position: absolute; inset: 4% 0 10% 0;
  border-radius: 18px; overflow: hidden;
  background: #0d0d12; border: 1px solid var(--stroke);
  box-shadow: var(--shadow), 0 0 0 8px rgba(255,255,255,0.02), 0 0 120px rgba(0, 230, 118, 0.12);
  transform: perspective(1400px) rotateY(-9deg) rotateX(3deg);
  animation: float 7s ease-in-out infinite;
}
.laptop-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #16161d; border-bottom: 1px solid var(--card-border); font-size: 0.8rem; color: var(--text-faint); }
.laptop-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a44; }
.laptop-bar i:first-child { background: #ff5f57; } .laptop-bar i:nth-child(2) { background: #febc2e; } .laptop-bar i:nth-child(3) { background: #28c840; }
.laptop-bar span { margin-left: auto; margin-right: auto; padding-right: 40px; }
.laptop img { width: 100%; height: calc(100% - 34px); object-fit: cover; object-position: top left; }
.phone {
  position: absolute; right: -2%; bottom: 0; width: 30%; aspect-ratio: 9 / 19.5;
  border-radius: 26px; overflow: hidden; border: 6px solid #1d1d24; background: #0d0d12;
  box-shadow: var(--shadow);
  animation: float 7s ease-in-out -3.5s infinite;
}
.phone img { width: 100%; height: 100%; object-fit: cover; }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 14px; font-weight: 700; font-size: 0.92rem;
  background: rgba(26, 26, 33, 0.9); border: 1px solid var(--stroke); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-chip svg { color: var(--accent); }
.chip-a { left: -4%; top: 62%; animation-delay: -2s; }
.chip-b { right: 26%; top: -2%; color: var(--accent); }
@keyframes float { 50% { translate: 0 -10px; } }

.proto-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding: 22px 0 8px; color: var(--text-faint); font-weight: 700; letter-spacing: 0.04em; font-size: 0.92rem; }

/* sections */
.section { padding: 72px 0 8px; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.01em; margin: 0 0 10px; text-align: center; }
.section-sub { color: var(--text-muted); text-align: center; margin: 0 auto 36px; max-width: 40rem; }

.platforms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.platform-card, .feature-card, .project-card, .disclaimer, .changelog-item, .doc-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01)), var(--card);
  border: 1px solid var(--card-border); border-radius: var(--radius);
}
.platform-card { display: flex; flex-direction: column; gap: 12px; padding: 24px 20px; transition: transform 0.25s var(--ease), border-color 0.25s; }
.platform-card:hover { transform: translateY(-4px); border-color: rgba(0, 230, 118, 0.4); }
.platform-card h3 { margin: 4px 0 0; font-size: 1.2rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.platform-card p { margin: 0; color: var(--text-muted); font-size: 0.93rem; flex: 1; }
.platform-card .btn { width: 100%; white-space: normal; text-align: center; overflow-wrap: anywhere; }
.pc-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pc-icon svg { width: 28px; height: 28px; }
.platform-card.soon .pc-icon { background: rgba(255,255,255,0.06); color: var(--text-faint); }
.tag { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: rgba(139, 108, 246, 0.18); color: #b9a6ff; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { padding: 24px; transition: transform 0.25s var(--ease), border-color 0.25s; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--stroke); }
.feature-card > svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.93rem; }

/* tabs + gallery */
.tabs { display: flex; justify-content: center; gap: 6px; margin: 4px auto 28px; padding: 5px; width: max-content; max-width: 100%; border-radius: 16px; background: var(--card); border: 1px solid var(--card-border); }
.tab { border: 0; background: transparent; color: var(--text-muted); font: inherit; font-weight: 700; padding: 10px 22px; border-radius: 12px; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.tab.on { background: var(--accent-soft); color: var(--accent); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery.phones { grid-template-columns: repeat(4, 1fr); }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 16px; border: 1px solid var(--card-border); box-shadow: var(--shadow); cursor: zoom-in; transition: transform 0.3s var(--ease); background: #0d0d12; }
.shot img:hover { transform: scale(1.015); }
.shot figcaption { color: var(--text-faint); font-size: 0.9rem; margin-top: 10px; text-align: center; }

/* changelog */
.changelog-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.changelog-item { padding: 0; overflow: hidden; }
.changelog-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; }
.changelog-item summary::-webkit-details-marker { display: none; }
.changelog-item .chev { transition: transform 0.25s; color: var(--text-faint); }
.changelog-item[open] .chev { transform: rotate(180deg); }
.changelog-item ul { margin: 0; padding: 0 22px 20px 42px; color: var(--text-muted); }
.changelog-item li + li { margin-top: 6px; }

/* projects / disclaimer */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 800px; margin-inline: auto; }
.project-card { display: block; padding: 24px; color: var(--text); transition: transform 0.25s var(--ease), border-color 0.25s; }
.project-card:hover { text-decoration: none; transform: translateY(-4px); border-color: rgba(0, 230, 118, 0.4); }
.project-card h3 { margin: 0 0 6px; }
.project-card p { margin: 0 0 14px; color: var(--text-muted); }
.project-card span { color: var(--accent); font-weight: 700; }
.projects-github { display: flex; justify-content: center; margin-top: 22px; }
.disclaimer { padding: 28px; color: var(--text-muted); }
.disclaimer h3 { color: var(--text); margin-top: 0; }

.site-footer, footer { margin-top: 72px; border-top: 1px solid var(--card-border); padding: 26px 0 36px; color: var(--text-faint); font-size: 0.92rem; position: relative; z-index: 1; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(4, 4, 8, 0.7); opacity: 0; transition: opacity 0.22s; }
.modal-card { position: relative; width: min(720px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--stroke); border-radius: 24px; padding: 24px; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 0.22s var(--ease), transform 0.22s var(--ease); }
.modal.open .modal-scrim { opacity: 1; }
.modal.open .modal-card { opacity: 1; transform: none; }
.modal-card header { position: static; display: flex; align-items: center; gap: 14px; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; margin-bottom: 16px; }
.modal-card header h3 { margin: 0; font-size: 1.3rem; }
.modal-card header p { margin: 0; font-size: 0.9rem; }
.modal-card header .icon-btn { margin-left: auto; }
.mh-icon { width: 44px; height: 44px; padding: 9px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.pkg-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.pkg { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--card-border); }
.pkg.rec { border-color: rgba(0, 230, 118, 0.45); background: linear-gradient(90deg, rgba(0,230,118,0.08), transparent), var(--card); }
.pkg-main { flex: 1; min-width: 0; }
.pkg-title { font-weight: 700; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pkg-title .tag { background: var(--accent-soft); color: var(--accent); }
.pkg-cmd { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.pkg-cmd code { scrollbar-width: none; flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--text-muted); background: #0e0e13; border: 1px solid var(--card-border); padding: 6px 10px; border-radius: 9px; font-size: 0.82rem; }
.pkg .btn { min-width: 150px; }

.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(4,4,8,0.9); display: grid; place-items: center; padding: 24px; cursor: zoom-out; }
.lightbox img { max-width: min(1600px, 100%); max-height: 100%; border-radius: 14px; box-shadow: var(--shadow); }
.lightbox .icon-btn { position: absolute; top: 16px; right: 16px; }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1100px) {
  .platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 40px; }
  .hero-visual { max-width: 640px; width: 100%; margin: 0 auto; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .gallery { grid-template-columns: 1fr; }
  .gallery.phones { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .platforms, .features { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { width: 100%; }
  .pkg { flex-direction: column; align-items: stretch; }
  .pkg .btn { width: 100%; }
  .chip-a, .chip-b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- docs.html ---------- */
.docs-page {
  padding-bottom: 32px;
}

.docs-hero {
  padding: 12px 0 28px;
}

.docs-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.doc-section {
  padding-top: 8px;
  padding-bottom: 40px;
  scroll-margin-top: 20px;
}

.doc-section + .doc-section {
  border-top: 1px solid var(--card-border);
}

.doc-steps {
  margin: 0 0 18px;
  padding-left: 1.25rem;
  color: var(--text);
}

.doc-steps li + li {
  margin-top: 8px;
}

.doc-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.doc-list li + li {
  margin-top: 10px;
}

.doc-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.doc-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.doc-note {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.inline-code {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--card-border);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: #d7e3ff;
}

.code-block-wrap {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.btn-copy {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 200, 83, 0.45);
  background: rgba(0, 200, 83, 0.12);
  color: #b9f6ca;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-copy:hover {
  background: rgba(0, 200, 83, 0.22);
}

.btn-copy.is-copied {
  background: rgba(0, 200, 83, 0.28);
  color: #e8f5e9;
}

.code-block {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #e6edf3;
  white-space: pre;
}

.doc-figure {
  margin: 20px 0 0;
  text-align: center;
}

.doc-figure img {
  width: min(100%, 320px);
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  background: #0b1024;
}

.doc-figure figcaption {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.macos-dialog { margin: auto; width: min(540px, calc(100% - 32px)); color: inherit; opacity: 1; transform: none; }
.macos-dialog::backdrop { background: rgba(4, 4, 8, 0.7); }
.macos-close { margin-left: auto; }
.macos-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.ios-dialog {
  position: fixed;
  inset: 0;
  inset-block: env(safe-area-inset-top, 0px) env(safe-area-inset-bottom, 0px);
  margin: auto;
  width: min(600px, calc(100% - 32px));
  max-width: calc(100% - 2 * max(10px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)));
  color: inherit;
  opacity: 1;
  transform: none;
}
.ios-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - max(16px, env(safe-area-inset-top)) - max(16px, env(safe-area-inset-bottom)));
  padding: 0;
  overflow: hidden;
}
.ios-dialog::backdrop { background: rgba(4, 4, 8, 0.7); }
.ios-dialog header { padding: 16px; margin: 0; border-bottom: 1px solid var(--card-border); gap: 10px; }
.ios-dialog header h3 { min-width: 0; overflow-wrap: anywhere; font-size: clamp(1rem, 4vw, 1.3rem); }
.ios-dialog header form { flex: 0 0 auto; margin: 0 0 0 auto; }
.ios-dialog header > svg { flex-shrink: 0; }
.ios-dialog-body { min-height: 0; min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; overflow-wrap: anywhere; }
.ios-dialog-body > p { margin: 0 0 12px; }
.ios-dialog-body .pkg-list { margin-bottom: 0; }
.ios-method { flex-direction: column; align-items: stretch; gap: 10px; }
.ios-method h4, .ios-method p { margin: 0; }
.ios-method .btn { width: 100%; min-width: 0; min-height: 44px; white-space: normal; text-align: center; }
@media (max-width: 400px) {
  .ios-dialog { width: calc(100% - 20px); border-radius: 18px; }
  .ios-dialog header, .ios-dialog-body { padding: 12px; }
  .ios-method { padding: 12px; }
}




.apk-architecture h4 { margin: 0 0 6px; font-size: 1rem; }
.apk-architecture p { margin: 0; font-size: .9rem; color: var(--text-muted); line-height: 1.5; }
html:has(dialog[open]) { overflow: hidden; }


.hero-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; align-items: stretch; }
.hero-actions > .btn { width: 100%; min-width: 0; min-height: 56px; padding: 14px 18px; white-space: normal; text-align: center; }
.platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.platform-card { position: relative; padding: 28px; gap: 16px; border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.035), transparent 65%), var(--card); }
.platform-card .pc-icon { width: 54px; height: 54px; border-radius: 17px; border: 1px solid rgba(0,230,118,.13); }
.platform-card h3 { font-size: 1.3rem; margin: 0; }
.platform-card p { line-height: 1.65; font-size: .94rem; }
.platform-card > .btn { min-height: 48px; border-radius: 13px; padding: 12px 16px; }
.platform-card > .link-small { text-align: center; margin-top: -6px; }
.platform-card:hover { border-color: rgba(0,230,118,.35); box-shadow: 0 12px 36px rgba(0,0,0,.2); }
dialog.modal-card[open] { animation: download-window-in 240ms var(--ease) both; }
dialog.modal-card[open]::backdrop { animation: download-backdrop-in 240ms ease both; }
dialog.modal-card.dialog-closing[open] { animation: download-window-out 200ms ease both; pointer-events: none; }
dialog.modal-card.dialog-closing[open]::backdrop { animation: download-backdrop-out 200ms ease both; }
@keyframes download-window-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes download-window-out { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes download-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes download-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (max-width: 980px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .platforms { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .platform-card { padding: 22px; gap: 14px; }
  .hero-actions { grid-template-columns: minmax(0, 1fr); width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  dialog.modal-card[open], dialog.modal-card[open]::backdrop { animation: none; }
  .platform-card { transition: none; }
}

html:has(.modal.open) { overflow: hidden; }
.modal-card { overscroll-behavior: contain; }
