/* lubansky.dev — indie game studio — warm CRT world, committed dark theme */

:root {
  --ink:      #140c06;
  --ink-2:    #0d0703;
  --panel:    #241611;
  --panel-2:  #2f1d14;
  --line:     #3d271a;
  --amber:    #f2a63c;
  --ember:    #db6f1e;
  --phosphor: #9bd558;
  --red:      #d8402f;
  --label:    #e4d6b3;
  --text:     #f4e8d4;
  --muted:    #b39a7c;
  --dim:      #8a725a;

  --glow: 0 0 40px rgba(242,166,60,.28);
  --maxw: 1120px;

  --f-pixel: "Press Start 2P", monospace;
  --f-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --f-body: "Golos Text", "Inter", system-ui, sans-serif;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(219,111,30,.18), transparent 55%),
    radial-gradient(80% 60% at 50% 120%, rgba(242,166,60,.08), transparent 60%),
    var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint scanlines over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0px,
    rgba(0,0,0,0) 2px,
    rgba(0,0,0,.05) 3px,
    rgba(0,0,0,0) 4px
  );
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-family: var(--f-pixel);
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--amber);
  text-transform: uppercase;
}

/* ---------------- header ---------------- */
header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(20,12,6,.92), rgba(20,12,6,.55));
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; font-family: var(--f-body); font-weight: 600; font-size: 13px;
}
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--dim);
  padding: 6px 12px; cursor: pointer; transition: all .2s; font-family: inherit;
}
.lang button[aria-pressed="true"] { background: var(--amber); color: #2a1600; }
.nav-links .nav-item { display: inline; }
@media (max-width: 720px) { .nav-links .nav-item { display: none; } }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: 60px 0 40px; text-align: center; }

