/* ============================================================
   ctrln — лендинг. Самодостаточные стили (зелёная система).
   ============================================================ */

:root {
  --ink:       oklch(0.20 0.012 150);
  --ink-2:     oklch(0.40 0.012 150);
  --ink-3:     oklch(0.56 0.010 150);
  --line:      oklch(0.90 0.006 150);
  --paper:     oklch(0.985 0.004 150);
  --paper-2:   oklch(0.965 0.006 150);
  --cream:     oklch(0.955 0.012 120);
  --green:     oklch(0.70 0.165 150);
  --green-deep:oklch(0.50 0.135 152);
  --green-ink: oklch(0.38 0.11 152);
  --green-soft:oklch(0.93 0.055 150);
  --amber:     oklch(0.80 0.145 78);
  --amber-soft:oklch(0.94 0.06 80);
  --amber-ink: oklch(0.50 0.12 66);
  --red:       oklch(0.62 0.185 25);
  --night:     oklch(0.22 0.018 152);
  --night-2:   oklch(0.27 0.020 152);

  --f-display: 'Unbounded', system-ui, sans-serif;
  --f-ui: 'Onest', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', monospace;

  --maxw: 1180px;
  --r: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-ui); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--green); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono);
  font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--green-deep); padding: 6px 12px; border-radius: 999px; background: var(--green-soft);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blip 2.4s ease-in-out infinite; }
@keyframes blip { 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.4; transform:scale(.7);} }

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -1.5px; line-height: 1.02; margin: 0; }
.lead { font-size: 19px; line-height: 1.6; color: var(--ink-2); }

/* ---------------- keycap-логотип ---------------- */
.keycap {
  display: inline-grid; place-items: center; position: relative;
  background: linear-gradient(180deg, oklch(0.99 0.004 150), oklch(0.93 0.008 150));
  border-radius: 9px; border: 1px solid var(--line);
  box-shadow: 0 3px 0 oklch(0.84 0.01 150), 0 5px 8px oklch(0.4 0.03 150 / 0.18);
  font-family: var(--f-mono); font-weight: 600; color: var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.keycap.press:active, .keycap.press.go {
  transform: translateY(3px); box-shadow: 0 0 0 oklch(0.84 0.01 150), 0 1px 3px oklch(0.4 0.03 150 / 0.2);
}

/* ---------------- Навигация ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px);
  background: oklch(0.985 0.004 150 / 0.78); border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.stuck { border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--f-display); font-weight: 700; font-size: 21px; letter-spacing: -0.5px; }
.brand .keycap { width: 38px; height: 38px; font-size: 12px; }
.brand .n { color: var(--green-deep); }
.nav-links { display: flex; gap: 28px; margin-left: 18px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 20px; border-radius: 13px; font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: transform .12s, filter .15s, background .15s, border-color .15s;
}
.btn:active { transform: scale(0.97); }
.btn.green { background: var(--green); color: oklch(0.99 0.01 150); }
.btn.green:hover { filter: brightness(1.05); }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn.dark:hover { filter: brightness(1.2); }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.sm { padding: 9px 15px; font-size: 13.5px; border-radius: 11px; }

/* ---------------- Store-кнопки ---------------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 11px; padding: 11px 18px 11px 16px;
  border-radius: 14px; background: var(--ink); color: var(--paper);
  transition: transform .14s, filter .15s; min-width: 168px;
}
.store:hover { transform: translateY(-2px); filter: brightness(1.18); }
.store svg { flex: none; }
.store .st-txt { display: flex; flex-direction: column; line-height: 1.1; }
.store .st-top { font-size: 10.5px; opacity: 0.75; font-weight: 500; }
.store .st-big { font-size: 16px; font-weight: 700; font-family: var(--f-display); letter-spacing: -0.3px; }
.store.web { background: var(--green-soft); color: var(--green-ink); border: 1.5px solid transparent; }
.store.web:hover { filter: none; border-color: var(--green); }
.store.web .st-top { color: var(--green-deep); opacity: 0.8; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 70px 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.blob.b1 { width: 520px; height: 520px; background: var(--green-soft); top: -160px; right: -120px; }
.blob.b2 { width: 420px; height: 420px; background: var(--amber-soft); bottom: -180px; left: -120px; opacity: 0.4; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 68px); }
.hero h1 .hl { color: var(--green-deep); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 12px; z-index: -1;
  background: var(--green-soft); border-radius: 4px; transform: scaleX(0); transform-origin: left;
  animation: underline 1s .5s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero .lead { margin: 22px 0 30px; max-width: 480px; }
.hero-cta { display: flex; flex-direction: column; gap: 16px; }
.hero-note { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.hero-note b { color: var(--ink-2); font-weight: 600; }

.hero-stats { display: flex; gap: 28px; margin-top: 38px; }
.hstat .n { font-family: var(--f-display); font-weight: 700; font-size: 30px; letter-spacing: -1.5px; }
.hstat .l { font-size: 13px; color: var(--ink-3); margin-top: 2px; }

/* ---------------- Телефон ---------------- */
.device-stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.device {
  --pw: 300px; position: relative; padding: 11px; border-radius: 46px;
  background: linear-gradient(155deg, oklch(0.30 0.012 150), oklch(0.16 0.012 150));
  box-shadow: 0 2px 4px oklch(0.2 0.02 150 / 0.3), 0 30px 70px oklch(0.3 0.04 150 / 0.32), inset 0 0 0 1.5px oklch(0.4 0.01 150 / 0.5);
}
.device::after { /* боковая кнопка */
  content: ''; position: absolute; right: -3px; top: 150px; width: 3px; height: 64px; border-radius: 0 3px 3px 0;
  background: oklch(0.32 0.012 150);
}
.device-screen {
  width: var(--pw); height: 640px; border-radius: 36px; overflow: hidden; position: relative; background: var(--paper);
}
.device-screen iframe { width: 100%; height: 100%; border: 0; display: block; }
.device .island {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 86px; height: 26px; border-radius: 14px; background: oklch(0.12 0.012 150); pointer-events: none;
}
.device-loading { position: absolute; inset: 0; display: grid; place-items: center; background: var(--paper); }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--green-soft); border-top-color: var(--green); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.float { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }

