/* ═══════════════════════════════════════════════════════════════
   PLASMATIX DIGITAL MEDIA — Shared Site Styles
   Built on ARCANA Design System foundations
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,300;0,400;0,600;0,700;0,800;0,900;1,700&family=JetBrains+Mono:wght@400;500&family=Cinzel:wght@400;700&family=Cinzel+Decorative:wght@400;700&family=IM+Fell+English:ital@0;1&family=Crimson+Pro:ital,wght@0,400;0,600;1,400&display=swap');

/* ── Tokens ────────────────────────────────────────────────────── */
:root {
  /* Surface ladder */
  --surface-base: #07080c;
  --surface-1:    #0d1018;
  --surface-2:    #141824;
  --surface-3:    #1c2130;
  --surface-4:    #242b3e;

  /* Parent accent — warm amber */
  --accent:           #d4832a;
  --accent-bright:    #e8a030;
  --accent-fill-low:  rgba(212,131,42,0.10);
  --accent-fill-mid:  rgba(212,131,42,0.22);
  --accent-dim:       rgba(212,131,42,0.15);

  /* Division accents */
  --acc-digital: #c9a84c;
  --acc-games:   #5ec4e8;
  --acc-story:   #c8906a;

  /* Borders */
  --border:        rgba(212,131,42,0.10);
  --border-active: rgba(212,131,42,0.28);
  --border-subtle: rgba(255,255,255,0.06);

  /* Text */
  --text-primary:   #e8eaf0;
  --text-secondary: #7d8fa0;
  --text-muted:     #4a5568;

  /* Semantic */
  --state-success: #4caf82;
  --state-warning: #e8a83a;
  --state-error:   #e85e5e;
  --state-info:    #5ec4e8;

  /* Typography */
  --font-display: 'Barlow Condensed', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
  --font-serif:   'Crimson Pro', serif;
  --font-title:   'Cinzel', serif;
  --font-gothic:  'Cinzel Decorative', serif;
  --font-fell:    'IM Fell English', serif;

  /* Radius */
  --radius-card:  6px;
  --radius-btn:   5px;
  --radius-badge: 3px;
  --radius-input: 4px;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  12px;
  --space-lg:  16px;
  --space-xl:  24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;

  /* Layout */
  --nav-height: 64px;
  --max-width:  1280px;
}

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

body {
  background: var(--surface-base);
  color: var(--text-primary);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--nav-height);
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 2px; }

/* ── Navigation ────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(7,8,12,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 200;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-brand img { height: 36px; }

.nav-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1;
  white-space: nowrap;
}

.nav-brand-sub {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav-link:hover { color: var(--accent); }
.nav-link.active { color: var(--accent); }

.nav-cta {
  padding: 7px 18px;
  border: 1px solid var(--border-active);
  border-radius: var(--radius-btn);
  background: var(--accent-fill-low);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  transition: background 0.15s, border-color 0.15s;
}

.nav-cta:hover {
  background: var(--accent-fill-mid);
  border-color: var(--accent);
  color: var(--accent-bright);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

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

/* Mobile dropdown */
.nav-mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(7,8,12,0.98);
  border-bottom: 1px solid var(--border-subtle);
  display: none;
  flex-direction: column;
  backdrop-filter: blur(16px);
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu .nav-link {
  padding: var(--space-md) var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

.nav-mobile-menu .nav-cta {
  margin: var(--space-md) var(--space-xl);
  text-align: center;
  display: block;
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
  margin-top: var(--space-4xl);
  padding: var(--space-4xl) var(--space-xl) var(--space-2xl);
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-logo {
  height: 80px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 200px;
  display: none;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-xl) auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  gap: var(--space-xl);
}

.footer-social a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  transition: color 0.15s;
}

.footer-social a:hover { color: var(--accent); }

/* ── Layout Helpers ────────────────────────────────────────────── */
.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section { padding: var(--space-4xl) 0; }

/* ── Typography ────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.eyebrow-digital { color: var(--acc-digital); }
.eyebrow-games   { color: var(--acc-games); }
.eyebrow-story   { color: var(--acc-story); }

.display-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 9vw, 100px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.92;
  color: var(--text-primary);
}

.page-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 54px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--text-primary);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 3vw, 36px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: var(--text-primary);
}

.product-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.5vw, 42px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.body-copy {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* ── Badges ────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-badge);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid;
}

.badge-dev      { background: rgba(232,168,58,0.12);  border-color: rgba(232,168,58,0.30); color: var(--state-warning); }
.badge-beta     { background: rgba(94,196,232,0.12);  border-color: rgba(94,196,232,0.30);  color: var(--state-info); }
.badge-coming   { background: rgba(212,131,42,0.10);  border-color: rgba(212,131,42,0.28);  color: var(--accent); }
.badge-live     { background: rgba(76,175,130,0.12);  border-color: rgba(76,175,130,0.30);  color: var(--state-success); }
.badge-platform { background: var(--surface-3); border-color: var(--border-subtle); color: var(--text-secondary); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 11px 24px;
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: 1px solid;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent-fill-low);
  border-color: var(--border-active);
  color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-fill-mid);
  border-color: var(--accent);
  color: var(--accent-bright);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}
.btn-ghost:hover {
  border-color: var(--border-active);
  color: var(--text-primary);
}

.btn-digital {
  background: rgba(201,168,76,0.10);
  border-color: rgba(201,168,76,0.30);
  color: var(--acc-digital);
}
.btn-digital:hover {
  background: rgba(201,168,76,0.20);
  border-color: var(--acc-digital);
}

.btn-games {
  background: rgba(94,196,232,0.10);
  border-color: rgba(94,196,232,0.30);
  color: var(--acc-games);
}
.btn-games:hover {
  background: rgba(94,196,232,0.20);
  border-color: var(--acc-games);
}

.btn-story {
  background: rgba(200,144,106,0.10);
  border-color: rgba(200,144,106,0.30);
  color: var(--acc-story);
}
.btn-story:hover {
  background: rgba(200,144,106,0.20);
  border-color: var(--acc-story);
}

/* ── Cards ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* Feature list */
.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.feat-list li::before {
  content: '›';
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1.5;
}

.feat-list.digital li::before { color: var(--acc-digital); }
.feat-list.games   li::before { color: var(--acc-games); }
.feat-list.story   li::before { color: var(--acc-story); }

/* Screenshot / image frame */
.img-frame {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #000;
}

/* Divider line */
.rule {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: var(--space-4xl) 0;
}

/* ── Lightbox ──────────────────────────────────────────────────── */
.lightbox-img {
  cursor: zoom-in;
  transition: opacity 0.15s, filter 0.15s;
  display: block;
}
.lightbox-img:hover { opacity: 0.85; filter: brightness(1.10); }

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.lightbox-overlay.open { opacity: 1; pointer-events: all; }

.lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-card);
  display: block;
  box-shadow: 0 32px 80px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lightbox-close:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.28);
  color: var(--text-primary);
}

.lightbox-caption {
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.10em;
  text-align: center;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links  { display: none; }
  .nav-toggle { display: flex; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
