:root {
  --bg: #0B0D17;
  --bg-2: #11142A;
  --card: rgba(255, 255, 255, 0.04);
  --card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #E8EAF6;
  --muted: #9AA0BF;
  --violet: #7C5CFF;
  --cyan: #22D3EE;
  --green: #34D399;
  --grad: linear-gradient(135deg, var(--violet), var(--cyan));
  --radius: 18px;
  --maxw: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: "JetBrains Mono", monospace; }

/* Background */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: absolute; top: -260px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(124, 92, 255, .35), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(34, 211, 238, .22), transparent 70%);
  filter: blur(40px);
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(11, 13, 23, .65);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand.small { font-size: .95rem; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: .93rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.lang-switch {
  display: flex; padding: 3px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border);
}
.lang-switch button {
  font: 600 .78rem "Inter", sans-serif; letter-spacing: .04em;
  color: var(--muted); background: transparent; border: 0;
  padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: all .2s;
}
.lang-switch button[aria-pressed="true"] { background: var(--grad); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; font-weight: 600; font-size: .95rem;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .7); }
.btn-primary:hover { box-shadow: 0 14px 36px -10px rgba(34, 211, 238, .7); }
.btn-ghost { background: var(--card); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--card-hover); }
.btn-ico { width: 18px; height: 18px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 72px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: .82rem; color: var(--muted);
  background: var(--card); border: 1px solid var(--border);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.07; letter-spacing: -.035em; font-weight: 800; margin: 22px 0 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-visual { position: relative; }
.code-card {
  background: linear-gradient(180deg, rgba(23, 26, 52, .9), rgba(14, 16, 32, .9));
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(124, 92, 255, .08);
  overflow: hidden; transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
}
.code-top { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.code-top i { width: 11px; height: 11px; border-radius: 50%; background: #3a3f63; }
.code-top i:nth-child(1) { background: #FF5F57; }
.code-top i:nth-child(2) { background: #FEBC2E; }
.code-top i:nth-child(3) { background: #28C840; }
.code-top span { margin-left: 10px; font: 500 .78rem "JetBrains Mono", monospace; color: var(--muted); }
pre { padding: 22px 22px 26px; overflow-x: auto; font: 400 .9rem/1.75 "JetBrains Mono", monospace; color: #C9CEEA; }
.k { color: #C792EA; } .f { color: #82AAFF; } .s { color: #A5E37A; } .c { color: #676E95; }

.float-chip {
  position: absolute; padding: 10px 16px; border-radius: 12px; font-size: .82rem; font-weight: 600;
  background: rgba(17, 20, 42, .92); border: 1px solid var(--border);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6); animation: float 6s ease-in-out infinite;
}
.chip-a { bottom: -22px; left: -26px; }
.chip-b { top: -18px; right: -14px; color: var(--cyan); animation-delay: -3s; }
.ok { color: var(--green); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Sections */
.section { padding-top: 96px; padding-bottom: 24px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.eyebrow { font: 500 .8rem "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; letter-spacing: -.03em; font-weight: 800; margin: 10px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  padding: 28px 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border);
  transition: transform .25s, background .25s, border-color .25s;
}
.card:hover, .card.in:hover { transform: translateY(-4px); background: var(--card-hover); border-color: rgba(124, 92, 255, .35); }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(124, 92, 255, .2), rgba(34, 211, 238, .14));
  border: 1px solid rgba(124, 92, 255, .3);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3, .steps h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.card p, .steps p { color: var(--muted); font-size: .94rem; }

/* Products */
.carousel { position: relative; }
.car-track {
  position: relative; display: flex; gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; border-radius: 24px; outline: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track:focus-visible { box-shadow: 0 0 0 2px var(--cyan); }
.slide {
  flex: 0 0 100%; scroll-snap-align: start;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center;
  padding: 48px; border-radius: 24px; border: 1px solid rgba(124, 92, 255, .3);
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(124, 92, 255, .22), transparent 60%),
    radial-gradient(500px 260px at 0% 100%, rgba(34, 211, 238, .12), transparent 60%),
    var(--bg-2);
}
.slide-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.slide h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; letter-spacing: -.025em; font-weight: 800; margin: 18px 0 14px; }
.slide p { color: var(--muted); font-size: 1rem; }
.slide .ideal { margin-top: 18px; font-size: .94rem; }
.slide .ideal strong { color: var(--text); font-weight: 600; }
.slide-side {
  padding: 28px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--border);
}
.slide-side .features { margin-top: 0; }
.slide-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--grad); box-shadow: 0 12px 30px -10px rgba(124, 92, 255, .8);
}
.slide-icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.car-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
.car-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--card); border: 1px solid var(--border); color: var(--text); transition: background .2s, border-color .2s;
}
.car-btn:hover { background: var(--card-hover); border-color: rgba(124, 92, 255, .45); }
.car-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.car-dots { display: flex; gap: 8px; }
.car-dot {
  position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .18); overflow: hidden; transition: width .35s ease;
}
.car-dot[aria-selected="true"] { width: 38px; }
.car-dot[aria-selected="true"]::after {
  content: ""; position: absolute; inset: 0; background: var(--grad); transform-origin: left;
  animation: car-progress var(--car-interval, 6s) linear forwards;
}
.carousel.paused .car-dot[aria-selected="true"]::after { animation-play-state: paused; }
.carousel.static .car-dot[aria-selected="true"]::after { animation: none; }
@keyframes car-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tag { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
.tag-soon { background: rgba(124, 92, 255, .16); color: #B9A8FF; border: 1px solid rgba(124, 92, 255, .4); }
.tag-live { background: rgba(52, 211, 153, .12); color: var(--green); border: 1px solid rgba(52, 211, 153, .35); }
.tag-wl { background: rgba(34, 211, 238, .1); color: var(--cyan); border: 1px solid rgba(34, 211, 238, .35); }
.features { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.features li { position: relative; padding-left: 28px; font-size: .94rem; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.4 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.4 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 26px 22px; border-radius: var(--radius); border: 1px dashed var(--border); }
.num { display: block; font: 500 .85rem "JetBrains Mono", monospace; margin-bottom: 14px; }
.num { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Contact */
.contact {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 48px 44px; border-radius: 24px;
  background:
    radial-gradient(700px 300px at 0% 0%, rgba(124, 92, 255, .28), transparent 60%),
    radial-gradient(500px 260px at 100% 100%, rgba(34, 211, 238, .2), transparent 60%),
    var(--bg-2);
  border: 1px solid rgba(124, 92, 255, .3);
}
.contact h2 { margin-top: 0; }
.contact p { color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { margin-top: 96px; border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.legal { text-align: right; font-size: .85rem; color: var(--muted); }
.legal strong { color: var(--text); font-weight: 600; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--text); }

/* Legal page */
.doc { max-width: 760px; padding-top: 72px; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.3rem; margin-top: 36px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 20px; margin-top: 8px; }
.doc .updated { font-size: .9rem; }
.back { display: inline-block; margin-bottom: 8px; color: var(--cyan); font-size: .9rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-visual { max-width: 520px; }
  .cards, .steps { grid-template-columns: repeat(2, 1fr); }
  .slide { grid-template-columns: 1fr; gap: 28px; padding: 36px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .lang-switch { margin-left: auto; }
  .cards, .steps { grid-template-columns: 1fr; }
  .contact { padding: 34px 24px; }
  .slide { padding: 26px 22px; }
  .slide-side { padding: 22px; }
  .legal { text-align: left; }
  .chip-a { left: 8px; } .chip-b { right: 8px; }
  .code-card { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