/* плавающие карточки рядом с телефоном */
.fcard {
  position: absolute; background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; box-shadow: 0 12px 30px oklch(0.3 0.03 150 / 0.14); z-index: 4;
  display: flex; align-items: center; gap: 11px;
}
.fcard .fc-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.fcard .fc-t { font-weight: 700; font-size: 14px; }
.fcard .fc-s { font-size: 11.5px; color: var(--ink-3); }
.fcard.c1 { top: 60px; left: -18px; animation: floaty 6s ease-in-out infinite; }
.fcard.c2 { bottom: 130px; right: -28px; animation: floaty 7s ease-in-out .8s infinite; }
.fcard.c3 { bottom: 30px; left: 0px; animation: floaty 6.5s ease-in-out .4s infinite; }

/* ---------------- Секции ---------------- */
section { position: relative; }
.band { padding: 96px 0; }
.band.cream { background: var(--cream); }
.band.paper2 { background: var(--paper-2); }
.sec-head { max-width: 680px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font-size: clamp(30px, 3.6vw, 46px); margin: 18px 0 16px; }
.sec-head .lead { font-size: 17px; }

/* два пиллара */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pillar {
  border-radius: var(--r); padding: 32px; position: relative; overflow: hidden;
  border: 1px solid var(--line); background: var(--paper);
}
.pillar.dark { background: var(--night); border-color: transparent; color: var(--paper); }
.pillar .p-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; }
.pillar h3 { font-size: 25px; margin-bottom: 12px; letter-spacing: -0.8px; }
.pillar p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0 0 20px; }
.pillar.dark p { color: oklch(0.82 0.01 150); }
.pillar .p-list { display: flex; flex-direction: column; gap: 11px; }
.p-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.45; }
.p-item .chk { width: 21px; height: 21px; border-radius: 7px; background: var(--green-soft); color: var(--green-deep); display: grid; place-items: center; flex: none; margin-top: 1px; }
.pillar.dark .p-item .chk { background: oklch(0.32 0.04 152); color: var(--green); }

