/* AURA — marketing site. Dark, quiet, intentional. */

:root {
  --bg: #0b0e1a;
  --bg-elev: #121729;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e9eaf2;
  --muted: #a3a9c0;
  --faint: #6f7590;
  --accent: #4dc8da;
  --accent-deep: #1f8ba0;
  --warm: #e0b184;
  --radius: 18px;
  --serif: "Lora", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Language toggle: body.lang-en hides .ru, shows .en */
.en { display: none; }
body.lang-en .ru { display: none; }
body.lang-en .en { display: revert; }
body.lang-en span.en, body.lang-en a.en { display: inline; }

::selection { background: rgba(77, 200, 218, 0.35); }

a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 26, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.logo {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.32em;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  letter-spacing: normal;
}

.nav-right { display: flex; align-items: center; gap: 28px; }

.nav-link { color: var(--muted); font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.nav-link:hover { color: var(--text); }

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.lang-toggle button {
  background: none;
  border: none;
  color: var(--faint);
  font: 500 13px var(--sans);
  padding: 8px 14px;
  min-height: 36px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.lang-toggle button.active { color: var(--text); background: var(--surface-strong); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  inset: -40% -20% auto;
  height: 130%;
  background:
    radial-gradient(ellipse 55% 45% at 50% 38%, rgba(31, 139, 160, 0.28), transparent 65%),
    radial-gradient(ellipse 35% 30% at 62% 55%, rgba(224, 177, 132, 0.07), transparent 70%);
  pointer-events: none;
}

.breath-circle {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 56px;
}

.breath-circle .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(77, 200, 218, 0.4);
  animation: breathe 12s ease-in-out infinite;
}

.breath-circle .core {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(77, 200, 218, 0.55), rgba(31, 139, 160, 0.18) 70%);
  animation: breathe 12s ease-in-out infinite;
}

/* 4s inhale, 8s exhale — cyclic sighing cadence */
@keyframes breathe {
  0%   { transform: scale(1); }
  33%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .breath-circle .ring, .breath-circle .core { animation: none; }
  html { scroll-behavior: auto; }
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.hero-sub {
  color: var(--muted);
  max-width: 520px;
  margin: 26px auto 0;
  font-size: 19px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  padding: 13px 26px;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}

.store-badge:hover { background: var(--surface-strong); border-color: rgba(255, 255, 255, 0.18); }

.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }

.store-badge .badge-text { text-align: left; line-height: 1.25; }
.store-badge .badge-small { display: block; font-size: 11px; color: var(--faint); letter-spacing: 0.04em; }
.store-badge .badge-big { display: block; font-size: 17px; font-weight: 500; }

/* ---------- Screenshots gallery ---------- */

.shots-ru, .shots-en {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.shots-en { display: none; }
body.lang-en .shots-ru { display: none; }
body.lang-en .shots-en { display: grid; }

.shot {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  display: block;
  transition: transform 0.3s ease;
}

.shot:hover { transform: translateY(-6px); }

@media (max-width: 900px) {
  .shots-ru, .shots-en, body.lang-en .shots-en { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 460px) {
  .shots-ru, .shots-en, body.lang-en .shots-en { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ---------- Sections ---------- */

section { padding: 96px 0; }

.section-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.25;
  max-width: 640px;
}

.section-sub { color: var(--muted); max-width: 560px; margin-top: 18px; }

/* Moments grid */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 56px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: background 0.25s, border-color 0.25s;
}

.card:hover { background: var(--surface-strong); border-color: rgba(77, 200, 218, 0.3); }

.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.35;
  margin-bottom: 10px;
}

.card p { color: var(--muted); font-size: 15px; }

.card .meta { color: var(--faint); font-size: 13px; margin-top: 16px; letter-spacing: 0.05em; }

/* Techniques list */

.tech-list { margin-top: 56px; border-top: 1px solid var(--border); }

.tech-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 26px 8px;
  border-bottom: 1px solid var(--border);
}

.tech-row .name { font-family: var(--serif); font-size: 20px; }
.tech-row .cadence { color: var(--faint); font-size: 14px; letter-spacing: 0.06em; white-space: nowrap; }
.tech-row .desc { grid-column: 1 / -1; color: var(--muted); font-size: 15px; max-width: 640px; }

/* Intelligence */

.quote-block {
  margin-top: 48px;
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 28px;
  max-width: 620px;
}

.quote-block .q {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.45;
}

.quote-block .a { color: var(--muted); margin-top: 14px; font-size: 15px; }

/* Path */

.path-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 56px;
  counter-reset: step;
}

.path-step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(31, 139, 160, 0.08), transparent 80%);
}

.path-step .num {
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.path-step .name { font-family: var(--serif); font-size: 22px; margin-top: 10px; }
.path-step p { color: var(--muted); font-size: 14px; margin-top: 8px; }

/* Anti-features */

.not-list { margin-top: 48px; display: grid; gap: 0; max-width: 680px; }

.not-row {
  display: flex;
  gap: 18px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.not-row .mark { color: var(--faint); font-family: var(--serif); font-size: 18px; flex-shrink: 0; }
.not-row p { color: var(--muted); }
.not-row p strong { color: var(--text); font-weight: 500; }

/* Pricing */

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 56px;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  background: var(--surface);
}

.price-card.featured { border-color: rgba(77, 200, 218, 0.45); background: linear-gradient(180deg, rgba(31, 139, 160, 0.12), var(--surface)); }

.price-card .plan { color: var(--muted); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; }
.price-card .price { font-family: var(--serif); font-size: 40px; margin-top: 14px; }
.price-card .per { color: var(--faint); font-size: 15px; }
.price-card .trial { color: var(--warm); font-size: 14px; margin-top: 10px; }

.benefits { margin: 40px 0 0; max-width: 560px; }
.benefits li {
  list-style: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.benefits li svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); position: relative; top: 2px; }

