/* ============================================================
   POWERPLAY PC BUILDS — Global Stylesheet
   Variables, Reset, Nav, Footer, WhatsApp Float, Keyframes
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;800;900&family=Syne:wght@400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg-base: #0a0a0a;
  --bg-surface: #111111;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;

  --electric-blue: #93d81b;
  --cyan: #b8f042;
  --blue-dim: #6aaa10;
  --glow-blue: rgba(147, 216, 27, 0.35);
  --glow-cyan: rgba(147, 216, 27, 0.25);

  --text-primary: #f0f0f0;
  --text-secondary: #a0a0a0;
  --text-muted: #555555;

  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Syne', sans-serif;

  --nav-height: 72px;
  --section-pad: clamp(80px, 10vw, 140px);

  --z-nav: 100;
  --z-float: 200;
  --z-overlay: 300;
  --z-lightbox: 400;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: auto; /* Lenis handles smooth scroll */
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ── Typography Utilities ──────────────────────────────────── */
.label-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--electric-blue);
  display: inline-block;
}

.label-tag--link {
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease, letter-spacing 0.2s ease;
}

.label-tag--link:hover {
  opacity: 0.75;
  letter-spacing: 0.26em;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--electric-blue);
  color: #000;
}

.btn--primary:hover {
  background: var(--cyan);
  box-shadow: 0 0 24px var(--glow-blue);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn--ghost:hover {
  border-color: var(--electric-blue);
  color: var(--electric-blue);
  box-shadow: 0 0 16px rgba(147, 216, 27, 0.15);
  transform: translateY(-2px);
}

.btn--order {
  background: transparent;
  border: 1px solid var(--electric-blue);
  color: var(--electric-blue);
  width: 100%;
  justify-content: center;
  font-size: 0.7rem;
  padding: 12px 20px;
}

.btn--order:hover {
  background: var(--electric-blue);
  color: #000;
  box-shadow: 0 0 20px var(--glow-blue);
}

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 60px);
  transition: background var(--transition-base), border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: rgba(0, 212, 255, 0.12);
}

.nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin: 0 auto;
}

.nav__links a {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-base);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--electric-blue);
  transition: width var(--transition-base);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

.nav__links a:hover::after,
.nav__links a.active::after {
  width: 100%;
}

.nav__cta {
  flex-shrink: 0;
}

/* Hamburger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  margin-left: auto;
  padding: 8px;
  z-index: calc(var(--z-nav) + 10);
  position: relative;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-base);
}

.nav__burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__burger.open span:nth-child(2) {
  opacity: 0;
}
.nav__burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.nav__mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.98);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav__mobile-overlay.open {
  pointer-events: all;
  opacity: 1;
}

.nav__mobile-overlay a {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__mobile-overlay a:hover {
  color: var(--electric-blue);
}

.nav__mobile-overlay .btn {
  margin-top: 16px;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px clamp(20px, 5vw, 80px) 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer__brand-name span {
  color: var(--electric-blue);
}

.footer__brand-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 260px;
}

.footer__heading {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--electric-blue);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__contact-item {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer__contact-item strong {
  color: var(--text-primary);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition-base);
}

.footer__social a:hover {
  border-color: var(--electric-blue);
  color: var(--electric-blue);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer__copy span {
  color: var(--electric-blue);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.footer__tc-link {
  color: var(--electric-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.85;
}

.footer__tc-link:hover {
  color: var(--electric-blue);
  opacity: 1;
}

/* ── Global T&C Modal ──────────────────────────────────────── */
.tc-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tc-modal.open {
  opacity: 1;
  visibility: visible;
}

.tc-sheet {
  width: 100%;
  background: var(--bg-card);
  border-radius: 20px 20px 0 0;
  padding: 20px 24px 40px;
  transform: translateY(40px);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 80vh;
  overflow-y: auto;
}

.tc-modal.open .tc-sheet {
  transform: translateY(0);
}

.tc-drag-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  margin: 0 auto 20px;
}

.tc-heading {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.tc-body {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.75;
}

.tc-sub {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--electric-blue);
  margin: 20px 0 8px;
}

.tc-sub:first-child {
  margin-top: 0;
}

.tc-body p {
  margin-bottom: 4px;
}

.tc-close-btn {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 16px;
  background: var(--electric-blue);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.tc-close-btn:hover {
  opacity: 0.88;
}

/* ── WhatsApp Float ────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-float);
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  animation: float-bounce 3s ease-in-out infinite;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 32px rgba(37, 211, 102, 0.6);
  animation-play-state: paused;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* ── Scroll reveal base states ─────────────────────────────── */
[data-reveal] {
  opacity: 0;
}

/* ── Keyframes ─────────────────────────────────────────────── */
@keyframes float-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes rgb-border {
  0%   { border-color: #93d81b; box-shadow: 0 0 16px rgba(147, 216, 27, 0.4); }
  25%  { border-color: #7b2fff; box-shadow: 0 0 16px rgba(123, 47, 255, 0.4); }
  50%  { border-color: #b8f042; box-shadow: 0 0 16px rgba(147, 216, 27, 0.4); }
  75%  { border-color: #ff2fa0; box-shadow: 0 0 16px rgba(255, 47, 160, 0.4); }
  100% { border-color: #93d81b; box-shadow: 0 0 16px rgba(147, 216, 27, 0.4); }
}

@keyframes glow-pulse {
  0%, 100% { filter: brightness(1) hue-rotate(0deg); }
  50% { filter: brightness(1.2) hue-rotate(20deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__burger {
    display: flex;
  }

  .nav__mobile-overlay {
    display: flex;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 767px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ── Reduced motion ────────────────────────────────────────── */
/* ── Build Cards (shared: home + builds pages) ─────────────── */
.build-card:hover {
  animation: rgb-border 2s linear infinite;
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #0d0d0d;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.build-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 10px;
  background: rgba(147, 216, 27, 0.15);
  border: 1px solid rgba(147, 216, 27, 0.3);
  color: var(--electric-blue);
  border-radius: var(--radius-sm);
}

.card-body {
  padding: 24px 28px 28px;
}

.card-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}

.card-specs li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.card-specs li:last-child {
  margin-bottom: 0;
}

.card-specs li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--electric-blue);
  font-size: 0.72rem;
  line-height: 1.7;
}

.card-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--electric-blue);
  letter-spacing: 0.02em;
  margin-top: 20px;
  margin-bottom: 16px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
