:root {
  --bg: #0e0c0a;
  --bg-elevated: #161210;
  --ink: #f4eee6;
  --ink-soft: #c9bdb0;
  --muted: #8a7f74;
  --line: rgba(244, 238, 230, 0.1);
  --accent: #d4894a;
  --accent-hot: #e8a05c;
  --accent-deep: #9a5c2e;
  --copper-glow: rgba(212, 137, 74, 0.35);
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-sans: "Noto Sans SC", "PingFang SC", sans-serif;
  --font-latin: "Syne", "Noto Sans SC", sans-serif;
  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  background:
    radial-gradient(ellipse 80% 50% at 15% -10%, rgba(212, 137, 74, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(154, 92, 46, 0.12), transparent 50%),
    linear-gradient(180deg, #12100d 0%, var(--bg) 28%, #0b0a09 100%);
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.045;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: linear-gradient(180deg, rgba(14, 12, 10, 0.88), rgba(14, 12, 10, 0));
  backdrop-filter: blur(6px);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.nav a {
  position: relative;
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a:hover::after {
  transform: scaleX(1);
}

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  padding: clamp(6rem, 12vh, 8rem) var(--pad) clamp(3.5rem, 8vh, 5.5rem);
  position: relative;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 38rem;
  padding-bottom: 0.5rem;
}

.hero-brand {
  font-family: var(--font-latin);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 1.4rem;
  background: linear-gradient(120deg, var(--ink) 30%, var(--accent-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 600;
  margin-bottom: 1.1rem;
  color: var(--ink);
}

.hero-lead {
  max-width: 28rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: #1a120c;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-hot);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink-soft);
}

.btn-ghost:hover {
  border-color: rgba(212, 137, 74, 0.55);
  color: var(--ink);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 70% at 78% 42%, rgba(212, 137, 74, 0.16), transparent 62%),
    linear-gradient(90deg, rgba(14, 12, 10, 0.92) 0%, rgba(14, 12, 10, 0.55) 42%, rgba(14, 12, 10, 0.2) 100%);
  z-index: 1;
}

.orbit {
  position: relative;
  z-index: 0;
  width: min(78vw, 640px);
  aspect-ratio: 1;
  margin-left: 28vw;
}

.orbit-ring {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(212, 137, 74, 0.22);
  border-radius: 50%;
}

.ring-a {
  inset: 6%;
  border-color: rgba(244, 238, 230, 0.08);
  animation: spin 28s linear infinite;
}

.ring-b {
  inset: 18%;
  border-style: dashed;
  border-color: rgba(212, 137, 74, 0.35);
  animation: spin-rev 22s linear infinite;
}

.ring-c {
  inset: 32%;
  border-color: rgba(232, 160, 92, 0.45);
  animation: pulse-ring 4.5s var(--ease) infinite;
}

.orbit-core {
  position: absolute;
  inset: 42%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #f0c28a, var(--accent) 45%, var(--accent-deep) 100%);
  box-shadow:
    0 0 40px var(--copper-glow),
    0 0 90px rgba(212, 137, 74, 0.2);
}

.orbit-ember {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 12px var(--accent);
}

.e1 {
  top: 12%;
  left: 48%;
  animation: float-a 5s ease-in-out infinite;
}

.e2 {
  bottom: 22%;
  right: 14%;
  width: 6px;
  height: 6px;
  animation: float-b 6.5s ease-in-out infinite;
}

.e3 {
  top: 46%;
  left: 10%;
  width: 5px;
  height: 5px;
  opacity: 0.7;
  animation: float-a 7s ease-in-out infinite reverse;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-rev {
  to {
    transform: rotate(-360deg);
  }
}

@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.65;
  }
}

@keyframes float-a {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes float-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-8px, 10px);
  }
}

/* Hero entrance */
.hero-copy > * {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}

.hero-brand {
  animation-delay: 0.08s;
}

.hero-title {
  animation-delay: 0.22s;
}

.hero-lead {
  animation-delay: 0.36s;
}

.hero-actions {
  animation-delay: 0.48s;
}

.hero-visual {
  opacity: 0;
  transform: scale(0.94);
  animation: fade-scale 1.1s var(--ease) 0.2s forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-scale {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Position */
.position {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--pad) 5rem;
  border-top: 1px solid var(--line);
}

.position-text {
  max-width: 46rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

.position-text span {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--accent-hot);
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
}

/* Shared section */
.section-head {
  margin-bottom: 2.5rem;
}

.eyebrow {
  font-family: var(--font-latin);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.products,
.custom,
.contact {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--pad) 6rem;
}

/* Products */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
}

.product:last-child {
  border-bottom: 1px solid var(--line);
}

.product-tag {
  font-family: var(--font-latin);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.product-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  margin-bottom: 0.9rem;
}

.product-copy p:last-child {
  color: var(--ink-soft);
  max-width: 30rem;
}

.product-visual {
  position: relative;
  min-height: 260px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(212, 137, 74, 0.08), transparent 40%),
    var(--bg-elevated);
  overflow: hidden;
}

/* XR visual */
.xr-stage {
  position: absolute;
  inset: 12%;
  perspective: 800px;
}

