:root {
  --black: #050505;
  --ink: #101010;
  --panel: #151515;
  --line: rgba(255, 255, 255, .12);
  --text: #f7f5f0;
  --muted: #a8a39a;
  --silver: #d8d9d6;
  --gold: #c9a96a;
  --gold-deep: #8d6d34;
  --jade: #7db6a3;
}

* { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--black);
  color: var(--text);
  font-family: "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

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

.ax-navbar {
  min-height: 72px;
  background: rgba(5, 5, 5, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
  transition: background .25s ease, min-height .25s ease;
}

.ax-navbar.scrolled {
  min-height: 60px;
  background: rgba(5, 5, 5, .94);
}

.ax-brand {
  display: inline-flex;
  align-items: center;
  padding-block: .25rem;
}

.brand-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.brand-logo-nav {
  height: 38px;
  max-width: 156px;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, .76);
  font-size: .94rem;
  padding-inline: .8rem;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus { color: var(--gold); }

.dropdown-menu {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(13, 13, 13, .96);
}

.dropdown-item { color: rgba(255, 255, 255, .78); }

.dropdown-item:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, .06);
}

.btn {
  border-radius: 4px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  white-space: normal;
}

.btn-gold {
  color: #090807;
  border: 1px solid var(--gold);
  background: var(--gold);
  font-weight: 650;
}

.btn-gold:hover {
  color: var(--black);
  background: #dfc17f;
  border-color: #dfc17f;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, .46);
  color: var(--text);
}

.nav-cta { min-width: 112px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.language-switch {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .85rem;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 4px;
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
}

.language-switch:hover,
.language-switch:focus {
  color: var(--gold);
  border-color: rgba(201, 169, 106, .62);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 92vh;
  padding-top: 72px;
  display: flex;
  align-items: stretch;
  background: #050505;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 25vh;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0), #050505);
  z-index: -1;
}

.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(420px, 58vw, 760px);
  opacity: .96;
}

.hero-media img {
  width: 100%;
  height: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  position: relative;
  padding-block: 7rem 8rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.6rem, 7vw, 8.8rem);
  line-height: .86;
  font-weight: 760;
}

.hero h1 span {
  display: block;
  margin-top: 1.2rem;
  color: var(--silver);
  font-size: clamp(1.8rem, 3.2vw, 4.2rem);
}

.hero .lead {
  max-width: 620px;
  margin: 2rem 0 .6rem;
  font-size: clamp(1.3rem, 2vw, 2rem);
  color: var(--text);
}

.hero-en {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.system-strip,
.content-band,
.product-suite,
.ai-stage,
.workflow-section,
.scenes-preview,
.cta-section {
  padding: clamp(4rem, 8vw, 8rem) 0;
}

.system-strip {
  background: #080808;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.system-strip h2,
.section-heading h2,
.cta-section h2,
.subpage-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 5.8rem);
  line-height: 1.02;
  font-weight: 720;
}

.system-chain {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  color: var(--muted);
}

.system-chain span,
.system-chain strong {
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
}

.system-chain strong { color: var(--gold); }

.product-suite { background: var(--black); }

.product-band {
  min-height: 68vh;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(320px, 1.14fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 6vw, 6rem) 0;
}

.product-band h2 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 6rem);
  line-height: .95;
}

.product-band h3 {
  margin: 1.25rem 0;
  color: var(--silver);
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.product-band p {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.product-band a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
}

.product-visual {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #111;
}

.product-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, .18);
  transform: perspective(900px) rotateX(58deg);
}

.product-visual::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 16%;
  width: 36%;
  height: 68%;
  border: 1px solid rgba(201, 169, 106, .46);
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(201, 169, 106, .13), rgba(255, 255, 255, .03));
}

.product-visual span {
  position: absolute;
  left: 1.3rem;
  bottom: 1.2rem;
  color: var(--gold);
  font-weight: 700;
}