/* boot: chrome logo ignites like a CRT turning on */
.boot {
  position: relative; display: flex; justify-content: center; align-items: center;
  min-height: 230px; margin-bottom: 22px;
}
.boot::before {
  content: ""; position: absolute; width: 62%; height: 62%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242,166,60,.16), transparent 72%);
  filter: blur(12px);
}
.boot-logo {
  position: relative; z-index: 2; width: min(520px, 84vw);
  filter: drop-shadow(0 0 22px rgba(120,180,255,.32));
  transform-origin: center;
}
.hero.on .boot-logo {
  animation: crtOn 1100ms cubic-bezier(.2,.7,.2,1) both,
             logoGlow 4.5s 1250ms ease-in-out infinite;
}
@keyframes crtOn {
  0%   { opacity: 0; transform: scaleY(.006) scaleX(1.25); filter: brightness(3) drop-shadow(0 0 44px #cfe6ff); }
  22%  { opacity: 1; transform: scaleY(.006) scaleX(1.25); filter: brightness(3) drop-shadow(0 0 44px #cfe6ff); }
  42%  { opacity: 1; transform: scaleY(1) scaleX(1); filter: brightness(1.5); }
  100% { opacity: 1; transform: none; filter: drop-shadow(0 0 22px rgba(120,180,255,.32)); }
}
@keyframes logoGlow {
  0%,100% { filter: drop-shadow(0 0 18px rgba(120,180,255,.28)); }
  50%     { filter: drop-shadow(0 0 32px rgba(150,200,255,.5)); }
}
/* the ignition scan line */
.scan {
  position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; z-index: 3;
  transform-origin: center; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, #eaf4ff, transparent);
}
.hero.on .scan { animation: scanFlash 1100ms ease-out both; }
@keyframes scanFlash {
  0%   { opacity: 0; transform: scaleX(.15); }
  18%  { opacity: 1; }
  32%  { opacity: .95; box-shadow: 0 0 26px 7px rgba(210,235,255,.7); }
  56%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero h1 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(34px, 6.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 auto 20px;
  max-width: 15ch;
  text-wrap: balance;
  background: linear-gradient(180deg, #fff2dc, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede {
  color: var(--muted); font-size: clamp(16px, 2.4vw, 20px);
  max-width: 52ch; margin: 0 auto 32px; line-height: 1.55;
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: 12px; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  border: 1px solid transparent;
}
.btn:focus-visible { outline: 3px solid var(--phosphor); outline-offset: 2px; }
.btn-primary { background: linear-gradient(180deg, var(--amber), var(--ember)); color: #2a1400; box-shadow: 0 10px 30px rgba(219,111,30,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(219,111,30,.45); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

/* ---------------- sections ---------------- */
section { padding: 72px 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
.section-head h2 {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(26px, 4vw, 40px); line-height: 1.08; margin: 12px 0 14px;
  text-wrap: balance;
}
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

/* flagship */
.flagship { border-top: 1px solid var(--line); background:
  radial-gradient(90% 70% at 20% 0%, rgba(219,111,30,.10), transparent 60%); }
.flag-top { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .flag-top { grid-template-columns: 1fr; gap: 32px; } }

.flag-copy .title-line { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.flag-copy .app-icon { width: 58px; height: 58px; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.5); border: 1px solid rgba(242,166,60,.25); }
.flag-copy h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px,5vw,46px); margin: 0; }
.flag-copy .tag { color: var(--phosphor); font-family: var(--f-pixel); font-size: 10px; letter-spacing:.1em; }
.flag-copy .desc { color: var(--muted); font-size: 18px; margin: 16px 0 26px; max-width: 44ch; }

.store-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.badge-store {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; border: 1px solid #333; color: #fff;
  padding: 10px 18px; border-radius: 12px; transition: transform .15s, border-color .2s;
}
.badge-store:hover { transform: translateY(-2px); border-color: var(--amber); }
.badge-store svg { width: 26px; height: 26px; }
.badge-store .b-small { font-size: 10px; color: #bbb; line-height: 1; }
.badge-store .b-big { font-size: 18px; font-weight: 600; line-height: 1.1; }
.soon-pill {
  font-size: 13px; color: var(--muted); border: 1px dashed var(--line);
  padding: 8px 14px; border-radius: 999px;
}

/* feature cartridge labels */
.features { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feat {
  background: linear-gradient(180deg, #ecdcb6, var(--label));
  color: #3a2a12; border-radius: 8px; padding: 14px 16px;
  border: 1px solid #c9b78c; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 18px rgba(0,0,0,.3);
  position: relative;
}
.feat h4 { margin: 0 0 4px; font-family: var(--f-body); font-weight: 700; font-size: 16px; }
.feat p { margin: 0; font-size: 14px; color: #5a4526; line-height: 1.45; }

/* the TV visual on flagship */
.flag-visual { position: relative; }
.flag-visual .phone-main {
  border-radius: 34px; overflow: hidden; border: 6px solid #0b0805;
  box-shadow: 0 30px 70px rgba(0,0,0,.6), var(--glow); margin: 0 auto; max-width: 300px;
}

/* screenshot gallery */
.shots { border-top: 1px solid var(--line); }
.shot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
@media (max-width: 900px) { .shot-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 560px) { .shot-grid { grid-template-columns: repeat(2,1fr); } }
.shot {
  border-radius: 20px; overflow: hidden; border: 4px solid #0b0805;
  box-shadow: 0 14px 34px rgba(0,0,0,.5); transition: transform .2s, box-shadow .2s;
}
.shot:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0,0,0,.6), var(--glow); }
.shot img { aspect-ratio: 9/19.5; object-fit: cover; }
.shot figcaption {
  font-size: 12px; color: var(--muted); text-align: center; padding: 8px 6px;
  background: var(--panel); font-weight: 500;
}

/* in the works */
.works { border-top: 1px solid var(--line); }
.work-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr; } }
.cart {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  position: relative; overflow: hidden; transition: border-color .2s, transform .2s;
}
.cart:hover { border-color: var(--amber); transform: translateY(-4px); }
.cart::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 5px;
  background: linear-gradient(90deg, var(--ember), var(--amber));
  border-radius: 0 0 4px 4px;
}
.cart .status {
  font-family: var(--f-pixel); font-size: 9px; letter-spacing: .1em;
  color: var(--dim); text-transform: uppercase;
}
.cart h3 { font-family: var(--f-display); font-weight: 700; font-size: 22px; margin: 14px 0 8px; }
.cart p { color: var(--muted); font-size: 15px; margin: 0; }

/* studio */
.studio { border-top: 1px solid var(--line); background:
  radial-gradient(70% 100% at 80% 0%, rgba(155,213,88,.06), transparent 60%); }
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 760px) { .studio-grid { grid-template-columns: 1fr; gap: 28px; } }
.studio p { color: var(--muted); font-size: 18px; line-height: 1.7; }
.studio .signature { font-family: var(--f-display); font-weight: 700; color: var(--text); font-size: 20px; margin-top: 8px; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; transition: border-color .2s, transform .15s;
}
.contact:hover { border-color: var(--amber); transform: translateX(4px); }
.contact .k { color: var(--muted); font-size: 14px; }
.contact .v { font-weight: 600; }
.contact .arrow { color: var(--amber); }

/* footer / console panel */
footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--ink), var(--ink-2));
  padding: 40px 0 56px;
}
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .brand-sm { font-family: var(--f-pixel); font-size: 12px; color: var(--muted); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.foot-links a:hover { color: var(--amber); }
.copy { color: var(--dim); font-size: 13px; margin-top: 20px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero.on .boot-logo { animation: none; }
  .hero.on .scan { animation: none; opacity: 0; }
}
