/* =========================================================
   FastSub landing — shared styles (ru + en)
   Palette and type are pulled directly from the brand mark:
   a near-black field with a lime→green→cyan→blue→violet
   holographic sweep. See README.md for how to retune tokens.
   ========================================================= */

:root{
  --bg:        #050608;
  --bg-soft:   #0b0f13;
  --bg-soft-2: #121820;
  --line:      rgba(255,255,255,0.09);
  --line-strong: rgba(255,255,255,0.18);
  --text:      #ECF3F0;
  --muted:     #92A29D;
  --muted-2:   #647069;

  --lime:   #D7ED4A;
  --green:  #3FE9A8;
  --cyan:   #27D6DE;
  --blue:   #5C86F5;
  --violet: #9C57F5;
  --cream:  #F6ECC9;

  --grad: linear-gradient(100deg, var(--lime) 0%, var(--green) 27%, var(--cyan) 52%, var(--blue) 76%, var(--violet) 100%);
  --grad-soft: linear-gradient(100deg, rgba(215,237,74,.14), rgba(63,233,168,.14) 30%, rgba(39,214,222,.14) 55%, rgba(92,134,245,.14) 78%, rgba(156,87,245,.14));

  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 9px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Manrope', 'Segoe UI', sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
h1,h2,h3,h4{
  font-family:'Space Grotesk', 'Manrope', sans-serif;
  font-weight:600;
  letter-spacing:-0.01em;
  margin:0;
}
p{ margin:0; }
a{ color:inherit; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; }
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 28px; }
.only-mobile{ display:none; }

