/* ============================================================
   Wowseo.ai — design system
   Light paper base · monochrome structure · one green accent
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* paper / ink */
  --paper:      oklch(0.992 0.004 150);
  --surface:    oklch(0.968 0.005 160);
  --surface-2:  oklch(0.945 0.006 160);
  --ink:        oklch(0.205 0.014 165);
  --ink-2:      oklch(0.36 0.012 165);
  --ink-3:      oklch(0.52 0.010 165);
  --line:       oklch(0.905 0.006 160);
  --line-2:     oklch(0.86 0.008 160);

  /* green accent (growth / money) */
  --acc:        oklch(0.585 0.135 158);
  --acc-strong: oklch(0.52 0.135 158);
  --acc-bright: oklch(0.70 0.150 158);
  --acc-tint:   oklch(0.955 0.030 158);
  --acc-tint-2: oklch(0.925 0.050 158);
  --acc-ink:    oklch(0.40 0.10 158);

  /* dark surfaces */
  --night:      oklch(0.205 0.018 165);
  --night-2:    oklch(0.255 0.018 165);
  --night-line: oklch(0.34 0.014 165);
  --night-ink:  oklch(0.93 0.008 160);
  --night-ink-2:oklch(0.70 0.010 160);

  /* fonts */
  --f-head: "Manrope", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* shape */
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --shadow-sm: 0 1px 2px oklch(0.2 0.02 165 / 0.05), 0 1px 1px oklch(0.2 0.02 165 / 0.04);
  --shadow:    0 4px 14px oklch(0.2 0.02 165 / 0.06), 0 1px 3px oklch(0.2 0.02 165 / 0.05);
  --shadow-lg: 0 24px 60px oklch(0.2 0.03 165 / 0.12), 0 6px 18px oklch(0.2 0.03 165 / 0.07);

  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
}

/* accent variants (Tweaks) */
:root[data-accent="emerald"] { --acc: oklch(0.585 0.135 158); --acc-strong: oklch(0.52 0.135 158); --acc-bright: oklch(0.70 0.150 158); --acc-tint: oklch(0.955 0.030 158); --acc-tint-2: oklch(0.925 0.050 158); --acc-ink: oklch(0.40 0.10 158); }
:root[data-accent="deep"]    { --acc: oklch(0.49 0.115 162); --acc-strong: oklch(0.42 0.110 162); --acc-bright: oklch(0.62 0.130 162); --acc-tint: oklch(0.950 0.028 162); --acc-tint-2: oklch(0.915 0.046 162); --acc-ink: oklch(0.36 0.09 162); }
:root[data-accent="lime"]    { --acc: oklch(0.66 0.165 145); --acc-strong: oklch(0.58 0.160 145); --acc-bright: oklch(0.78 0.175 145); --acc-tint: oklch(0.960 0.035 145); --acc-tint-2: oklch(0.930 0.058 145); --acc-ink: oklch(0.43 0.12 145); }
:root[data-accent="ink"]     { --acc: oklch(0.30 0.02 165); --acc-strong: oklch(0.22 0.02 165); --acc-bright: oklch(0.45 0.02 165); --acc-tint: oklch(0.955 0.030 158); --acc-tint-2: oklch(0.925 0.050 158); --acc-ink: oklch(0.40 0.10 158); }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; margin: 0; color: var(--ink); text-wrap: balance; }

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 8vw, 120px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--surface { background: var(--surface); }
.section--night { background: var(--night); color: var(--night-ink); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acc-ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--acc); border-radius: 2px; display: inline-block; transform: rotate(45deg); }
.section--night .eyebrow { color: var(--acc-bright); }

.h-display { font-size: clamp(40px, 6.4vw, 76px); }
.h1 { font-size: clamp(33px, 4.6vw, 56px); }
.h2 { font-size: clamp(27px, 3.4vw, 42px); }
.h3 { font-size: clamp(20px, 2vw, 25px); letter-spacing: -0.015em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--ink-3); }
.section--night .muted { color: var(--night-ink-2); }
.section--night .lead { color: var(--night-ink-2); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .h2 { margin-bottom: 18px; }

/* ---------- Buttons ---------- */
.btn {
  --b-bg: var(--ink); --b-fg: var(--paper);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: var(--r);
  font-family: var(--f-body); font-weight: 600; font-size: 16px;
  background: var(--b-bg); color: var(--b-fg);
  border: 1px solid transparent; line-height: 1;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--acc { --b-bg: var(--acc); --b-fg: oklch(0.99 0.01 158); box-shadow: 0 8px 22px oklch(0.585 0.135 158 / 0.28); }
.btn--acc:hover { --b-bg: var(--acc-strong); box-shadow: 0 12px 30px oklch(0.585 0.135 158 / 0.34); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--paper); }
.btn--light { --b-bg: var(--paper); --b-fg: var(--ink); }
.btn--lg { padding: 17px 28px; font-size: 17px; }
.btn--sm { padding: 10px 16px; font-size: 14px; border-radius: var(--r-sm); }
.btn .ar { transition: transform .2s ease; }
.btn:hover .ar { transform: translateX(3px); }
.section--night .btn--ghost { --b-fg: var(--night-ink); border-color: var(--night-line); }
.section--night .btn--ghost:hover { border-color: var(--night-ink); background: var(--night-2); }

.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--acc-ink); }
.link-arrow .ar { transition: transform .2s ease; }
.link-arrow:hover .ar { transform: translateX(3px); }

