:root {
  --bg: #020817;
  --panel: rgba(7, 22, 48, 0.72);
  --panel-strong: rgba(8, 35, 76, 0.9);
  --text: #eaf4ff;
  --muted: #9fb7d4;
  --blue: #18a8ff;
  --blue-dark: #0868ff;
  --line: rgba(101, 192, 255, 0.22);
  --glow: 0 0 28px rgba(24, 168, 255, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #06345e 0%, var(--bg) 48%, #01040c 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(2, 8, 23, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand img { width: 190px; filter: drop-shadow(0 0 18px rgba(24,168,255,.55)); }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); background: rgba(24,168,255,0.12); }
.nav-cta { border: 1px solid var(--line); box-shadow: inset 0 0 18px rgba(24,168,255,0.12); }
.nav-toggle { display: none; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; font-size: 1.2rem; }

.section { width: min(1160px, calc(100% - 36px)); margin: 0 auto; padding: 92px 0; }
.page-main { min-height: 72vh; }
.hero { text-align: center; padding-top: 70px; }
.hero-logo-wrap { display: flex; justify-content: center; }
.hero-logo {
  width: min(1050px, 100vw);
  max-width: 100%;
  transform: scale(1.05);
}
.eyebrow { color: #7bd5ff; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 800; font-size: 0.8rem; }
h1 { font-size: clamp(2.5rem, 7vw, 5.8rem); line-height: 0.95; margin: 18px auto; max-width: 960px; letter-spacing: -0.06em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.04em; }
h3 { margin: 14px 0 8px; }
p { color: var(--muted); line-height: 1.75; }
.hero-copy { max-width: 720px; margin: 0 auto 30px; font-size: 1.13rem; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 14px 22px; font-weight: 800; text-decoration: none; cursor: pointer; transition: 0.25s ease; }
.btn.primary { color: white; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); box-shadow: var(--glow); }
.btn.secondary { color: var(--text); background: rgba(255,255,255,0.06); border: 1px solid var(--line); }
.btn:hover { transform: translateY(-3px); }
.section-heading { max-width: 740px; }
.feature-grid, .engine-grid, .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.engine-grid { grid-template-columns: repeat(3, 1fr); }
.glass-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(8,35,76,0.78), rgba(3,13,31,0.65));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 22px 60px rgba(0,0,0,0.28);
  backdrop-filter: blur(16px);
  transition: 0.25s ease;
}
.glass-card:hover { transform: translateY(-6px); border-color: rgba(100,205,255,0.58); box-shadow: var(--glow); }
.icon { font-size: 2.2rem; }
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.simulator label, .contact-form label { display: grid; gap: 8px; margin-bottom: 16px; color: var(--text); font-weight: 700; }
select, input, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(1, 7, 18, 0.68);
  color: var(--text);
  outline: none;
}
textarea { resize: vertical; }
.concept-output, .form-status { margin-top: 18px; color: #bfeaff; }
.stat { text-align: center; }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 3.4rem); color: white; text-shadow: 0 0 20px rgba(24,168,255,0.62); }
.stat span { color: var(--muted); }
.timeline { display: grid; gap: 16px; margin-top: 30px; }
.step { display: grid; grid-template-columns: 70px 180px 1fr; align-items: center; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.step span { color: var(--blue); font-weight: 900; font-size: 1.5rem; }
.step h3 { margin: 0; }
.step p { margin: 0; }
ul { color: var(--muted); line-height: 1.8; padding-left: 20px; }
.text-link { color: #7bd5ff; text-decoration: none; font-weight: 800; }
.contact-email { color: #7bd5ff; }
.site-footer { text-align: center; padding: 30px 20px 46px; border-top: 1px solid var(--line); background: rgba(1,5,14,0.5); }
.reveal { opacity: 1; transform: none; transition: 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@keyframes floatLogo { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 76px; right: 18px; left: 18px; display: none; flex-direction: column; padding: 18px; background: rgba(2,8,23,0.95); border: 1px solid var(--line); border-radius: 22px; }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; text-align: center; }
  .feature-grid, .engine-grid, .stats-grid, .split-section { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  .brand img { width: 132px; }
}

/* Responsive polish added for desktop, tablets, and phones */
img, video, canvas, svg { max-width: 100%; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
.site-header { gap: 16px; }
.site-nav { flex-wrap: wrap; justify-content: flex-end; }
.hero-logo {
  width: min(1050px, 100vw);
  max-width: 100%;
  transform: scale(1.05);
}
.glass-card, .btn, select, input, textarea { min-width: 0; }

@media (min-width: 1200px) {
  .section { width: min(1240px, calc(100% - 72px)); }
  .hero-logo {
  width: min(1050px, 100vw);
  max-width: 100%;
  transform: scale(1.05);
}
}

@media (max-width: 1100px) {
  .site-header { padding-inline: 24px; }
  .brand img { width: 160px; }
  .site-nav { gap: 4px; }
  .site-nav a { padding: 9px 11px; font-size: .95rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .site-header { align-items: center; }
  .site-nav { box-shadow: 0 20px 70px rgba(0,0,0,.45); }
  .section { width: min(100% - 28px, 760px); padding: 64px 0; }
  .hero { padding-top: 48px; }
  .hero-logo {
  width: min(1050px, 100vw);
  max-width: 100%;
  transform: scale(1.05);
}
  .hero-actions .btn { flex: 1 1 210px; }
  .glass-card { padding: 20px; border-radius: 22px; }
  
}

@media (max-width: 560px) {
  body::before { background-size: 44px 44px; }
  .site-header { padding: 12px 14px; }
  .brand img { width: 132px; }
  .site-nav { top: 64px; left: 12px; right: 12px; border-radius: 18px; max-height: calc(100vh - 82px); overflow-y: auto; }
  .site-nav a { padding: 13px 12px; font-size: 1rem; }
  .nav-toggle { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .section { width: min(100% - 22px, 520px); padding: 48px 0; }
  .hero { padding-top: 34px; }
  .hero-logo {
  width: min(1050px, 100vw);
  max-width: 100%;
  transform: scale(1.05);
}
  .eyebrow { font-size: .72rem; letter-spacing: .13em; }
  h1 { font-size: clamp(2.1rem, 13vw, 3.6rem); letter-spacing: -0.045em; }
  h2 { font-size: clamp(1.65rem, 9vw, 2.35rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { gap: 10px; }
  .btn { width: 100%; padding: 14px 18px; min-height: 48px; }
  .feature-grid, .engine-grid, .stats-grid { gap: 14px; }
  .glass-card { padding: 18px; border-radius: 20px; }
  .step { padding: 18px; gap: 10px; }
  select, input, textarea { font-size: 16px; }
  .site-footer { padding-bottom: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
}


/* Added learning guide styles */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
  margin-top: 34px;
}

.article-stack {
  display: grid;
  gap: 22px;
}

.article-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 22px 70px rgba(0,0,0,0.22);
  backdrop-filter: blur(16px);
  margin: 24px 0;
}

.article-panel h2 {
  color: var(--text);
  margin-top: 0;
}

.article-panel h3 {
  color: #dff5ff;
}

.article-panel p,
.article-panel li {
  font-size: 1.02rem;
}

.article-sidebar {
  position: sticky;
  top: 104px;
}

.article-sidebar .glass-card {
  padding: 22px;
}

.article-sidebar a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 9px 0;
  border-bottom: 1px solid rgba(101,192,255,0.12);
}

.article-sidebar a:hover {
  color: var(--text);
}

.code-block {
  display: block;
  margin: 18px 0;
  padding: 18px;
  overflow-x: auto;
  white-space: pre;
  background: rgba(1, 6, 18, 0.78);
  border: 1px solid rgba(101,192,255,0.22);
  border-radius: 18px;
  color: #dff8ff;
  box-shadow: inset 0 0 26px rgba(24,168,255,0.08);
}

.info-callout {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(123,213,255,0.42);
  background: rgba(24,168,255,0.09);
  color: var(--text);
}

.dev-timeline {
  display: grid;
  gap: 16px;
  margin: 28px 0;
  counter-reset: devstep;
}

.timeline-entry {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  backdrop-filter: blur(16px);
}

.timeline-entry span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  font-weight: 900;
  box-shadow: var(--glow);
}

.timeline-entry h3 {
  margin-top: 0;
}

.mini-grid,
.system-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.mini-grid > div {
  padding: 18px;
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(101,192,255,0.14);
  border-radius: 18px;
}

.system-grid {
  margin: 34px 0;
}

.learning-links .glass-card {
  min-height: 260px;
}

@media (max-width: 940px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 560px) {
  .timeline-entry {
    grid-template-columns: 1fr;
  }

  .timeline-entry span {
    width: 44px;
    height: 44px;
  }
}



/* Added site expansion styles */
.compact-hero { padding-bottom: 34px; }
.announcement-card { text-align: center; max-width: 920px; margin: 0 auto; }
.announcement-card .btn { margin-top: 12px; }
.feature-grid-three { grid-template-columns: repeat(3, 1fr); }
.responsive-table { overflow-x: auto; padding: 0; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 820px; }
.comparison-table th, .comparison-table td { padding: 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; color: var(--muted); }
.comparison-table th { color: var(--text); background: rgba(24,168,255,.10); }
.comparison-table td strong { color: var(--text); }
.quiz-shell { display: grid; gap: 22px; }
.quiz-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.quiz-grid label { display: grid; gap: 8px; color: var(--text); font-weight: 800; }
.quiz-result { border: 1px solid var(--line); border-radius: 22px; padding: 20px; background: rgba(1,7,18,.44); }
.quiz-result h2 { margin-top: 0; }
.glossary-grid, .project-grid, .guide-grid, .learning-path-grid { width: min(1160px, calc(100% - 36px)); margin: 0 auto; padding: 30px 0 92px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { position: relative; overflow: hidden; }
.project-status { display: inline-flex; margin-bottom: 10px; padding: 7px 10px; border-radius: 999px; color: #dff5ff; background: rgba(24,168,255,.16); border: 1px solid var(--line); font-size: .84rem; font-weight: 900; }
.cta-panel { text-align: center; }
.timeline-map { display: grid; gap: 16px; }
@media (max-width: 1100px) { .feature-grid-three, .glossary-grid, .project-grid, .guide-grid, .learning-path-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .feature-grid-three, .quiz-grid, .glossary-grid, .project-grid, .guide-grid, .learning-path-grid { grid-template-columns: 1fr; } .glossary-grid, .project-grid, .guide-grid, .learning-path-grid { width: min(100% - 22px, 520px); padding-bottom: 54px; } .comparison-table { min-width: 720px; } }

/* Full feature upgrade */
body[data-theme="green-terminal"]{--blue:#52ffb8;--blue-dark:#0b9f71;--cyan:#85ffd2;--line:rgba(112,255,200,.25);background:radial-gradient(circle at top,#06442f 0%,#020b09 55%,#000 100%)}
body[data-theme="orange-retro"]{--blue:#ff9d2e;--blue-dark:#ff5a1f;--cyan:#ffd18b;--line:rgba(255,176,82,.26);background:radial-gradient(circle at top,#522608 0%,#100704 55%,#000 100%)}
body[data-theme="purple-neon"]{--blue:#9b7cff;--blue-dark:#5b4bff;--cyan:#e7c2ff;--line:rgba(203,169,255,.25);background:radial-gradient(circle at top,#32115d 0%,#080516 58%,#000 100%)}
.floating-tools{position:fixed;right:18px;bottom:18px;z-index:50;display:grid;gap:10px}.tool-btn{border:1px solid var(--line);background:rgba(4,16,34,.82);color:var(--text);border-radius:999px;padding:12px 14px;font-weight:900;cursor:pointer;box-shadow:0 12px 35px rgba(0,0,0,.28)}.theme-menu{position:fixed;right:18px;bottom:116px;z-index:51;display:none;gap:8px;grid-template-columns:1fr;background:rgba(3,12,27,.94);border:1px solid var(--line);border-radius:18px;padding:12px}.theme-menu.open{display:grid}.theme-menu button{border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--text);border-radius:12px;padding:10px;cursor:pointer}.terminal-panel{position:fixed;inset:auto 18px 18px auto;width:min(620px,calc(100vw - 36px));height:390px;z-index:60;display:none;background:rgba(0,8,12,.96);border:1px solid rgba(82,255,184,.4);border-radius:18px;box-shadow:0 25px 80px rgba(0,0,0,.45);overflow:hidden}.terminal-panel.open{display:grid;grid-template-rows:auto 1fr auto}.terminal-head{display:flex;justify-content:space-between;padding:12px 14px;border-bottom:1px solid rgba(82,255,184,.25);color:#8affd2}.terminal-output{padding:14px;overflow:auto;font-family:ui-monospace,Consolas,monospace;color:#8affd2;font-size:.92rem}.terminal-input{display:flex;border-top:1px solid rgba(82,255,184,.25)}.terminal-input span{padding:12px;color:#52ffb8}.terminal-input input{border:0;border-radius:0;background:#020707;color:#8affd2;font-family:ui-monospace,Consolas,monospace}.achievement-toast{position:fixed;left:50%;bottom:20px;z-index:70;transform:translate(-50%,30px);opacity:0;padding:14px 18px;border:1px solid var(--line);border-radius:999px;background:rgba(3,15,32,.96);box-shadow:var(--glow);transition:.35s ease}.achievement-toast.show{transform:translate(-50%,0);opacity:1}
.engine-lab{display:grid;gap:18px}.lab-controls{display:flex;gap:12px;flex-wrap:wrap}.lab-controls label{padding:10px 12px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.05);font-weight:800}.engine-lab canvas{width:100%;border:1px solid var(--line);border-radius:22px;background:linear-gradient(#071832,#020817)}.lab-readout{color:#bfeaff;font-weight:800}.skill-tree{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;position:relative}.skill-node span{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;background:linear-gradient(135deg,var(--blue),var(--blue-dark));font-weight:900}.skill-node{position:relative}.skill-node:hover{transform:translateY(-4px)}.public-gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:18px}.public-media-card img,.public-media-card video{width:100%;height:250px;object-fit:contain;border-radius:18px;background:rgba(0,0,0,.25)}.newsletter-form{display:flex;gap:12px;flex-wrap:wrap}.newsletter-form input{flex:1 1 260px}.engine-demo-link{display:inline-flex}@media(max-width:900px){.skill-tree{grid-template-columns:1fr}.floating-tools{right:12px;bottom:12px}.terminal-panel{inset:auto 10px 10px 10px;width:auto}}
/* Contact page: single form layout after removing inbox explainer card */
.contact-only {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: 1fr !important;
}
.contact-only .contact-form {
  width: 100%;
}

/* Accelerometer controls for the interactive sandbox */
.accelerometer-panel{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px;border:1px solid var(--line);border-radius:18px;background:rgba(255,255,255,.045)}
.accelerometer-panel .btn{border:1px solid var(--line);background:rgba(255,255,255,.06);color:var(--text);border-radius:999px;padding:10px 14px;font-weight:900;cursor:pointer}
.accelerometer-panel .btn:hover{border-color:rgba(90,210,255,.72);box-shadow:0 0 20px rgba(69,214,255,.16)}
#motionStatus{color:#b9d6ee;font-weight:800;line-height:1.4}
@media(max-width:700px){.accelerometer-panel{align-items:stretch}.accelerometer-panel .btn{width:100%}#motionStatus{font-size:.92rem}}


/* Neat content pass: tighter spacing and less visual clutter */
.section-heading p:not(.eyebrow), .admin-editor-subtitle, .editor-help, .fineprint, .role-note, .hint { display: none !important; }
.glass-card p:empty { display:none !important; }
.site-nav a.nav-cta, .btn, button { letter-spacing: .01em; }

.site-nav a.signed-in-account,
.hero-actions a.signed-in-account {
  max-width: 15rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   GameEngine Studios — Professional UI Refresh (2026-07)
   Visual-only overrides. No application behavior is changed.
   ========================================================= */
:root {
  --bg: #07101f;
  --bg-deep: #040a14;
  --surface: rgba(15, 29, 50, .88);
  --surface-solid: #0f1d32;
  --surface-soft: rgba(255, 255, 255, .045);
  --panel: rgba(15, 29, 50, .82);
  --panel-strong: rgba(18, 38, 65, .96);
  --text: #f4f8fc;
  --muted: #a8b7c9;
  --blue: #3d9cff;
  --blue-dark: #176ce8;
  --cyan: #71d7ff;
  --line: rgba(161, 195, 226, .16);
  --line-strong: rgba(113, 215, 255, .34);
  --success: #49c78e;
  --danger: #f36d7a;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, .18);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, .28);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, .36);
  --glow: 0 12px 32px rgba(31, 126, 232, .28);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
}

html { color-scheme: dark; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% -10%, rgba(61, 156, 255, .17), transparent 34rem),
    radial-gradient(circle at 92% 8%, rgba(113, 215, 255, .08), transparent 28rem),
    linear-gradient(180deg, #081425 0%, var(--bg) 44%, var(--bg-deep) 100%);
}
body::before {
  opacity: .22;
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}
::selection { background: rgba(61, 156, 255, .35); color: #fff; }
:focus-visible { outline: 3px solid rgba(113, 215, 255, .72); outline-offset: 3px; }

.site-header {
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(5, 12, 24, .86);
  border-bottom: 1px solid rgba(161, 195, 226, .13);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .16);
  backdrop-filter: blur(20px) saturate(130%);
}
.site-nav {
  width: 100%;
  justify-content: center;
  gap: 3px;
}
.site-nav a {
  position: relative;
  padding: 9px 12px;
  border-radius: 10px;
  color: #b8c6d6;
  font-size: .92rem;
  font-weight: 650;
  letter-spacing: .005em;
}
.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: rgba(61, 156, 255, .10);
}
.site-nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.site-nav .nav-cta {
  margin-left: 7px;
  color: #fff;
  border: 1px solid rgba(113, 215, 255, .26);
  background: rgba(61, 156, 255, .12);
  box-shadow: none;
}
.nav-toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-color: var(--line);
  background: var(--surface-soft);
}

.section { width: min(1180px, calc(100% - 44px)); padding: 78px 0; }
.hero {
  min-height: min(780px, calc(100vh - 72px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 42px;
  padding-bottom: 76px;
}
.hero-logo-wrap { width: min(880px, 94vw); }
.hero-logo {
  width: 100%;
  transform: none;
  filter: drop-shadow(0 26px 54px rgba(0, 0, 0, .42));
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: .75rem;
  letter-spacing: .16em;
  font-weight: 800;
}
h1 {
  max-width: 920px;
  margin: 14px auto 20px;
  font-size: clamp(2.65rem, 6.4vw, 5.25rem);
  line-height: 1.01;
  letter-spacing: -.052em;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.85rem, 3.6vw, 3rem);
  line-height: 1.12;
  letter-spacing: -.038em;
  text-wrap: balance;
}
h3 { line-height: 1.25; letter-spacing: -.018em; }
p { color: var(--muted); line-height: 1.72; }
.hero-copy { max-width: 680px; margin-bottom: 34px; color: #b8c7d8; font-size: 1.08rem; }
.hero-actions { gap: 12px; }
.btn {
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 750;
  letter-spacing: .005em;
  box-shadow: none;
}
.btn.primary {
  background: linear-gradient(135deg, #3d9cff, #2476e8);
  box-shadow: 0 10px 26px rgba(35, 119, 230, .28);
}
.btn.secondary {
  color: #eef6ff;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
}
.btn:hover { transform: translateY(-2px); }
.btn.primary:hover { box-shadow: 0 14px 32px rgba(35, 119, 230, .36); }

.section-heading { max-width: 760px; margin-bottom: 26px; }
.section-heading h2 { margin-bottom: 10px; }
.feature-grid,
.engine-grid,
.stats-grid { gap: 20px; }
.glass-card,
.article-panel,
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(18, 36, 61, .91), rgba(10, 22, 40, .88));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px) saturate(115%);
}
.glass-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
  pointer-events: none;
}
.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(113, 215, 255, .28);
  box-shadow: 0 24px 62px rgba(0, 0, 0, .34);
}
.icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  font-size: 1.55rem;
  background: rgba(61, 156, 255, .10);
  border: 1px solid rgba(113, 215, 255, .18);
}
.text-link { color: #83dcff; }
.text-link:hover { color: #fff; }
.stats-grid .stat { padding: 28px 20px; }
.stat strong { font-size: clamp(2rem, 4vw, 3.2rem); text-shadow: none; }
.stat span { display: block; margin-top: 4px; font-size: .9rem; }

select,
input,
textarea {
  min-height: 46px;
  border-radius: 12px;
  border-color: rgba(161, 195, 226, .19);
  background: rgba(4, 12, 24, .68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
select:focus,
input:focus,
textarea:focus {
  border-color: rgba(113, 215, 255, .58);
  background: rgba(7, 18, 34, .92);
  box-shadow: 0 0 0 4px rgba(61, 156, 255, .10);
}

.announcement-card {
  padding: clamp(28px, 5vw, 48px);
  border-color: rgba(113, 215, 255, .24);
  background:
    radial-gradient(circle at 85% 20%, rgba(61, 156, 255, .17), transparent 22rem),
    linear-gradient(145deg, rgba(19, 42, 72, .94), rgba(9, 21, 39, .92));
}
.cta-panel { text-align: center; padding: clamp(30px, 5vw, 52px); }
.newsletter-form { display: flex; max-width: 620px; gap: 10px; margin: 24px auto 0; }
.newsletter-form input { flex: 1; }
.newsletter-form .btn { width: auto; white-space: nowrap; }
.site-footer {
  padding: 34px 20px 42px;
  background: rgba(3, 9, 18, .72);
  border-top-color: rgba(161, 195, 226, .12);
}
.site-footer p { margin: 0; font-size: .9rem; }

@media (max-width: 1100px) {
  .site-nav a { padding: 8px 9px; font-size: .86rem; }
}
@media (max-width: 900px) {
  .site-header { min-height: 64px; }
  .site-nav {
    top: 68px;
    left: 14px;
    right: 14px;
    width: auto;
    max-height: calc(100vh - 84px);
    padding: 12px;
    border-radius: 18px;
    background: rgba(8, 18, 33, .98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  .site-nav a { padding: 12px 14px; border-radius: 10px; text-align: left; }
  .site-nav a.active::after { display: none; }
  .site-nav .nav-cta { margin-left: 0; }
  .section { width: min(100% - 30px, 760px); padding: 60px 0; }
  .hero { min-height: auto; padding-top: 48px; }
}
@media (max-width: 560px) {
  .section { width: min(100% - 22px, 520px); padding: 46px 0; }
  .hero { padding-top: 30px; padding-bottom: 58px; }
  .hero-logo-wrap { width: min(100%, 560px); }
  h1 { font-size: clamp(2.25rem, 12vw, 3.45rem); }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
  .glass-card { padding: 20px; border-radius: 18px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; }
}

/* =========================================================
   GAMEENGINE STUDIOS — RESPONSIVE TEXT FIT PATCH
   Prevents clipping, overflow, and awkward wrapping.
   ========================================================= */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

*, *::before, *::after {
  min-width: 0;
}

p, li, dd, dt, blockquote, figcaption,
.card, .panel, .section, .content, .hero-content,
.feature-card, .info-card, .service-card, .update-card {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

h1, h2, h3, h4, h5, h6 {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 2.8vw, 1.75rem); }

img, video, iframe, canvas, svg {
  max-width: 100%;
  height: auto;
}

header, nav, main, section, article, aside, footer,
.container, .wrapper, .grid, .row, .columns,
.hero, .hero-content, .card, .panel {
  max-width: 100%;
}

nav a, .nav-link, .navbar a, .site-nav a,
button, .button, .btn, input[type="submit"], input[type="button"] {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.25;
}

button, .button, .btn, input[type="submit"], input[type="button"] {
  min-height: 44px;
  height: auto;
  padding-block: .7rem;
}

input, select, textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

pre, code {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
}

td, th {
  overflow-wrap: anywhere;
  word-break: normal;
}

.table-wrap, .table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.flex, [class*="flex"], .row, .nav, .navbar, .actions, .button-row {
  flex-wrap: wrap;
}

.grid, [class*="grid"] {
  min-width: 0;
}

@media (max-width: 900px) {
  .container, .wrapper, main, section {
    width: min(100%, 100vw);
  }

  nav, .navbar, .site-nav, .nav-links {
    gap: .5rem;
  }

  nav a, .nav-link, .navbar a, .site-nav a {
    font-size: clamp(.82rem, 2.8vw, 1rem);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  h1 { font-size: clamp(1.8rem, 10vw, 2.65rem); }
  h2 { font-size: clamp(1.4rem, 7vw, 2rem); }
  h3 { font-size: clamp(1.12rem, 5vw, 1.5rem); }

  .container, .wrapper, section, main {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  button, .button, .btn, input[type="submit"], input[type="button"] {
    width: auto;
    max-width: 100%;
  }

  .actions, .button-row, .hero-actions {
    align-items: stretch;
  }

  .actions > *, .button-row > *, .hero-actions > * {
    flex: 1 1 100%;
  }
}
