:root {
  --bg: #030506;
  --panel: #090d0f;
  --panel-2: #0e1215;
  --line: rgba(255, 100, 0, 0.32);
  --line-soft: rgba(255, 100, 0, 0.14);
  --text: #f3f5f4;
  --muted: #9aa0a2;
  --dim: #5e666a;
  --orange: #ff5a00;
  --orange-2: #ff8a00;
  --orange-dark: #311000;
  --max: 1510px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 72% 8%, rgba(255, 92, 0, 0.19), transparent 33vw),
    linear-gradient(180deg, #030506 0%, #05090b 52%, #020405 100%);
  color: var(--text);
  font-family:
    "Rajdhani", "Bahnschrift", "Agency FB", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, black 12%, black 70%, transparent);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.page-frame {
  position: fixed;
  inset: 14px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 91, 0, 0.28);
  clip-path: polygon(38px 0, calc(100% - 38px) 0, 100% 38px, 100% calc(100% - 38px), calc(100% - 38px) 100%, 38px 100%, 0 calc(100% - 38px), 0 38px);
}

.site-header {
  position: fixed;
  z-index: 35;
  top: 14px;
  left: 14px;
  right: 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  height: 72px;
  padding: 0 clamp(22px, 5vw, 72px);
  background: linear-gradient(90deg, rgba(2, 4, 5, 0.95), rgba(6, 9, 10, 0.72), rgba(2, 4, 5, 0.95));
  border-bottom: 1px solid rgba(255, 91, 0, 0.16);
  backdrop-filter: blur(14px);
}

.brand,
.nav-links,
.header-actions,
.hero-actions,
.feature-rail,
.rail-item,
.editor-bar,
.stat-strip,
.site-footer,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  color: transparent;
  font-size: 0;
  border: 0;
  background: url("assets/forge-icon.png") center / contain no-repeat;
  filter: drop-shadow(0 0 14px rgba(255, 90, 0, 0.42));
}

.brand-mark.mini {
  width: 34px;
  height: 34px;
  font-size: 0;
}

.brand-name em {
  color: var(--orange);
  font-style: normal;
}

.nav-links {
  justify-content: center;
  gap: clamp(20px, 4vw, 56px);
  color: #d6d8d8;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--orange);
  opacity: 0;
}

