/* ============================================================
   Space Nerd Studios - site.css
   Mobile-first, dark space/arcade theme, no external deps.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --color-bg:          #080c18;
  --color-surface:     #0d1426;
  --color-surface-2:   #131c38;
  --color-border:      #1e2d5a;

  --color-text:        #dce6ff;
  --color-text-muted:  #8494c4;
  --color-text-dim:    #6f7fb0;

  --color-accent-cyan:   #3ef5f5;
  --color-accent-purple: #a855f7;
  --color-accent-yellow: #f5c842;
  --color-accent-green:  #22f0a0;

  --color-btn-primary-bg:   #3ef5f5;
  --color-btn-primary-text: #080c18;
  --color-btn-secondary-bg: transparent;
  --color-btn-secondary-border: #3ef5f5;
  --color-btn-secondary-text:   #3ef5f5;

  --font-sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

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

  --max-width: 72rem;
  --section-pad: 4rem 1.25rem;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul, ol { list-style: none; }

/* ---------- Focus visible ---------- */
:focus-visible {
  outline: 2px solid var(--color-accent-cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- Screen-reader only ---------- */
.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;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 24, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.site-logo {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--color-accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.45em;
  white-space: nowrap;
}
.logo-mark {
  font-size: 1.1em;
  color: var(--color-accent-purple);
}

/* Nav */
.nav-list {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav-list a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--color-text-muted);
  transition: color 0.15s, background 0.15s;
}
.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 1.25rem 5.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(62, 245, 245, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 70%),
    var(--color-bg);
}

/* CSS starfield - generated dots via box-shadow */
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.stars::before,
.stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at  8%  12%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 22%  55%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 38%   8%, #c8d4ff 0%, transparent 100%),
    radial-gradient(1px 1px at 48%  72%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 62%  30%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 75%  60%, #c8d4ff 0%, transparent 100%),
    radial-gradient(1px 1px at 89%  18%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 14%  84%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 31%  40%, #c8d4ff 0%, transparent 100%),
    radial-gradient(1px 1px at 55%  90%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 70%   5%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 93%  75%, #c8d4ff 0%, transparent 100%),
    radial-gradient(2px 2px at 18%  25%, rgba(62,245,245,0.5) 0%, transparent 100%),
    radial-gradient(2px 2px at 82%  45%, rgba(168,85,247,0.4) 0%, transparent 100%),
    radial-gradient(1px 1px at  4%  50%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 44%  20%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 96%  35%, #c8d4ff 0%, transparent 100%);
}
.stars::after {
  background-image:
    radial-gradient(1px 1px at 10%  65%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 27%  95%, #c8d4ff 0%, transparent 100%),
    radial-gradient(1px 1px at 50%  45%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 66%  82%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 79%  12%, #c8d4ff 0%, transparent 100%),
    radial-gradient(1px 1px at 86%  92%, #fff 0%, transparent 100%),
    radial-gradient(2px 2px at 35%  70%, rgba(245,200,66,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at  2%  30%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 57%   3%, #fff 0%, transparent 100%),
    radial-gradient(1px 1px at 91%  58%, #c8d4ff 0%, transparent 100%);
  opacity: 0.6;
}

.hero-content {
  position: relative;
  max-width: 52rem;
  margin: 0 auto;
}
.studio-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-cyan);
  margin-bottom: 0.8rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 1.2rem;
}
.hero-body {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--color-text-muted);
  max-width: 40rem;
  margin: 0 auto 2rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s, transform 0.1s;
  min-height: 44px;   /* tappable target */
  min-width: 44px;
}
.btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); opacity: 0.95; }

.btn-primary {
  background: var(--color-btn-primary-bg);
  color: var(--color-btn-primary-text);
  box-shadow: 0 0 18px rgba(62, 245, 245, 0.3);
}
.btn-primary:hover {
  box-shadow: 0 0 28px rgba(62, 245, 245, 0.5);
}

.btn-secondary {
  background: var(--color-btn-secondary-bg);
  color: var(--color-btn-secondary-text);
  border: 2px solid var(--color-btn-secondary-border);
}

/* ============================================================
   SHARED SECTION UTILITIES
   ============================================================ */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad);
}
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-purple);
  margin-bottom: 0.5rem;
}
.section-inner h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

