/* ============================================================
   Xen Productions — site stylesheet
   "Tron Legacy" glass: liquid black, frosted panels, icy bloom.
   ============================================================ */

:root {
  --bg: #02040a;
  --accent: #5ad6f0;          /* icy cyan (primary) */
  --accent-bright: #b6ecff;   /* light core */
  --accent-deep: #2aa7c8;
  --glow: rgba(88, 206, 255, 0.35);
  --glow-soft: rgba(88, 206, 255, 0.16);
  --orange: #d9530a;          /* Tron orange (secondary spark) — deep */
  --orange-bright: #ff8f3d;
  --orange-glow: rgba(217, 83, 10, 0.28);
  --glass-fill: rgba(128, 196, 232, 0.055);
  --glass-fill-2: rgba(128, 196, 232, 0.02);
  --glass-border: rgba(255, 168, 92, 0.30);   /* orange glass edge */
  --glass-hi: rgba(224, 248, 255, 0.16);
  --ink: #e7f4fb;
  --ink-soft: #a3c2d1;
  --ink-faint: #647f8e;
  --font-display: "Orbitron", sans-serif;
  --font-ui: "Rajdhani", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Atmospheric scene: distant city-glow on the horizon, sky haze,
     ground glow, deep sky gradient. */
  background:
    radial-gradient(58% 20% at 50% 48%, rgba(158, 232, 255, 0.16), transparent 72%),
    radial-gradient(130% 80% at 50% -12%, rgba(72, 150, 205, 0.16), transparent 55%),
    radial-gradient(120% 62% at 50% 120%, rgba(40, 122, 192, 0.15), transparent 60%),
    linear-gradient(180deg, #070d17 0%, #04070f 46%, #01030a 62%, #020509 100%),
    var(--bg);
  background-attachment: fixed;
}

/* Grey-stone grain — fills the empty dark space with tactile texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
}

/* Perspective grid floor receding to the horizon (the Tron ground plane) */
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  bottom: -2vh;
  height: 46vh;
  transform: perspective(340px) rotateX(64deg);
  transform-origin: bottom center;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(96, 214, 240, 0.28) 1px, transparent 1px),
    linear-gradient(rgba(96, 214, 240, 0.28) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: linear-gradient(to top, #000 2%, transparent 82%);
  mask-image: linear-gradient(to top, #000 2%, transparent 82%);
}

a { color: inherit; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  background: rgba(4, 8, 15, 0.55);
  border-bottom: 1px solid rgba(150, 210, 240, 0.08);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.16em;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  text-shadow: 0 0 18px var(--glow-soft);
}
.brand .dot { color: var(--orange-bright); -webkit-text-stroke: 0.6px var(--orange); text-shadow: none; }
.nav-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--accent-bright); text-shadow: 0 0 14px var(--glow); }
@media (max-width: 640px) {
  .nav-inner { flex-wrap: wrap; row-gap: 10px; }
  .nav-links { gap: 12px 16px; justify-content: center; width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 130px 24px 96px;
  text-align: center;
}
/* Ring hidden for now (kept here to restore easily later) */
.hero::before { content: none; }
.hero > * { position: relative; }
.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--accent-bright);
  padding: 7px 20px 7px 22px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-fill);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  margin-bottom: 34px;
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 24px var(--glow-soft);
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 9vw, 96px);
  line-height: 0.98;
  letter-spacing: 0.03em;
  margin: 0 0 24px;
  color: #f2fbff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.25), 0 0 44px var(--glow), 0 0 90px var(--glow-soft);
}
.hero h1 .accent {
  color: var(--orange-bright);
  -webkit-text-stroke: 1.5px var(--orange);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.hero p {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: clamp(16px, 2vw, 19px);
  font-weight: 400;
  color: var(--ink-soft);
}
.cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons (light-rod glass) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 999px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary {
  color: #032029;
  background: linear-gradient(180deg, #d8f7ff 0%, var(--accent) 55%, #38b7d6 100%);
  box-shadow: 0 0 26px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.8); }
.btn-ghost {
  color: var(--orange-bright);
  background: var(--glass-fill);
  border: 1px solid rgba(255, 138, 43, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.btn-ghost:hover { border-color: var(--orange); color: #ffd0a3; box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 14px var(--orange-glow); }

/* ---------- Section ---------- */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 24px 84px;
}
.section-head { margin-bottom: 34px; }
.section-head .kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: 0 0 16px var(--glow-soft);
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: 0.02em;
  margin: 12px 0 10px;
  text-shadow: 0 0 30px var(--glow-soft);
}
.section-head p { margin: 0; color: var(--ink-soft); max-width: 580px; font-size: 16px; }
.inline-link { color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.inline-link:hover { color: var(--accent-bright); }

/* ---------- Cards (frosted glass) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: linear-gradient(160deg, var(--glass-fill), var(--glass-fill-2));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.5), inset 0 1px 0 var(--glass-hi);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
/* light hitting the top edge of the glass */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 150, 0.85), transparent);
  opacity: 0.8;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 138, 43, 0.5);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.6), 0 0 18px var(--orange-glow), inset 0 1px 0 var(--glass-hi);
}
.card:hover::before { background: linear-gradient(90deg, transparent, var(--orange-bright), transparent); opacity: 0.9; }
.card:hover .card-icon {
  color: var(--orange-bright);
  border-color: rgba(217, 83, 10, 0.45);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 12px var(--orange-glow);
}
.card-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(140, 220, 250, 0.14), rgba(140, 220, 250, 0.04));
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 20px var(--glow-soft);
  margin-bottom: 20px;
  color: var(--accent-bright);
}
.card-icon svg { width: 22px; height: 22px; filter: drop-shadow(0 0 6px var(--glow)); }
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}
.card p { margin: 0 0 20px; font-size: 15.5px; color: var(--ink-soft); flex: 1; }
.card .go {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.2s, text-shadow 0.2s;
}
.card:hover .go { color: var(--orange-bright); text-shadow: 0 0 8px var(--orange-glow); }

