/* ==========================================================================
   FluxWerks site — cyan sci-fi theme
   Palette + spacing live in :root so a retheme is a one-block edit.
   ========================================================================== */

:root {
  --bg-0: #04090f;          /* page background            */
  --bg-1: #081420;          /* raised panels / cards      */
  --bg-2: #0c1d2e;          /* hover / borders base       */
  --line: #12314a;          /* hairline borders           */
  --cyan: #29e0ff;          /* primary accent             */
  --cyan-soft: #7eeaff;     /* lighter accent for text    */
  --cyan-dim: rgba(41, 224, 255, 0.14);
  --text: #d7e6f0;          /* body text                  */
  --text-dim: #8fa8ba;      /* secondary text             */
  --font-display: "Orbitron", "Segoe UI", system-ui, sans-serif;
  --font-body: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --nav-height: 64px;
  --section-pad: clamp(56px, 9vw, 120px);
  --content-width: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan-soft); text-decoration: none; }
a:hover { color: var(--cyan); }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--cyan);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cyan);
  color: #032029;
  box-shadow: 0 0 24px rgba(41, 224, 255, 0.35);
}
.btn-primary:hover {
  background: var(--cyan-soft);
  color: #032029;
  box-shadow: 0 0 36px rgba(41, 224, 255, 0.55);
  transform: translateY(-2px);
}

.btn-ghost { background: transparent; color: var(--cyan); }
.btn-ghost:hover { background: var(--cyan-dim); color: var(--cyan-soft); }

.btn-small { padding: 9px 18px; font-size: 12px; }
.btn-large { padding: 18px 40px; font-size: 17px; }

.icon-steam { width: 1.35em; height: 1.35em; flex-shrink: 0; }

/* ------------------------------------------------------------------- nav */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  z-index: 100;
  background: rgba(4, 9, 15, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-nav.scrolled { border-bottom-color: var(--line); }

.nav-inner {
  max-width: var(--content-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 12px; }

.logo-cube {
  width: 18px; height: 18px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(41, 224, 255, 0.8);
  transform: rotate(45deg);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.14em;
  color: var(--text);
}
.logo-text em { font-style: normal; color: var(--cyan); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a:not(.btn) {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.nav-links > a:not(.btn):hover { color: var(--cyan); }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(41, 224, 255, 0.10), transparent 55%),
    linear-gradient(to bottom, rgba(4, 9, 15, 0.25), rgba(4, 9, 15, 0.55) 70%, var(--bg-0));
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; padding: 100px 24px 60px; }

.hero-kicker {
  font-family: var(--font-display);
  font-size: clamp(12px, 1.6vw, 15px);
  font-weight: 500;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 11vw, 118px);
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 0 60px rgba(41, 224, 255, 0.35);
}
.hero-title em {
  font-style: normal;
  color: var(--cyan);
  text-shadow: 0 0 40px rgba(41, 224, 255, 0.65);
}

.hero-tagline {
  max-width: 640px;
  margin: 26px auto 40px;
  font-size: clamp(18px, 2.4vw, 23px);
  font-weight: 500;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.6;
}
.hero-scroll-hint:hover { opacity: 1; }
.chevron {
  display: block;
  width: 14px; height: 14px;
  border-right: 2px solid var(--cyan);
  border-bottom: 2px solid var(--cyan);
  transform: rotate(45deg);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(5px, 5px); }
}

/* -------------------------------------------------------------- sections */

.section { padding: var(--section-pad) 24px; }
.section-inner { max-width: var(--content-width); margin: 0 auto; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.title-tag {
  font-size: 0.5em;
  font-weight: 500;
  color: var(--cyan);
  border: 1px solid var(--line);
  padding: 4px 10px;
  background: var(--bg-1);
  flex-shrink: 0;
}

.section-lead {
  max-width: 760px;
  color: var(--text-dim);
  font-size: 20px;
  margin-bottom: 52px;
}

/* --------------------------------------------------------------- trailer */

.section-trailer { padding-top: 40px; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-1);
  border: 1px solid var(--line);
  box-shadow: 0 0 60px rgba(41, 224, 255, 0.08);
  overflow: hidden;
}
.video-frame video,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-dim);
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
  background:
    radial-gradient(ellipse at center, rgba(41, 224, 255, 0.07), transparent 65%),
    var(--bg-1);
}
.placeholder-glyph {
  width: 74px; height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--cyan);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  padding-left: 6px;
  box-shadow: 0 0 30px rgba(41, 224, 255, 0.3);
}

/* -------------------------------------------------------------- features */

.feature-grid {
  display: grid;
  /* 6 cards: 3x2 at desktop width, 2x3 on mid screens, single column on phones */
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 22px;
}

.feature-card {
  background: linear-gradient(160deg, var(--bg-1), var(--bg-0) 85%);
  border: 1px solid var(--line);
  padding: 34px 30px;
  position: relative;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 46px; height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(41, 224, 255, 0.8);
}
.feature-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(41, 224, 255, 0.12);
}

.feature-icon {
  width: 54px; height: 54px;
  color: var(--cyan);
  margin-bottom: 22px;
}
.feature-icon svg { width: 100%; height: 100%; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.feature-card p { color: var(--text-dim); font-size: 17px; }
/* Scroll-reveal (JS adds .visible; no-JS users see everything) */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .chevron { animation: none; }
}

/* --------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-1);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover { border-color: var(--cyan); }

.gallery-empty {
  color: var(--text-dim);
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 14px;
  text-align: center;
  border: 1px dashed var(--line);
  padding: 60px 20px;
}

/* -------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 6, 10, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 0 80px rgba(41, 224, 255, 0.15);
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 26px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { color: var(--cyan); }

/* ------------------------------------------------------------------- CTA */

.section-cta {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(41, 224, 255, 0.16), transparent 60%),
    var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.6vw, 44px);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.cta-text { color: var(--text-dim); font-size: 20px; margin-bottom: 36px; }

/* ----------------------------------------------------------------- about */

.about-inner { max-width: 720px; }
.about-inner p { color: var(--text-dim); font-size: 19px; margin-bottom: 14px; }
.about-inner strong { color: var(--text); }

/* ---------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--line); padding: 28px 24px; }
.footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 15px;
}
.footer-links { display: flex; gap: 22px; }

/* ---------------------------------------------------------------- mobile */

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .nav-toggle span {
    width: 24px; height: 2px;
    background: var(--cyan);
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0;
    background: rgba(4, 9, 15, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 16px; }
  .nav-links > a.btn { margin: 12px 24px 20px; justify-content: center; }

  .hero-actions .btn { width: 100%; max-width: 340px; justify-content: center; }
  .lightbox { padding: 16px; }
}
