/* ──────────────────────────────────────────────────────────────
   Ericksoft – Design Tokens (matches FragMend palette)
   ────────────────────────────────────────────────────────────── */
:root {
  --bg: #0a0e15;
  --bg-2: #0e131d;
  --surface: #121826;
  --surface-2: #18202f;
  --border: #212b3b;
  --text: #e8edf5;
  --muted: #8a98ad;
  --accent: #3b9ee8;
  --accent-2: #4ec8db;
  --accent-ink: #051220;
  --success: #6fb03f;
  --danger: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1080px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font: "Segoe UI", Inter, system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef2f8; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #f1f5fa;
    --border: #dde5f0; --text: #101826; --muted: #566379;
    --accent: #2f8fda; --accent-2: #1c9fb8; --success: #4f9a2f;
    --accent-ink: #ffffff; --shadow: 0 10px 30px rgba(30,50,90,.08);
  }
}

/* ──────────────────────────────────────────────────────────────
   Reset & Base
   ────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(59,158,232,.13), transparent 60%),
    radial-gradient(1000px 500px at -10% 0%, rgba(78,200,219,.08), transparent 55%);
  background-attachment: fixed;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }

/* ──────────────────────────────────────────────────────────────
   Utilities
   ────────────────────────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ──────────────────────────────────────────────────────────────
   Header
   ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand-accent { color: var(--accent); }
.brand-sm { font-size: 1.05rem; }
.brand-logo { border-radius: 7px; display: block; }
.site-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-nav > a {
  color: var(--muted); padding: 8px 12px; border-radius: var(--radius-sm);
  font-weight: 500; transition: .15s;
}
.site-nav > a:hover { color: var(--text); text-decoration: none; background: var(--surface); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px; margin-left: auto;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ──────────────────────────────────────────────────────────────
   Buttons
   ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 11px 20px; font-weight: 600; font-size: .95rem;
  cursor: pointer; font-family: inherit; transition: .15s; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: .88rem; }
.btn-primary {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 6px 18px rgba(59,158,232,.30);
}
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }

/* ──────────────────────────────────────────────────────────────
   Main spacing
   ────────────────────────────────────────────────────────────── */
main.wrap { padding-top: 40px; padding-bottom: 64px; min-height: 60vh; }

/* ──────────────────────────────────────────────────────────────
   Hero
   ────────────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 40px; align-items: center; padding: 30px 0 60px;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 18px;
}
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 14px; }

/* Hero art — floating logo */
.hero-art { display: flex; justify-content: center; }
.logo-float { position: relative; }
.hero-logo-img {
  width: 220px; height: 220px; border-radius: 28px;
  box-shadow: 0 20px 60px rgba(59,158,232,.25);
  animation: float 6s ease-in-out infinite;
}
.glow {
  position: absolute; inset: -20px; border-radius: 40px;
  background: radial-gradient(circle, rgba(59,158,232,.18) 0%, transparent 70%);
  animation: pulse-glow 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* ──────────────────────────────────────────────────────────────
   Products Section
   ────────────────────────────────────────────────────────────── */
.products-section { padding: 30px 0 40px; }
.section-title { font-size: 1.6rem; margin-bottom: .2em; }
.section-subtitle { margin-bottom: 24px; }

.product-grid {
  display: flex; justify-content: center;
  gap: 20px;
}

.product-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 48px 28px; box-shadow: var(--shadow);
  transition: .25s ease; color: var(--text); text-decoration: none;
  position: relative; overflow: hidden;
  width: 100%; max-width: 740px;
}
.product-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(59,158,232,.06), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.product-card:hover {
  text-decoration: none; transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: 0 16px 48px rgba(59,158,232,.18);
}
.product-card:hover::before { opacity: 1; }

.product-card-header { display: flex; align-items: center; justify-content: space-between; }
.product-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
}
.product-badge {
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--success) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--success) 40%, transparent);
  color: var(--success); text-transform: uppercase; letter-spacing: .03em;
}

.product-card h3 { font-size: 1.3rem; margin-bottom: 0; }
.product-card p { color: var(--muted); margin-bottom: 4px; font-size: .95rem; }

.product-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.product-tag {
  font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 6px;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--muted);
}

.product-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 600; font-size: .9rem; margin-top: 8px;
  transition: gap .2s;
}
.product-card:hover .product-link { gap: 10px; }



/* Steam Store Widget */
.steam-widget-container {
  display: flex;
  justify-content: center;
  margin: 32px auto;
  max-width: 100%;
  width: 646px;
}
.steam-widget-container iframe {
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* "More coming" note */
.more-coming { margin-top: 24px; text-align: center; }
.more-coming-inner {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--surface); border: 1px dashed var(--border);
  color: var(--muted); font-size: .9rem; font-weight: 500;
}

/* ──────────────────────────────────────────────────────────────
   About Section
   ────────────────────────────────────────────────────────────── */
.about-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow);
  margin: 20px 0 40px;
}
.about-inner { max-width: 700px; }
.about-copy h2 { font-size: 1.5rem; margin-bottom: 16px; }
.about-copy p { color: var(--muted); font-size: 1.02rem; }

.about-values {
  display: flex; flex-direction: column; gap: 18px; margin-top: 28px;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.value {
  display: flex; align-items: flex-start; gap: 14px;
}
.value-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
}
.value strong { display: block; color: var(--text); font-size: .95rem; }
.value .muted { font-size: .88rem; }

/* ──────────────────────────────────────────────────────────────
   Contact Band
   ────────────────────────────────────────────────────────────── */
.contact-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 34px; margin: 10px 0 20px;
}
.contact-band h2 { margin-bottom: .2em; }
.contact-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; width: 100%;
}

/* ──────────────────────────────────────────────────────────────
   Footer
   ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border); background: var(--bg-2);
  padding: 30px 0; margin-top: 40px;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); }
.footer-inner .muted { margin: 4px 0 0; }

/* ──────────────────────────────────────────────────────────────
   Scroll-reveal animation
   ────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ──────────────────────────────────────────────────────────────
   Responsive
   ────────────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; }
  .hero-actions { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 12px 20px; gap: 4px;
  }
  body.nav-open .site-nav { display: flex; }
  .site-nav .btn { width: 100%; justify-content: center; }
  .contact-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .about-section { padding: 28px 20px; }
  .contact-band { padding: 24px 20px; }
  .hero-logo-img { width: 160px; height: 160px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-img, .glow { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