/* ---------- Pills / chips / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; line-height: 1;
  background: var(--paper); border: 1px solid var(--line-2); color: var(--ink-2);
}
.pill--acc { background: var(--acc-tint); border-color: var(--acc-tint-2); color: var(--acc-ink); }
.pill .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--acc); }
.pill .dot--live { box-shadow: 0 0 0 0 oklch(0.585 0.135 158 / 0.5); animation: live 2s infinite; }
@keyframes live { 70%, 100% { box-shadow: 0 0 0 7px oklch(0.585 0.135 158 / 0); } }

.tag { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

/* ---------- Card ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
.card--hover:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-3px); }

/* ---------- Stats ---------- */
.stat-num { font-family: var(--f-head); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: oklch(0.992 0.004 150 / 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: baseline; gap: 1px; font-family: var(--f-head); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; color: var(--ink); }
.brand .dot-ai { color: var(--acc); }
.brand .mk { display:inline-block; width:9px; height:9px; border-radius:3px; background: var(--acc); margin-right:9px; transform: translateY(0); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a { padding: 9px 13px; border-radius: var(--r-sm); font-weight: 500; font-size: 15.5px; color: var(--ink-2); transition: background .15s ease, color .15s ease; }
.nav-links a:hover { background: var(--surface); color: var(--ink); }

/* nav dropdown */
.nav-drop { position: relative; }
.nav-drop > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-drop .caret { width: 13px; height: 13px; color: var(--ink-3); transition: transform .18s ease; }
.nav-drop-panel {
  position: absolute; top: calc(100% + 8px); left: 4px; min-width: 264px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 7px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav-drop-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-drop:hover .nav-drop-panel, .nav-drop:focus-within .nav-drop-panel { opacity: 1; visibility: visible; transform: none; }
.nav-drop:hover > a .caret, .nav-drop:focus-within > a .caret { transform: rotate(180deg); }
.nav-drop-panel a { display: block; padding: 9px 12px; white-space: nowrap; font-size: 15px; }
.nav-spacer { flex: 1; }
.nav-tools { display: flex; align-items: center; gap: 12px; }

.lang {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.lang button { border: 0; background: transparent; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-3); font-family: var(--f-mono); letter-spacing: 0.02em; }
.lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: var(--shadow-sm); }

.nav-burger { display: none; border: 1px solid var(--line-2); background: var(--paper); width: 42px; height: 42px; border-radius: var(--r-sm); align-items: center; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-ink-2); padding-block: clamp(48px, 6vw, 80px) 36px; }
.site-footer a { color: var(--night-ink-2); }
.site-footer a:hover { color: var(--night-ink); }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 34px; }
.foot-col h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-ink); font-weight: 600; margin-bottom: 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: 15px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--night-line); font-size: 13.5px; color: var(--night-ink-2); }
.foot-brand { color: var(--night-ink); font-family: var(--f-head); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.foot-brand .dot-ai { color: var(--acc-bright); }

/* ---------- Utilities ---------- */
.grid { display: grid; gap: clamp(16px, 1.6vw, 22px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.mono { font-family: var(--f-mono); }
[hidden] { display: none !important; }

.reveal { opacity: 1; transform: none; }
.svc { scroll-margin-top: 92px; }
html.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
html.motion .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.motion .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* lang visibility */
:root[data-lang="ru"] [data-en] { display: none; }
:root[data-lang="en"] [data-ru] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links, .nav-desktop-cta { display: none; }
  .nav-burger { display: inline-flex; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- theme toggle button ---------- */
.theme-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--paper); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); padding: 0; flex: none; transition: background .15s ease; }
.theme-btn:hover { background: var(--surface); }
.theme-btn svg { width: 17px; height: 17px; }
:root[data-theme="dark"] .theme-btn .ic-moon { display: none; }
:root:not([data-theme="dark"]) .theme-btn .ic-sun { display: none; }

/* ---------- dark theme ---------- */
:root[data-theme="dark"] {
  --paper:      oklch(0.215 0.014 165);
  --surface:    oklch(0.255 0.015 165);
  --surface-2:  oklch(0.30 0.016 165);
  --ink:        oklch(0.93 0.008 160);
  --ink-2:      oklch(0.79 0.010 160);
  --ink-3:      oklch(0.62 0.010 160);
  --line:       oklch(0.315 0.013 165);
  --line-2:     oklch(0.375 0.014 165);
  --acc-tint:   oklch(0.31 0.045 158);
  --acc-tint-2: oklch(0.35 0.062 158);
  --acc-ink:    oklch(0.76 0.115 158);
  --night:      oklch(0.165 0.014 165);
  --night-2:    oklch(0.215 0.015 165);
  --night-line: oklch(0.30 0.013 165);
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3), 0 1px 1px oklch(0 0 0 / 0.25);
  --shadow:    0 4px 14px oklch(0 0 0 / 0.35), 0 1px 3px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 24px 60px oklch(0 0 0 / 0.5), 0 6px 18px oklch(0 0 0 / 0.35);
}
:root[data-theme="dark"] .site-header { background: oklch(0.215 0.014 165 / 0.85); }
:root[data-theme="dark"] .faq-item.open .faq-q .ic::before, :root[data-theme="dark"] .faq-item.open .faq-q .ic::after { background: oklch(0.18 0.01 158); }
