:root{
  --bg: #0b1220;
  --bg2:#0d162b;
  --card:#101c33cc;
  --stroke:#ffffff14;
  --text:#eaf0ff;
  --muted:#b7c2e6;
  --muted2:#92a1d6;
  --accent:#5cffb3;
  --accent2:#ffd95c;
  --danger:#ff5c7a;
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --shadow2: 0 14px 38px rgba(0,0,0,.35);
  --radius: 18px;
  --radius2: 22px;
  --max: 1120px;
  --grid-gap: 18px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% 10%, #1b2f6b55, transparent 60%),
              radial-gradient(900px 700px at 85% 15%, #1b6b4b40, transparent 55%),
              radial-gradient(900px 700px at 65% 85%, #6b4b1b35, transparent 55%),
              linear-gradient(180deg, var(--bg), #070b14 65%, #070b14);
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
.container{ width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* ---------- NAV ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(11,18,32,.75), rgba(11,18,32,.35));
  border-bottom: 1px solid var(--stroke);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding: 14px 0;
  gap:16px;
}
.brand{
  display:flex; align-items:center; gap:12px;
  font-weight: 750;
  letter-spacing:.2px;
}
.brand:hover{opacity:.96}
.logo{
  min-width: 64px;
  height: 64px;
  padding: 0 14px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .4px;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(42,108,255,.22), rgba(92,255,179,.20));
  box-shadow: 0 16px 36px rgba(90,120,255,.30);
  border: 1px solid rgba(255,255,255,.18);
  flex: 0 0 auto;
}
.brand small{
  display:block; font-weight: 600; color: var(--muted2);
  letter-spacing:.2px; margin-top:2px;
}
.nav-links{
  display:flex; gap: 18px; align-items:center;
  color: var(--muted);
  font-weight: 600;
}
.nav-links a{
  padding: 8px 10px;
  border-radius: 12px;
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.nav-links a:hover{
  background: rgba(255,255,255,.06);
  transform: translateY(-1px);
}
.nav-cta{
  display:flex; gap:10px; align-items:center;
}

/* ---------- BUTTONS ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 750;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: var(--text);
  box-shadow: 0 10px 26px rgba(0,0,0,.28);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
}
.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.22);
}
.btn:active{ transform: translateY(0px) scale(.98); }
.btn-primary{
  background: linear-gradient(135deg, #2a6cff, #5cffb3);
  color: #081022;
  border-color: rgba(255,255,255,.22);
}
.btn-primary:hover{
  background: linear-gradient(135deg, #3b7bff, #7cffc8);
}
.btn-outline{
  background: rgba(0,0,0,.15);
}

/* ---------- HERO ---------- */
.hero{
  position:relative;
  padding: 72px 0 42px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items:stretch;
}
.kicker{
  display:inline-flex;
  gap:10px; align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-weight: 700;
  width: fit-content;
}
.dot{
  width:10px; height:10px; border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(92,255,179,.12);
}
h1{
  margin: 16px 0 10px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.sub{
  margin: 0 0 20px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  max-width: 60ch;
}
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }
.hero-note{
  margin-top:14px;
  color: var(--muted2);
  font-weight: 650;
  display:flex; gap:10px; align-items:flex-start;
  max-width: 68ch;
}
.hero-note span{
  display:inline-flex; align-items:center; justify-content:center;
  width: 22px; height: 22px; border-radius: 9px;
  background: rgba(92,255,179,.14);
  border: 1px solid rgba(92,255,179,.22);
  color: var(--accent);
  flex: 0 0 auto;
  margin-top:2px;
  font-weight: 900;
}

.hero-card{
  border-radius: var(--radius2);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  padding: 18px;
  position:relative;
  overflow:hidden;
}
.hero-card::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(500px 260px at 20% 10%, rgba(92,255,179,.18), transparent 60%),
              radial-gradient(420px 260px at 90% 20%, rgba(255,217,92,.14), transparent 60%),
              radial-gradient(420px 260px at 70% 95%, rgba(42,108,255,.18), transparent 60%);
  filter: blur(10px);
  opacity:.9;
  pointer-events:none;
}
.hero-card > *{ position:relative; }

.mock{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(5,9,18,.55);
  padding: 14px;
  box-shadow: 0 14px 28px rgba(0,0,0,.35);
}
.mock-top{
  display:flex; align-items:center; justify-content:space-between;
  color: var(--muted);
  font-weight: 750;
  margin-bottom: 10px;
}
.pill{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-size: 12px;
}
.mock-row{
  display:grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items:center;
  padding: 10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  margin: 10px 0;
  min-width: 0;
}
.mock-row strong{ display:block; font-size: 14px; }
.mock-row small{ color: var(--muted2); font-weight: 650; }
.badge{
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 12px;
  letter-spacing:.2px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
  min-width: 86px;
  text-align:center;
  white-space: nowrap;
}
.badge.good{ background: rgba(92,255,179,.14); color: var(--accent); border-color: rgba(92,255,179,.22);}
.badge.bad{ background: rgba(255,92,122,.14); color: var(--danger); border-color: rgba(255,92,122,.22);}
.mock-metrics{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.metric{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  padding: 10px 10px;
  min-width: 0;
}
.metric .k{ color: var(--muted2); font-weight: 700; font-size: 12px; }
.metric .v{ font-weight: 900; font-size: 16px; margin-top: 4px; }

/* ---------- SECTION ---------- */
section{ padding: 56px 0; }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between; gap: 16px;
  margin-bottom: 18px;
}
.section-head h2{
  margin:0;
  font-size: clamp(24px, 2.4vw, 34px);
  letter-spacing: -0.02em;
}
.section-head p{
  margin:0;
  max-width: 60ch;
  color: var(--muted);
  line-height:1.6;
  font-weight: 650;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
  align-items:stretch;
}

.card{
  border-radius: var(--radius2);
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  box-shadow: var(--shadow2);
  padding: 18px;
  position:relative;
  overflow:hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease);
  min-width: 0;
}
.card:hover{
  transform: translateY(-3px);
  border-color: rgba(255,255,255,.22);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
}

.card h3{ margin: 6px 0 8px; font-size: 18px; letter-spacing:-0.01em; max-width: 24ch; }
.card p{ margin:0; color: var(--muted); line-height:1.6; font-weight: 650; max-width: 52ch; }
.icon{
  width: 44px; height: 44px;
  border-radius: 16px;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
  font-size: 18px;
}

/* ---------- Problem cards grid spans ---------- */
.span-4{ grid-column: span 4; }
.span-6{ grid-column: span 6; }
.span-7{ grid-column: span 7; }
.span-5{ grid-column: span 5; }
.span-12{ grid-column: span 12; }

.accent-line{
  display:flex; align-items:center; gap:10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px dashed rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  color: var(--muted);
  font-weight: 750;
  flex-wrap: wrap;
}
.accent-line b{ color: var(--text); }
.accent-line .warn{
  color: var(--accent2);
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255,217,92,.14);
  border: 1px solid rgba(255,217,92,.22);
  margin-left:auto;
  white-space: nowrap;
}

