/* Base */
:root {
  --bg: #05070e;
  --card: rgba(255,255,255,0.06);
  --glass: rgba(255,255,255,0.08);
  --text: #e8ecf1;
  --muted: #94a3b8;
  --accent: #6ee7ff;
  --accent-2: #8b5cf6;
  --accent-3: #22d3ee;
  --shadow: 0 10px 30px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 10% -10%, rgba(139,92,246,0.15), transparent 60%),
              radial-gradient(1000px 600px at 90% 10%, rgba(34,211,238,0.14), transparent 60%),
              linear-gradient(180deg, #070a14 0%, #05070e 100%);
  overflow-x: hidden;
}

/* Fixed full-page background to avoid section cutoff artifacts */
.page-bg { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(1400px 900px at 10% -10%, rgba(139,92,246,0.18), transparent 62%),
              radial-gradient(1200px 800px at 90% 0%, rgba(34,211,238,0.16), transparent 64%),
              linear-gradient(180deg, #070a14 0%, #05070e 100%);
}

.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
}

h1, h2, h3 { margin: 0 0 12px; line-height: 1.1; }
h1 { font-size: clamp(32px, 6vw, 64px); letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 4vw, 40px); }
h3 { font-size: clamp(18px, 2.4vw, 22px); }
p { margin: 0 0 18px; color: var(--muted); font-size: clamp(15px, 2vw, 18px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5,7,14,0.6);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 700; }
.brand-mark {
  width: 24px; height: 24px;
  background: url('/favicon.svg') no-repeat center center;
  background-size: contain;
}
.brand-text { letter-spacing: 0.2px; }

.nav { display: none; gap: 20px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav .btn-telegram { color: #ffffff !important; font-weight: 800 !important; }
.footer-inner .btn-telegram { color: #ffffff !important; font-weight: 800 !important; }
.lang-switch { position: relative; margin-left: 10px; }
.lang-switch #langBtn { height: 44px; padding: 0 16px; border-radius: 10px; background: rgba(255,255,255,0.08); color: var(--text); border: 1px solid rgba(255,255,255,0.14); cursor: pointer; font-weight: 800; }
.lang-switch .lang-menu { position: absolute; right: 0; top: 42px; background: rgba(20,24,34,0.98); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; display: none; flex-direction: column; min-width: 160px; box-shadow: var(--shadow); }
.lang-switch .lang-menu[aria-hidden="false"] { display: flex; }
.lang-switch .lang-menu button { background: transparent; border: 0; color: var(--text); padding: 10px 12px; text-align: left; cursor: pointer; }
.lang-switch .lang-menu button:hover { background: rgba(255,255,255,0.06); }

.hamburger { display: inline-flex; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile menu styles */
@media (max-width: 879px) {
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(5,7,14,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    z-index: 40;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    height: auto;
  }
  
  .nav.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }
  
  .nav a {
    padding: 12px 0;
    font-size: 18px;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  
  .nav a:last-child {
    border-bottom: none;
  }
  
  .nav .btn-telegram {
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }
  
  .nav .lang-switch {
    margin: 15px 0 0 0;
    width: 100%;
  }
  
  .nav .lang-switch #langBtn {
    width: 100%;
  }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: transform .15s ease, filter .15s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(0); filter: brightness(0.98); }
.btn-primary { color: #e8eff4; background: linear-gradient(to right, #4568DC, #B06AB3); box-shadow: 0 10px 30px rgba(139,92,246,0.35), 0 6px 18px rgba(34,211,238,0.25); }
.btn-ghost { color: var(--text); border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.02); }
.btn-telegram { color: #ffffff; background: #2ca5e0; box-shadow: 0 10px 24px rgba(44,165,224,0.35); font-weight: 800; }
.btn-telegram:hover { box-shadow: 0 14px 36px rgba(44,165,224,0.55), 0 0 22px rgba(110,231,255,0.35); }

.pulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 0 rgba(110,231,255,0.35);} 50%{ box-shadow: 0 0 0 14px rgba(110,231,255,0);} }
.wobble { animation: wobble 3.5s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-3px) } }
.dotpulse { animation: pulse 2.2s ease-in-out infinite; }
@keyframes dotpulse { 0%{ box-shadow: 0 0 0 0 rgba(110, 255, 187, 0.416);} 100%{ box-shadow: 0 0 2px 7px rgba(110, 255, 175, 0);} }

/* Sections */
.section { padding: 110px 0; position: relative; }
.hero { padding: 160px 0; }
.trial { padding: 120px 0; }
.section .section-head { text-align: center; max-width: 760px; margin: 0 auto 36px; }

