/* Minor AI website. Dark, calm, with the app's glow. No external fonts or trackers. */
:root {
  --bg: #100e11;
  --bg-2: #161317;
  --card: #1d1a1e;
  --card-2: #232023;
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-2: rgba(255, 255, 255, 0.16);
  --text: #f4f2f3;
  --text-2: #b4adb1;
  --text-3: #8f888c;
  --mint: #2fff9e;
  --mint-soft: #bbffdf;
  --violet: #c9a2ff;
  --pink: #fc86c3;
  --sky: #7cc4ff;
  --sun: #ffd66b;
  --pro: #ffd60a;
  --radius: 20px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--mint-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* Language switch: content for the other language is hidden. */
html[data-lang="en"] [data-l="ru"],
html[data-lang="ru"] [data-l="en"] { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(16, 14, 17, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--stroke);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { color: var(--text-2); font-size: 15px; padding: 8px 10px; border-radius: 10px; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); }
.lang-switch {
  display: inline-flex; border: 1px solid var(--stroke-2); border-radius: 999px; padding: 3px; margin-left: 6px;
}
.lang-switch button {
  appearance: none; border: 0; background: transparent; color: var(--text-2);
  font: 600 13px/1 inherit; padding: 7px 10px; border-radius: 999px; cursor: pointer; min-width: 38px; min-height: 30px;
}
.lang-switch button[aria-pressed="true"] { background: rgba(255,255,255,0.12); color: var(--text); }
@media (max-width: 640px) {
  .nav .nav-link { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 650; font-size: 16px;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: #f4f2f3; color: #121012; }
.btn-ghost { border-color: var(--stroke-2); color: var(--text); }
.btn small { display: block; font-weight: 500; font-size: 11px; opacity: .7; line-height: 1.1; }
.btn .two-line { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: -200px -10% auto; height: 720px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 40%, rgba(47, 255, 158, 0.16), transparent 70%),
    radial-gradient(35% 45% at 75% 30%, rgba(201, 162, 255, 0.16), transparent 70%),
    radial-gradient(30% 40% at 60% 70%, rgba(252, 134, 195, 0.10), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); border: 1px solid var(--stroke-2); padding: 6px 12px; border-radius: 999px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; margin: 20px 0 18px; font-weight: 750; }
h1 .grad { background: linear-gradient(92deg, var(--mint-soft), var(--violet) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 560px; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.note { color: var(--text-3); font-size: 14px; margin-top: 14px; }

.phone {
  position: relative; margin: 0 auto; width: min(320px, 78vw); aspect-ratio: 1179 / 2556;
  border-radius: 46px; padding: 10px; background: linear-gradient(160deg, #3a353a, #1b181c);
  box-shadow: 0 40px 120px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.phone-glow { position: absolute; inset: 15% -10%; z-index: -1; filter: blur(60px); background: radial-gradient(closest-side, rgba(187,255,223,0.25), transparent); }

/* Sections */
section { padding: 72px 0; }
.section-title { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 14px; font-weight: 720; }
.section-lead { color: var(--text-2); font-size: 19px; max-width: 680px; margin: 0 0 36px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 24px;
}
.card h3 { margin: 12px 0 6px; font-size: 19px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--stroke);
}
.icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tag { display: inline-block; font-size: 12px; font-weight: 650; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--stroke-2); color: var(--text-2); margin-left: 6px; vertical-align: middle; }
.tag.plus { color: var(--mint-soft); border-color: rgba(187,255,223,0.35); }
.tag.pro { color: var(--pro); border-color: rgba(255,214,10,0.35); }

.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 40px 0; }
.feature.reverse .feature-media { order: -1; }
.feature h3 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -0.02em; margin: 0 0 12px; line-height: 1.15; }
.feature p { color: var(--text-2); font-size: 18px; margin: 0 0 16px; }
.feature ul { margin: 0; padding: 0; list-style: none; color: var(--text-2); }
.feature li { padding-left: 26px; position: relative; margin: 8px 0; }
.feature li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px rgba(47,255,158,.6); }

.models { display: flex; flex-wrap: wrap; gap: 10px; }
.model { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--stroke); font-weight: 600; }
.model span { color: var(--text-3); font-weight: 500; font-size: 14px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--stroke); border-radius: 24px; padding: 28px; }
.plan.featured { border-color: rgba(187,255,223,0.35); background: linear-gradient(180deg, rgba(47,255,158,0.07), var(--card) 45%); }
.plan h3 { margin: 0; font-size: 22px; }
.price { font-size: 34px; font-weight: 750; letter-spacing: -0.02em; margin: 14px 0 2px; }
.price small { font-size: 16px; color: var(--text-3); font-weight: 500; }
.price-alt { color: var(--text-3); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--text-2); font-size: 15.5px; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--mint-soft); font-weight: 700; }
.fine { color: var(--text-3); font-size: 13.5px; margin-top: 18px; }

/* Documents (privacy, support) */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 8px; }
.doc .updated { color: var(--text-3); margin: 0 0 32px; }
.doc h2 { font-size: 23px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--stroke); vertical-align: top; color: var(--text-2); }
.doc th { color: var(--text); font-weight: 650; }
.table-scroll { overflow-x: auto; }
.toc { background: var(--card); border: 1px solid var(--stroke); border-radius: 16px; padding: 18px 22px; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { margin: 4px 0; break-inside: avoid; }
@media (max-width: 640px) { .toc ol { columns: 1; } }

details.faq { background: var(--card); border: 1px solid var(--stroke); border-radius: 16px; padding: 0 20px; margin: 10px 0; }
details.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 620; position: relative; min-height: 44px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 24px; color: var(--text-3); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .answer { padding: 0 0 18px; color: var(--text-2); }
details.faq .answer p { margin: 0 0 10px; }

.contact-card { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; background: linear-gradient(135deg, rgba(47,255,158,0.08), rgba(201,162,255,0.08)); border: 1px solid var(--stroke-2); border-radius: 20px; padding: 24px; margin: 24px 0 8px; }
.contact-card h2 { margin: 0 0 4px; font-size: 22px; }
.contact-card p { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--stroke); padding: 36px 0 48px; color: var(--text-3); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--text-2); }

@media (max-width: 900px) {
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .feature.reverse .feature-media { order: 0; }
  .plans, .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  section { padding: 56px 0; }
}