.xr-layer {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 137, 74, 0.25);
}

.xr-layer.back {
  transform: translateZ(-40px) scale(1.08);
  background: linear-gradient(160deg, rgba(154, 92, 46, 0.25), transparent);
}

.xr-layer.mid {
  inset: 10%;
  border-style: dashed;
  transform: rotateY(-8deg);
}

.xr-subject {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  aspect-ratio: 3 / 5;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, rgba(244, 238, 230, 0.35), rgba(212, 137, 74, 0.15));
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

.xr-scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 18%;
  background: linear-gradient(180deg, transparent, rgba(232, 160, 92, 0.22), transparent);
  animation: scan 3.8s ease-in-out infinite;
}

@keyframes scan {
  0%,
  100% {
    top: 10%;
  }
  50% {
    top: 70%;
  }
}

/* Dashboard visual */
.dash-visual {
  display: grid;
  align-items: end;
  padding: 1.75rem;
}

.dash-grid {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  height: 150px;
  z-index: 1;
}

.dash-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, var(--accent-hot), rgba(212, 137, 74, 0.15));
  opacity: 0.75;
  transform-origin: bottom;
  animation: bar-rise 1.4s var(--ease) both;
}

.dash-bar:nth-child(2) {
  animation-delay: 0.05s;
}
.dash-bar:nth-child(3) {
  animation-delay: 0.1s;
}
.dash-bar:nth-child(4) {
  animation-delay: 0.15s;
}
.dash-bar:nth-child(5) {
  animation-delay: 0.2s;
}
.dash-bar:nth-child(6) {
  animation-delay: 0.25s;
}
.dash-bar:nth-child(7) {
  animation-delay: 0.3s;
}

@keyframes bar-rise {
  from {
    transform: scaleY(0.2);
    opacity: 0;
  }
}

.dash-line {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 28%;
  height: 42%;
  z-index: 2;
}

.dash-line path {
  stroke: var(--accent-hot);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw-line 2s var(--ease) 0.3s forwards;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

/* Duck / Pad visual */
.duck-visual {
  display: grid;
  place-items: center;
}

.pad-device {
  width: min(58%, 200px);
  aspect-ratio: 3 / 4;
  padding: 0.55rem;
  border: 1px solid rgba(244, 238, 230, 0.18);
  background: linear-gradient(160deg, #2a221c, #14110e);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.pad-screen {
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(232, 160, 92, 0.18), transparent 55%),
    #1c1713;
  position: relative;
  overflow: hidden;
}

.pad-glyph {
  font-family: var(--font-latin);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent-hot);
  letter-spacing: 0.06em;
  z-index: 1;
}

.pad-wave {
  position: absolute;
  bottom: 18%;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: wave 2.4s ease-in-out infinite;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleX(0.7);
    opacity: 0.45;
  }
  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

/* Custom */
.custom-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding-top: 0.5rem;
}

.custom-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.custom-points {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid rgba(212, 137, 74, 0.45);
}

.custom-points li {
  padding: 0.85rem 0 0.85rem 1.25rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.custom-points li:first-child {
  padding-top: 0;
}

.custom-points li:last-child {
  border-bottom: 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-company {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.06em;
}

.contact-info dl {
  margin: 0;
  display: grid;
  gap: 1.15rem;
}

.contact-info dt {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.contact-info dd {
  margin: 0;
  color: var(--ink-soft);
}

.qr-frame {
  width: min(100%, 180px);
  aspect-ratio: 1;
  border: 1px solid rgba(212, 137, 74, 0.4);
  padding: 0.55rem;
  background: rgba(255, 255, 255, 0.03);
}

.qr-placeholder {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.35rem;
  background:
    linear-gradient(90deg, rgba(244, 238, 230, 0.08) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(rgba(244, 238, 230, 0.08) 1px, transparent 1px) 0 0 / 14px 14px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.qr-hint {
  font-size: 0.72rem;
  color: var(--muted);
}

.qr-caption {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem var(--pad) 2.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  max-width: calc(var(--max) + 8rem);
  margin: 0 auto;
}

.footer-mark {
  font-family: var(--font-latin);
  letter-spacing: 0.2em;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    min-height: 100svh;
    align-items: end;
  }

  .orbit {
    width: min(120vw, 480px);
    margin-left: 18vw;
    opacity: 0.85;
  }

  .hero-visual::before {
    background:
      radial-gradient(ellipse 70% 55% at 70% 30%, rgba(212, 137, 74, 0.18), transparent 60%),
      linear-gradient(180deg, rgba(14, 12, 10, 0.35) 0%, rgba(14, 12, 10, 0.88) 58%, rgba(14, 12, 10, 0.96) 100%);
  }

  .product,
  .custom-body,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-dash .product-copy {
    order: 1;
  }

  .product-dash .product-visual {
    order: 0;
  }
}

@media (max-width: 560px) {
  .nav {
    gap: 1rem;
    font-size: 0.82rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-brand {
    letter-spacing: 0.04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-copy > *,
  .hero-visual,
  .reveal {
    opacity: 1;
    transform: none;
  }
}
