/* ============================================================
   FORGED BY OX — fbox studio site
   Design tokens + terminal-themed component system
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Space+Grotesk:wght@400;500;700&family=Inter:wght@400;500;600&display=swap');

:root{
  /* --- palette (locked from the fbox logo) --- */
  --bg:        #14110F;   /* page near-black */
  --bg-well:   #0D0B0A;   /* deeper wells */
  --surface:   #1C1815;   /* raised cards */
  --surface-2: #241F1B;   /* hover / nested */
  --line:      #332C26;   /* hairline borders */
  --line-2:    #463d34;   /* stronger borders */

  --accent:    #F5A524;   /* molten amber — THE brand color */
  --accent-dim:#b87d1c;   /* pressed / muted amber */
  --accent-glow: rgba(245,165,36,0.16);

  --text:      #F2EDE6;   /* off-white primary */
  --text-2:    #A99E92;   /* secondary */
  --text-3:    #6F665D;   /* faint / captions */

  --ok:        #7FB069;   /* released / success green */
  --ok-dim:    #3f5c33;

  /* --- type --- */
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;

  /* --- layout --- */
  --wrap: 1180px;
  --gap: 24px;
  --radius: 10px;
  --radius-lg: 16px;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--body);
  font-size:17px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; }

::selection{ background:var(--accent); color:var(--bg); }

/* subtle grain/scanline atmosphere — very low key */
body::before{
  content:""; position:fixed; inset:0; pointer-events:none; z-index:1;
  background-image:repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.14) 3px, rgba(0,0,0,0.14) 3px);
  opacity:.35; mix-blend-mode:multiply;
}

.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 24px; }

/* ============================================================
   TERMINAL PRIMITIVES
   ============================================================ */

/* command-style section header: > ./games */
.cmd{
  font-family:var(--mono);
  font-size:.95rem;
  color:var(--text-2);
  letter-spacing:.02em;
  display:flex; align-items:center; gap:.55ch;
  margin-bottom:28px;
}
.cmd .prompt{ color:var(--accent); font-weight:700; }
.cmd .path{ color:var(--text); font-weight:500; }
.cmd::after{
  content:""; width:9px; height:1.05em; margin-left:4px;
  background:var(--accent); opacity:.0; border-radius:1px;
}

/* blinking cursor utility */
.cursor{
  display:inline-block; width:.62ch; height:1.05em;
  background:var(--accent); margin-left:2px;
  transform:translateY(2px);
  animation:blink 1.05s steps(1) infinite;
}
@keyframes blink{ 50%{ opacity:0; } }

