/* Master Trend — лендинг. Тёмная премиум-тема на палитре heatmap. Mobile-first. */

:root {
  --bg: #0b1220;
  --bg-alt: #0e1626;
  --surface: #131d30;
  --surface-2: #18243a;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf6;
  --text-muted: #93a1b8;
  --teal: #26a69a;       /* bid */
  --teal-bright: #30d3c2;
  --warm: #ff9800;       /* ask */
  --yellow: #ffeb3b;
  --red: #ef5350;
  --radius: 14px;
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 15px; line-height: 1;
  padding: 12px 20px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 15px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 17px; }
.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 100%);
  color: #06231f; box-shadow: 0 8px 30px -8px rgba(48, 211, 194, 0.5);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--teal-bright) 0%, var(--teal) 100%); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.03); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; max-width: var(--maxw); margin: 0 auto;
  backdrop-filter: blur(10px);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 18px; height: 18px; border-radius: 5px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--warm) 100%);
  box-shadow: 0 0 16px -2px rgba(48, 211, 194, 0.6);
}
.brand-name { letter-spacing: 0.3px; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-right: 4px; }
.lang-btn {
  background: transparent; color: var(--text-muted); border: none; cursor: pointer;
  padding: 7px 11px; font-size: 13px; font-weight: 600; font-family: var(--font);
}
.lang-btn.is-active { background: rgba(48, 211, 194, 0.14); color: var(--teal-bright); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; min-height: 92vh; display: flex; align-items: center; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fade {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 30% 40%, rgba(11, 18, 32, 0) 0%, rgba(11, 18, 32, 0.72) 70%, var(--bg) 100%),
    linear-gradient(180deg, rgba(11, 18, 32, 0.4) 0%, rgba(11, 18, 32, 0) 35%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 60px 22px; width: 100%; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; font-weight: 700; color: var(--teal-bright); margin: 0 0 18px; }
.hero-title { font-size: clamp(34px, 6vw, 62px); line-height: 1.08; font-weight: 800; letter-spacing: -0.5px; margin: 0 0 22px; max-width: 16ch; }
.hero-sub { font-size: clamp(17px, 2.2vw, 21px); color: var(--text-muted); max-width: 58ch; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.hero-note { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ===== Sections ===== */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; letter-spacing: -0.4px; line-height: 1.15; margin: 0 0 22px; }
.section-title.center { text-align: center; margin-bottom: 14px; }
.section-sub { font-size: 18px; color: var(--text-muted); max-width: 60ch; }
.section-sub.center { margin-left: auto; margin-right: auto; }
.muted { color: var(--text-muted); }
.lead { font-size: clamp(17px, 2vw, 20px); color: #c5d0e0; margin: 0 0 18px; }
.lead.center { margin-left: auto; margin-right: auto; max-width: 52ch; }

/* ===== Feature cards ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(48, 211, 194, 0.35); }
.card h3 { font-size: 19px; margin: 0 0 10px; font-weight: 700; }
.card p { margin: 0; color: var(--text-muted); font-size: 15.5px; }
.card-glyph { width: 46px; height: 46px; border-radius: 11px; margin-bottom: 18px; position: relative; background: var(--surface-2); }
.glyph-journal { background: linear-gradient(135deg, rgba(48,211,194,.22), rgba(38,166,154,.1)); }
.glyph-journal::after { content: ""; position: absolute; inset: 14px; border-left: 2px solid var(--teal-bright); border-bottom: 2px solid var(--teal-bright); }
.glyph-wall { background: linear-gradient(135deg, rgba(239,83,80,.22), rgba(255,152,0,.12)); }
.glyph-wall::after { content: ""; position: absolute; left: 13px; right: 13px; top: 15px; height: 5px; border-radius: 2px; background: var(--warm); box-shadow: 0 8px 0 var(--red), 0 16px 0 rgba(255,235,59,.7); }
.glyph-telegram { background: linear-gradient(135deg, rgba(83,210,245,.22), rgba(48,211,194,.1)); }
.glyph-telegram::after { content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 16px solid var(--teal-bright); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.glyph-pine { background: linear-gradient(135deg, rgba(255,152,0,.2), rgba(255,235,59,.1)); }
.glyph-pine::after { content: ""; position: absolute; inset: 13px; border-radius: 50%; border: 2px solid var(--warm); border-right-color: transparent; transform: rotate(-30deg); }

/* ===== Moat ===== */
.moat { border-left: 3px solid var(--teal); padding-left: 26px; }

/* ===== Pricing ===== */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin: 36px 0 18px; }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 20px; text-align: center;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.plan-best { border-color: rgba(48, 211, 194, 0.5); box-shadow: 0 10px 40px -16px rgba(48, 211, 194, 0.4); }
.plan-name { color: var(--text-muted); font-size: 15px; }
.plan-price { font-size: 30px; font-weight: 800; }
.plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #06231f; font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
}

/* ===== Honesty ===== */
.honesty-list { list-style: none; padding: 0; margin: 0 0 22px; }
.honesty-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: #c5d0e0; font-size: 17px; }
.honesty-list li::before { content: "✕"; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ===== Final CTA ===== */
.final-cta { background: radial-gradient(80% 140% at 50% 0%, rgba(38, 166, 154, 0.12) 0%, rgba(11, 18, 32, 0) 60%); }
.final-cta .btn { margin-top: 22px; }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; color: var(--text-muted); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13.5px; }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .header-actions .btn-ghost { display: none; }
  .hero { min-height: 88vh; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
