
/* ═══════════════════════════════
   VARIABLES
═══════════════════════════════ */
:root {
  --bg:          #0A0A0A;
  --accent:      #E8FF00;
  --accent-dark: rgba(232,255,0,.08);
  --surface-1:   #111111;
  --surface-2:   #0D0D0D;
  --border-1:    #1A1A1A;
  --border-2:    #2a2a2a;
  --white:       #ffffff;
  --muted-1:     #888888;
  --muted-2:     #555555;
  --muted-3:     rgba(255,255,255,.6);
  --f-display:   'Bebas Neue', sans-serif;
  --f-body:      'DM Sans', sans-serif;
  --ease:        cubic-bezier(.16,1,.3,1);
  --hdr-h:       64px;
}
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { scroll-behavior:smooth }
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════════════════════
   HEADER
═══════════════════════════════ */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--hdr-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background .4s, box-shadow .4s;
}
.app-header.scrolled {
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(232,255,0,.08);
}
.app-logo {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: .1em;
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.app-logo em {
  font-style: normal;
  background: var(--accent);
  color: #000;
  padding: 1px 6px 0;
  margin-left: 4px;
}
.app-back {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-1);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.app-back:hover { color: var(--accent) }
.app-back svg { transition: transform .2s }
.app-back:hover svg { transform: translateX(-3px) }

/* ═══════════════════════════════
   HERO
═══════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--hdr-h) + 48px) 48px 80px;
  position: relative;
  overflow: hidden;
}

/* декоративні лінії */
.hero::before, .hero::after {
  content: '';
  position: absolute;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(232,255,0,.15), transparent);
  top: 0; height: 100%;
}
.hero::before { right: 42%; transform: skewX(-8deg) }
.hero::after  { right: 55%; transform: skewX(-8deg); opacity: .4 }

/* grain overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
  pointer-events: none;
}

/* фоновий deco текст */
.hero-deco {
  position: absolute;
  bottom: -5%;
  right: -2%;
  font-family: var(--f-display);
  font-size: clamp(120px, 18vw, 280px);
  line-height: 1;
  color: var(--white);
  opacity: .03;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* ── Ліва частина ── */
.hero-content {}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
  animation: reveal .7s var(--ease) .1s forwards;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(48px, 6.5vw, 88px);
  line-height: .93;
  letter-spacing: .02em;
  color: var(--white);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: reveal .8s var(--ease) .25s forwards;
}
.hero-title .accent { color: var(--accent) }

.hero-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--muted-3);
  max-width: 420px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  animation: reveal .8s var(--ease) .42s forwards;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(30px);
  animation: reveal .8s var(--ease) .58s forwards;
}

.install-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #000;
  border: none;
  height: 56px;
  padding: 0 36px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: transform .2s;
}
.install-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff;
  transform: translateX(-105%);
  transition: transform .4s var(--ease);
}
.install-btn:hover::before { transform: translateX(0) }
.install-btn:hover { transform: scale(1.02) }
.install-btn span, .install-btn svg { position: relative; z-index: 1 }

/* статус під кнопкою */
.install-status {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted-1);
  letter-spacing: .04em;
}
.install-status .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  margin-right: 6px;
}

/* ── Права частина: Mockup телефону ── */
.hero-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(30px) scale(.97);
  animation: reveal .9s var(--ease) .7s forwards;
}

.phone-frame {
  width: 280px;
  background: var(--surface-1);
  border-radius: 44px;
  border: 2px solid var(--border-2);
  box-shadow:
    0 0 0 8px rgba(255,255,255,.03),
    0 40px 80px rgba(0,0,0,.6),
    0 0 60px rgba(232,255,0,.06);
  overflow: hidden;
  position: relative;
  /* легке похилення */
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  transition: transform .4s var(--ease);
}
.phone-frame:hover {
  transform: perspective(1000px) rotateY(-4deg) rotateX(1deg);
}

/* notch */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 28px;
  background: #000;
  border-radius: 0 0 20px 20px;
  z-index: 10;
}

/* status bar */
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 20px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
}

/* app content inside phone */
.phone-content {
  background: var(--bg);
  margin: 0 8px 8px;
  border-radius: 28px;
  overflow: hidden;
  height: 520px;
}