.product-visual.hardware {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.product-visual.hardware::before,
.product-visual.hardware::after {
  content: none;
}

.product-visual.windows::after {
  width: 72%;
  height: 48%;
  top: 24%;
  border-color: rgba(125, 182, 163, .45);
}

.product-visual.windows {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8fa;
}

.product-visual.windows::before,
.product-visual.windows::after {
  content: none;
}

.product-visual.mobile::after {
  width: 32%;
  height: 72%;
  top: 12%;
  border-radius: 28px;
}

.product-visual.mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.product-visual.mobile::before,
.product-visual.mobile::after {
  content: none;
}

.product-visual-image {
  width: 100%;
  max-height: 500px;
  min-height: 300px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.section-heading {
  max-width: 900px;
  margin-bottom: 3rem;
}

.section-heading p:not(.eyebrow),
.cta-section p {
  max-width: 760px;
  margin-top: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.ai-stage {
  background: #0b0b0b;
  border-block: 1px solid var(--line);
}

.before-after {
  position: relative;
  max-width: 1080px;
  aspect-ratio: 16 / 8;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
}

.before-after.ai-preview {
  max-width: 980px;
  aspect-ratio: 4 / 3;
  background: #f8f8f8;
}

.before-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after.ai-preview img { object-fit: contain; }

.before-after .after { clip-path: inset(0 0 0 52%); }

.before-after input {
  position: absolute;
  inset: auto 8% 1.2rem;
  width: 84%;
  accent-color: var(--gold);
}

.ai-grid,
.admin-modules {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1.5rem;
}

.ai-grid span,
.ai-grid button,
.admin-modules span {
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  color: var(--silver);
  background: rgba(255, 255, 255, .04);
}

.ai-grid button {
  min-height: 44px;
  font: inherit;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.ai-grid button:hover,
.ai-grid button:focus,
.ai-grid button.is-active {
  color: #090807;
  border-color: var(--gold);
  background: var(--gold);
}

.feature-ribbon { padding-block: 0; }

.feature-line {
  display: grid;
  grid-template-columns: 190px minmax(210px, .6fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  min-height: 112px;
  border-top: 1px solid var(--line);
}

.feature-line:last-child { border-bottom: 1px solid var(--line); }

.feature-line span {
  color: var(--gold);
  font-size: .78rem;
  text-transform: uppercase;
}

.feature-line strong { font-size: 1.35rem; }

.feature-line em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.workflow-section { background: #090909; }

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.workflow-step {
  min-height: 150px;
  padding: 1.1rem;
  background: #111;
}

.workflow-step span {
  display: block;
  margin-bottom: 2.2rem;
  color: var(--gold);
  font-size: .85rem;
}

.workflow-step strong { font-size: 1.1rem; }

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.scene-item {
  min-height: 360px;
  padding: 1.2rem;
  background: #101010;
}

.scene-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, .08);
}

.scene-item h2,
.scene-item h3 {
  margin: 0 0 .7rem;
  color: var(--silver);
}

.scene-item p {
  color: var(--muted);
  line-height: 1.75;
}

.cta-section {
  background: #0d0c0a;
  border-top: 1px solid rgba(201, 169, 106, .28);
}

.subpage-hero {
  min-height: 68vh;
  padding: 10rem 0 5rem;
  display: flex;
  align-items: end;
  background: #050505;
  border-bottom: 1px solid var(--line);
}

.subpage-hero.compact { min-height: 48vh; }

.subpage-hero p:not(.eyebrow) {
  max-width: 820px;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.8;
}

.hardware-page {
    background: linear-gradient(90deg, rgba(5, 5, 5, .96), rgba(5, 5, 5, .76))/*, url("/images/hardware/ax20-main-placeholder.svg") center/cover no-repeat*/;
}

.windows-page {
    background-image: linear-gradient(90deg, rgba(5, 5, 5, .96), rgba(5, 5, 5, .72))/*, url("/images/windows/ax20-main-placeholder.svg")*/;
}

.mobile-page {
    background-image: linear-gradient(90deg, rgba(5, 5, 5, .96), rgba(5, 5, 5, .72))/*, url("/images/mobile/gemhub-mobile.png")*/;
}

.content-band { background: #080808; }
.narrow { max-width: 1100px; }

.architecture,
.feature-columns,
.download-list,
.admin-grid,
.split-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

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

.architecture div,
.feature-columns article,
.download-list article,
.admin-grid div,
.split-list div {
  min-height: 260px;
  padding: 1.4rem;
  background: #111;
}

.architecture span,
.feature-columns span,
.download-list span,
.split-list span {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--gold);
  font-size: .78rem;
  text-transform: uppercase;
}

.architecture strong {
  display: block;
  margin-bottom: .8rem;
  color: var(--silver);
  font-size: 1.4rem;
}

.architecture p,
.feature-columns p,
.split-list p {
  color: var(--muted);
  line-height: 1.75;
}

.parameter-table {
  margin-top: 2.2rem;
  border-top: 1px solid var(--line);
}

.parameter-table div {
  display: grid;
  grid-template-columns: minmax(160px, .35fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.parameter-table span { color: var(--muted); }

.software-console {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 420px;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  background: #111;
}

.console-sidebar {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 1rem;
  border-right: 1px solid var(--line);
}

.console-sidebar span,
.console-timeline span {
  padding: .7rem .8rem;
  background: rgba(255, 255, 255, .05);
  color: var(--muted);
}

.console-main { padding: clamp(1.5rem, 4vw, 4rem); }

.console-main h2,
.feature-columns h2,
.content-band h2 {
  margin: 0 0 1rem;
  color: var(--silver);
}

.console-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2rem;
}

.mobile-flow {
  display: grid;
  grid-template-columns: minmax(260px, .45fr) minmax(0, .55fr);
  gap: clamp(2rem, 6vw, 7rem);
  align-items: center;
}

.phone-mockup {
  width: min(420px, 100%);
  aspect-ratio: 1080 / 1456;
  border-radius: 28px;
  background: url("/images/mobile/gemhub-mobile.jpg") center / contain no-repeat;
  filter: drop-shadow(0 28px 60px rgba(0, 0, 0, .42));
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 58%, rgba(5, 5, 5, .74));
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: clamp(1rem, 4vw, 1.8rem);
}

.phone-screen span { color: var(--gold); }
.phone-screen strong { font-size: 2.3rem; }

.flow-list {
  margin: 1.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 2.2;
}

.ai-workflow {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2rem;
}

.ai-workflow span {
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  color: var(--silver);
}

.download-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.download-list dl { margin: 1rem 0 1.4rem; }

.download-list dl div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: .8rem;
  padding: .45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.download-list dt {
  color: var(--muted);
  font-weight: 400;
}

.download-list dd { margin: 0; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .58fr) minmax(280px, .42fr);
  gap: 2rem;
}

.contact-form,
.contact-aside {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: #111;
}

.contact-form label {
  display: grid;
  gap: .45rem;
  margin-bottom: 1rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #090909;
  color: var(--text);
  padding: .85rem 1rem;
  border-radius: 4px;
}

.contact-form span[data-valmsg-for] {
  display: block;
  min-height: 1.2rem;
  margin-top: -.6rem;
  margin-bottom: .5rem;
  color: #dfc17f;
  font-size: .9rem;
}

.contact-aside p {
  color: var(--muted);
  line-height: 1.8;
}

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

.admin-grid span {
  display: block;
  color: var(--gold);
  font-size: 2.6rem;
  font-weight: 750;
}

.admin-grid strong { color: var(--silver); }

.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--line);
  background: #050505;
  color: var(--muted);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: .8rem;
}

.brand-logo-footer {
  height: 52px;
  max-width: 220px;
}

.site-footer a {
  display: block;
  margin-bottom: .55rem;
  color: var(--muted);
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
}

@media (max-width: 991.98px) {
  .ax-navbar { background: rgba(5, 5, 5, .96); }
  .navbar-collapse { padding: 1rem 0 1.2rem; }
  .nav-actions {
    align-items: stretch;
    margin-top: .8rem;
  }
  .hero { min-height: 88vh; }
  .hero-content {
    grid-template-columns: 1fr;
    padding-block: 8rem 4rem;
  }
  .hero-media {
    min-height: 360px;
    order: -1;
  }
  .product-band,
  .mobile-flow,
  .contact-layout,
  .software-console { grid-template-columns: 1fr; }
  .console-sidebar {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .architecture,
  .feature-columns,
  .scene-grid,
  .download-list,
  .admin-grid,
  .split-list,
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-line {
    grid-template-columns: 1fr;
    gap: .45rem;
    padding: 1.3rem 0;
  }
}

@media (max-width: 575.98px) {
  .hero h1 { font-size: 4rem; }
  .hero h1 span { font-size: 2rem; }
  .hero-actions,
  .hero-actions .btn { width: 100%; }
  .system-chain {
    display: grid;
    grid-template-columns: 1fr;
  }
  .system-chain b { display: none; }
  .product-visual { min-height: 300px; }
  .architecture,
  .feature-columns,
  .scene-grid,
  .download-list,
  .admin-grid,
  .split-list,
  .workflow-grid { grid-template-columns: 1fr; }
  .before-after { aspect-ratio: 1 / 1; }
  .before-after.ai-preview { aspect-ratio: 4 / 3; }
  .parameter-table div { grid-template-columns: 1fr; }
  .subpage-hero {
    min-height: 54vh;
    padding-top: 8rem;
  }
}