/* ============================================================
   FEATURED PROJECT
   ============================================================ */
.featured {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}
.featured .section-inner {
  position: relative;
  z-index: 1;
}
.featured-body {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 38rem;
  margin-bottom: 1.25rem;
}
.featured-meta {
  margin-bottom: 1.5rem;
}
.status-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--color-accent-green);
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(34, 240, 160, 0.35);
  border-radius: var(--radius-sm);
}

/* Decorative orbit art - CSS only */
.featured-art {
  position: absolute;
  top: 50%;
  right: -4rem;
  transform: translateY(-50%);
  width: 22rem;
  height: 22rem;
  pointer-events: none;
  opacity: 0.18;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-accent-cyan);
  border-radius: 50%;
}
.orbit-ring::before {
  content: "";
  position: absolute;
  inset: 2rem;
  border: 1px dashed var(--color-accent-purple);
  border-radius: 50%;
}
.planet {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--color-accent-cyan), var(--color-accent-purple));
}

/* ============================================================
   WHAT WE MAKE - cards
   ============================================================ */
.what-we-make {
  background: var(--color-bg);
}
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
@media (min-width: 600px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.card:hover {
  border-color: rgba(62, 245, 245, 0.4);
  box-shadow: 0 0 20px rgba(62, 245, 245, 0.07);
}
.card-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* ============================================================
   STUDIO LOG
   ============================================================ */
.studio-log {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.studio-log .section-inner h2 {
  margin-bottom: 2rem;
}

.log-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--color-border);
  padding-left: 1.5rem;
  margin-left: 0.25rem;
}

.log-entry {
  position: relative;
  padding-bottom: 2rem;
}
.log-entry:last-child { padding-bottom: 0; }

/* Timeline dot */
.log-dot {
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  transform: translateX(-50%);
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--color-accent-purple);
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.log-entry article h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}
.log-entry article p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}
.log-entry article a {
  color: var(--color-accent-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.log-entry article a:hover,
.log-entry article a:focus-visible {
  color: var(--color-text);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.25rem 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--color-accent-cyan);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-dim);
}
/* Legal entity attribution: present but deliberately quiet. */
.footer-legal {
  font-size: 0.72rem;
  color: var(--color-text-dim);
  opacity: 0.8;
  margin-top: 0.4rem;
}

/* ============================================================
   HERO LOGO IMAGE
   ============================================================ */
.hero-logo-wrap {
  margin: 0 auto 1.75rem;
  /* constrain width; keep natural 2:1 aspect ratio */
  max-width: min(56rem, 90vw);
  width: 100%;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Transparent artwork: the glow follows the emblem, not a rectangle.
     The old border, box-shadow and edge mask existed to disguise a JPG
     with a baked-in background and are no longer needed. */
  filter:
    drop-shadow(0 0 26px rgba(62, 245, 245, 0.20))
    drop-shadow(0 0 56px rgba(168, 85, 247, 0.14))
    drop-shadow(0 8px 20px rgba(0, 0, 0, 0.50));
}

/* Tagline h1 - real text heading, visually secondary to the image */
.hero-tagline {
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  margin-bottom: 1.2rem;
}

/* On mobile keep the logo from dominating all vertical space */
@media (max-width: 480px) {
  .hero-logo-wrap { max-width: 100%; }
  .hero-logo {
    border-radius: var(--radius-md);
  }
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (min-width: 700px) {
  .section-inner { padding: 5rem 2rem; }
  .hero { padding: 6rem 2rem 7rem; }
  .log-list { padding-left: 2rem; }
}

@media (max-width: 599px) {
  .featured-art { display: none; }
}
