:root {
  --bg: #0b0b14;
  --bg2: #12121f;
  --card: rgba(255, 255, 255, .045);
  --card-hi: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .09);
  --text: #eef0ff;
  --muted: #9a9cb8;
  --a1: #7c5cff;
  --a2: #00d4ff;
  --a3: #ff4fa3;
  --play: #01875f;
  --radius: 22px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}
/* Film-grain texture + subtle dot grid over the whole page */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 220px 220px, 26px 26px;
}
.bg-blobs { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg-blobs span {
  position: absolute; width: 520px; height: 520px; border-radius: 50%;
  filter: blur(110px); opacity: .35; animation: drift 22s ease-in-out infinite alternate;
}
.bg-blobs span:nth-child(1) { background: var(--a1); top: -160px; left: -120px; }
.bg-blobs span:nth-child(2) { background: var(--a2); top: 30%; right: -200px; animation-delay: -7s; opacity: .22; }
.bg-blobs span:nth-child(3) { background: var(--a3); bottom: -220px; left: 30%; animation-delay: -14s; opacity: .18; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.15); } }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); background: rgba(11, 11, 20, .65); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand img { border-radius: 10px; }
.nav nav { display: flex; align-items: center; gap: 22px; font-weight: 500; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.btn-sm { padding: 8px 16px; border-radius: 99px; background: var(--card-hi); border: 1px solid var(--line); color: var(--text) !important; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 14px; font-weight: 600; font-size: .95rem; transition: transform .15s, box-shadow .2s, background .2s; cursor: pointer; border: 0; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-play { background: linear-gradient(135deg, var(--a1), var(--a2)); color: #fff; box-shadow: 0 8px 24px -8px rgba(124, 92, 255, .7); }
.btn-play:hover { box-shadow: 0 12px 32px -8px rgba(0, 212, 255, .7); }
.btn-ghost { background: var(--card); border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--card-hi); }
.btn-lg { padding: 14px 28px; font-size: 1.15rem; margin-top: 22px; }
.btn-lg span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-lg small { font-size: .62rem; letter-spacing: .12em; opacity: .85; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 80px 0 50px; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-size: .85rem; color: var(--a2); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; font-weight: 800; }
.grad { background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 1.15rem; margin: 20px 0 28px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 36px; margin-top: 40px; }
.stats b { display: block; font-size: 1.9rem; font-weight: 800; }
.stats span { color: var(--muted); font-size: .9rem; }
.hero-art { position: relative; height: 420px; }
.float { position: absolute; width: 140px; height: 140px; border-radius: 32px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px var(--line); animation: bob 6s ease-in-out infinite; }
.f0 { top: 10%; left: 10%; width: 170px; height: 170px; }
.f1 { top: 0; right: 8%; animation-delay: -1.5s; transform: rotate(8deg); }
.f2 { bottom: 6%; left: 26%; animation-delay: -3s; }
.f3 { bottom: 16%; right: 0; animation-delay: -4.5s; width: 120px; height: 120px; }
@keyframes bob { 50% { translate: 0 -16px; } }

/* Search */
.search-bar input { width: 100%; padding: 16px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-size: 1rem; outline: none; backdrop-filter: blur(10px); }
.search-bar input:focus { border-color: var(--a1); box-shadow: 0 0 0 4px rgba(124, 92, 255, .2); }

/* Sections + cards */
.section { padding: 50px 0; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.sec-head h2 { font-size: 2rem; letter-spacing: -.03em; }
.sec-head span { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.card { position: relative; padding: 22px; border-radius: var(--radius); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--line); backdrop-filter: blur(12px); display: flex; flex-direction: column; gap: 14px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); border-color: rgba(124, 92, 255, .5); box-shadow: 0 24px 50px -20px rgba(124, 92, 255, .45); }
.card-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.card-top { display: flex; gap: 16px; align-items: center; }
.icon { width: 80px; height: 80px; border-radius: 20px; flex-shrink: 0; box-shadow: 0 10px 24px -10px rgba(0,0,0,.8); }
.card h3 { font-size: 1.12rem; line-height: 1.25; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip { font-size: .75rem; padding: 3px 10px; border-radius: 99px; background: rgba(0, 212, 255, .12); color: var(--a2); }
.new { font-size: .75rem; padding: 3px 10px; border-radius: 99px; background: rgba(255, 79, 163, .14); color: var(--a3); }
.stars { display: inline-flex; align-items: center; gap: 1px; color: #3a3b55; font-size: .9rem; }
.stars i { font-style: normal; }
.stars i.full { color: #ffc93c; }
.stars i.half { background: linear-gradient(90deg, #ffc93c 50%, #3a3b55 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars b { color: var(--text); margin-left: 6px; font-size: .88rem; }
.card-actions { display: flex; gap: 10px; position: relative; z-index: 2; }
.card-actions .btn { flex: 1; padding: 10px 14px; }

.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 40px; border-radius: 28px; background: linear-gradient(120deg, rgba(124,92,255,.25), rgba(0,212,255,.12)); border: 1px solid var(--line); }
.cta-band h2 { font-size: 1.8rem; }
.cta-band p { color: var(--muted); }

/* Detail page */
.crumbs { padding-top: 28px; color: var(--muted); font-size: .9rem; }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--text); }
.detail { padding: 26px 0 20px; }
.detail-head { display: flex; gap: 36px; align-items: center; padding: 36px; border-radius: 32px; background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.icon-lg { width: 160px; height: 160px; border-radius: 36px; flex-shrink: 0; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); }
.detail h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -.03em; }
.dev { color: var(--a2); font-weight: 600; margin-top: 6px; }
.facts { display: flex; gap: 0; margin-top: 18px; flex-wrap: wrap; }
.facts div { padding: 0 22px; border-left: 1px solid var(--line); text-align: center; }
.facts div:first-child { padding-left: 0; border-left: 0; }
.facts b { display: block; font-size: 1.1rem; }
.facts span { color: var(--muted); font-size: .8rem; }
.shots { display: flex; gap: 14px; overflow-x: auto; padding: 26px 0 6px; scroll-snap-type: x mandatory; }
.shots img { height: 380px; width: auto; border-radius: 18px; scroll-snap-align: start; border: 1px solid var(--line); }
.detail-body { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-top: 20px; }
.panel { padding: 30px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.panel h2 { font-size: 1.35rem; margin-bottom: 14px; }
.panel p { color: #c6c8e0; margin-bottom: 12px; }
.panel .lead { color: var(--text); font-size: 1.1rem; font-weight: 500; }
.features { list-style: none; padding: 0; display: grid; gap: 10px; }
.features li { padding: 12px 14px 12px 42px; border-radius: 12px; background: rgba(255,255,255,.04); position: relative; }
.features li::before { content: '✓'; position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--a1), var(--a2)); font-size: .72rem; display: grid; place-items: center; font-weight: 800; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mini { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-weight: 500; transition: background .2s; }
.mini:hover { background: var(--card-hi); }
.mini img { width: 56px; height: 56px; border-radius: 14px; }
.notfound { text-align: center; padding: 120px 0; }
.notfound p { color: var(--muted); margin: 10px 0 24px; }

/* Footer */
.foot { margin-top: 60px; border-top: 1px solid var(--line); background: rgba(0,0,0,.25); }
.foot-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 40px 0 20px; }
.foot p { color: var(--muted); margin-top: 10px; max-width: 360px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.copy { color: #6b6d88; font-size: .8rem; padding: 16px 0 30px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-art { height: 260px; }
  .float { width: 100px; height: 100px; border-radius: 24px; }
  .f0 { width: 120px; height: 120px; }
  .f3 { width: 86px; height: 86px; }
  .detail-head { flex-direction: column; text-align: center; padding: 26px 18px; }
  .facts { justify-content: center; }
  .detail-body { grid-template-columns: 1fr; }
  .nav nav a:not(.btn-sm) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .shots img { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---- v2: articles, FAQ, pages, popup, contact ---- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.answer-box { margin-top: 20px; padding: 24px 28px; border-radius: var(--radius); background: linear-gradient(120deg, rgba(0,212,255,.10), rgba(124,92,255,.10)); border: 1px solid rgba(0,212,255,.25); }
.answer-box .answer-q { font-size: 1.2rem; margin-bottom: 8px; }
.answer-box p { color: #d6d8ee; }
.quick-facts { list-style: none; padding: 0; margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; }
.quick-facts b { color: var(--text); font-weight: 600; }
.article-layout { display: grid; grid-template-columns: 240px 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.article-main { display: grid; gap: 20px; min-width: 0; }
.toc { position: sticky; top: 88px; padding: 20px; font-size: .9rem; }
.toc b { display: block; margin-bottom: 10px; }
.toc ol { padding-left: 18px; display: grid; gap: 7px; color: var(--muted); }
.toc a:hover { color: var(--a2); }
.prose { font-size: 1.04rem; }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.15; margin-bottom: 18px; letter-spacing: -.02em; }
.prose h2 { font-size: 1.5rem; margin: 34px 0 12px; letter-spacing: -.02em; scroll-margin-top: 90px; }
.prose h2:first-child, .prose .byline + h2 { margin-top: 6px; }
.prose h3 { font-size: 1.15rem; margin: 22px 0 8px; color: var(--a2); }
.prose p { color: #c9cbe2; margin-bottom: 14px; }
.prose ul, .prose ol { color: #c9cbe2; padding-left: 22px; margin-bottom: 16px; display: grid; gap: 7px; }
.prose li::marker { color: var(--a1); }
.prose strong { color: var(--text); }
.prose a { color: var(--a2); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--a1); padding: 6px 16px; margin: 0 0 16px; color: var(--text); background: rgba(255,255,255,.03); border-radius: 0 10px 10px 0; }
.byline { color: var(--muted); font-size: .88rem; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.byline a { color: var(--a2); }
.ad-slot { margin: 24px 0; text-align: center; min-height: 90px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--a2); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: #c9cbe2; margin-top: 10px; }
.home-about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.home-about h2 { margin-top: 0; }
.page-wrap { padding: 26px 0 10px; display: grid; gap: 20px; }
.page-wrap .prose { max-width: 860px; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 500; font-size: .92rem; }
.contact-form input, .contact-form textarea, .sub-form input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.3); color: var(--text); font: inherit; outline: none; }
.contact-form input:focus, .contact-form textarea:focus, .sub-form input:focus { border-color: var(--a1); box-shadow: 0 0 0 3px rgba(124,92,255,.2); }
.contact-info p { margin-bottom: 10px; color: #c9cbe2; }
.contact-info a { color: var(--a2); }
.map { margin-top: 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.alert { padding: 12px 16px; border-radius: 12px; }
.alert.ok { background: rgba(1, 200, 120, .14); color: #6ff0b4; }
.alert.err { background: rgba(255, 79, 100, .14); color: #ff9aa8; }
.subscribe-band { margin-top: 10px; }
.sub-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; flex: 1 1 340px; max-width: 480px; position: relative; }
.sub-form input[type=email] { flex: 1 1 220px; }
.sub-msg { flex-basis: 100%; font-size: .9rem; min-height: 1.2em; margin: 0; }
.sub-msg.ok { color: #6ff0b4; } .sub-msg.err { color: #ff9aa8; }
.popup { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,12,.7); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; animation: fade .3s ease; }
.popup[hidden] { display: none; }
.popup-card { position: relative; width: min(440px, 100%); padding: 32px 28px 24px; border-radius: 26px; background: linear-gradient(160deg, #1b1a33, #111120); border: 1px solid rgba(124,92,255,.4); box-shadow: 0 40px 80px -20px rgba(0,0,0,.8); text-align: center; }
.popup-card img { margin: 0 auto 12px; border-radius: 16px; }
.popup-card h3 { font-size: 1.4rem; line-height: 1.2; margin-bottom: 8px; }
.popup-card p { color: var(--muted); margin-bottom: 16px; }
.popup-card .sub-form { max-width: none; justify-content: center; }
.popup-card .sub-form .btn { flex: 1 1 100%; }
.popup-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--card-hi); color: var(--text); font-size: 1.4rem; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
.social { display: flex; gap: 14px; margin-top: 12px; color: var(--muted); font-size: .9rem; }
.social a:hover, .addr { color: var(--text); }
.addr { margin-top: 8px !important; font-size: .9rem; }
.foot-links b { color: var(--text); margin-bottom: 4px; }
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .home-about, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .panel { padding: 20px 16px; }
  .answer-box { padding: 18px 16px; }
  .cta-band { padding: 24px 18px; }
  .nav nav { gap: 12px; }
  .facts div { padding: 0 12px; }
}
