/* Landing layout */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 247, 250, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.site-header.is-compact {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.92);
}
.header-inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--blue), var(--dark));
  position: relative;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 10px 9px 9px 14px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
}
.logo strong { color: var(--blue); font-weight: 800; }
.nav {
  display: none;
  gap: 0.2rem;
  margin-left: auto;
}
.nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.9rem;
}
.nav a:hover { color: var(--text); background: rgba(20, 110, 245, 0.06); }
.header-actions {
  display: none;
  gap: 0.5rem;
  margin-left: 0.5rem;
}
.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
  display: grid;
  gap: 5px;
  place-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}
body.nav-open .nav {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  padding: 0.75rem 1rem 1rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
  background:
    radial-gradient(800px 360px at 90% 10%, rgba(20, 110, 245, 0.12), transparent 55%),
    radial-gradient(600px 280px at 10% 80%, rgba(22, 179, 100, 0.08), transparent 50%),
    linear-gradient(180deg, #F8FAFC, var(--bg));
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 24, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(#000 40%, transparent);
  pointer-events: none;
  animation: gridDrift 18s linear infinite;
}
@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 48px 48px; }
}
.hero-layout {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--dark);
  max-width: 14ch;
}
.hero .lead {
  margin: 1.1rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.motif {
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--success);
  letter-spacing: -0.01em;
}

.hero-visual {
  position: relative;
  min-height: 380px;
  display: grid;
  place-items: center;
}
.float-pct {
  position: absolute;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  color: var(--success);
  animation: floatY 5.5s ease-in-out infinite;
}
.float-pct:nth-child(1) { top: 12%; left: 8%; animation-delay: 0s; }
.float-pct:nth-child(2) { top: 28%; right: 6%; animation-delay: -1.5s; }
.float-pct:nth-child(3) { bottom: 28%; left: 4%; animation-delay: -3s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.mini-invest {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(240px, 70%);
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  animation: fadeUp 0.7s ease both 0.2s;
}
.mini-invest .row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.mini-invest .label { color: var(--muted); }
.mini-invest .status {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  color: var(--blue);
  font-weight: 600;
  font-size: 0.8rem;
}
.demo-tag {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.35rem;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}
.section-alt { background: var(--white); }
.section-head {
  max-width: 640px;
  margin-bottom: 2rem;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
}
.section-head p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

/* How it works */
.steps {
  display: grid;
  gap: 0.85rem;
}
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(20, 110, 245, 0.1);
  color: var(--blue);
  font-weight: 800;
  font-size: 0.85rem;
}
.step h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Marketplace */
.market-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.market-tools select {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  background: var(--white);
  color: var(--text);
}
.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(20, 110, 245, 0.3);
}
.product-media {
  height: 150px;
  position: relative;
  display: grid;
  place-items: center;
}
.product-media.tone-a { background: linear-gradient(145deg, #1e3a5f, #0b2447); }
.product-media.tone-b { background: linear-gradient(145deg, #1d4ed8, #1e3a8a); }
.product-media.tone-c { background: linear-gradient(145deg, #0f766e, #134e4a); }
.product-media.tone-d { background: linear-gradient(145deg, #365314, #1a2e05); }
.product-media.tone-e { background: linear-gradient(145deg, #7c2d12, #431407); }
.product-media.tone-f { background: linear-gradient(145deg, #4c1d95, #2e1065); }
.product-media.tone-g { background: linear-gradient(145deg, #334155, #0f172a); }
.product-media.tone-h { background: linear-gradient(145deg, #0369a1, #0c4a6e); }
.product-phone {
  width: 64px;
  height: 120px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.product-body { padding: 1.1rem 1.15rem 1.2rem; }
.product-body h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.product-facts {
  display: grid;
  gap: 0.35rem;
  margin: 0.85rem 0;
  font-size: 0.9rem;
}
.product-facts div {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}
.product-facts span { color: var(--muted); }
.meter {
  height: 7px;
  border-radius: 999px;
  background: #EAECF0;
  overflow: hidden;
  margin: 0.4rem 0 0.85rem;
}
.meter > i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg, var(--blue), var(--success));
  border-radius: inherit;
  transition: width 0.6s ease;
}
.product-actions {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.5rem;
}

/* Calculator */
.calc-shell {
  display: grid;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-sm);
}
.calc-out {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
}
.calc-results {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem;
  border-radius: 16px;
  background: var(--dark);
  color: #fff;
}
.calc-results > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.calc-results span { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; }
.calc-results strong { font-weight: 800; letter-spacing: -0.02em; }
.calc-results .hi { color: #4ADE80; }

/* Promokod */
.promo-tiers {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.promo-tier {
  padding: 1.35rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.promo-tier--hit {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.promo-tier__n {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.45rem;
}
.promo-tier strong {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}
.promo-tier p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
.promo-rules {
  padding: clamp(1.2rem, 3vw, 1.8rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.promo-rules ul {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}
.promo-rules li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}
.promo-rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.promo-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
@media (min-width: 768px) {
  .promo-tiers { grid-template-columns: repeat(3, 1fr); }
}

/* Trust */
.trust-grid {
  display: grid;
  gap: 1rem;
}
.trust-card {
  padding: 1.3rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.trust-card h3 { margin: 0 0 0.4rem; }
.trust-card p { margin: 0; color: var(--muted); }

/* Final + footer */
.final-cta {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
  background: var(--dark);
  color: #fff;
  text-align: center;
}
.final-cta h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  letter-spacing: -0.03em;
}
.final-cta p {
  margin: 0.8rem auto 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.7);
}
.final-cta .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
.site-footer {
  background: #050f1f;
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer a:hover { color: #fff; }
.footer-bottom { padding-top: 1rem; }

/* Default visible — only hide when JS marks page as animating */
html.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
html.js-ready [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-ready [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (min-width: 900px) {
  .nav, .header-actions { display: flex; }
  .nav-toggle { display: none; }
  .hero-layout { grid-template-columns: 1.05fr 0.95fr; }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .step { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .calc-shell { grid-template-columns: 1.1fr 0.9fr; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 700px) and (max-width: 899px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 699px) {
  .hero-actions .btn,
  .final-cta .actions .btn { width: 100%; }
  .product-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 82%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.4rem;
  }
  .product-card { scroll-snap-align: start; }
}
