/* ArcherGram — official site. Concept: liquid metal, taken from the logo.
   Tokens: ink #121318, chrome #C8CDD8, paper #EEF0F3, graphite #5B6170, signal #2F5BFF.
   Type: Unbounded (display) + Manrope (text). */
:root {
  --ink: #121318;
  --ink-2: #1b1d24;
  --chrome: #c8cdd8;
  --paper: #eef0f3;
  --paper-2: #ffffff;
  --graphite: #5b6170;
  --signal: #2f5bff;
  --signal-press: #2349e0;

  --bg: var(--paper);
  --surface: var(--paper-2);
  --text: var(--ink);
  --text-2: #3e4350;
  --line: #d5d9e1;
  --focus: 0 0 0 3px rgba(47, 91, 255, 0.45);

  --display: "Unbounded", "Segoe UI", system-ui, sans-serif;
  --body: "Manrope", "Segoe UI", system-ui, sans-serif;
  --z-nav: 30;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--ink);
    --surface: var(--ink-2);
    --text: #eef0f3;
    --text-2: #b9bfcc;
    --line: #2a2d36;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--signal); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 10px; }
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }

/* floating navigation */
.top {
  position: fixed; top: 16px; left: 16px; right: 16px; z-index: var(--z-nav);
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  height: 60px; padding: 0 10px 0 16px; border-radius: 18px;
  background: rgba(18, 19, 24, 0.82);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(200, 205, 216, 0.14);
  color: #eef0f3;
}
.top .wrap { display: contents; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: #c8cdd8; text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 12px; border-radius: 10px; transition: color .2s ease, background-color .2s ease; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: #eef0f3; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  font-family: var(--body); font-weight: 700; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-press); }
.btn-metal { background: linear-gradient(180deg, #f4f6f9, #c8cdd8); color: var(--ink); border-color: #aab1bf; }
.btn-metal:hover { background: linear-gradient(180deg, #ffffff, #d6dae3); }
.btn-line { background: transparent; color: var(--text); border-color: var(--line); }
.btn-line:hover { border-color: var(--graphite); }
.top .btn { min-height: 42px; padding: 0 16px; font-size: 15px; border-radius: 12px; }

/* hero: the chrome swirl is the one memorable thing */
.hero {
  background: radial-gradient(90% 70% at 72% 40%, #232631 0%, var(--ink) 62%);
  color: #eef0f3;
  padding: 150px 0 110px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; }
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -0.04em;
  margin: 0 0 28px;
  background: linear-gradient(180deg, #ffffff 30%, #9aa2b3 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 20px; line-height: 1.55; color: #b9bfcc; max-width: 34ch; margin: 0 0 36px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin: 22px 0 0; font-size: 15px; color: #8d95a6; }
.hero .note a { color: #c8cdd8; }
.swirl { position: relative; justify-self: center; width: min(460px, 80vw); aspect-ratio: 1; }
.swirl img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.55)); animation: turn 60s linear infinite; }
.swirl::after { content: ""; position: absolute; inset: 12% 12% -4%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 91, 255, 0.28), transparent); }
@keyframes turn { to { transform: rotate(360deg); } }

/* page-load sequence (the only orchestrated motion) */
.hero h1, .hero p, .hero .cta, .hero .note { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero p { animation-delay: .12s; }
.hero .cta { animation-delay: .24s; }
.hero .note { animation-delay: .36s; }
.swirl { animation: settle 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes settle { from { opacity: 0; transform: scale(.92) rotate(-24deg); } }

/* sections */
section { padding: 104px 0; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 16px; }
.intro { max-width: 60ch; color: var(--text-2); font-size: 19px; margin: 0 0 56px; }

/* features: a list, not a card grid */
.features { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; }
.features .side { position: sticky; top: 120px; }
.feature-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feature-list li { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.feature-list svg { width: 28px; height: 28px; color: var(--signal); margin-top: 4px; }
.feature-list h3 { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; margin: 0 0 6px; }
.feature-list p { margin: 0; color: var(--text-2); }

/* apps */
.apps-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.apps { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.app { border: 1px solid var(--line); border-radius: 26px; padding: 36px; display: flex; flex-direction: column; gap: 14px; background: var(--bg); }
.app.android { grid-row: span 2; background: var(--ink); color: #eef0f3; border-color: var(--ink); }
.app h3 { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -0.03em; margin: 0; }
.app p { margin: 0; color: var(--text-2); }
.app.android p { color: #b9bfcc; }
.app .facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; padding: 0; list-style: none; }
.app .facts li { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); }
.app.android .facts li { border-color: #2f333e; color: #c8cdd8; }
.app .btn { align-self: flex-start; margin-top: auto; }
.app-ico { width: 44px; height: 44px; color: var(--signal); }
.app.android .app-ico { color: #c8cdd8; }

/* news: real timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 44px 32px; max-width: 70ch; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--signal); }
.timeline time { display: block; font-weight: 700; color: var(--graphite); font-size: 15px; }
.timeline h3 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin: 6px 0 8px; }
.timeline p, .timeline ul { margin: 0; color: var(--text-2); }
.timeline ul { padding-left: 20px; }

/* faq */
.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font-weight: 700; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--graphite); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--text-2); max-width: 68ch; }

/* closing */
.closing { background: var(--ink); color: #eef0f3; text-align: center; }
.closing h2 { max-width: 16ch; margin: 0 auto 16px; }
.closing p { color: #b9bfcc; margin: 0 0 32px; }
.closing .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.closing img { width: 88px; height: 88px; margin: 0 auto 28px; }

/* footer */
footer { padding: 56px 0 44px; background: var(--ink); color: #8d95a6; border-top: 1px solid #22252e; font-size: 15px; }
footer .cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 28px; }
footer .brand { color: #eef0f3; }
footer h4 { color: #eef0f3; margin: 0 0 12px; font-size: 15px; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
footer a { color: #c8cdd8; text-decoration: none; display: inline-block; padding: 4px 0; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .fine { margin: 36px 0 0; }

/* legal pages */
.doc { padding: 140px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.035em; line-height: 1.08; margin: 0 0 10px; }
.doc h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--text-2); }
.doc .updated { color: var(--graphite); font-size: 15px; }

/* responsive */
@media (max-width: 960px) {
  .hero .wrap, .features, .apps { grid-template-columns: 1fr; }
  .features .side { position: static; }
  .app.android { grid-row: auto; }
  .swirl { width: min(320px, 70vw); order: -1; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav, .top > .btn { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .top.open { height: auto; flex-wrap: wrap; padding-bottom: 10px; }
  .top.open .nav { display: flex; flex-direction: column; width: 100%; order: 3; margin: 0; }
  .top.open .nav a { min-height: 44px; display: flex; align-items: center; }
  .top.open > .btn { display: inline-flex; order: 4; width: 100%; }
  .hero { padding: 116px 0 80px; }
  section { padding: 72px 0; }
  .app { padding: 26px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero p { font-size: 18px; }
  .hero .cta .btn, .closing .cta .btn { flex: 1 1 100%; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* dark theme: keep the Android panel distinct from the page */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app.android { background: linear-gradient(160deg, #2a2e39, #15161c 70%); border-color: #3a3f4b; }
  :root:not([data-theme="light"]) .closing, :root:not([data-theme="light"]) footer { background: #0d0e12; }
}

/* narrow phones: the long word "принадлежит" must fit inside the 16px gutters */
@media (max-width: 520px) {
  .hero h1 { font-size: min(10.4vw, 44px); }
}