.family-note { color: var(--faint); font-size: 14px; margin-top: 22px; }

/* Founder */

.founder {
  text-align: center;
  padding: 80px 0;
}

.founder .line {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto;
}

.founder .sig { color: var(--faint); margin-top: 20px; font-size: 15px; }

/* Manifesto close */

.close-section {
  text-align: center;
  padding: 110px 0 130px;
  background: radial-gradient(ellipse 60% 55% at 50% 60%, rgba(31, 139, 160, 0.16), transparent 70%);
}

.close-section .line { font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 64px;
  color: var(--faint);
  font-size: 14px;
}

.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }

.footer-col .logo { font-size: 17px; letter-spacing: 0.3em; color: var(--muted); }
.footer-col p { margin-top: 12px; max-width: 320px; }
.footer-col a { color: var(--muted); display: inline-flex; min-height: 32px; align-items: center; }
.footer-col a:hover { color: var(--text); }
.footer-links { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Partners page ---------- */

.partner-hero { padding: 100px 0 70px; text-align: left; }
.partner-hero .hero-sub { margin-left: 0; max-width: 640px; }

.tier-table { width: 100%; border-collapse: collapse; margin-top: 40px; font-size: 15px; }
.tier-table th {
  text-align: left;
  color: var(--faint);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.tier-table td { padding: 18px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.tier-table td:first-child { color: var(--text); font-family: var(--serif); font-size: 17px; }
.tier-table .rate { color: var(--warm); font-weight: 600; font-size: 17px; }

.steps { counter-reset: s; display: grid; gap: 18px; margin-top: 56px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 28px; background: var(--surface); }
.step .n { color: var(--accent); font-family: var(--serif); font-size: 30px; }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 20px; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* Calculator */

.calc {
  margin-top: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  padding: 40px;
}

.calc-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; }

.calc label { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }

.calc input[type="range"] { width: 280px; accent-color: var(--accent); cursor: pointer; }

.calc select {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: 15px var(--sans);
  min-height: 44px;
  cursor: pointer;
}

.calc-out { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.calc-out .cell .v { font-family: var(--serif); font-size: 30px; }
.calc-out .cell .v.money { color: var(--warm); }
.calc-out .cell .k { color: var(--faint); font-size: 13px; margin-top: 6px; }

.calc-note { color: var(--faint); font-size: 13px; margin-top: 30px; max-width: 640px; line-height: 1.6; }

.formula {
  margin-top: 20px;
  padding: 18px 22px;
  background: var(--surface);
  border-radius: 12px;
  font-family: "SF Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--muted);
  overflow-x: auto;
  white-space: nowrap;
}

/* Honest math section */

.math-list { margin-top: 48px; display: grid; gap: 16px; max-width: 720px; }
.math-item { display: flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.math-item .num { font-family: var(--serif); color: var(--accent); font-size: 20px; flex-shrink: 0; width: 28px; }
.math-item p { color: var(--muted); font-size: 15px; }
.math-item p strong { color: var(--text); font-weight: 500; }

.apply-box {
  margin-top: 64px;
  border: 1px solid rgba(77, 200, 218, 0.35);
  border-radius: var(--radius);
  padding: 44px 40px;
  background: linear-gradient(180deg, rgba(31, 139, 160, 0.1), transparent);
}

.apply-box h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; }
.apply-box p { color: var(--muted); margin-top: 14px; max-width: 560px; }

.apply-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  padding: 14px 30px;
  min-height: 48px;
  border-radius: 12px;
  background: var(--accent-deep);
  color: #fff;
  font-weight: 500;
  transition: background 0.2s;
  cursor: pointer;
}

.apply-btn:hover { background: var(--accent); color: #fff; }

/* Forms (partner apply, dashboard login) */

.apply-form { margin-top: 28px; display: grid; gap: 16px; max-width: 620px; }

.apply-form .form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.apply-form label { display: grid; gap: 8px; color: var(--muted); font-size: 14px; }

.apply-form input, .apply-form textarea {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: 16px var(--sans);
  min-height: 44px;
  width: 100%;
}

.apply-form textarea { resize: vertical; }

.apply-form input:focus, .apply-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: transparent;
}

.apply-form .apply-btn { border: none; font-size: 16px; justify-self: start; margin-top: 4px; }

.form-status { color: var(--warm); font-size: 14px; min-height: 20px; }

/* Honeypot — visually gone, present for bots */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Dashboard */

.stat-grid { margin-top: 48px; }
.table-title { font-family: var(--serif); font-weight: 500; font-size: 22px; margin-top: 64px; }

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 80px 0 70px; }
  .calc { padding: 28px 22px; }
  .nav-right { gap: 16px; }
  .tier-table th:nth-child(3), .tier-table td:nth-child(3) { display: none; }
  .tier-table th, .tier-table td { padding: 12px 8px; font-size: 13px; }
  .tier-table td:first-child { font-size: 15px; }
  .tier-table .rate { font-size: 15px; }
}