/* ---------- Steps ---------- */
.steps{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
  margin-top: 14px;
}
.step{
  border-radius: var(--radius2);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  padding: 16px;
  position:relative;
  overflow:hidden;
  min-width:0;
}
.step-num{
  display:inline-flex; align-items:center; justify-content:center;
  width: 34px; height:34px;
  border-radius: 14px;
  background: rgba(42,108,255,.16);
  border: 1px solid rgba(42,108,255,.24);
  font-weight: 900;
  margin-bottom: 8px;
}
.step h4{ margin: 0 0 8px; font-size: 16px; max-width: 30ch; }
.step p{ margin: 0; color: var(--muted); font-weight: 650; line-height:1.6; max-width: 56ch; }

/* ---------- Persona blocks ---------- */
.tabs{
  display:flex; gap:10px; flex-wrap:wrap;
  margin: 10px 0 16px;
}
.tab{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: var(--muted);
  font-weight: 800;
  cursor:pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  user-select:none;
  max-width: 100%;
}
.tab:hover{ transform: translateY(-1px); border-color: rgba(255,255,255,.22); }
.tab.active{
  background: linear-gradient(135deg, rgba(92,255,179,.16), rgba(42,108,255,.14));
  color: var(--text);
  border-color: rgba(255,255,255,.22);
}
.persona{
  display:none;
  grid-template-columns: 1.1fr .9fr;
  gap: var(--grid-gap);
  align-items:stretch;
}
.persona.active{ display:grid; }
.list{
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap:10px;
}
.li{
  display:flex; gap:10px; align-items:flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  min-width:0;
}
.check{
  width: 22px; height: 22px;
  border-radius: 9px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(92,255,179,.14);
  border: 1px solid rgba(92,255,179,.24);
  color: var(--accent);
  font-weight: 900;
  flex: 0 0 auto;
  margin-top: 1px;
}
.li b{ display:block; margin-bottom: 2px; }
.li span{ color: var(--muted); font-weight: 650; line-height:1.55; }