.hero { min-height: calc(100vh - 76px); display: flex; align-items: center; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero .micro { font-size: 12px; color: #b3c0d4; margin-top: 10px; }
.hero-visual { position: relative; min-height: 420px; display: flex; align-items: center; }
.glass-card {
  position: relative; border-radius: 16px; padding: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));;
  border: 1px solid rgba(255,255,255,0.14); box-shadow: var(--shadow); width: min(420px, 100%); margin-left: auto;
}
.status { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 14px rgba(34,197,94,0.9);animation: dotpulse 2.2s ease-in-out infinite; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px;  }
.stats .label { color: var(--muted); font-size: 12px; }
.stats .value { font-size: 18px; font-weight: 700; }
.stat-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 12px; text-align: center; }
.stat-item .label { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.stat-item .value { font-size: 16px; font-weight: 700; color: var(--text); }

.orb { position: absolute; border-radius: 50%; filter: blur(12px); opacity: 0.8; mix-blend-mode: screen; }
.orb-lg { width: 360px; height: 360px; right: -20px; top: -20px; background: radial-gradient(circle at 30% 30%, rgba(139,92,246,0.6), rgba(110,231,255,0.25) 60%, transparent 70%); animation: blobMorph 22s ease-in-out infinite alternate, hueShift 30s linear infinite; }
.orb-sm { width: 160px; height: 160px; left: -10px; bottom: -10px; background: radial-gradient(circle at 60% 60%, rgba(34,211,238,0.65), rgba(139,92,246,0.25) 60%, transparent 70%); animation: blobMorph 18s ease-in-out infinite alternate-reverse, hueShift 26s linear infinite; }
@keyframes blobMorph {
  0% { transform: translate(0,0) scale(1) rotate(0deg); border-radius: 38% 62% 47% 53% / 43% 42% 58% 57%; }
  25% { transform: translate(6px,-10px) scale(1.04) rotate(10deg); border-radius: 58% 42% 55% 45% / 40% 60% 40% 60%; }
  50% { transform: translate(-8px,6px) scale(0.98) rotate(-8deg); border-radius: 42% 58% 39% 61% / 62% 38% 62% 38%; }
  75% { transform: translate(10px,4px) scale(1.06) rotate(6deg); border-radius: 66% 34% 55% 45% / 48% 52% 48% 52%; }
  100% { transform: translate(-4px,-6px) scale(1.02) rotate(-4deg); border-radius: 38% 62% 47% 53% / 43% 42% 58% 57%; }
}
@keyframes hueShift { 0% { filter: hue-rotate(0deg) } 100% { filter: hue-rotate(360deg) } }
@keyframes float { 0%,100%{ transform: translateY(0) translateX(0)} 50%{ transform: translateY(-12px) translateX(6px)} }

.gradient-bg { position: absolute; inset: -1px 0 0 0; z-index: -1; background: radial-gradient(1200px 700px at 10% -10%, rgba(139,92,246,0.15), transparent 60%), radial-gradient(1000px 600px at 90% 10%, rgba(34,211,238,0.14), transparent 60%); }

.features .features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; grid-auto-rows: 1fr;}
.feature-card { background: var(--glass); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); transition: transform .2s ease, background .2s ease; height: 100%; display: flex; flex-direction: column; }
.feature-card:hover { transform: translateY(-2px); background: rgba(255,255,255,0.12); }
.feature-card .icon { font-size: 22px; margin-bottom: 8px; }

.trial { background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, rgba(34,211,238,0.1) 50%, rgba(139,92,246,0.20) 100%);}
.trial .tickers { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.04); box-shadow: var(--shadow); max-width: 100%; }
.ticker { white-space: nowrap; padding: 12px 16px; animation: marquee linear infinite; font-weight: 700; background: linear-gradient(90deg, rgba(110,231,255,0.2), rgba(139,92,246,0.2)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
@keyframes marquee { 0%{ transform: translateX(0) } 100%{ transform: translateX(-50%) } }

.faq .faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; align-items: start; }
.faq .faq-item { border-radius: 12px; background: var(--glass); border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow); padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.faq .faq-q { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: transparent; color: var(--text); border: 0; padding: 16px; font-weight: 700; text-align: left; cursor: pointer; }
.faq .faq-content { padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq .faq-content p { margin: 12px 0 16px; }
.faq .faq-item.open .faq-content { will-change: max-height; }
.faq .faq-item.open .faq-q { background: rgba(255,255,255,0.04); }
.faq .skeleton { position: relative; overflow: hidden; }
.faq .skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent); animation: shimmer 1.6s infinite; }
@keyframes shimmer { 0%{ transform: translateX(-100%) } 100%{ transform: translateX(100%) } }

.center { text-align: center; margin-top: 24px; }

/* Footer */
.site-footer { padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.06); background: rgba(5,7,14,0.6); backdrop-filter: blur(12px); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-inner .left { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.footer-inner a { color: var(--muted); text-decoration: none; margin-left: 12px; }
.footer-inner a:hover { color: var(--text); }
.muted { color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 320px; }
}

@media (min-width: 880px) {
  .nav { display: inline-flex; }
  .hamburger { display: none; }
}

@media (max-width: 720px) {
  .section { padding: 80px 0; }
  .features .features-grid { grid-template-columns: 1fr 1fr; }
  .faq .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .features .features-grid, .faq .faq-grid { grid-template-columns: 1fr; }
  .btn { height: 46px; }
  .trial-visual { width: 100%; overflow: hidden; }
  .trial h2 { word-wrap: break-word; max-width: 100%; }
  .ticker { font-size: 14px; }
}