/* фича с телефоном (split) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-text { order: 2; }
.split-text h2 { font-size: clamp(28px, 3.2vw, 42px); margin-bottom: 18px; }
.split-text .lead { margin-bottom: 26px; }
.feat-list { display: flex; flex-direction: column; gap: 16px; }
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat .f-ic { width: 44px; height: 44px; border-radius: 13px; background: var(--green-soft); color: var(--green-deep); display: grid; place-items: center; flex: none; }
.feat .f-t { font-weight: 700; font-size: 16px; margin-bottom: 3px; }
.feat .f-d { font-size: 14px; color: var(--ink-2); line-height: 1.5; }

/* солнышки/тучки полоса */
.weather-strip { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.wbadge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.wbadge.sun { background: var(--amber-soft); color: var(--amber-ink); }
.wbadge.cloud { background: oklch(0.94 0.05 25); color: oklch(0.50 0.16 27); }

/* тренеры — лента аватаров */
.coach-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.coach {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
}
.coach .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--f-display); font-weight: 700; flex: none; }
.coach .c-n { font-weight: 600; font-size: 14.5px; }
.coach .c-m { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; }
.coach .star { color: var(--amber); }

/* числовые карточки */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.metric { text-align: center; padding: 28px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.metric .m-n { font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 4vw, 48px); letter-spacing: -2px; color: var(--green-deep); }
.metric .m-l { font-size: 14px; color: var(--ink-2); margin-top: 6px; font-weight: 500; }

/* ---------------- CTA ---------------- */
.cta { background: var(--night); color: var(--paper); border-radius: 34px; padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; width: 460px; height: 460px; border-radius: 50%; background: oklch(0.4 0.13 152 / 0.25); filter: blur(80px); top: -180px; left: 50%; transform: translateX(-50%); }
.cta-in { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 18px; }
.cta .lead { color: oklch(0.84 0.01 150); max-width: 560px; margin: 0 auto 32px; }
.cta .stores { justify-content: center; }
.cta .store { background: oklch(0.99 0.004 150); color: var(--ink); }
.cta .store.web { background: var(--green); color: oklch(0.99 0.01 150); }
.cta .store.web .st-top { color: oklch(0.99 0.01 150); opacity: 0.8; }

/* ---------------- Footer ---------------- */
.foot { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.foot .brand { margin-bottom: 14px; }
.foot p { font-size: 13.5px; color: var(--ink-3); max-width: 280px; line-height: 1.6; }
.foot-col h4 { font-family: var(--f-ui); font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-3); margin: 0 0 14px; font-weight: 700; }
.foot-col a { display: block; font-size: 14px; color: var(--ink-2); margin-bottom: 10px; transition: color .15s; }
.foot-col a:hover { color: var(--green-deep); }
.foot-base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--ink-3); }

/* ---------------- Reveal-анимации (transform-only: контент всегда видим) ---------------- */
.reveal { } /* видим по умолчанию — никакого opacity:0 */
.reveal.in { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.reveal.in.d1 { animation-delay: .08s; } .reveal.in.d2 { animation-delay: .16s; }
.reveal.in.d3 { animation-delay: .24s; } .reveal.in.d4 { animation-delay: .32s; }
@keyframes rise { from { transform: translateY(26px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal.in { animation: none; }
  .float, .fcard { animation: none !important; }
  .hero h1 .hl::after { animation: none; transform: scaleX(1); }
}

/* ---------------- Адаптив ---------------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .device-stage { min-height: 0; margin-top: 30px; }
  .pillars { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.rev .split-text { order: 0; }
  .split .device-stage { order: -1; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .band { padding: 64px 0; }
  .hero { padding: 40px 0 20px; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .cta { padding: 44px 22px; border-radius: 24px; }
  .fcard.c1 { left: -6px; } .fcard.c2 { right: -6px; }
}