/* ---------- Pricing ---------- */
.pricing{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  margin-top: 14px;
}
.price{
  padding: 20px;
}
.price .label{
  display:inline-flex; align-items:center; gap:10px;
  font-weight: 900;
  color: var(--muted);
  width: 100%;
}
.price .big{
  font-size: 40px;
  font-weight: 950;
  letter-spacing:-0.02em;
  margin: 10px 0 4px;
}
.price .per{ color: var(--muted2); font-weight: 750; margin-bottom: 12px; }
.price ul{ margin: 0; padding-left: 18px; color: var(--muted); font-weight: 650; line-height:1.7; }
.price.featured{
  border-color: rgba(92,255,179,.26);
  background: linear-gradient(180deg, rgba(92,255,179,.10), rgba(255,255,255,.03));
  transform: translateY(-6px);
}
.price.featured:hover{ transform: translateY(-8px); }
.tag{
  margin-left:auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(92,255,179,.14);
  border: 1px solid rgba(92,255,179,.22);
  color: var(--accent);
  font-weight: 900;
  font-size: 12px;
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  margin-top: 14px;
}
details{
  border-radius: var(--radius2);
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  padding: 14px 16px;
}
summary{
  cursor:pointer;
  font-weight: 850;
  list-style:none;
}
summary::-webkit-details-marker{ display:none; }
details p{
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 650;
  line-height:1.7;
  max-width: 70ch;
}

/* ---------- CTA ---------- */
.cta{
  position:relative;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(900px 400px at 20% 30%, rgba(92,255,179,.14), transparent 60%),
    radial-gradient(900px 400px at 90% 20%, rgba(42,108,255,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  padding: 26px;
  overflow:hidden;
}
.cta h2{ margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 34px); max-width: 34ch; }
.cta p{ margin: 0 0 16px; color: var(--muted); font-weight: 650; line-height:1.6; max-width: 70ch;}
.cta-row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.mini{
  color: var(--muted2);
  font-weight: 700;
  margin-top: 10px;
  font-size: 13px;
}

/* ---------- FOOTER ---------- */
footer{
  padding: 30px 0 40px;
  color: var(--muted2);
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 40px;
}
.footer-inner{
  display:flex; justify-content:space-between; gap: 14px; flex-wrap:wrap;
  align-items:center;
}
.foot-links{ display:flex; gap: 14px; flex-wrap:wrap; }
.foot-links a{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  transition: transform .2s var(--ease), background .2s var(--ease);
  font-weight: 700;
}
.foot-links a:hover{ transform: translateY(-1px); background: rgba(255,255,255,.05); }

/* ---------- Reveal animations ---------- */
.reveal{
  opacity:0;
  transform: translateY(16px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.show{
  opacity:1;
  transform: translateY(0);
}
.float{
  animation: float 7s var(--ease) infinite;
}
@keyframes float{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr 1fr; }
  .persona, .persona.active{ grid-template-columns: 1fr; }
  .pricing{ grid-template-columns: 1fr; }
  .faq{ grid-template-columns: 1fr; }
  .nav-links{ display:none; }
  .mock-metrics{ grid-template-columns: 1fr; }
}

/* ===== MOBILE FIXES (ключове для твоєї проблеми) ===== */
@media (max-width: 720px){
  /* Кнопки на мобілці */
  .btn{ width: 100%; }
  .nav-cta{ width: 100%; display:grid; grid-template-columns: 1fr; gap:10px; }
  .nav-inner{ flex-wrap:wrap; }

  /* HERO: читабельність */
  .sub{ max-width: 46ch; }

  /* ПРОБЛЕМНІ 3 КАРТКИ: робимо 1 колонку і нормальний текст */
  #problem .span-4{ grid-column: span 12; }
  #problem .card{
    padding: 18px 16px;
  }
  #problem .card h3{
    max-width: 22ch;
    line-height: 1.25;
  }
  #problem .card p{
    max-width: 44ch;
    line-height: 1.55;
    font-size: 15px;
  }

  /* Акцент-рядок — щоб не ламався некрасиво */
  .accent-line .warn{
    margin-left: 0;
  }

  /* Steps в 1 колонку */
  .steps{ grid-template-columns: 1fr; }

  /* Tabs компактніше */
  .tabs{ display:grid; grid-template-columns: 1fr; }
  .tab{ width: 100%; }
}

@media (max-width: 520px){
  .hero{ padding: 54px 0 34px; }
  h1{ font-size: 34px; }
}