::selection{ background:rgba(63,233,168,.28); color:#fff; }

/* focus visibility — keyboard nav must stay legible against the dark field */
a:focus-visible, button:focus-visible{
  outline:2px solid var(--cyan);
  outline-offset:3px;
  border-radius:4px;
}

/* a gradient-filled text run, used once per section at most as the
   single accent moment rather than sprinkled everywhere */
.grad-text{
  background:var(--grad);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  -webkit-text-fill-color:transparent;
}

@media (prefers-reduced-motion: no-preference){
  .grad-text.animated{
    background-size:220% 100%;
    animation:sheen 7s ease-in-out infinite;
  }
}
@keyframes sheen{
  0%{ background-position:0% 50%; }
  50%{ background-position:100% 50%; }
  100%{ background-position:0% 50%; }
}

/* =============== nav =============== */
nav{
  position:sticky; top:0; z-index:30;
  background:rgba(5,6,8,0.82);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
nav .wrap{
  display:flex; align-items:center; justify-content:space-between;
  height:72px; gap:20px;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; flex-shrink:0; }
.brand img{ height:26px; width:auto; }
.brand span{
  font-family:'Space Grotesk', sans-serif; font-weight:600; font-size:19px;
  color:var(--text);
}
.navlinks{ display:flex; gap:30px; font-size:14.5px; color:var(--muted); }
.navlinks a{ text-decoration:none; white-space:nowrap; }
.navlinks a:hover{ color:var(--text); }
.nav-right{ display:flex; align-items:center; gap:18px; }

.langswitch{
  display:flex; align-items:center; border:1px solid var(--line-strong);
  border-radius:20px; overflow:hidden; font-size:13px; font-weight:600;
  font-family:'Space Grotesk', sans-serif;
}
.langswitch a{
  padding:6px 12px; text-decoration:none; color:var(--muted-2);
}
.langswitch a.active{ color:var(--bg); background:var(--grad); }
.langswitch a:not(.active):hover{ color:var(--text); }

.nav-cta{
  background:var(--grad); color:#07110d; padding:10px 20px;
  border-radius:8px; text-decoration:none; font-size:14.5px; font-weight:700;
  white-space:nowrap;
}
.nav-cta:hover{ filter:brightness(1.08); }
.nav-cabinet{
  color:var(--text); border:1px solid var(--line-strong); border-radius:8px;
  padding:9px 14px; text-decoration:none; font-size:14px; font-weight:700;
  white-space:nowrap;
}
.nav-cabinet:hover{ border-color:var(--muted); background:var(--bg-soft); }

.burger{ display:none; }
.mobile-panel{ display:none; }

/* =============== buttons =============== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px; border-radius:9px; text-decoration:none;
  font-size:15.5px; font-weight:700; font-family:'Space Grotesk', sans-serif;
  border:1px solid transparent; cursor:pointer;
}
.btn-primary{ background:var(--grad); color:#07110d; }
.btn-primary:hover{ filter:brightness(1.08); }
.btn-secondary{ border-color:var(--line-strong); color:var(--text); background:transparent; }
.btn-secondary:hover{ border-color:var(--muted); background:var(--bg-soft); }

/* =============== hero =============== */
.hero{ padding:76px 0 84px; }
.hero .wrap{
  display:grid; grid-template-columns:1.05fr 0.95fr; gap:56px; align-items:center;
}
.hero h1{ font-size:44px; line-height:1.14; max-width:14ch; }
.hero p.lead{ color:var(--muted); font-size:18px; max-width:48ch; margin-top:22px; }
.cta-row{ display:flex; gap:14px; margin-top:34px; flex-wrap:wrap; align-items:center; }
.cta-note{ font-size:13.5px; color:var(--muted-2); }

.hero-visual{ position:relative; }
.hero-visual img{
  width:100%; height:auto;
  /* The supplied lockup has a near-black rectangular backdrop that is
     slightly different from the page background. Screen blending removes
     that seam, while a soft edge mask lets the art dissolve into the hero. */
  mix-blend-mode:screen;
  -webkit-mask-image:radial-gradient(ellipse 78% 78% at 50% 48%, #000 57%, transparent 100%);
  mask-image:radial-gradient(ellipse 78% 78% at 50% 48%, #000 57%, transparent 100%);
  filter:drop-shadow(0 30px 60px rgba(63,233,168,.08));
}
.hero-tagline{
  margin-top:18px; font-family:'Space Grotesk', sans-serif; font-size:18px;
  color:var(--muted); text-align:center;
}

/* =============== sections =============== */
section{ padding:72px 0; border-top:1px solid var(--line); }
.section-head{ max-width:58ch; margin-bottom:40px; }
.section-tick{
  width:34px; height:3px; border-radius:2px; background:var(--grad); margin-bottom:18px;
}
.section-head h2{ font-size:31px; line-height:1.22; }
.section-head p{ color:var(--muted); margin-top:14px; font-size:16px; }

/* =============== models ledger =============== */
.ledger-row{
  display:grid; grid-template-columns:1fr auto auto; gap:24px; align-items:center;
  padding:20px 0; border-bottom:1px solid var(--line);
}
.ledger-row:first-child{ border-top:1px solid var(--line); }
.ledger-row .name{ font-family:'Space Grotesk', sans-serif; font-size:19px; font-weight:600; }
.status{ display:flex; align-items:center; gap:8px; font-size:14px; color:var(--muted); }
.dot{ width:8px; height:8px; border-radius:50%; }
.dot.ok{ background:var(--green); box-shadow:0 0 10px rgba(63,233,168,.6); }
.dot.soon{ background:var(--muted-2); }
.price-note{ color:var(--muted); font-size:14px; text-align:right; min-width:190px; }
.price-note .mono{ color:var(--text); font-family:'Space Grotesk', sans-serif; }

/* =============== steps =============== */
.steps{ display:grid; grid-template-columns:repeat(3,1fr); gap:0; }
.step{ position:relative; padding:0 28px 0 0; }
.step:not(:last-child)::after{
  content:''; position:absolute; top:20px; right:2px; width:100%;
  height:1px; background:var(--line);
}
.step-num{ font-family:'Space Grotesk', sans-serif; color:transparent; -webkit-text-fill-color:transparent; background:var(--grad); -webkit-background-clip:text; background-clip:text; font-size:15px; font-weight:700; }
.step h3{ font-size:19px; margin-top:16px; }
.step p{ color:var(--muted); font-size:14.5px; margin-top:9px; }

/* =============== access paths (bot / api) =============== */
.paths{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.path{ background:var(--bg-soft); padding:34px; }
.path .tag{ color:var(--green); font-size:13px; font-weight:600; margin-bottom:10px; font-family:'Space Grotesk', sans-serif; }
.path h3{ font-size:22px; }
.path p{ color:var(--muted); font-size:15px; margin-top:12px; }
.path ul{ margin:18px 0 0; list-style:none; }
.path li{ font-size:14.5px; color:var(--text); padding:8px 0; border-top:1px solid var(--line); }
.path li:first-child{ border-top:none; }

/* =============== subscriptions & games (new) =============== */
.svc-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.svc-card{ background:var(--bg-soft); padding:26px 24px; border-top:3px solid var(--green); }
.svc-card:nth-child(1){ border-top-color:var(--green); }
.svc-card:nth-child(2){ border-top-color:var(--cyan); }
.svc-card:nth-child(3){ border-top-color:var(--blue); }
.svc-card:nth-child(4){ border-top-color:var(--violet); }
.svc-card h3{ font-size:17.5px; }
.svc-card p{ color:var(--muted); font-size:14px; margin-top:10px; }
.svc-examples{ margin-top:14px; display:flex; flex-wrap:wrap; gap:7px; }
.chip{
  font-family:'Space Grotesk', sans-serif; font-size:12.5px; font-weight:600;
  color:var(--text); border:1px solid var(--line-strong); border-radius:20px;
  padding:5px 11px;
}
.svc-note{ margin-top:26px; color:var(--muted); font-size:15px; max-width:64ch; }
.svc-note a{ color:var(--green); text-decoration:underline; text-underline-offset:3px; }

/* =============== advantages =============== */
.adv-list{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px 40px; }
.adv-item{ display:flex; gap:14px; padding:17px 0; border-top:1px solid var(--line); }
.adv-item:nth-child(-n+2){ border-top:none; }
.adv-item .mk{ width:7px; height:7px; border-radius:50%; margin-top:8px; flex-shrink:0; }
.adv-item:nth-child(5n+1) .mk{ background:var(--lime); }
.adv-item:nth-child(5n+2) .mk{ background:var(--green); }
.adv-item:nth-child(5n+3) .mk{ background:var(--cyan); }
.adv-item:nth-child(5n+4) .mk{ background:var(--blue); }
.adv-item:nth-child(5n+5) .mk{ background:var(--violet); }
.adv-item p{ margin:0; font-size:15px; color:var(--text); }

/* =============== contacts =============== */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.contact-card{ background:var(--bg-soft); padding:30px 32px; }
.contact-card h3{ font-size:16px; color:var(--muted); font-weight:600; font-family:'Space Grotesk', sans-serif; }
.contact-card .val{ margin-top:12px; font-size:17px; }
.contact-card .val a{ text-decoration:none; }
.contact-card .val a:hover{ color:var(--green); }
.contact-placeholder{ color:var(--muted-2); font-style:italic; }

/* =============== footer =============== */
footer{ padding:52px 0 64px; border-top:1px solid var(--line); }
.foot-row{ display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:28px; }
.foot-brand{ display:flex; align-items:center; gap:10px; }
.foot-brand img{ height:22px; }
.foot-brand span{ font-family:'Space Grotesk', sans-serif; font-size:18px; font-weight:600; }
.foot-note{ color:var(--muted); font-size:14px; margin-top:14px; max-width:38ch; }
.foot-links{ display:flex; gap:26px; }
.foot-col h4{ font-size:13px; color:var(--muted-2); font-weight:600; margin-bottom:14px; font-family:'Space Grotesk', sans-serif; }
.foot-col a{ display:block; text-decoration:none; color:var(--muted); font-size:14.5px; padding:5px 0; }
.foot-col a:hover{ color:var(--text); }
.foot-legal{ color:var(--muted-2); font-size:12.5px; margin-top:44px; border-top:1px solid var(--line); padding-top:24px; }

/* =============== responsive =============== */
@media (max-width: 980px){
  .hero .wrap{ grid-template-columns:1fr; }
  .hero-visual{ order:-1; max-width:460px; margin:0 auto; }
  .hero h1{ font-size:34px; max-width:none; }
  .svc-grid{ grid-template-columns:1fr 1fr; }
  .contact-grid{ grid-template-columns:1fr; }
}
@media (max-width: 860px){
  .steps{ grid-template-columns:1fr; gap:30px; }
  .step:not(:last-child)::after{ display:none; }
  .paths{ grid-template-columns:1fr; }
  .adv-list{ grid-template-columns:1fr; }
  .adv-item:nth-child(2){ border-top:1px solid var(--line); }
  .ledger-row{ grid-template-columns:1fr; gap:6px; text-align:left; }
  .price-note{ text-align:left; }
}
@media (max-width: 720px){
  .navlinks{ display:none; }
  /* The lang switch moves into the mobile panel below — brand + CTA +
     burger alone are already a tight fit on a ~360-390px phone, and the
     RU/EN pill isn't critical enough to keep pinned in the top bar. */
  .nav-right > .langswitch{ display:none; }
  .burger{
    display:flex; align-items:center; justify-content:center;
    width:38px; height:38px; border:1px solid var(--line-strong); border-radius:8px;
    background:none; color:var(--text); flex-shrink:0;
  }
  .mobile-panel{
    display:none; flex-direction:column; gap:2px; padding:10px 0 18px;
    border-bottom:1px solid var(--line);
  }
  .mobile-panel.open{ display:flex; }
  .mobile-panel a{
    padding:12px 4px; text-decoration:none; color:var(--muted); font-size:15px;
    border-top:1px solid var(--line);
  }
  .mobile-panel a:first-child{ border-top:none; }
  .mobile-panel .langswitch{ align-self:flex-start; margin-top:10px; }
  /* .mobile-panel a above (nav links) would otherwise also flatten these
     two anchors into full-width bordered rows — override back to the
     compact pill look shared with the desktop langswitch. */
  .mobile-panel .langswitch a{ padding:6px 12px; border-top:none; display:inline; font-size:13px; }
  .mobile-panel .langswitch a.active{ color:var(--bg); }
  .svc-grid{ grid-template-columns:1fr; }
}
@media (max-width: 400px){
  .brand span{ font-size:17px; }
  .nav-cta{ padding:9px 14px; font-size:13.5px; }
  nav .wrap{ gap:10px; }
  .nav-right{ gap:10px; }
}
@media (max-width: 620px){
  .wrap{ padding:0 18px; }
  nav .wrap{ height:62px; }
  .hero{ padding:44px 0 48px; }
  .hero h1{ font-size:28px; }
  .hero p.lead{ font-size:16px; }
  .cta-row{ flex-direction:column; align-items:stretch; }
  .btn{ text-align:center; }
  section{ padding:48px 0; }
  .section-head h2{ font-size:24px; }
  .foot-row{ flex-direction:column; }
  .foot-links{ flex-wrap:wrap; gap:32px; }
}