/* status tag: [ RELEASED ] [ Q4 2026 ] [ BUILDING... ] */
.tag{
  font-family:var(--mono);
  font-size:.72rem; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase;
  padding:5px 11px; border-radius:6px;
  border:1px solid var(--line-2);
  color:var(--text-2); background:var(--bg-well);
  white-space:nowrap;
}
.tag.is-released{ color:var(--ok); border-color:var(--ok-dim); }
.tag.is-soon{ color:var(--accent); border-color:var(--accent-dim); }
.tag.is-dev{ color:var(--text-2); border-color:var(--line-2); }
.tag.is-dev .dot{
  display:inline-block; width:6px; height:6px; border-radius:50%;
  background:var(--accent); margin-right:6px;
  animation:pulse 1.4s ease-in-out infinite;
}
@keyframes pulse{ 0%,100%{ opacity:.35; } 50%{ opacity:1; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn{
  display:inline-flex; align-items:center; gap:.6ch;
  font-family:var(--mono); font-weight:700; font-size:.9rem;
  letter-spacing:.02em;
  padding:13px 22px; border-radius:var(--radius);
  border:1px solid transparent; transition:.16s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--accent); color:#1a1206; }
.btn-primary:hover{ background:#ffb733; color:#1a1206; transform:translateY(-2px); box-shadow:0 8px 24px var(--accent-glow); }
.btn-ghost{ background:transparent; color:var(--text); border-color:var(--line-2); }
.nav-links a.nav-cta{ color:var(--text); }
.nav-links a.nav-cta:hover{ color:var(--accent); }
.btn-ghost:hover{ border-color:var(--accent); color:var(--accent); transform:translateY(-2px); }
.btn .arw{ transition:transform .16s ease; }
.btn:hover .arw{ transform:translateX(3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(20,17,15,.82);
  backdrop-filter:blur(12px);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:66px;
}
.nav-logo{ display:flex; align-items:center; gap:10px; }

/* --- font-rendered fbox logo (no graphic) --- */
.logo{
  font-family:var(--mono); font-weight:700;
  display:inline-flex; align-items:baseline; gap:.12ch;
  letter-spacing:.01em; line-height:1;
  white-space:nowrap;
}
.logo .lg-prompt{ color:var(--accent); margin-right:.4ch; }
.logo .lg-fb{ color:var(--text); }
.logo .lg-ox{ color:var(--accent); }
.logo.lg-nav{ font-size:1.35rem; }
.logo.lg-foot{ font-size:1.55rem; }
.logo.lg-tag{
  display:flex; flex-direction:column; gap:2px; align-items:flex-start;
}
.logo.lg-tag .lg-sub{
  font-family:var(--mono); font-size:.6rem; font-weight:500;
  letter-spacing:.28em; color:var(--text-3); margin-left:2.1ch;
}
.nav-links{ display:flex; align-items:center; gap:28px; }
.nav-links a{
  font-family:var(--mono); font-size:.86rem; font-weight:500;
  color:var(--text-2); letter-spacing:.01em; transition:.15s;
}
.nav-links a:hover{ color:var(--accent); }
.nav-cta{ }
.nav-burger{ display:none; background:none; border:none; color:var(--text); }

/* ============================================================
   HERO — the live terminal
   ============================================================ */
.hero{
  position:relative; z-index:2;
  padding:clamp(56px,9vw,104px) 0 clamp(48px,7vw,80px);
  overflow:hidden;
}
.hero-glow{
  position:absolute; top:-30%; left:50%; transform:translateX(-50%);
  width:900px; height:700px; pointer-events:none; z-index:-1;
  background:radial-gradient(ellipse at center, var(--accent-glow), transparent 62%);
  opacity:.9;
}
.hero-grid{
  display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center;
}
.hero-copy h1{
  font-family:var(--display); font-weight:700;
  font-size:clamp(2.3rem,5.2vw,3.9rem); line-height:1.04;
  letter-spacing:-.02em; margin-bottom:20px;
}
.hero-copy h1 .amber{ color:var(--accent); }
.hero-copy .lede{
  font-size:1.12rem; color:var(--text-2); max-width:46ch; margin-bottom:32px;
}
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; }

/* terminal window */
.term{
  background:var(--bg-well);
  border:1px solid var(--line-2);
  border-radius:var(--radius-lg);
  overflow:hidden;
  box-shadow:0 30px 80px rgba(0,0,0,.5);
}
.term-bar{
  display:flex; align-items:center; gap:8px;
  padding:12px 16px; background:var(--surface);
  border-bottom:1px solid var(--line);
}
.term-dot{ width:12px; height:12px; border-radius:50%; background:var(--line-2); }
.term-dot.r{ background:#e0574d; } .term-dot.y{ background:var(--accent); } .term-dot.g{ background:var(--ok); }
.term-title{
  font-family:var(--mono); font-size:.76rem; color:var(--text-3);
  margin-left:8px;
}
.term-body{
  font-family:var(--mono); font-size:.92rem; line-height:1.85;
  padding:22px 20px; min-height:290px;
}
.term-line{ white-space:pre-wrap; word-break:break-word; }
.term-line .p{ color:var(--accent); font-weight:700; }
.term-line .out{ color:var(--text-2); }
.term-line .ok{ color:var(--ok); }
.term-line .hl{ color:var(--text); font-weight:500; }
.term-line .lnk{ color:var(--accent); text-decoration:underline; text-underline-offset:3px; }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section{ position:relative; z-index:2; padding:clamp(56px,8vw,96px) 0; }
.section-well{ background:var(--bg-well); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-head{ margin-bottom:44px; }
.section-head h2{
  font-family:var(--display); font-weight:700;
  font-size:clamp(1.7rem,3.4vw,2.4rem); letter-spacing:-.01em;
}
.section-head p{ color:var(--text-2); margin-top:10px; max-width:56ch; }

/* ============================================================
   GAME CARDS (slate)
   ============================================================ */
.games-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:var(--gap);
}
.gcard{
  position:relative; display:flex; flex-direction:column;
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius-lg); overflow:hidden;
  transition:.2s ease;
}
.gcard:hover{ border-color:var(--line-2); transform:translateY(-4px); box-shadow:0 18px 46px rgba(0,0,0,.4); }
.gcard-media{ position:relative; aspect-ratio:616/353; overflow:hidden; background:var(--bg-well); }
.gcard-media img{ width:100%; height:100%; object-fit:cover; transition:.4s ease; }
.gcard:hover .gcard-media img{ transform:scale(1.04); }
.gcard-tag{ position:absolute; top:12px; left:12px; z-index:2; }
.gcard-body{ padding:20px 22px 22px; display:flex; flex-direction:column; flex:1; }
.gcard-title{ font-family:var(--display); font-weight:700; font-size:1.35rem; margin-bottom:8px; }
.gcard-desc{ color:var(--text-2); font-size:.98rem; margin-bottom:18px; flex:1; }
.gcard-foot{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.gcard-meta{ font-family:var(--mono); font-size:.76rem; color:var(--text-3); letter-spacing:.03em; }

/* full-bleed feature card (Cluck Up on home) */
.gcard.is-feature{ grid-column:1 / -1; }
.gcard.is-feature .gcard-inner{ display:grid; grid-template-columns:1.15fr 1fr; }
.gcard.is-feature .gcard-media{ aspect-ratio:auto; height:100%; min-height:280px; }
.gcard.is-feature .gcard-body{ padding:32px 34px; justify-content:center; }
.gcard.is-feature .gcard-title{ font-size:1.9rem; }
.gcard.is-feature .gcard-desc{ font-size:1.05rem; flex:none; margin-bottom:22px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid{ display:grid; grid-template-columns:1fr 1.4fr; gap:52px; align-items:center; }
.about-portrait{
  border:1px solid var(--line-2); border-radius:var(--radius-lg);
  background:var(--surface); overflow:hidden; padding:0;
}
.about-portrait .term-bar{ border-radius:0; }
.about-portrait .pbody{ padding:26px; font-family:var(--mono); font-size:.88rem; line-height:1.9; }
.about-portrait .pbody .p{ color:var(--accent); font-weight:700; }
.about-portrait .pbody .out{ color:var(--text-2); }
.about-portrait .pbody .hl{ color:var(--text); }
.about-copy h2{ font-family:var(--display); font-weight:700; font-size:clamp(1.7rem,3.4vw,2.3rem); margin-bottom:18px; letter-spacing:-.01em; }
.about-copy p{ color:var(--text-2); margin-bottom:16px; }
.about-copy strong{ color:var(--text); font-weight:600; }

/* ============================================================
   DEVLOG
   ============================================================ */
.devlog-wrap{ max-width:760px; margin:0 auto; }
.devlog-feed{ display:flex; flex-direction:column; gap:18px; }
.devpost{
  background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); overflow:hidden;
  border-left:2px solid var(--accent);
}
.devpost-head{
  display:flex; align-items:center; gap:10px;
  padding:14px 18px; border-bottom:1px solid var(--line);
  font-family:var(--mono); font-size:.8rem;
}
.devpost-head .p{ color:var(--accent); font-weight:700; }
.devpost-head .chan{ color:var(--text); font-weight:500; }
.devpost-head .date{ color:var(--text-3); margin-left:auto; }
.devpost-body{ padding:16px 18px; }
.devpost-body p{ font-size:.98rem; color:var(--text); margin-bottom:10px; }
.devpost-body p:last-child{ margin-bottom:0; }
.devpost-tags{ display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.devpost-tags span{ font-family:var(--mono); font-size:.72rem; color:var(--accent); }
.devlog-empty{
  text-align:center; font-family:var(--mono); color:var(--text-3);
  padding:40px; font-size:.9rem;
}
.devlog-note{
  text-align:center; margin-top:28px; font-family:var(--mono);
  font-size:.82rem; color:var(--text-3);
}
.devlog-note a{ color:var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer{ position:relative; z-index:2; border-top:1px solid var(--line); background:var(--bg-well); padding:56px 0 40px; }
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:40px; margin-bottom:44px; }
.footer-brand img{ height:34px; margin-bottom:16px; }
.footer-brand .logo{ margin-bottom:16px; }

/* contact CTA */
.contact-cta{ text-align:center; max-width:600px; margin:0 auto; }
.contact-cta h2{ font-family:var(--display); font-size:clamp(1.8rem,3.6vw,2.4rem); font-weight:700; margin-bottom:14px; letter-spacing:-.01em; }
.contact-cta p{ color:var(--text-2); font-size:1.06rem; margin-bottom:26px; }
.contact-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.footer-brand p{ color:var(--text-2); font-size:.94rem; max-width:34ch; }
.footer-col h4{ font-family:var(--mono); font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; color:var(--text-3); margin-bottom:16px; }
.footer-col a{ display:block; color:var(--text-2); font-size:.94rem; padding:5px 0; transition:.14s; }
.footer-col a:hover{ color:var(--accent); }
.footer-bar{
  display:flex; align-items:center; justify-content:space-between;
  padding-top:26px; border-top:1px solid var(--line);
  font-family:var(--mono); font-size:.8rem; color:var(--text-3); flex-wrap:wrap; gap:12px;
}
.footer-bar .heart{ color:var(--accent); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal{ opacity:0; transform:translateY(20px); transition:opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; gap:36px; }
  .about-grid{ grid-template-columns:1fr; gap:32px; }
  .gcard.is-feature .gcard-inner{ grid-template-columns:1fr; }
  .gcard.is-feature .gcard-media{ min-height:220px; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .footer-brand{ grid-column:1 / -1; }
}
@media (max-width:680px){
  body{ font-size:16px; }
  .games-grid{ grid-template-columns:1fr; }
  .nav-links{
    position:fixed; inset:66px 0 auto 0; flex-direction:column; gap:0;
    background:var(--bg); border-bottom:1px solid var(--line);
    padding:8px 24px 20px; transform:translateY(-120%); transition:.28s ease; z-index:40;
  }
  .nav-links.open{ transform:none; }
  .nav-links a{ padding:14px 0; width:100%; border-bottom:1px solid var(--line); }
  .nav-links .nav-cta{ margin-top:14px; }
  .nav-burger{ display:block; }
  .footer-grid{ grid-template-columns:1fr; }
}

@media (prefers-reduced-motion:reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  .reveal{ opacity:1; transform:none; }
}
