/* ========== CSS RESET & THEME ========== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  background: radial-gradient(1200px 800px at 80% -10%, rgba(0,221,255,0.08), transparent 60%),
              radial-gradient(900px 600px at 10% 10%, rgba(255,0,128,0.08), transparent 60%),
              #0b0f14;
  color: #d7e2f0;
  line-height: 1.6;
  overflow-x: hidden;
}
:root {
  --bg: #0b0f14;
  --bg-elev: #0e141b;
  --text: #d7e2f0;
  --muted: #8ca3b8;
  --primary: #55e6ff;
  --accent: #ff3c7d;
  --glow: #00e5ff;
  --card: #0f1621;
  --glass: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --success: #31d0aa;
  --ring: rgba(85,230,255,0.25);
  --scan: rgba(255,60,125,0.45);
}

.container { width: min(1120px, 92%); margin: 0 auto; }
.section { padding: 112px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); }
.section--alt::before { content: ''; position: absolute; inset: 0; background: linear-gradient( -6deg, rgba(85,230,255,0.05), transparent 36% ); mask-image: linear-gradient( to bottom, transparent, #000 12% 88%, transparent ); pointer-events: none; }
.highlight { color: var(--primary); font-weight: 700; }
.link-arrow { color: var(--primary); text-decoration: none; position: relative; }
.link-arrow::after { content: '→'; margin-left: 8px; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ========== HEADER ========== */
.header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(10px); background: linear-gradient(180deg, rgba(11,15,20,0.85), rgba(11,15,20,0.45)); border-bottom: 1px solid var(--border); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; letter-spacing: 0.5px; color: #fff; text-decoration: none; font-size: 20px; }
.logo img { height: 24px; display: block; }
.nav { display: none; gap: 20px; }
.nav__link { color: var(--muted); text-decoration: none; padding: 10px 12px; border-radius: 8px; transition: color .2s ease, background .2s ease; }
.nav__link:hover, .nav__link.active { color: #fff; background: rgba(255,255,255,0.05); }
.menu-toggle { display: grid; gap: 4px; background: transparent; border: 0; cursor: pointer; }
.menu-toggle span { width: 22px; height: 2px; background: #d7e2f0; display: block; }

.mobile-menu { display: grid; gap: 8px; padding: 12px; background: var(--bg-elev); border-bottom: 1px solid var(--border); }
.mobile-menu__link { color: var(--text); text-decoration: none; padding: 10px; border-radius: 8px; }
.mobile-menu__link:hover { background: rgba(255,255,255,0.05); }

@media (min-width: 860px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

/* ========== HERO ========== */
#bg-canvas { position: fixed; inset: -1px; z-index: -1; }
.hero { position: relative; min-height: calc(100vh - 64px); display: flex; align-items: center; padding: 96px 0 64px; }
.hero__title { font-size: clamp(32px, 6vw, 56px); line-height: 1.08; margin: 0 0 16px; text-shadow: 0 0 32px rgba(85,230,255,0.2); }
.hero__subtitle { color: #a8bed6; max-width: 760px; margin: 0 0 36px; }
.hero__cta { display: grid; gap: 16px; align-items: center; grid-template-columns: auto; }
.trust-badge { color: #9bb1c7; font-size: 14px; border-left: 3px solid var(--success); padding: 10px 12px; background: rgba(49,208,170,0.06); border-radius: 8px; }
.overline { letter-spacing: 0.12em; text-transform: uppercase; color: #9fb6cb; font-weight: 700; font-size: 12px; margin-bottom: 12px; display: inline-block; background: linear-gradient(90deg, rgba(85,230,255,0.18), transparent); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); }

/* Hero parallax layers */
.hero__parallax { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.layer { position: absolute; display: block; }
.layer--ring { width: 520px; height: 520px; border-radius: 50%; border: 2px solid var(--ring); top: -120px; right: -160px; box-shadow: 0 0 120px rgba(0,229,255,0.1) inset; }
.layer--dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; left: 12%; top: 18%; box-shadow: 0 0 20px var(--accent), 0 0 40px rgba(255,60,125,0.3); }
.layer--grid { position: absolute; left: -10%; right: -10%; bottom: -40px; height: 220px; background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent), repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 24px, transparent 24px 48px); filter: blur(10px); opacity: 0.6; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 600; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: transform .06s ease, filter .2s ease, background .2s ease, border-color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: linear-gradient(180deg, var(--primary), #00c6ff); color: #001018; box-shadow: 0 0 24px rgba(0,229,255,0.35); }
.btn--primary:hover { filter: brightness(1.05); }
.btn--outline { color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: rgba(85,230,255,0.08); }
.btn--ghost { background: rgba(255,255,255,0.04); color: #fff; border-color: var(--border); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); }

/* ========== DIVIDERS ========== */
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent); margin: 80px 0 0; position: relative; overflow: hidden; }
.divider--neon { height: 2px; background: linear-gradient(90deg, transparent, var(--accent), var(--glow), transparent); box-shadow: 0 0 24px rgba(0,229,255,0.35), 0 0 18px rgba(255,60,125,0.25); }
.divider--neon::after { content: ''; position: absolute; top: -1px; left: -10%; width: 20%; height: 4px; background: linear-gradient(90deg, transparent, var(--scan), transparent); filter: blur(6px); animation: scan 3.6s linear infinite; }
@keyframes scan { 0% { transform: translateX(0); } 100% { transform: translateX(600%); } }

/* ========== FOCUS ART ========== */
.glass-card { background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); border: 1px solid var(--border); border-radius: 18px; position: relative; overflow: hidden; min-height: 260px; }
.grid { display: grid; gap: 28px; }
.grid--split { grid-template-columns: 1fr; }
@media (min-width: 960px) { .grid--split { grid-template-columns: 1.1fr 0.9fr; align-items: center; } }

.focus-art { position: relative; }
.orb { position: absolute; width: 180px; height: 180px; filter: blur(28px); opacity: 0.6; border-radius: 50%; mix-blend-mode: screen; animation: float 8s ease-in-out infinite; }
.orb--1 { background: #35e0ff; top: -20px; left: -20px; }
.orb--2 { background: #ff3c7d; bottom: -30px; right: -10px; animation-delay: -2s; }
.orb--3 { background: #7f5dff; top: 40%; left: 50%; transform: translate(-50%, -50%); animation-delay: -4s; }
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }

/* ========== FEATURE CARDS ========== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; transform-style: preserve-3d; perspective: 800px; }
.card .icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(180deg, rgba(85,230,255,0.18), rgba(255,60,125,0.12)); color: #bfefff; border: 1px solid var(--border); margin-bottom: 8px; }
.card::before { content: ''; position: absolute; inset: -1px; background: radial-gradient(280px 160px at var(--x,50%) var(--y,50%), rgba(85,230,255,0.25), transparent 40%); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.card:hover { transform: translateY(-2px); border-color: rgba(85,230,255,0.35); box-shadow: 0 8px 30px rgba(0,0,0,0.35); }
.card:hover::before { opacity: 1; }
.card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(200px 120px at var(--x,50%) var(--y,50%), rgba(255,255,255,0.12), transparent 40%); mix-blend-mode: overlay; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.card:hover::after { opacity: 0.6; }

/* ========== PRODUCT CARDS ========== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.product-card { background: linear-gradient(180deg, #0d141d, #0a0f16); border: 1px solid var(--border); border-radius: 18px; padding: 20px; position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; will-change: transform; contain: paint; transform: translateZ(0); backface-visibility: hidden; }
.product-card header { display: flex; align-items: center; justify-content: space-between; }
.product-visual { height: 140px; border-radius: 12px; margin: 10px 0 8px; background: conic-gradient(from 220deg, rgba(0,229,255,0.18), rgba(127,93,255,0.12), rgba(255,60,125,0.12), rgba(0,229,255,0.18)); box-shadow: inset 0 0 0 1px var(--border); }
.product-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.product-card .badge { background: linear-gradient(180deg, var(--accent), #ff6aa2); color: #101217; font-weight: 700; padding: 6px 10px; border-radius: 999px; font-size: 12px; }
.product-card .feature-list { color: #a9bed2; padding-left: 18px; }
.product-card .price { font-size: 28px; font-weight: 800; margin: 8px 0 14px; color: #fff; }
.product-card--featured { border-color: rgba(85,230,255,0.5); box-shadow: 0 0 0 1px rgba(85,230,255,0.2) inset, 0 8px 32px rgba(0,229,255,0.15); }
.product-card::after { content: ''; position: absolute; inset: -20%; background: conic-gradient(from 0deg, rgba(0,229,255,0.04), rgba(255,60,125,0.04), rgba(127,93,255,0.04), rgba(0,229,255,0.04)); z-index: -1; }
.product-card:hover { transform: translateY(-2px); }
/* removed: .product-card 3D context to reduce rasterization */
.product-card::before { content: ''; position: absolute; inset: -1px; background: radial-gradient(320px 180px at 50% 50%, rgba(0,229,255,0.16), transparent 45%); opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.product-card:hover::before { opacity: 1; }

/* ========== CTA STRIPE ========== */
.cta { background: linear-gradient(90deg, rgba(85,230,255,0.06), rgba(255,60,125,0.06)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; }
.cta--stripe { position: relative; overflow: hidden; }
.cta--stripe::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 12px, transparent 12px 24px); mask-image: linear-gradient(90deg, transparent, #000 10% 90%, transparent); pointer-events: none; }

/* ========== ACCORDION ========== */
.accordion__item { background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.accordion__item summary { cursor: pointer; list-style: none; }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item[open] { border-color: rgba(85,230,255,0.35); }

/* ========== FOOTER ========== */
.footer { background: #0a0f15; border-top: 1px solid var(--border); margin-top: 24px; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; padding-top: 40px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; }
.footer__col a { color: #a9bed2; text-decoration: none; }
.footer__col a:hover { color: #fff; }
.contacts { color: #c7d6e6; }
.footer__actions { display: flex; gap: 10px; margin-top: 14px; }
.footer__bottom { display: flex; gap: 12px; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding: 18px 0; color: #94a9bf; }

/* ========== COOKIE BANNER ========== */
.cookie-banner { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(920px, calc(100% - 24px)); background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04)); border: 1px solid var(--border); border-radius: 16px; backdrop-filter: blur(8px); z-index: 60; }
.cookie-banner__content { padding: 14px; display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.cookie-banner__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ========== REVEALS ========== */
.reveal { opacity: 0; transform: translateY(12px); filter: blur(4px); transition: opacity .6s ease, transform .6s ease, filter .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

/* ========== SCROLL PROGRESS ========== */
.scroll-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; z-index: 100; background: linear-gradient(90deg, rgba(255,255,255,0.03), transparent); }
.scroll-progress__bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--glow)); box-shadow: 0 0 12px rgba(0,229,255,0.4); transition: width .08s linear; }

/* ========== BUTTON EFFECTS ========== */
.btn { position: relative; overflow: hidden; }
.btn.magnetic { transition: transform .1s ease; }
.ripple { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; background: rgba(255,255,255,0.5); mix-blend-mode: overlay; animation: ripple .6s ease forwards; }
@keyframes ripple { from { width: 0; height: 0; opacity: .75; } to { width: 280px; height: 280px; opacity: 0; } }

/* ========== CURSOR GLOW ========== */
.cursor-glow { position: fixed; width: 240px; height: 240px; border-radius: 50%; pointer-events: none; left: 0; top: 0; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(85,230,255,0.18), rgba(255,60,125,0.12), transparent 70%); mix-blend-mode: screen; filter: blur(18px); z-index: 30; opacity: .6; }

/* ========== RIGHT-SIDE RAIL NAV ========== */
.rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 70; }
.rail__dot { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.25); border: 1px solid var(--border); position: relative; display: inline-block; }
.rail__dot span { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); background: rgba(15,22,33,0.9); color: #cfe3f7; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--border); opacity: 0; pointer-events: none; transition: opacity .15s ease; white-space: nowrap; }
.rail__dot:hover span { opacity: 1; }
.rail__dot.active { background: linear-gradient(180deg, var(--accent), var(--glow)); box-shadow: 0 0 10px rgba(0,229,255,0.45); }

@media (max-width: 960px) { .rail { display: none; } }

/* Respect reduced motion settings */
@media (prefers-reduced-motion: reduce) {
  .btn, .card, .product-card, .scroll-progress__bar, .divider--neon::after {
    transition: none !important;
    animation: none !important;
  }
  .card:hover, .product-card:hover { transform: none !important; }
}
