/* UI Essentials Studio - site (home, templates, guide) and the shared top navigation */
:root {
  --bg: #050409;
  --bg2: #0c0a14;
  --panel: #0f0d18;
  --site-card: #0d0b15;
  --site-line: #1d1a2b;
  font-family: "Poppins", "Inter", "Segoe UI", system-ui, sans-serif;
}
body { display: flex; flex-direction: column; background: var(--bg); }

/* ---- navigation (like a server site: pills, bold uppercase) ---- */
#site-nav { flex: none; height: 64px; display: flex; align-items: center; gap: 22px; padding: 0 22px; background: rgba(5, 4, 9, .92);
  border-bottom: 1px solid var(--site-line); backdrop-filter: blur(10px); position: relative; z-index: 30; }
.site-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.site-brand em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-links { display: flex; gap: 6px; }
.site-links a { color: #fff; text-decoration: none; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; padding: 9px 15px; border-radius: 7px; transition: background .15s, color .15s; }
.site-links a:hover { background: #15121f; }
.site-links a.active { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.site-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang-pill { display: flex; align-items: center; gap: 6px; padding: 0 4px 0 10px; height: 38px; border: 1px solid var(--site-line); border-radius: 8px; background: #0c0a14; cursor: pointer; }
.lang-pill .globe { font-size: 14px; }
.lang-pill .lang-sel { border: 0; background: transparent; font-weight: 700; font-size: 12.5px; padding: 6px 4px; max-width: 120px; box-shadow: none; }
.lang-pill .lang-sel option { background: #0c0a14; }

/* ---- buttons ---- */
.nbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 8px; font-weight: 800; font-size: 13px;
  text-transform: uppercase; letter-spacing: .02em; text-decoration: none; color: #fff; border: 1px solid transparent; cursor: pointer; transition: transform .12s, filter .12s, background .12s; }
.nbtn.primary { background: var(--grad); box-shadow: var(--glow); }
.nbtn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.nbtn.ghost { background: rgba(255, 255, 255, .03); border-color: #2a2540; }
.nbtn.ghost:hover { background: rgba(255, 255, 255, .07); }
.nbtn.big { padding: 15px 26px; font-size: 14px; border-radius: 10px; }
.nbtn.small { padding: 7px 12px; font-size: 11.5px; }

/* ---- views ---- */
#site { flex: 1; overflow-y: auto; overflow-x: hidden; color: #e9e6f5; font-size: 15px; }
body.view-editor #site { display: none; }
body:not(.view-editor) #app { display: none; }
#app { height: auto !important; flex: 1; min-height: 0; }

.band { max-width: 1180px; margin: 0 auto; padding: 72px 24px 8px; }
.band.first { padding-top: 48px; }
.s-head { text-align: center; margin-bottom: 34px; }
.s-head h2 { font-size: 36px; font-weight: 800; margin: 0 0 8px; color: #fff; letter-spacing: -.01em; }
.s-head p { margin: 0; color: #a7a1c2; font-size: 15px; }
.center { text-align: center; margin-top: 26px; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--site-line); }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(900px 480px at 78% 30%, rgba(139, 92, 246, .28), transparent 60%),
  radial-gradient(700px 420px at 10% 90%, rgba(192, 132, 252, .14), transparent 60%),
  linear-gradient(180deg, #0b0816 0%, #050409 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; opacity: .35;
  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: 32px 32px; mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 84px 24px 90px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 64px; line-height: 1.02; font-weight: 900; margin: 0 0 18px; color: #fff; letter-spacing: -.02em; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 17px; line-height: 1.6; color: #c9c3e0; margin: 0 0 30px; max-width: 520px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.hero-meta span { font-size: 13px; color: #8f88ad; font-weight: 600; }
.hero-meta span::before { content: '✓ '; color: var(--accent2); }
.resume { display: inline-flex; gap: 12px; align-items: center; margin-top: 26px; padding: 12px 16px; border-radius: 10px; border: 1px solid #2a2540; background: rgba(255, 255, 255, .03); color: #e9e6f5; text-decoration: none; font-size: 13px; }
.resume b { color: #fff; } .resume span { color: #a7a1c2; } .resume em { font-style: normal; color: var(--accent2); font-weight: 700; }
.resume:hover { border-color: rgba(var(--accent-rgb), .6); }
.hero-shot { perspective: 1400px; }
.window { border-radius: 14px; overflow: hidden; border: 1px solid #2a2540; background: #0b0914; box-shadow: 0 40px 90px rgba(0, 0, 0, .65), 0 0 0 1px rgba(var(--accent-rgb), .12), 0 0 80px rgba(var(--accent-rgb), .18);
  transform: rotateY(-9deg) rotateX(3deg); transition: transform .5s; }
.window:hover { transform: none; }
.wbar { height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #110e1c; border-bottom: 1px solid #221d34; font-size: 12px; color: #8f88ad; }
.wbar i { width: 10px; height: 10px; border-radius: 50%; background: #2b2540; } .wbar i:first-child { background: #f87171; } .wbar i:nth-child(2) { background: #fbbf24; } .wbar i:nth-child(3) { background: #4ade80; }
.wbar span { margin-left: 8px; }

/* template thumbnails */
.tthumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.tthumb iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }

/* feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--site-card); border: 1px solid var(--site-line); border-radius: 14px; padding: 24px; transition: border-color .15s, transform .15s; }
.feature:hover { border-color: rgba(var(--accent-rgb), .5); transform: translateY(-2px); }
.fic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .14); color: var(--accent2); font-weight: 800; font-size: 18px; margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; color: #fff; }
.feature p { margin: 0; font-size: 14px; line-height: 1.6; color: #a7a1c2; }

/* template cards */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { background: var(--site-card); border: 1px solid var(--site-line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.tcard:hover { border-color: rgba(var(--accent-rgb), .5); transform: translateY(-2px); }
.tbody { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.trow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tbody h3 { margin: 0; font-size: 16px; color: #fff; }
.tbody p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #a7a1c2; flex: 1; }
.tbody .nbtn { align-self: flex-start; }
.chip { font-size: 10.5px; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: rgba(var(--accent-rgb), .16); color: var(--accent2); }
.chip.hud { background: rgba(96, 165, 250, .15); color: #93c5fd; }
.filters { display: flex; justify-content: center; gap: 8px; margin: -12px 0 26px; }

/* steps, compat, faq */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--site-card); border: 1px solid var(--site-line); border-radius: 14px; padding: 24px; }
.step .num { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 900; color: #fff; margin-bottom: 14px; box-shadow: var(--glow); }
.step h3 { margin: 0 0 6px; color: #fff; font-size: 17px; } .step p { margin: 0; color: #a7a1c2; font-size: 14px; line-height: 1.6; }
.compat { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.compat span { padding: 11px 18px; border-radius: 9px; background: var(--site-card); border: 1px solid var(--site-line); font-weight: 700; font-size: 14px; color: #d9d4ee; }
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--site-card); border: 1px solid var(--site-line); border-radius: 12px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; color: #fff; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent2); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: #a7a1c2; line-height: 1.65; font-size: 14px; }

/* footer */
.site-footer { margin-top: 90px; border-top: 1px solid var(--site-line); background: #07060c; }
.f-top { max-width: 1180px; margin: 0 auto; padding: 36px 24px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.f-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; color: #fff; margin-bottom: 8px; }
.f-top p { margin: 0; color: #8f88ad; font-size: 13px; }
.f-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.f-links a { color: #d9d4ee; text-decoration: none; font-weight: 700; font-size: 13px; padding: 9px 14px; border: 1px solid var(--site-line); border-radius: 8px; }
.f-links a:hover { border-color: rgba(var(--accent-rgb), .6); }
.f-bottom { max-width: 1180px; margin: 0 auto; padding: 16px 24px 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: #8f88ad; border-top: 1px solid var(--site-line); }
.f-bottom .warn { color: #f87171; }

/* guide */
.g-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
.g-nav { position: sticky; top: 16px; display: grid; gap: 4px; background: var(--site-card); border: 1px solid var(--site-line); border-radius: 14px; padding: 10px; }
.g-nav a { color: #b8b2d3; text-decoration: none; font-size: 13.5px; font-weight: 600; padding: 9px 12px; border-radius: 8px; }
.g-nav a:hover { background: #15121f; color: #fff; }
.g-nav a.active { background: rgba(var(--accent-rgb), .16); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.g-body { background: var(--site-card); border: 1px solid var(--site-line); border-radius: 14px; padding: 30px 36px; min-width: 0; font-size: 14.5px; line-height: 1.7; color: #cfc9e6; }
.g-body h1 { margin: 0 0 14px; font-size: 28px; color: #fff; }
.g-body h3 { color: #fff; margin: 26px 0 8px; font-size: 17px; }
.g-body code { font-family: "Cascadia Code", Consolas, monospace; font-size: 12.5px; background: #17142a; border: 1px solid #262040; padding: 1px 6px; border-radius: 5px; color: #e4d9ff; }
.g-body pre { background: #0a0811; border: 1px solid #221d34; border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
.g-body pre code { background: none; border: 0; padding: 0; font-size: 12.5px; line-height: 1.6; }
.g-body table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 13.5px; }
.g-body td, .g-body th { text-align: left; padding: 8px 10px; border-bottom: 1px solid #221d34; vertical-align: top; }
.g-body th { color: #fff; }
.g-body .tip { background: rgba(var(--accent-rgb), .1); border: 1px solid rgba(var(--accent-rgb), .3); border-radius: 10px; padding: 10px 14px; margin: 14px 0; }
.g-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 18px; border-top: 1px solid #221d34; }

/* ---- product page blocks ---- */
.kicker { display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent2); background: rgba(var(--accent-rgb), .12); border: 1px solid rgba(var(--accent-rgb), .3); }
.hero .hero-inner { max-width: 1320px; grid-template-columns: .8fr 1.2fr; gap: 56px; padding: 70px 24px 100px; }
.hero h1 { font-size: 52px; }

/* screenshots: click to enlarge */
.shot { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid #2a2540; cursor: zoom-in;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); transition: transform .25s, border-color .25s, box-shadow .25s; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot img[src*="holo"] { object-position: 86% 45%; }
.shot img[src*="gate"] { object-position: 0 50%; }
.shot figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 7px; font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(5, 4, 9, .75); backdrop-filter: blur(6px); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s; pointer-events: none; }
.shot:hover { border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 30px 70px rgba(0, 0, 0, .6), 0 0 50px rgba(var(--accent-rgb), .25); }
.shot:hover figcaption { opacity: 1; transform: none; }

/* hero: the tree in front, two games floating around it */
.hero-stack { position: relative; aspect-ratio: 16 / 10.5; }
.hero-stack > div { position: absolute; }
.hs-main { left: 0; top: 12%; width: 86%; z-index: 2; }
.hs-main .shot { aspect-ratio: 1920 / 994; box-shadow: 0 40px 100px rgba(0, 0, 0, .7), 0 0 90px rgba(var(--accent-rgb), .3); }
.hs-a { right: -2%; top: -6%; width: 40%; z-index: 1; transform: rotate(4deg); }
.hs-b { right: 2%; bottom: 0; width: 46%; z-index: 3; transform: rotate(-3deg); }
.hs-a .shot, .hs-b .shot { aspect-ratio: 16 / 10; }
.hs-a:hover, .hs-b:hover { z-index: 4; }
.hero-stack .shot:hover { transform: scale(1.02); }

.stats { max-width: 1180px; margin: -40px auto 0; padding: 0 24px; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stats > div { background: rgba(13, 11, 21, .92); border: 1px solid var(--site-line); border-radius: 14px; padding: 20px 22px; backdrop-filter: blur(8px); }
.stats b { display: block; font-size: 28px; font-weight: 900; color: #fff; letter-spacing: -.01em; }
.stats span { font-size: 13px; color: #a7a1c2; }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 150px; gap: 14px; }
.gallery .g1 { grid-column: span 4; grid-row: span 3; }
.gallery .g2 { grid-column: span 2; grid-row: span 2; }
.gallery .g3 { grid-column: span 2; grid-row: span 2; }
.gallery .g4 { grid-column: span 2; grid-row: span 2; }
.gallery .g5 { grid-column: span 2; grid-row: span 2; }
.gallery .g6 { grid-column: span 2; grid-row: span 1; }
.gallery .g6 img { object-position: 50% 30%; }
.gallery .shot:hover { transform: translateY(-3px); }

.frows { display: grid; gap: 64px; }
.frow { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.frow.flip .frow-img { order: 2; }
.frow-img .shot { aspect-ratio: 16 / 9.4; }
.ftag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 6px; margin-bottom: 14px; }
.ftag.game { background: rgba(74, 222, 128, .12); color: #86efac; border: 1px solid rgba(74, 222, 128, .3); }
.ftag.studio { background: rgba(96, 165, 250, .12); color: #93c5fd; border: 1px solid rgba(96, 165, 250, .3); }
.ftag.both { background: rgba(var(--accent-rgb), .14); color: var(--accent2); border: 1px solid rgba(var(--accent-rgb), .35); }
.frow h3 { margin: 0 0 12px; font-size: 30px; line-height: 1.15; color: #fff; letter-spacing: -.01em; }
.frow p { margin: 0 0 18px; color: #b8b2d3; font-size: 15.5px; line-height: 1.7; }
.frow ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.frow li { position: relative; padding-left: 28px; color: #d9d4ee; font-size: 14.5px; }
.frow li::before { content: '✓'; position: absolute; left: 0; top: -1px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center;
  font-size: 11px; font-weight: 900; color: #fff; background: var(--grad); }

.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.get { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.get h2 { font-size: 30px; color: #fff; margin: 0 0 16px; }
.reqs { width: 100%; border-collapse: collapse; margin-bottom: 22px; background: var(--site-card); border: 1px solid var(--site-line); border-radius: 14px; overflow: hidden; }
.reqs th, .reqs td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--site-line); font-size: 14px; }
.reqs tr:last-child th, .reqs tr:last-child td { border-bottom: 0; }
.reqs th { width: 130px; color: #fff; font-weight: 700; } .reqs td { color: #b8b2d3; }
.get .compat { justify-content: flex-start; }
.get-card { position: relative; padding: 30px; border-radius: 18px; border: 1px solid rgba(var(--accent-rgb), .45); display: grid; gap: 14px;
  background: radial-gradient(400px 240px at 80% 0%, rgba(var(--accent-rgb), .28), transparent 70%), var(--site-card); box-shadow: 0 0 70px rgba(var(--accent-rgb), .15); }
.get-card .kicker { margin: 0; justify-self: start; }
.get-card h3 { margin: 0; font-size: 30px; color: #fff; }
.get-card ul { margin: 0 0 6px; padding: 0; list-style: none; display: grid; gap: 9px; }
.get-card li { color: #d9d4ee; font-size: 14.5px; } .get-card li::before { content: '✓  '; color: #86efac; font-weight: 900; }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 12px; padding: 24px; background: rgba(3, 2, 6, .9);
  backdrop-filter: blur(6px); cursor: zoom-out; animation: lb-in .18s ease-out; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 90px); border-radius: 12px; border: 1px solid #2a2540; box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }
.lightbox p { margin: 0; color: #d9d4ee; font-weight: 700; font-size: 14px; }
@keyframes lb-in { from { opacity: 0; } }

@media (max-width: 960px) {
  .hero-inner, .hero .hero-inner { grid-template-columns: 1fr; padding: 56px 20px 70px; }
  .hero h1 { font-size: 44px; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: -30px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .gallery > .shot { grid-column: span 1 !important; grid-row: span 1 !important; }
  .gallery .g1 { grid-column: span 2 !important; grid-row: span 2 !important; }
  .frow { grid-template-columns: 1fr; gap: 22px; }
  .frow.flip .frow-img { order: 0; }
  .steps4, .get { grid-template-columns: 1fr 1fr; }
  .get { grid-template-columns: 1fr; }
  .features, .tgrid, .steps3 { grid-template-columns: 1fr 1fr; }
  .g-wrap { grid-template-columns: 1fr; }
  .g-nav { position: static; }
  .site-links a { padding: 8px 10px; font-size: 12px; }
}
@media (max-width: 640px) {
  #site-nav { gap: 10px; padding: 0 12px; }
  .site-brand span, .site-cta { display: none; }
  .features, .tgrid, .steps3, .steps4 { grid-template-columns: 1fr; }
  .band { padding: 52px 16px 8px; }
  .hero h1 { font-size: 36px; }
  .stats { padding: 0 16px; }
  .stats b { font-size: 22px; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .gallery .g1 { grid-column: span 1 !important; grid-row: span 1 !important; }
  .frow h3 { font-size: 24px; }
}