.nav-links a:hover,
.nav-links .active {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links .active::after {
  opacity: 1;
}

.header-actions {
  gap: 18px;
}

.language-select {
  display: flex;
  border: 1px solid rgba(255, 91, 0, 0.32);
  background: rgba(2, 4, 5, 0.72);
}

.language-select button {
  min-width: 38px;
  height: 36px;
  border: 0;
  border-right: 1px solid rgba(255, 91, 0, 0.24);
  background: transparent;
  color: #aeb4b5;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.language-select button:last-child {
  border-right: 0;
}

.language-select button.is-active {
  background: var(--orange);
  color: #fff;
}

.github-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.github-link:hover {
  border-color: var(--line);
  color: var(--orange);
}

.hud-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 28px;
  color: #fff;
  border: 1px solid var(--orange);
  background: rgba(255, 90, 0, 0.06);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.hud-button.small {
  min-height: 44px;
  padding: 0 26px;
  color: var(--orange-2);
}

.hud-button.active-download {
  background: rgba(255, 90, 0, 0.18);
  color: #fff;
}

.hud-button.primary {
  background: linear-gradient(135deg, #ff4d00, #ff8500);
  border-color: #ff6a00;
  color: #fff;
  box-shadow: 0 0 28px rgba(255, 90, 0, 0.28);
}

.hud-button.ghost {
  background: rgba(2, 4, 5, 0.66);
}

.hud-button.block {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  font-size: 12px;
}

.hero {
  position: relative;
  min-height: 680px;
  height: min(850px, 72vw);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.hero-canvas,
.hero-vignette {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  width: 100%;
  height: 100%;
}

.hero-vignette {
  background:
    linear-gradient(90deg, rgba(3, 5, 6, 0.98) 0%, rgba(3, 5, 6, 0.84) 31%, rgba(3, 5, 6, 0.18) 76%, rgba(3, 5, 6, 0.72) 100%),
    linear-gradient(180deg, rgba(3, 5, 6, 0.2) 0%, rgba(3, 5, 6, 0.08) 48%, rgba(3, 5, 6, 0.96) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(620px, calc(100% - 44px));
  margin-left: clamp(32px, 8vw, 128px);
  padding-top: 74px;
}

.system-label {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: #f7f7f5;
  font-size: clamp(50px, 6.6vw, 96px);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow:
    0 2px 0 #8e9494,
    0 6px 18px rgba(0, 0, 0, 0.7);
}

.hero-copy {
  max-width: 520px;
  margin-bottom: 34px;
  color: #b4b8b9;
  font-size: 19px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 20px;
}

.feature-rail {
  position: relative;
  z-index: 4;
  width: min(var(--max), calc(100% - 56px));
  min-height: 98px;
  margin: -1px auto 0;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(4, 7, 8, 0.96), rgba(10, 15, 17, 0.9), rgba(4, 7, 8, 0.96));
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 12px), calc(100% - 12px) 100%, 12px 100%, 0 calc(100% - 12px), 0 22px);
}

.rail-item {
  flex: 1;
  min-width: 0;
  gap: 18px;
  min-height: 98px;
  padding: 18px 34px;
  border-right: 1px solid var(--line-soft);
}

.rail-item:last-child {
  border-right: 0;
}

.rail-item h2 {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rail-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.rail-icon {
  position: relative;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.rail-icon::before,
.rail-icon::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid var(--orange);
}

.rail-icon.stack::before {
  transform: translateY(-6px) rotate(45deg);
}

.rail-icon.stack::after {
  transform: translateY(7px) rotate(45deg);
}

.rail-icon.monitor::before {
  inset: 16px 12px 19px;
}

.rail-icon.monitor::after {
  inset: auto 18px 12px;
  height: 8px;
  border-top: 2px solid var(--orange);
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
}

.rail-icon.code::before {
  content: "</>";
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--orange);
  font-size: 16px;
  font-weight: 950;
}

.showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 300px 230px;
  gap: 34px;
  width: min(var(--max), calc(100% - 56px));
  margin: 30px auto 0;
  padding: 0 0 34px;
}

