/* GAMEDEV TUBE P S A: slate navy, signal amber, cool paper */
:root {
  --paper: #eef1f5;
  --white: #ffffff;
  --navy: #101c36;
  --navy-2: #1b2b4f;
  --ink: #1a2438;
  --muted: #566277;
  --line: #d3dae4;
  --amber: #f0b429;
  --amber-d: #c98f0a;
  --wrap: 1280px;
  --head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--navy); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--amber-d); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-block; font: 600 1rem var(--body); text-decoration: none; padding: .95rem 1.6rem; border-radius: 6px; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--amber); color: var(--navy); }
.btn-light:hover { background: #ffc94d; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(238,241,245,.96); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; background: var(--navy); border-radius: 6px; display: grid; place-items: center; }
.brand-mark i { width: 0; height: 0; border-left: 12px solid var(--amber); border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.brand-name { font: 800 1.15rem var(--head); letter-spacing: .01em; }
.brand-name small { font-weight: 500; color: var(--muted); font-size: .8em; margin-left: .15em; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-weight: 500; position: relative; padding: .3rem 0; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--amber-d); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-cta { background: var(--navy); color: var(--white); padding: .6rem 1.2rem !important; border-radius: 6px; }
.nav-cta:hover { background: var(--navy-2); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--navy); transition: transform .25s, top .25s; }
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Hero */
.hero { padding: 5.5rem 0 5rem; background: linear-gradient(180deg, var(--paper) 0%, #e6ebf1 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.kicker { font-weight: 600; color: var(--muted); margin-bottom: 1.2rem; display: flex; align-items: center; gap: .7rem; }
.kicker::before { content: ""; width: 34px; height: 3px; background: var(--amber); }
.hero h1 { font-size: clamp(2.8rem, 5.4vw, 5rem); font-weight: 800; margin-bottom: 1.5rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-facts { display: grid; grid-template-columns: repeat(3, auto); gap: 2rem; margin: 0; padding-top: 1.6rem; border-top: 1px solid var(--line); justify-content: start; }
.hero-facts dt { font-size: .9rem; color: var(--muted); }
.hero-facts dd { margin: 0; font: 700 1.1rem var(--head); }

.hero-visual { margin: 0; position: relative; padding-bottom: 2.5rem; }
.screen { background: var(--navy); border-radius: 12px; padding: 14px; box-shadow: 0 30px 60px -30px rgba(16,28,54,.55); }
.screen-top { display: flex; align-items: center; gap: 6px; padding: 2px 4px 12px; }
.screen-top span { width: 10px; height: 10px; border-radius: 50%; background: #3a4a70; }
.screen-top em { margin-left: auto; font-style: normal; font-size: .8rem; color: #8fa0c4; }
.frame { position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: #28406e; }
.frame-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #2b4a85, #f0b429 120%); opacity: .85; }
.frame-sun { position: absolute; width: 17%; aspect-ratio: 1; border-radius: 50%; background: #ffe4a0; right: 20%; top: 22%; }
.frame-hill { position: absolute; bottom: 0; left: -10%; width: 80%; height: 48%; background: #14254a; border-radius: 50% 50% 0 0; }
.frame-hill.two { left: 35%; width: 80%; height: 36%; background: #0c1731; }
.rec { position: absolute; top: 12px; left: 14px; color: #fff; font: 600 .75rem var(--body); display: flex; align-items: center; gap: 6px; }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: #e5484d; animation: blink 1.6s infinite; }
.tc { position: absolute; bottom: 10px; right: 14px; color: #fff; font: 500 .8rem var(--body); font-variant-numeric: tabular-nums; }
.tracks { position: relative; margin-top: 12px; display: grid; gap: 6px; }
.track { position: relative; height: 22px; background: #16264a; border-radius: 4px; }
.track b { position: absolute; top: 3px; bottom: 3px; left: var(--l); width: var(--w); background: var(--amber); border-radius: 3px; }
.track.t2 b { background: #5d86d6; }
.track.t3 b { background: #3f5a94; }
.playhead { position: absolute; top: -4px; bottom: -4px; left: 8%; width: 2px; background: #fff; animation: scrub 9s ease-in-out infinite alternate; }
.code-card { position: absolute; right: -1rem; bottom: 0; background: var(--white); border-left: 4px solid var(--amber); padding: 1rem 1.3rem; border-radius: 6px; font: 500 .9rem/1.6 var(--body); box-shadow: 0 18px 40px -20px rgba(16,28,54,.4); }
.code-card p { margin: 0; }
.code-card span { color: var(--muted); display: inline-block; min-width: 4.5rem; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes scrub { to { left: 88%; } }
.hero-copy > * { animation: rise .7s both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

/* Band */
.band { background: var(--amber); color: var(--navy); }
.band-grid { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: 2rem; padding: 1.6rem 0; align-items: center; }
.band-grid p { margin: 0; line-height: 1.45; }
.band-title { font: 800 1.1rem var(--head); }
.band strong { display: block; font: 800 1.3rem var(--head); }

/* Sections */
.section { padding: 6.5rem 0; }
.section h2 { font-size: clamp(2.1rem, 3.8vw, 3.3rem); font-weight: 800; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 5rem; align-items: start; }
.about-head h2 { margin-bottom: 2.2rem; }
.about-note { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 1.8rem; border-radius: 0 0 8px 8px; }
.about-note h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.about-note ul { list-style: none; padding: 0; margin: 0; }
.about-note li { padding: .7rem 0; border-top: 1px solid var(--line); font-size: .98rem; }
.about-note li span { display: block; color: var(--muted); font-size: .85rem; }
.about-body .big { font: 500 1.45rem/1.45 var(--head); letter-spacing: -.01em; margin-bottom: 1.6rem; }
.about-body p { color: var(--muted); max-width: 46em; }
.about-body .big { color: var(--ink); }
.about-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 2.4rem; border-top: 1px solid var(--line); }
.about-blocks article { padding: 1.6rem 1.6rem 0 0; }
.about-blocks article + article { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.about-blocks h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.about-blocks p { font-size: 1rem; margin: 0; }

/* Services */
.services { background: var(--white); }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: end; margin-bottom: 3.5rem; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 0; max-width: 34em; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--navy); }
.service { display: grid; grid-template-columns: 76px 1fr auto; gap: 2.2rem; align-items: start; padding: 2.2rem .5rem; border-bottom: 1px solid var(--line); transition: background .25s, padding .25s; }
.service:hover { background: var(--paper); padding-left: 1.2rem; }
.service-icon { width: 64px; height: 64px; border-radius: 10px; background: var(--navy); display: grid; place-items: center; }
.service-icon svg { width: 34px; height: 34px; fill: none; stroke: var(--amber); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.7rem; margin-bottom: .6rem; }
.service-main p { color: var(--muted); max-width: 50em; margin: 0; }
.service-tag { font-weight: 600; font-size: .92rem; color: var(--navy); background: #fbe9bb; padding: .35rem .8rem; border-radius: 99px; margin: .3rem 0 0; white-space: nowrap; }

/* Why */
.why { background: var(--navy); color: #e8edf7; }
.why-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.why-head { position: sticky; top: 110px; }
.why h2 { color: var(--white); margin-bottom: 1.4rem; }
.why-head p { color: #aab6d0; font-size: 1.15rem; margin-bottom: 2rem; }
.why-items article { padding: 1.8rem 0 1.8rem 2rem; border-left: 3px solid #2c3f6b; transition: border-color .25s; }
.why-items article:hover { border-color: var(--amber); }
.why-items h3 { color: var(--white); font-size: 1.45rem; margin-bottom: .5rem; }
.why-items p { color: #aab6d0; margin: 0; max-width: 40em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }
.contact-info h2 { margin-bottom: 1.2rem; }
.contact-info > p { color: var(--muted); font-size: 1.15rem; max-width: 30em; margin-bottom: 2rem; }
address { font-style: normal; border-top: 2px solid var(--navy); }
address div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
address span { display: block; font-size: .85rem; color: var(--muted); }
address a { font-weight: 600; }
.form { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 2.4rem; box-shadow: 0 24px 50px -36px rgba(16,28,54,.5); }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); padding: .8rem .95rem; background: var(--paper); border: 1.5px solid transparent; border-radius: 6px; transition: border-color .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: var(--white); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #b3261e; }
.error { color: #b3261e; font-size: .9rem; margin: .3rem 0 0; min-height: 0; }
.form-status { margin: 1rem 0 0; font-weight: 500; }
.form-status.ok { color: #1c6b46; }

/* Footer */
.site-footer { background: #0a1329; color: #aab6d0; padding-top: 4rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.foot-brand { font: 800 1.4rem var(--head); color: var(--white); margin-bottom: .5rem; }
.foot-title { color: var(--white); font-weight: 600; margin-bottom: .6rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.foot-bottom { border-top: 1px solid #1d2c4d; padding: 1.4rem 0; font-size: .92rem; }
.foot-bottom p { margin: 0; }

/* Scroll reveal */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1060px) {
  .hero-grid, .about-grid, .why-grid, .contact-grid, .section-head { grid-template-columns: 1fr; gap: 3rem; }
  .why-head { position: static; }
  .section-head { gap: 1.2rem; }
  .band-grid { grid-template-columns: 1fr; gap: .8rem; }
  .code-card { right: .5rem; }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1.5rem 1.5rem; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 1rem; border: 0 !important; }
  .service { grid-template-columns: 56px 1fr; gap: 1.2rem; }
  .service-icon { width: 52px; height: 52px; }
  .service-tag { grid-column: 2; justify-self: start; }
  .service h3 { font-size: 1.4rem; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 2rem); }
  .hero { padding: 3.5rem 0; }
  .section { padding: 4.2rem 0; }
  .hero-facts { grid-template-columns: 1fr; gap: 1rem; }
  .about-blocks { grid-template-columns: 1fr; }
  .about-blocks article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 1.4rem; }
  .code-card { position: static; margin-top: 1rem; }
  .form { padding: 1.5rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
