/* AY Studio — shared styles. Palette pulled from the AY monogram:
   teal/cyan + orange-red on deep navy. Dependency-free (system fonts). */
:root {
  --bg: #0f1220;
  --bg-elev: #171b2e;
  --bg-card: #1b2036;
  --border: #2a3050;
  --text: #e7e9f3;
  --muted: #9aa0b8;
  --teal: #2dd4cf;
  --teal-dim: #1fb5b0;
  --orange: #ff7a45;
  --magenta: #e84d6b;
  --radius: 16px;
  --maxw: 960px;
  --grad: linear-gradient(135deg, var(--teal) 0%, var(--orange) 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 18, 32, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.2px; color: var(--text); }
.brand:hover { text-decoration: none; }
.monogram {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 900; letter-spacing: -0.5px;
  color: #0b0e18; background: var(--grad);
}
.nav a { color: var(--muted); margin-left: 22px; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* ---- hero ---- */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 20% auto auto;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45,212,207,0.16), transparent 62%);
  pointer-events: none;
}
.eyebrow { color: var(--teal); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 13px; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; margin: 0 0 18px; font-weight: 850; letter-spacing: -1px; }
.lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); max-width: 620px; margin: 0 0 32px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- buttons ---- */
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--grad); color: #0b0e18; }
.btn-primary:hover { text-decoration: none; filter: brightness(1.06); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { text-decoration: none; border-color: var(--teal); }
.btn + .btn { margin-left: 12px; }

/* ---- sections ---- */
section.block { padding: 56px 0; border-top: 1px solid var(--border); }
h2 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 8px; letter-spacing: -0.5px; }
.section-sub { color: var(--muted); margin: 0 0 32px; }

/* ---- product cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: border-color .18s, transform .18s;
}
.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card h3 { margin: 0 0 6px; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); margin: 0 0 18px; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .3px; }
.pill-live { background: rgba(45,212,207,0.15); color: var(--teal); }
.pill-soon { background: rgba(255,122,69,0.15); color: var(--orange); }
.card-links a { font-weight: 600; font-size: 14px; margin-right: 16px; }

/* ---- legal / doc pages ---- */
.doc { padding: 48px 0 80px; }
.doc h1 { font-size: 30px; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; }
.doc h3 { font-size: 16px; color: var(--teal); margin: 22px 0 6px; }
.doc p, .doc li { color: #d3d7e6; font-size: 15px; }
.doc code { background: var(--bg-elev); border: 1px solid var(--border); padding: 1px 6px; border-radius: 5px; font-size: 13px; color: var(--teal); }
.doc .meta { color: var(--muted); font-size: 13px; margin-top: 0; }
.lang-toggle { margin: 0 0 24px; }
.lang-toggle button {
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  padding: 6px 14px; border-radius: 999px; font-weight: 600; cursor: pointer; margin-right: 8px;
}
.lang-toggle button.active { color: #0b0e18; background: var(--teal); border-color: var(--teal); }
section[lang="ru"] { display: none; }
body.lang-ru section[lang="en"] { display: none; }
body.lang-ru section[lang="ru"] { display: block; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.foot-links a { margin-left: 20px; }