.editor-window {
  overflow: hidden;
  min-height: 390px;
  border: 1px solid rgba(255, 91, 0, 0.38);
  background: rgba(7, 10, 11, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

.editor-bar {
  gap: 18px;
  height: 38px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 91, 0, 0.18);
  color: #858b8d;
  font-size: 12px;
  font-weight: 800;
}

.dots {
  display: flex;
  gap: 7px;
}

.dots i {
  width: 7px;
  height: 7px;
  background: #7a8588;
  border-radius: 50%;
}

.dots i:nth-child(1) {
  background: #ff5a00;
}

.dots i:nth-child(2) {
  background: #ffaa33;
}

.dots i:nth-child(3) {
  background: #67d88f;
}

.editor-bar .play {
  margin-left: auto;
  color: var(--orange);
}

.editor-grid {
  display: grid;
  grid-template-columns: 170px 1fr 210px;
  min-height: 350px;
}

.editor-panel {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px;
  background: #070a0b;
  border-right: 1px solid rgba(255, 91, 0, 0.14);
  color: #8f9799;
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.editor-panel b {
  margin: 0 0 5px;
  color: #fff;
}

.editor-panel strong {
  color: #e5e8e8;
}

.right-panel {
  border-right: 0;
  border-left: 1px solid rgba(255, 91, 0, 0.14);
  text-transform: none;
}

.right-panel dl {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
}

.right-panel div {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 9px;
  min-width: 0;
}

.right-panel dt {
  color: #858b8d;
}

.right-panel dd {
  margin: 0;
  color: #dfe3e3;
  white-space: nowrap;
}

.scene-preview {
  min-height: 350px;
  background: #050708;
}

.scene-preview canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.creator-copy {
  padding-top: 38px;
}

.creator-copy h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 34px;
  font-weight: 950;
  line-height: 0.95;
  text-transform: uppercase;
}

.creator-copy h2::first-line {
  color: var(--orange);
}

.creator-copy p {
  color: #a9afb0;
  font-size: 16px;
}

.creator-copy ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.creator-copy li {
  padding: 11px 0 11px 32px;
  border-bottom: 1px solid rgba(255, 91, 0, 0.13);
  color: #e2e6e6;
  font-weight: 800;
}

.creator-copy li::before {
  content: "<>";
  margin-left: -32px;
  margin-right: 13px;
  color: var(--orange);
}

.phone-card {
  width: 224px;
  min-height: 410px;
  padding: 18px;
  border: 2px solid #363b3d;
  border-radius: 30px;
  background: #050708;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 38px rgba(255, 90, 0, 0.1);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.phone-top span:last-child {
  width: 22px;
  height: 12px;
  border-top: 2px solid #d9dddd;
  border-bottom: 2px solid #d9dddd;
}

.phone-art {
  overflow: hidden;
  height: 132px;
  border: 1px solid rgba(255, 91, 0, 0.22);
  background: #090b0c;
}

.phone-art canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.phone-card h2 {
  margin: 16px 0 10px;
  font-size: 25px;
  line-height: 0.9;
  text-transform: uppercase;
}

.phone-card p {
  color: #aeb4b5;
  font-size: 13px;
}

.stat-strip {
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 18px;
  width: min(var(--max), calc(100% - 56px));
  min-height: 86px;
  margin: 0 auto 28px;
  padding: 0 38px;
  border: 1px solid var(--line-soft);
  background: rgba(5, 8, 9, 0.88);
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
}

.stat-strip div {
  display: grid;
  gap: 2px;
  min-width: 92px;
  text-align: center;
  text-transform: uppercase;
}

.stat-strip strong {
  color: var(--orange);
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
}

.stat-strip span {
  color: #aab0b1;
  font-size: 12px;
  font-weight: 800;
}

.stat-strip .tagline {
  min-width: 230px;
  color: var(--orange);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 15px;
  text-align: right;
  text-transform: none;
}

.start-panel {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 520px);
  gap: 40px;
  align-items: center;
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto 42px;
  padding: 34px 46px;
  border: 1px solid var(--line);
  background:
    linear-gradient(120deg, rgba(255, 90, 0, 0.1), transparent 34%),
    rgba(6, 9, 10, 0.92);
}

.start-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.start-panel p {
  margin-bottom: 0;
  color: #aeb4b5;
  font-size: 17px;
}

.command-stack {
  display: grid;
  gap: 12px;
}

.command-stack code {
  overflow-x: auto;
  border: 1px solid rgba(255, 91, 0, 0.28);
  background: #020405;
  color: #ff9b3d;
  padding: 14px 16px;
  white-space: nowrap;
}

.site-footer {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
  padding: 0 clamp(36px, 6vw, 92px) 16px;
  color: #7d8587;
  font-size: 12px;
}

.site-footer nav {
  gap: 34px;
}

.site-footer a:hover {
  color: var(--orange);
}

.subpage {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  padding: 150px 0 58px;
}

.page-hero {
  min-height: 330px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line-soft);
  padding: clamp(30px, 6vw, 72px);
  background:
    radial-gradient(circle at 74% 20%, rgba(255, 90, 0, 0.18), transparent 34%),
    linear-gradient(120deg, rgba(255, 90, 0, 0.09), rgba(3, 5, 6, 0.9) 38%, rgba(3, 5, 6, 0.96));
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%, 0 24px);
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 20px;
  font-size: clamp(42px, 6vw, 84px);
}