/* app header в телефоні */
.app-screen-header {
  background: var(--surface-1);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-1);
}
.app-screen-logo {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: .1em;
}
.app-screen-logo em {
  font-style: normal;
  background: var(--accent);
  color: #000;
  padding: 0 4px;
  margin-left: 3px;
}
.app-screen-badge {
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
}

/* greeting */
.app-screen-greeting {
  padding: 20px;
}
.app-screen-greeting-sub {
  font-size: 11px;
  color: var(--muted-1);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 4px;
}
.app-screen-greeting-name {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: .04em;
}

/* абонемент картка */
.app-screen-card {
  margin: 0 20px 16px;
  background: var(--accent);
  border-radius: 16px;
  padding: 16px;
  color: #000;
}
.app-screen-card-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 4px;
}
.app-screen-card-plan {
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: .06em;
  margin-bottom: 12px;
}
.app-screen-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  opacity: .7;
}

/* розклад preview */
.app-screen-schedule {
  padding: 0 20px;
}
.app-screen-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-1);
  margin-bottom: 10px;
}
.app-screen-lesson {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface-1);
  border-radius: 10px;
  margin-bottom: 8px;
  border-left: 3px solid;
}
.app-screen-lesson--cf { border-color: #3296FF }
.app-screen-lesson--yoga { border-color: #64C896 }
.app-screen-lesson-time {
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--white);
  min-width: 38px;
}
.app-screen-lesson-info {}
.app-screen-lesson-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
}
.app-screen-lesson-trainer {
  font-size: 10px;
  color: var(--muted-1);
}

/* bottom nav */
.app-screen-nav {
  position: absolute;
  bottom: 0;
  left: 8px;
  right: 8px;
  background: var(--surface-1);
  border-top: 1px solid var(--border-1);
  display: flex;
  justify-content: space-around;
  padding: 12px 0 16px;
  border-radius: 0 0 28px 28px;
}
.app-screen-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: var(--muted-2);
}
.app-screen-nav-item.active { color: var(--accent) }
.app-screen-nav-item svg { width:18px; height:18px }

/* ═══════════════════════════════
   FEATURES SECTION
═══════════════════════════════ */
.features-section {
  padding: 100px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-title {
  font-family: var(--f-display);
  font-size: clamp(42px, 5vw, 64px);
  letter-spacing: .04em;
  line-height: 1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--muted-1);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 2px solid transparent;
  transition: transform .3s var(--ease), border-top-color .3s, box-shadow .3s;
  opacity: 0;
  transform: translateY(28px);
}
.features-section.in-view .feature-card {
  opacity: 1;
  transform: translateY(0);
}
.features-section.in-view .feature-card:nth-child(1) { transition-delay: 0s }
.features-section.in-view .feature-card:nth-child(2) { transition-delay: .1s }
.features-section.in-view .feature-card:nth-child(3) { transition-delay: .2s }
.features-section.in-view .feature-card:nth-child(4) { transition-delay: .3s }
.features-section.in-view .feature-card {
  transition: transform .3s var(--ease), border-top-color .3s, box-shadow .3s, opacity .5s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-top-color: var(--accent);
  box-shadow: 0 20px 40px rgba(232,255,0,.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent-dark);
  border: 1px solid rgba(232,255,0,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.feature-name {
  font-family: var(--f-display);
  font-size: 24px;
  letter-spacing: .04em;
  line-height: 1;
}
.feature-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted-1);
}

/* ═══════════════════════════════
   HOW TO INSTALL
═══════════════════════════════ */
.install-section {
  padding: 100px 0;
  background: var(--surface-2);
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}
.install-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
}

/* OS перемикач */
.os-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 64px;
  background: var(--surface-1);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  padding: 6px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.os-btn {
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: transparent;
  color: var(--muted-1);
  border: none;
  padding: 10px 32px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .25s, color .25s;
}
.os-btn.active {
  background: var(--accent);
  color: #000;
}
.os-btn svg { width: 18px; height: 18px }

/* кроки */
.steps-wrap {
  display: none;
}
.steps-wrap.active {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border-1);
  border-radius: 20px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.install-section.in-view .step-card {
  opacity: 1;
  transform: translateY(0);
}
.install-section.in-view .step-card:nth-child(1) { transition-delay: 0s }
.install-section.in-view .step-card:nth-child(2) { transition-delay: .12s }
.install-section.in-view .step-card:nth-child(3) { transition-delay: .24s }
.install-section.in-view .step-card:nth-child(4) { transition-delay: .36s }

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-family: var(--f-display);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-icon {
  font-size: 32px;
  line-height: 1;
}
.step-text {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted-3);
}
.step-text strong {
  display: block;
  font-family: var(--f-display);
  font-size: 20px;
  letter-spacing: .04em;
  color: var(--white);
  margin-bottom: 6px;
}

