:root {
  --bg: #111214;
  --bg-soft: #17181b;
  --panel: #1c1e22;
  --panel-2: #22252a;
  --line: rgba(255,255,255,.08);
  --text: #e8e9eb;
  --muted: #9a9ea6;
  --accent: #6b1620;
  --accent-2: #8a2230;
  --accent-soft: rgba(107,22,32,.22);
  --light: #d6d7da;
  --shadow: 0 22px 60px rgba(0,0,0,.28);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img, video { max-width: 100%; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: .25s ease;
}
.site-header.scrolled { background: rgba(17,18,20,.84); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-shell { min-height: 78px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.15); border-radius: 12px;
  font-family: "Space Grotesk", sans-serif; font-weight: 800; letter-spacing: -2px;
  background: linear-gradient(145deg, #282b30, #17181b); box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font: 700 16px/1 "Space Grotesk", sans-serif; letter-spacing: .02em; }
.brand-copy small { color: var(--muted); text-transform: uppercase; letter-spacing: .22em; font-size: 9px; margin-top: 5px; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-link { color: #c4c7cd; border: 0; background: none; cursor: pointer; padding: 11px 13px; border-radius: 10px; font-size: 14px; transition: .2s ease; display: inline-flex; align-items: center; gap: 5px; }
.nav-link:hover, .nav-link.active { color: white; background: rgba(255,255,255,.055); }
.dropdown-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.nav-dropdown { position: relative; }
.nav-dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 300px; transform: translate(-50%, 8px);
  background: rgba(26,28,31,.98); border: 1px solid var(--line); border-radius: 16px; padding: 9px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: .2s ease;
}
.nav-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.dropdown-menu a { display: flex; gap: 12px; padding: 11px 12px; border-radius: 11px; transition: .18s; }
.dropdown-menu a:hover { background: rgba(255,255,255,.05); }
.dropdown-menu a > span { width: 32px; height: 32px; display: grid; place-items: center; background: #23262a; border-radius: 9px; }
.dropdown-menu strong { display: block; font-size: 14px; }
.dropdown-menu small { display: block; color: var(--muted); margin-top: 2px; font-size: 11px; }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 700; transition: .22s ease; }
.nav-cta { padding: 10px 17px; background: var(--accent); border: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.nav-cta:hover { background: var(--accent-2); transform: translateY(-1px); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: rgba(255,255,255,.03); border-radius: 11px; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: #d8d9db; }

.hero { min-height: 100svh; position: relative; display: flex; align-items: center; overflow: hidden; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.65) brightness(.5); }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 70% 45%, rgba(107,22,32,.18), transparent 34%), linear-gradient(90deg, rgba(17,18,20,.97) 0%, rgba(17,18,20,.82) 43%, rgba(17,18,20,.52) 100%); }
.hero-grid { position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, transparent, black 30%, black 70%, transparent); }
.hero-content { position: relative; z-index: 3; padding-top: 110px; padding-bottom: 90px; }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: .22em; color: #b07077; font-weight: 700; font-size: 11px; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 28px; height: 1px; background: #9b3440; }
.hero h1, .section h2 { font-family: "Space Grotesk", sans-serif; letter-spacing: -.04em; }
.hero h1 { max-width: 920px; font-size: clamp(52px, 7vw, 98px); line-height: .98; margin: 22px 0 25px; }
.hero h1 em { font-style: normal; color: #b66b74; }
.hero p { max-width: 680px; color: #b1b5bc; font-size: clamp(16px,1.7vw,20px); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.button { padding: 13px 19px; border: 1px solid transparent; font-size: 14px; }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 12px 30px rgba(107,22,32,.23); }
.button-primary:hover { background: var(--accent-2); transform: translateY(-2px); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.035); }
.button-ghost:hover { background: rgba(255,255,255,.07); }
.button-light { background: #dddfe2; color: #151619; }
.button-light:hover { background: #fff; transform: translateY(-2px); }
.hero-meta { margin-top: 60px; display: flex; gap: 34px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; padding-left: 13px; border-left: 1px solid rgba(255,255,255,.14); }
.hero-meta strong { font-family: "Space Grotesk", sans-serif; }
.hero-meta span { color: var(--muted); font-size: 12px; margin-top: 3px; }
.scroll-indicator { position: absolute; bottom: 32px; left: 50%; width: 20px; height: 34px; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; transform: translateX(-50%); }
.scroll-indicator span { position: absolute; top: 8px; left: 50%; width: 3px; height: 6px; border-radius: 4px; background: #d7d8db; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0%{ transform:translate(-50%,0); opacity:1;} 70%{transform:translate(-50%,10px); opacity:0;} 100%{opacity:0;} }

.section { padding: 110px 0; }
.section-dark { background: #131416; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 50px; }
.section h2 { margin: 8px 0 0; font-size: clamp(38px,5vw,62px); line-height: 1.02; }
.section-heading > p { color: var(--muted); max-width: 470px; margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.product-card { position: relative; padding: 28px; background: linear-gradient(180deg, #1a1c20, #17191c); border: 1px solid var(--line); border-radius: var(--radius); min-height: 390px; transition: .28s ease; overflow: hidden; }
.product-card::after { content:""; position:absolute; inset:auto -80px -100px auto; width:220px; height:220px; background: radial-gradient(circle, rgba(107,22,32,.2), transparent 68%); }
.product-card:hover { transform: translateY(-5px); border-color: rgba(155,52,64,.36); box-shadow: var(--shadow); }
.product-card.featured { background: linear-gradient(180deg, #21191b, #17181b); }
.product-badge { position:absolute; top:18px; right:18px; color:#d8b7bb; background:rgba(107,22,32,.25); border:1px solid rgba(155,52,64,.35); padding:6px 9px; border-radius:999px; font-size:10px; text-transform:uppercase; letter-spacing:.12em; }
.product-icon { width:50px; height:50px; display:grid; place-items:center; background:#24272c; border:1px solid var(--line); border-radius:13px; font-size:22px; }
.product-tag { margin-top:28px; color:#9c5b63; font-size:10px; text-transform:uppercase; letter-spacing:.18em; font-weight:700; }
.product-card h3 { margin:7px 0 10px; font:700 29px/1.1 "Space Grotesk",sans-serif; }
.product-card p { color:var(--muted); }
.product-card ul { list-style:none; padding:0; margin:23px 0; color:#c0c3c8; font-size:13px; }
.product-card li { padding:6px 0; border-bottom:1px solid rgba(255,255,255,.045); }
.card-link { display:inline-flex; gap:10px; align-items:center; color:#e2d1d3; font-size:13px; font-weight:700; }

.services-section { background: linear-gradient(180deg,#111214,#16171a); }
.services-layout { display:grid; grid-template-columns:.82fr 1.18fr; gap:80px; align-items:start; }
.services-intro { position:sticky; top:120px; }
.services-intro p { color:var(--muted); max-width:500px; margin-bottom:28px; }
.service-list { border-top:1px solid var(--line); }
.service-item { display:grid; grid-template-columns:70px 1fr; gap:10px; padding:28px 0; border-bottom:1px solid var(--line); }
.service-item > span { color:#6f737b; font:700 13px "Space Grotesk"; }
.service-item h3 { margin:0 0 6px; font:600 24px "Space Grotesk"; }
.service-item p { margin:0; color:var(--muted); }

.showcase-section { background:#131416; }
.showcase-grid { display:grid; grid-template-columns:1.25fr .75fr; gap:18px; }
.showcase-card { background:#181a1d; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.showcase-card.large { grid-row:span 2; }
.showcase-media { min-height:260px; }
.showcase-card.large .showcase-media { min-height:560px; }
.gradient-one { background: radial-gradient(circle at 30% 30%, rgba(136,35,48,.42), transparent 25%), linear-gradient(135deg,#2a2d32,#121315 55%,#40131a); }
.gradient-two { background: linear-gradient(145deg,#1f2226,#3f151b); }
.gradient-three { background: radial-gradient(circle at 70% 20%, rgba(107,22,32,.45), transparent 20%), linear-gradient(140deg,#23262a,#121315); }
.showcase-copy { padding:20px 22px 24px; }
.showcase-copy span { color:#9c5b63; text-transform:uppercase; letter-spacing:.15em; font-size:10px; font-weight:700; }
.showcase-copy h3 { margin:7px 0 0; font:600 23px "Space Grotesk"; }

.process-section { background:#111214; }
.process-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
.process-step { border-top:1px solid var(--line); padding-top:22px; }
.process-step > span { color:#8e4e57; font:700 12px "Space Grotesk"; }
.process-step h3 { margin:18px 0 7px; font:600 22px "Space Grotesk"; }
.process-step p { color:var(--muted); font-size:14px; }

.trust-section { background:#141518; }
.trust-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.trust-card { padding:42px; border:1px solid var(--line); border-radius:var(--radius); background:#1a1c20; }
.trust-card.accent { background:linear-gradient(145deg,#4e151d,#27171a); border-color:rgba(255,255,255,.1); }
.trust-card p { color:#aaadb3; max-width:560px; }
.trust-points { display:flex; gap:18px; flex-wrap:wrap; margin:24px 0 28px; color:#c9cbd0; font-size:13px; }

.about-section { background:#111214; }
.about-layout { display:grid; grid-template-columns:1fr 1fr; gap:70px; align-items:center; }
.about-visual { min-height:460px; border-radius:var(--radius); background:radial-gradient(circle at 50% 50%, rgba(107,22,32,.28), transparent 33%), linear-gradient(135deg,#22252a,#111214); border:1px solid var(--line); display:grid; place-items:center; position:relative; overflow:hidden; }
.about-visual::before { content:""; position:absolute; inset:0; background-image:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px); background-size:42px 42px; }
.about-panel { position:relative; z-index:2; text-align:center; }
.mini-logo { width:140px; height:140px; display:grid; place-items:center; border-radius:28px; background:#17191c; border:1px solid rgba(255,255,255,.1); margin:0 auto 18px; font:800 52px "Space Grotesk"; letter-spacing:-5px; box-shadow:0 30px 70px rgba(0,0,0,.35); }
.about-panel span { color:#8f939b; font-size:12px; text-transform:uppercase; letter-spacing:.17em; }
.about-copy p { color:var(--muted); }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:30px; }
.stats div { padding:18px; background:#181a1d; border:1px solid var(--line); border-radius:14px; }
.stats strong { display:block; font:700 26px "Space Grotesk"; }
.stats span { color:var(--muted); font-size:11px; }

.contact-section { background:#131416; }
.contact-card { padding:42px; border-radius:var(--radius); background:linear-gradient(125deg,#591722,#2b171a 70%); border:1px solid rgba(255,255,255,.09); display:flex; justify-content:space-between; align-items:center; gap:30px; }
.contact-card h2 { margin-bottom:8px; }
.contact-card p { margin:0; color:#c3afb2; }

.faq-section { background:#111214; }
.faq-list { border-top:1px solid var(--line); }
.faq-item { border-bottom:1px solid var(--line); padding:4px 0; }
.faq-item summary { cursor:pointer; padding:20px 0; font-weight:600; list-style:none; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item p { margin:0 0 22px; color:var(--muted); max-width:760px; }

.site-footer { background:#0d0e10; border-top:1px solid var(--line); }
.footer-top { display:flex; justify-content:space-between; gap:70px; padding:62px 0 46px; }
.footer-brand { max-width:340px; }
.footer-brand p { color:var(--muted); font-size:13px; margin-top:20px; }
.footer-links { display:grid; grid-template-columns:repeat(3,1fr); gap:55px; }
.footer-links div { display:flex; flex-direction:column; gap:9px; min-width:130px; }
.footer-links strong { font-size:12px; margin-bottom:5px; }
.footer-links a { color:#8f939b; font-size:12px; }
.footer-links a:hover { color:#d8dadd; }
.footer-bottom { min-height:70px; border-top:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; color:#73777f; font-size:12px; }
.footer-bottom div { display:flex; gap:20px; }

.reveal { opacity:0; transform:translateY(22px); transition:opacity .65s ease,transform .65s ease; }
.reveal.visible { opacity:1; transform:none; }

.legal-page { min-height:100vh; padding:140px 0 80px; }
.legal-card { max-width:850px; margin:auto; background:#181a1d; border:1px solid var(--line); border-radius:var(--radius); padding:38px; }
.legal-card h1 { font:700 45px "Space Grotesk"; }
.legal-card h2 { margin-top:34px; font:600 23px "Space Grotesk"; }
.legal-card p, .legal-card li { color:var(--muted); }

@media (max-width: 940px) {
  .menu-toggle { display:block; }
  .nav-cta { display:none; }
  .main-nav { position:fixed; inset:78px 16px auto 16px; background:rgba(20,22,25,.98); border:1px solid var(--line); border-radius:18px; padding:12px; flex-direction:column; align-items:stretch; opacity:0; visibility:hidden; transform:translateY(-8px); transition:.2s; }
  .main-nav.open { opacity:1; visibility:visible; transform:none; }
  .nav-link { width:100%; justify-content:space-between; }
  .dropdown-menu { position:static; width:100%; transform:none !important; opacity:1; visibility:visible; display:none; background:#17191c; margin-top:4px; box-shadow:none; }
  .nav-dropdown.open .dropdown-menu { display:block; }
  .product-grid, .process-grid { grid-template-columns:1fr 1fr; }
  .services-layout, .about-layout { grid-template-columns:1fr; gap:45px; }
  .services-intro { position:static; }
  .showcase-grid { grid-template-columns:1fr; }
  .showcase-card.large { grid-row:auto; }
  .showcase-card.large .showcase-media { min-height:360px; }
  .footer-top { flex-direction:column; }
}

@media (max-width: 680px) {
  .container { width:min(100% - 26px,var(--container)); }
  .hero h1 { font-size:50px; }
  .hero-meta { gap:18px; }
  .section { padding:80px 0; }
  .section-heading { flex-direction:column; align-items:flex-start; margin-bottom:34px; }
  .product-grid, .process-grid, .trust-grid, .stats { grid-template-columns:1fr; }
  .trust-card, .contact-card { padding:28px; }
  .contact-card { flex-direction:column; align-items:flex-start; }
  .footer-links { grid-template-columns:1fr 1fr; gap:28px; }
  .footer-bottom { flex-direction:column; justify-content:center; gap:10px; padding:18px 0; }
}

/* ==========================================================
   NEXAR SHOP / DISCORD ACCOUNT
   ========================================================== */
.nav-actions { display:flex; align-items:center; gap:9px; }
.account-cta { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 15px; border:1px solid var(--line); border-radius:12px; color:#d9dbe0; background:rgba(255,255,255,.035); font-size:12px; font-weight:700; transition:.2s ease; white-space:nowrap; }
.account-cta:hover { background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.14); }
.account-cta.connected { border-color:rgba(106,168,118,.28); background:rgba(65,115,74,.12); color:#d7eadb; }

.shop-section { background:linear-gradient(180deg,#131416,#101113); }
.shop-account-card { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 26px; margin-bottom:26px; border:1px solid var(--line); border-radius:var(--radius); background:linear-gradient(135deg,#1a1c20,#151619); }
.shop-account-card > div { position:relative; padding-left:22px; }
.shop-account-card strong { display:block; font:600 18px "Space Grotesk",sans-serif; }
.shop-account-card p { margin:6px 0 0; color:var(--muted); font-size:13px; }
.shop-status-dot { position:absolute; left:0; top:6px; width:9px; height:9px; border-radius:50%; background:#777b84; box-shadow:0 0 0 5px rgba(119,123,132,.08); }
.shop-account-card.connected .shop-status-dot { background:#5aa36a; box-shadow:0 0 0 5px rgba(90,163,106,.1); }

.shop-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.shop-product-card { position:relative; min-height:340px; padding:27px; display:flex; flex-direction:column; background:linear-gradient(180deg,#1a1c20,#15171a); border:1px solid var(--line); border-radius:var(--radius); transition:.25s ease; overflow:hidden; }
.shop-product-card::after { content:""; position:absolute; right:-90px; bottom:-100px; width:230px; height:230px; background:radial-gradient(circle,rgba(107,22,32,.2),transparent 68%); pointer-events:none; }
.shop-product-card:hover { transform:translateY(-4px); border-color:rgba(155,52,64,.34); box-shadow:var(--shadow); }
.shop-product-card .shop-product-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; }
.shop-product-emoji { width:48px; height:48px; display:grid; place-items:center; border-radius:13px; border:1px solid var(--line); background:#23262a; font-size:21px; }
.shop-product-type { color:#9c5b63; font-size:10px; text-transform:uppercase; letter-spacing:.17em; font-weight:800; }
.shop-product-card h3 { margin:24px 0 8px; font:700 25px/1.1 "Space Grotesk",sans-serif; }
.shop-product-card p { margin:0; color:var(--muted); font-size:13px; line-height:1.7; }
.shop-product-bottom { margin-top:auto; padding-top:28px; display:flex; align-items:center; justify-content:space-between; gap:14px; position:relative; z-index:2; }
.shop-price { font:700 24px "Space Grotesk",sans-serif; }
.shop-buy { border:0; cursor:pointer; }
.shop-buy:disabled { opacity:.55; cursor:not-allowed; transform:none; }
.shop-loading { min-height:110px; align-items:center; justify-content:center; color:var(--muted); grid-column:1/-1; }

.my-purchases { margin-top:52px; padding-top:38px; border-top:1px solid var(--line); }
.section-heading.compact { margin-bottom:18px; }
.section-heading.compact h3 { margin:6px 0 0; font:650 30px "Space Grotesk",sans-serif; }
.purchase-list { display:grid; gap:10px; }
.purchase-row { display:grid; grid-template-columns:1.4fr .8fr .8fr; gap:20px; align-items:center; padding:16px 18px; background:#181a1d; border:1px solid var(--line); border-radius:13px; }
.purchase-row strong { display:block; }
.purchase-row small { color:var(--muted); }
.purchase-status { justify-self:end; color:#a9d2b1; font-size:12px; font-weight:700; }

.site-toast { position:fixed; z-index:2000; left:50%; bottom:28px; transform:translate(-50%,25px); min-width:min(520px,calc(100vw - 32px)); padding:15px 18px; border-radius:14px; border:1px solid var(--line); background:rgba(20,22,25,.97); box-shadow:0 20px 70px rgba(0,0,0,.42); color:#e5e7eb; text-align:center; opacity:0; visibility:hidden; transition:.25s ease; }
.site-toast.show { opacity:1; visibility:visible; transform:translate(-50%,0); }
.site-toast.success { border-color:rgba(90,163,106,.35); }
.site-toast.error { border-color:rgba(170,67,78,.42); }

@media (max-width: 940px) {
  .nav-actions { margin-left:auto; }
  .account-cta { display:none; }
  .shop-grid { grid-template-columns:1fr 1fr; }
}

@media (max-width: 650px) {
  .shop-account-card { align-items:flex-start; flex-direction:column; }
  .shop-grid { grid-template-columns:1fr; }
  .purchase-row { grid-template-columns:1fr; gap:6px; }
  .purchase-status { justify-self:start; }
}