/* ---------- Prints (Printables gallery) ---------- */
.print-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
}
.print-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--glass-fill), var(--glass-fill-2));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.5), inset 0 1px 0 var(--glass-hi);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.print-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 138, 43, 0.55);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.55), 0 0 18px var(--orange-glow), inset 0 1px 0 var(--glass-hi);
}
.print-card-img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #060a10;
}
.print-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.print-card:hover .print-card-img-wrap img { transform: scale(1.06); }
.print-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 16px;
}
.print-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  margin: 0 0 6px;
}
.print-card-body > p { margin: 0 0 14px; font-size: 13.5px; color: var(--ink-soft); flex: 1; }
.print-stats {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--ink-faint);
  border-top: 1px solid var(--glass-border);
  padding-top: 10px;
  margin-top: auto;
}
.print-stats .go {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.print-card:hover .print-stats .go { color: var(--orange-bright); }

/* ---------- About panel ---------- */
.about-panel {
  position: relative;
  padding: 32px 36px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--glass-fill), var(--glass-fill-2));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.5), inset 0 1px 0 var(--glass-hi);
}
.about-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 150, 0.85), transparent);
  opacity: 0.8;
}
.about-panel p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.75; max-width: 700px; }
.about-panel p:last-of-type { margin-bottom: 24px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(90, 214, 240, 0.06);
  border: 1px solid rgba(150, 210, 240, 0.22);
  color: var(--ink-soft);
}

/* ---------- Blog feed ---------- */
.blog-feed { display: flex; flex-direction: column; gap: 20px; max-width: 720px; }
.blog-entry {
  position: relative;
  padding: 26px 30px 28px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--glass-fill), var(--glass-fill-2));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.5), inset 0 1px 0 var(--glass-hi);
}
.blog-entry::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 150, 0.85), transparent);
  opacity: 0.8;
}
.blog-entry-date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.blog-entry h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 3vw, 22px);
  letter-spacing: 0.01em;
  margin: 0 0 12px;
}
.blog-entry p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.75; }

/* ---------- Spotlight (MeasureUp coming-soon banner) ---------- */
.spotlight {
  position: relative;
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding: 34px 36px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(217, 83, 10, 0.10), var(--glass-fill-2));
  border: 1px solid rgba(255, 168, 92, 0.35);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.5), inset 0 1px 0 var(--glass-hi);
}
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 150, 0.85), transparent);
}
.spotlight-icon {
  flex-shrink: 0;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 168, 92, 0.18), rgba(255, 168, 92, 0.05));
  border: 1px solid rgba(255, 168, 92, 0.4);
  color: var(--orange-bright);
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.spotlight-icon svg { width: 30px; height: 30px; }
.spotlight-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-bright);
  border: 1px solid rgba(255, 168, 92, 0.4);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 168, 92, 0.08);
  margin-bottom: 14px;
}
.spotlight-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}
.spotlight-tagline {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.spotlight-body > p:last-child { margin: 0; max-width: 640px; font-size: 15.5px; color: var(--ink-soft); }

@media (max-width: 640px) {
  .spotlight { flex-direction: column; padding: 28px 24px; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(150, 210, 240, 0.08);
  margin-top: 40px;
}
.site-footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px 24px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--ink-faint);
  font-size: 15px;
}
.site-footer-inner a { color: var(--ink-soft); text-decoration: none; }
.site-footer-inner a:hover { color: var(--accent-bright); }

.footer-spark {
  display: inline-block;
  margin-left: 2px;
  padding: 0 3px;
  color: rgba(255, 255, 255, 0.035) !important;
  text-decoration: none !important;
  cursor: default;
  transition: color 0.6s ease, text-shadow 0.6s ease;
}
.footer-spark:hover,
.footer-spark:focus-visible {
  color: var(--accent-bright) !important;
  text-shadow: 0 0 6px var(--glow), 0 0 18px var(--glow-soft);
  cursor: pointer;
}