.page-hero p:not(.system-label) {
  max-width: 720px;
  margin-bottom: 0;
  color: #b5bbbc;
  font-size: 20px;
}

.card-grid,
.content-grid,
.download-panel {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-grid,
.download-panel {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.hud-card,
.legal-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 90, 0, 0.08), transparent 42%),
    rgba(6, 9, 10, 0.92);
  padding: 28px;
}

.hud-card h2,
.legal-panel h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 25px;
  font-weight: 950;
  text-transform: uppercase;
}

.hud-card p,
.legal-panel p {
  color: #aeb4b5;
  font-size: 16px;
}

.hud-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #dce1e1;
  font-weight: 800;
}

.hud-list li {
  border-bottom: 1px solid rgba(255, 91, 0, 0.13);
  padding: 10px 0;
}

.page-stats {
  margin-top: 34px;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(74px, 1fr));
  gap: 12px;
}

.countdown div {
  display: grid;
  place-items: center;
  min-height: 96px;
  border: 1px solid rgba(255, 91, 0, 0.32);
  background: #020405;
  text-align: center;
}

.countdown strong {
  color: var(--orange);
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 950;
  line-height: 1;
}

.countdown span {
  color: #aeb4b5;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.countdown.large div {
  min-height: 150px;
}

.download-hero {
  min-height: 390px;
}

.legal-panel {
  margin-top: 34px;
  max-width: 900px;
  background: #06090a;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .nav-links {
    display: none;
  }

  .showcase {
    grid-template-columns: 1fr;
  }

  .phone-card {
    width: min(360px, 100%);
  }

  .editor-grid {
    grid-template-columns: 140px 1fr;
  }

  .right-panel {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(255, 91, 0, 0.14);
  }

  .feature-rail {
    flex-wrap: wrap;
  }

  .rail-item {
    flex-basis: calc(50% - 1px);
  }
}

@media (max-width: 720px) {
  .page-frame {
    inset: 8px;
  }

  .site-header {
    top: 8px;
    left: 8px;
    right: 8px;
    height: 64px;
    padding: 0 16px;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 0;
  }

  .header-actions .github-link {
    display: none;
  }

  .header-actions {
    gap: 8px;
  }

  .language-select button {
    min-width: 32px;
    height: 34px;
    font-size: 11px;
  }

  .hud-button.small {
    min-height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .hero {
    height: auto;
    min-height: 760px;
  }

  .hero-content {
    width: min(100% - 32px, 620px);
    margin: 0 auto;
    padding-top: 86px;
  }

  h1 {
    font-size: 48px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-actions {
    gap: 12px;
  }

  .hud-button {
    width: 100%;
  }

  .feature-rail,
  .showcase,
  .stat-strip,
  .start-panel {
    width: min(100% - 28px, var(--max));
  }

  .rail-item {
    flex-basis: 100%;
    padding: 18px;
  }

  .editor-grid {
    grid-template-columns: 1fr;
  }

  .editor-panel {
    display: none;
  }

  .scene-preview {
    min-height: 300px;
  }

  .stat-strip,
  .start-panel,
  .site-footer {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .stat-strip {
    flex-wrap: wrap;
    justify-content: center;
    clip-path: none;
  }

  .stat-strip .tagline {
    min-width: 0;
    text-align: center;
  }

  .site-footer,
  .site-footer nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .subpage {
    width: min(100% - 28px, var(--max));
    padding-top: 104px;
  }

  .card-grid,
  .content-grid,
  .download-panel,
  .countdown {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 300px;
    padding: 28px;
  }

  .page-hero h1 {
    font-size: 42px;
  }

  .command-stack code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .brand-name {
    display: none;
  }

  .site-header {
    gap: 10px;
  }
}