/* ═══════════════════════════════
   CTA SECTION
═══════════════════════════════ */
.cta-section {
  padding: 120px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* радіальне акцентне світло */
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,255,0,.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.cta-section.in-view .cta-inner {
  opacity: 1;
  transform: translateY(0);
}

.cta-title {
  font-family: var(--f-display);
  font-size: clamp(48px, 6vw, 80px);
  letter-spacing: .03em;
  line-height: .95;
  margin-bottom: 20px;
}
.cta-title .accent { color: var(--accent) }

.cta-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--muted-3);
  line-height: 1.6;
  margin-bottom: 48px;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* SMS форма */
.sms-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  width: 100%;
}
.sms-input {
  flex: 1;
  background: var(--surface-1);
  border: 1px solid var(--border-2);
  border-right: none;
  border-radius: 12px 0 0 12px;
  padding: 0 20px;
  height: 52px;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--white);
  outline: none;
  transition: border-color .2s;
}
.sms-input::placeholder { color: var(--muted-2) }
.sms-input:focus { border-color: rgba(232,255,0,.4) }

.sms-btn {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--accent);
  color: #000;
  border: none;
  height: 52px;
  padding: 0 24px;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.sms-btn:hover { background: #fff }

.cta-divider {
  font-size: 12px;
  color: var(--muted-2);
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
.app-footer {
  background: #050505;
  border-top: 1px solid var(--border-1);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;
}
.app-footer-copy {
  font-size: 13px;
  color: #444;
}
.app-footer-link {
  font-size: 13px;
  color: #444;
  text-decoration: none;
  transition: color .2s;
}
.app-footer-link:hover { color: var(--accent) }

/* ═══════════════════════════════
   ANIMATIONS
═══════════════════════════════ */
@keyframes reveal {
  to { opacity: 1; transform: translateY(0) scale(1) }
}

/* ═══════════════════════════════
   INSTALLED STATE
═══════════════════════════════ */
.installed-msg {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #22c55e;
  font-weight: 500;
}
.installed-msg.show { display: flex }

/* ═══════════════════════════════
   RESPONSIVE
═══════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr) }
  .steps-wrap.active { grid-template-columns: repeat(2, 1fr) }
}

@media (max-width: 768px) {
  .app-header { padding: 0 20px }

  .hero {
    padding: calc(var(--hdr-h) + 32px) 24px 60px;
    min-height: auto;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-eyebrow { justify-content: center }
  .hero-sub { max-width: 100% }
  .hero-actions { align-items: center }
  .install-btn { align-self: center }
  .hero::before, .hero::after { display: none }

  .phone-frame {
    width: 220px;
    transform: none;
  }
  .phone-frame:hover { transform: none }
  .phone-content { height: 400px }

  .features-section { padding: 80px 24px }
  .features-grid { grid-template-columns: repeat(2, 1fr) }

  .install-section { padding: 80px 0 }
  .install-inner { padding: 0 24px }
  .steps-wrap.active { grid-template-columns: 1fr }

  .cta-section { padding: 80px 24px }
  .sms-form { flex-direction: column }
  .sms-input { border-right: 1px solid var(--border-2); border-radius: 12px; }
  .sms-btn { border-radius: 12px; height: 48px }

  .app-footer { flex-direction: column; gap: 12px; padding: 24px; text-align: center }

  .os-btn { padding: 10px 20px }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr }
}

/* додано при міграції: без inline-стилів (CSP) */
.phone-content--rel{position:relative}
.demo-note{position:fixed;left:12px;bottom:12px;z-index:9999;max-width:calc(100vw - 24px);display:flex;flex-wrap:wrap;gap:4px 14px;align-items:center;padding:10px 14px;border-radius:12px;background:#12142a;color:#fff;font:500 13px/1.4 system-ui,sans-serif;box-shadow:0 10px 30px rgba(0,0,0,.4)}
.demo-note a{color:#c4b5fd;text-decoration:underline;text-underline-offset:2px;min-height:24px;display:inline-flex;align-items:center}

/* Менше руху: поява блоків без анімації */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
