:root {
  --bg: #070b16;
  --bg2: #0e1730;
  --card: #14203c;
  --line: rgba(147, 167, 204, 0.16);
  --text: #e9eef8;
  --muted: #93a7cc;
  --accent: #5aa4ff;
  --gold: #e9c06e;
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.hero-shot img, .shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

header.top { position: sticky; top: 0; z-index: 10; background: rgba(7, 11, 22, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 22px; letter-spacing: 0.06em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .light { font-weight: 300; }
.brand .bold { font-weight: 700; color: var(--accent); }
nav a { color: var(--muted); margin-left: 22px; font-size: 15px; }
nav a:hover { color: var(--text); text-decoration: none; }

.hero { position: relative; overflow: hidden; padding: 84px 0 56px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 520px; background: radial-gradient(closest-side, rgba(90, 164, 255, 0.22), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; right: -120px; top: -80px; width: 380px; height: 380px; background: radial-gradient(closest-side, rgba(233, 192, 110, 0.12), transparent 70%); pointer-events: none; }
.hero .icon { width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 24px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45); }
.wordmark { font-size: clamp(44px, 8vw, 84px); line-height: 1.05; letter-spacing: 0.04em; margin: 0; }
.wordmark .light { font-weight: 200; }
.wordmark .bold { font-weight: 700; color: var(--accent); }
.tagline { font-size: clamp(19px, 2.4vw, 24px); color: var(--muted); margin: 16px auto 30px; max-width: 680px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: rgba(20, 32, 60, 0.7); font-weight: 600; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.hero-shot { position: relative; margin: 56px auto 0; max-width: 980px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }

section { padding: 72px 0; }
section h2 { font-size: clamp(28px, 3.4vw, 38px); margin: 0 0 10px; letter-spacing: 0.01em; }
section .lead { color: var(--muted); margin: 0 0 40px; max-width: 720px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { background: linear-gradient(180deg, rgba(20, 32, 60, 0.9), rgba(14, 23, 48, 0.9)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ic { font-size: 26px; margin-bottom: 10px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.shots { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.shots figure { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); }
.shots figcaption { padding: 12px 16px; color: var(--muted); font-size: 15px; }

.note { background: rgba(20, 32, 60, 0.6); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; padding: 20px 24px; color: var(--muted); }
.note strong { color: var(--text); }

.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.doc { max-width: 820px; padding: 56px 24px 80px; margin: 0 auto; }
.doc h1 { font-size: 38px; margin: 0 0 6px; }
.doc .date { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 23px; margin: 36px 0 10px; }
.doc p, .doc li { color: #c9d4ea; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.doc th { background: var(--bg2); }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer .credits { flex-basis: 100%; font-size: 13px; opacity: 0.85; }

@media (max-width: 520px) {
  nav a.opt { display: none; }
}
@media (max-width: 640px) {
  nav a { margin-left: 14px; font-size: 14px; }
  .brand { font-size: 19px; }
  section { padding: 52px 0; }
  .shots { grid-template-columns: 1fr 1fr; gap: 10px; }
  .shot-cap { font-size: 12.5px; left: 10px; right: 10px; bottom: 7px; }
}

/* ===================== Showcase (hero slideshow) ===================== */
.showcase { position: relative; max-width: 1000px; margin: 56px auto 0; outline: none; }
.tv { position: relative; }
.tv::before {
  content: ""; position: absolute; inset: 6% 4% 10%; background: var(--glow, rgba(90,164,255,.35));
  filter: blur(70px); opacity: .55; transition: background 1.2s ease; z-index: 0; pointer-events: none;
}
.tv-screen {
  position: relative; z-index: 1; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 0 10px #0b1020, 0 0 0 11px rgba(255,255,255,.07), 0 40px 90px rgba(0,0,0,.65);
  touch-action: pan-y;
}
.tv-stand { width: 34%; height: 14px; margin: 18px auto 0; border-radius: 0 0 50% 50%; background: radial-gradient(ellipse at center top, rgba(147,167,204,.28), transparent 70%); }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.slide.is-active { opacity: 1; }
.slide.is-active img { transform: scale(1.0); }
.screen-glare { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 32%); }
.sc-arrow, .sc-expand {
  position: absolute; z-index: 3; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(7,11,22,.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14);
  transition: opacity .25s, background .2s, transform .2s; opacity: 0;
}
.sc-arrow { top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; }
.sc-arrow.prev { left: 16px; }
.sc-arrow.next { right: 16px; }
.sc-expand { right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 12px; }
.sc-arrow svg, .sc-expand svg, .lb-btn svg, .lb-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.showcase:hover .sc-arrow, .showcase:hover .sc-expand, .showcase:focus-within .sc-arrow, .showcase:focus-within .sc-expand { opacity: 1; }
.sc-arrow:hover, .sc-expand:hover { background: rgba(90,164,255,.85); transform: scale(1.06); }
.sc-arrow:focus-visible, .sc-expand:focus-visible, .sc-dot:focus-visible, .shot:focus-visible, .lb-btn:focus-visible, .lb-nav:focus-visible, .lb-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sc-caption { margin: 26px auto 0; min-height: 64px; }
.sc-title { margin: 0; font-size: 22px; letter-spacing: .01em; }
.sc-text { margin: 4px 0 0; color: var(--muted); }
.sc-caption.swap .sc-title, .sc-caption.swap .sc-text { animation: capIn .6s ease both; }
.sc-caption.swap .sc-text { animation-delay: .08s; }
@keyframes capIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.sc-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.sc-dot { position: relative; width: 34px; height: 5px; padding: 0; border: 0; border-radius: 99px; background: rgba(147,167,204,.25); cursor: pointer; overflow: hidden; }
.sc-dot::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--accent); border-radius: inherit; }
.sc-dot.is-done::after { width: 100%; background: rgba(90,164,255,.5); }
.sc-dot.is-active::after { animation: dotFill var(--dur, 6s) linear forwards; }
.showcase.is-paused .sc-dot.is-active::after { animation-play-state: paused; }
@keyframes dotFill { from { width: 0; } to { width: 100%; } }
.sc-dot:hover { background: rgba(147,167,204,.45); }

/* ===================== Gallery ===================== */
.shots { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.shot { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); color: var(--text); cursor: zoom-in; transition: transform .3s ease, box-shadow .3s ease, border-color .3s; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,11,22,.92)); pointer-events: none; }
.shot-cap { position: absolute; left: 14px; right: 46px; bottom: 11px; z-index: 1; font-size: 14.5px; font-weight: 600; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.shot::before { content: ""; position: absolute; z-index: 2; right: 12px; bottom: 10px; width: 26px; height: 26px; border-radius: 8px; background: rgba(90,164,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 9V4h5M20 9V4h-5M4 15v5h5M20 15v5h-5'/%3E%3C/svg%3E") center / 16px no-repeat; opacity: 0; transform: scale(.8); transition: opacity .25s, transform .25s; }
.shot:hover, .shot:focus-visible { transform: translateY(-4px); border-color: rgba(90,164,255,.55); box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(90,164,255,.25); text-decoration: none; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.05); }
.shot:hover::before, .shot:focus-visible::before { opacity: 1; transform: none; }

/* ===================== Lightbox ===================== */
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; background: rgba(4,6,13,.95); backdrop-filter: blur(14px); color: var(--text); opacity: 0; transition: opacity .25s ease; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lb-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; }
.lb-count { color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .05em; font-size: 15px; }
.lb-tools { display: flex; gap: 8px; }
.lb-btn, .lb-nav { display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); background: rgba(20,32,60,.7); color: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.lb-btn { width: 44px; height: 44px; border-radius: 12px; }
.lb-btn:hover, .lb-nav:hover { background: rgba(90,164,255,.85); }
.lb-zoom.is-on { background: var(--accent); }
.lb-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 84px; touch-action: none; }
.lb-frame { position: relative; display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: 100%; overflow: hidden; border-radius: 12px; }
.lb-img { display: block; max-width: 100%; max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.7); user-select: none; -webkit-user-drag: none; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease; cursor: zoom-in; will-change: transform; }
.lb-img.is-zoomed { cursor: grab; }
.lb-img.is-dragging { cursor: grabbing; transition: opacity .25s ease; }
.lb-img.is-loading { opacity: .3; }
.lb-spinner { position: absolute; width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--accent); animation: spin .8s linear infinite; opacity: 0; transition: opacity .2s; pointer-events: none; }
.lb-frame.loading .lb-spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-nav { position: absolute; top: 50%; margin-top: -28px; width: 56px; height: 56px; border-radius: 50%; z-index: 2; }
.lb-nav.prev { left: 14px; }
.lb-nav.next { right: 14px; }
.lb-caption { margin: 14px auto 0; padding: 0 20px; text-align: center; color: #c9d4ea; font-size: 16px; min-height: 26px; }
.lb-thumbs { display: flex; gap: 8px; padding: 14px 16px 18px; overflow-x: auto; scrollbar-width: thin; justify-content: safe center; }
.lb-thumb { flex: 0 0 auto; width: 96px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; opacity: .5; transition: opacity .2s, border-color .2s, transform .2s; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .9; }
.lb-thumb.is-active { opacity: 1; border-color: var(--accent); transform: translateY(-2px); }

@media (max-width: 760px) {
  .showcase { margin-top: 40px; }
  .tv-screen { border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 0 6px #0b1020, 0 24px 60px rgba(0,0,0,.6); }
  .sc-arrow { width: 36px; height: 36px; margin-top: -18px; opacity: .9; }
  .sc-arrow.prev { left: 8px; }
  .sc-arrow.next { right: 8px; }
  .sc-expand { opacity: .9; width: 34px; height: 34px; top: 8px; right: 8px; }
  .sc-title { font-size: 19px; }
  .sc-dot { width: 22px; }
  .lb-stage { padding: 0 8px; }
  .lb-nav { display: none; }
  .lb-img { border-radius: 8px; max-height: calc(100dvh - 200px); }
  .lb-thumb { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide, .slide img, .shot, .shot img, .lb-img, .lightbox { transition: none !important; }
  .slide img { transform: none !important; }
}
