:root {
  --bg: #07090d;
  --bg-elevated: #0e1219;
  --ink: #f2f4f7;
  --muted: #9aa3b2;
  --line: rgba(242, 244, 247, 0.12);
  --accent: #ff6a3d;
  --accent-soft: rgba(255, 106, 61, 0.16);
  --teal: #3dffe0;
  --font-sans: "Noto Sans SC", system-ui, sans-serif;
  --font-display: "Orbitron", "Noto Sans SC", sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 1120px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--space);
  background: linear-gradient(180deg, rgba(7, 9, 13, 0.92), rgba(7, 9, 13, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav {
  display: none;
  gap: 1.75rem;
}

.nav a,
.mobile-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.25s ease;
}

.nav a:hover,
.mobile-nav a:hover {
  color: var(--ink);
}

.header-cta {
  display: none;
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.header-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.menu-toggle {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-content: center;
  gap: 6px;
}

.menu-toggle span {
  display: block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: var(--space);
  background: rgba(7, 9, 13, 0.96);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--ink);
}

@media (min-width: 860px) {
  .nav,
  .header-cta {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 2rem) var(--space) 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.06);
  animation: hero-zoom 18s ease-out forwards;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.92) 0%, rgba(7, 9, 13, 0.55) 48%, rgba(7, 9, 13, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.35) 0%, rgba(7, 9, 13, 0.15) 40%, rgba(7, 9, 13, 0.92) 100%),
    radial-gradient(ellipse at 70% 40%, rgba(255, 106, 61, 0.18), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-lockup {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--ink);
  text-shadow: 0 0 40px rgba(255, 106, 61, 0.25);
}

.brand-lockup.sm {
  font-size: clamp(1.4rem, 4vw, 2rem);
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.hero-lead {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.95rem;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #140804;
  font-weight: 700;
}

.btn-primary:hover {
  background: #ff825c;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.hero-scroll {
  position: absolute;
  right: var(--space);
  bottom: 2rem;
  z-index: 1;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
}

.hero-scroll i {
  width: 1px;
  height: 3rem;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: pulse-line 1.8s ease-in-out infinite;
}

@media (min-width: 860px) {
  .hero {
    align-items: center;
    padding-bottom: 2rem;
  }

  .hero-scroll {
    display: flex;
  }
}

/* Sections shared */
.section-head {
  max-width: var(--max);
  margin: 0 auto 2.5rem;
  padding: 0 var(--space);
}

.section-head h2,
.about-copy h2,
.contact-panel h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.section-head p,
.about-copy p,
.contact-panel > p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.categories,
.featured,
.builds,
.about,
.contact {
  padding: clamp(4rem, 10vw, 7rem) 0;
}

/* Categories */
.category-list {
  list-style: none;
  margin: 0 auto;
  padding: 0 var(--space);
  max-width: var(--max);
  border-top: 1px solid var(--line);
}

.category-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "index name arrow"
    "index desc arrow";
  gap: 0.15rem 1rem;
  align-items: center;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.35s ease, background 0.35s ease;
}

.category-list a:hover {
  padding-left: 0.75rem;
  background: linear-gradient(90deg, var(--accent-soft), transparent 55%);
}

.cat-index {
  grid-area: index;
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.cat-name {
  grid-area: name;
  font-size: clamp(1.15rem, 2.5vw, 1.55rem);
  font-weight: 700;
}

.cat-desc {
  grid-area: desc;
  color: var(--muted);
  font-size: 0.92rem;
}

.cat-arrow {
  grid-area: arrow;
  color: var(--muted);
  transition: transform 0.3s ease, color 0.3s ease;
}

.category-list a:hover .cat-arrow {
  transform: translateX(6px);
  color: var(--accent);
}

@media (min-width: 720px) {
  .category-list a {
    grid-template-columns: 3.5rem 12rem 1fr auto;
    grid-template-areas: "index name desc arrow";
    align-items: baseline;
  }
}

/* Featured products */
.product-stage {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

.product {
  display: grid;
  gap: 1.5rem;
  animation: rise-in 0.55s ease both;
}

.product[hidden] {
  display: none;
}

.product-visual {
  position: relative;
  overflow: hidden;
  min-height: 16rem;
  background: var(--bg-elevated);
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7, 9, 13, 0.55));
  pointer-events: none;
}

.product-visual img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.product.is-active .product-visual img {
  animation: soft-pan 10s ease-in-out infinite alternate;
}

.product-copy {
  max-width: 34rem;
}

.product-tag {
  margin: 0 0 0.5rem;
  color: var(--teal);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-copy h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.product-copy > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.product-copy dl {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.product-copy dl div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.product-copy dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.product-copy dd {
  margin: 0;
  font-weight: 500;
}

.product-nav {
  max-width: var(--max);
  margin: 1.75rem auto 0;
  padding: 0 var(--space);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-nav button {
  padding: 0.55rem 1rem;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.product-nav button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

@media (min-width: 900px) {
  .product {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 2.5rem;
  }

  .product-visual,
  .product-visual img {
    min-height: 26rem;
  }
}

/* Builds */
.builds {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(61, 255, 224, 0.06), transparent 45%),
    linear-gradient(180deg, transparent, rgba(14, 18, 25, 0.8));
}

.build-rail {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  display: grid;
  gap: 1.25rem;
}

.build {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}

.build:last-child {
  border-bottom: 1px solid var(--line);
}

.build-level {
  margin: 0 0 0.4rem;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

.build h3 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
}

.build > p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.build ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.build ul li::before {
  content: "▸ ";
  color: var(--teal);
}

.build-featured {
  position: relative;
}

.build-featured::before {
  content: "";
  position: absolute;
  left: -0.75rem;
  top: 1.75rem;
  bottom: 1.75rem;
  width: 2px;
  background: var(--accent);
}

@media (min-width: 900px) {
  .build-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .build,
  .build:last-child {
    border: 0;
    border-top: 1px solid var(--line);
    padding-right: 1rem;
  }
}

/* About */
.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  display: grid;
  gap: 2.5rem;
}

.about-copy p + p {
  margin-top: 1rem;
}

.about-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

.about-points li {
  display: grid;
  gap: 0.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.about-points strong {
  font-size: 1.05rem;
}

.about-points span {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 4rem;
  }
}

/* Contact */
.contact {
  padding-top: 2rem;
}

.contact-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--space);
  background:
    linear-gradient(135deg, rgba(255, 106, 61, 0.12), transparent 42%),
    linear-gradient(180deg, #10151e, #0a0d13);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}

.contact-meta a {
  color: var(--teal);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.contact-meta a:hover {
  border-bottom-color: var(--teal);
}

.contact-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.75rem var(--space) 2.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-copy {
  margin: 0;
  white-space: nowrap;
}

.beian {
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.25s ease;
}

.beian:hover {
  color: var(--ink);
}

/* Motion */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-zoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1.02);
  }
}

@keyframes soft-pan {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.5%, -1%, 0);
  }
}

@keyframes pulse-line {
  0%,
  100% {
    opacity: 0.35;
    transform: scaleY(0.7);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg img,
  .product.is-active .product-visual img,
  .hero-content,
  .product,
  .hero-scroll i {
    animation: none !important;
  }
}
