:not(:defined) > * {
  display: none;
}

* {
  box-sizing: border-box;
}

:root {
  --bg-dark: #090d14;
  --bg-mid: #131a26;
  --bg-light: #1d2838;
  --accent: #dcb87a;
  --accent-soft: #b38d54;
  --text-main: #f7f4ec;
  --text-muted: #c3c0b8;
  --panel: rgba(15, 20, 30, 0.76);
  --line: rgba(220, 184, 122, 0.35);
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  color: var(--text-main);
  background: linear-gradient(to left, #070b12 0%, #111c2c 100%);
}

.page {
  overflow-x: clip;
}

.section {
  position: relative;
  padding: 7rem 1.25rem;
  isolation: isolate;
  background: #1a2638;
  z-index: 1;
}

.section + .section {
  margin-top: 0;
}

.section:nth-of-type(even) {
  background: #0b121d;
  z-index: 1;
}

.section:not(:nth-of-type(even)) {
  z-index: 2;
}

.section:not(:nth-of-type(even))::before,
.section:not(:nth-of-type(even))::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 44px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 3;
}

.section:not(:nth-of-type(even))::before {
  top: -44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 44' preserveAspectRatio='none'%3E%3Cpolygon points='0,44 100,0 100,44' fill='%231a2638'/%3E%3C/svg%3E");
}

.section:not(:nth-of-type(even))::after {
  bottom: -44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 44' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 100,0 0,44' fill='%231a2638'/%3E%3C/svg%3E");
}

.content {
  width: min(1200px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.slant,
.slant-top,
.slant-bottom {
  clip-path: none;
}

.hero {
  padding-top: 6.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
  font-weight: 600;
  font-size: 0.82rem;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.06;
}

h1 {
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  margin-bottom: 2rem;
}

.lead {
  margin: 1.5rem 0 2.2rem;
  color: var(--text-muted);
  max-width: 56ch;
  font-size: 1.08rem;
  line-height: 1.7;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-metrics div {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 1rem;
  background: rgba(9, 13, 20, 0.55);
}

.hero-metrics span {
  display: block;
  font-size: 1.22rem;
  font-weight: 700;
}

.hero-metrics small {
  color: var(--text-muted);
}

.hero-price-card {
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(14, 18, 26, 0.95) 0%, rgba(29, 40, 56, 0.92) 100%);
  border-radius: 0.9rem;
  padding: 2rem;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
}

.price-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.price {
  margin: 1rem 0;
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-family: "Fraunces", Georgia, serif;
}

.price-note {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.cta {
  width: 100%;
  background: linear-gradient(90deg, #dcb87a 0%, #b38d54 100%);
  border: 0;
  border-radius: 0.55rem;
  color: #18120a;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.95rem 1.1rem;
  cursor: pointer;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.spec-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 1.4rem;
}

.spec-grid h3 {
  margin-bottom: 0.8rem;
}

.spec-grid p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.66;
}

.model-layout {
  display: block;
}

.model-showcase {
  padding-top: 0;
  padding-bottom: 0;
}

.viewer-wrap {
  width: min(980px, 100%);
  margin: 0 auto;
}

.model-header {
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--panel);
  padding: 1.4rem;
}

.model-header p {
  line-height: 1.66;
  color: var(--text-muted);
}

model-viewer {
  display: block;
  width: 100%;
  min-height: 560px;
  padding-top: 0;
  padding-bottom: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.variant-controls {
  position: static;
  display: grid;
  gap: 0.2rem;
  width: 150px;
  margin-top: 0.65rem;
  padding: 0.42rem 0.48rem;
  border-radius: 1rem;
  background: rgba(8, 13, 21, 0.45);
  border: 1px solid rgba(220, 184, 122, 0.2);
  backdrop-filter: blur(3px);
}

.variant-picker {
  display: block;
  margin: 0 auto;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(220, 184, 122, 0.88);
}

.finish-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: rgba(14, 24, 38, 0.72);
  padding: 0.12rem;
  min-width: 130px;
}

.finish-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.finish-toggle label {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: rgba(247, 244, 236, 0.82);
  padding: 0.28rem 0.3rem;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.finish-toggle label.left {
    border-radius: 10px 0px 0px 10px;
}
.finish-toggle label.right {
    border-radius: 0px 10px 10px 0px;
}

.finish-toggle input:checked + label {
  background: rgba(220, 184, 122, 0.26);
  color: #f7f4ec;
}

.Hotspot {
  background: #f9f6ef;
  border-radius: 32px;
  border: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  height: 12px;
  padding: 8px;
  position: relative;
  transition: opacity 0.3s;
  width: 12px;
  --min-hotspot-opacity: 0;
}

.Hotspot:focus {
  border: 4px solid #dcb87a;
  height: 32px;
  outline: none;
  width: 32px;
}

.Hotspot > * {
  opacity: 1;
  transform: translateY(-50%);
}

.HotspotAnnotation {
  background: #f6f2e8;
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  color: #261f13;
  display: block;
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 600;
  left: calc(100% + 1em);
  max-width: 164px;
  overflow-wrap: break-word;
  padding: 0.5em 1em;
  position: absolute;
  top: 50%;
  width: max-content;
}

.Hotspot:not([data-visible]) > * {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-50% + 4px));
  transition: transform 0.3s, opacity 0.3s;
}

.progress-bar {
  display: block;
  width: 36%;
  height: 10px;
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  background-color: rgba(0, 0, 0, 0.38);
}

.progress-bar.hide {
  visibility: hidden;
  transition: visibility 0.3s;
}

.update-bar {
  background-color: rgba(255, 255, 255, 0.9);
  width: 0%;
  height: 100%;
  border-radius: 25px;
  float: left;
  transition: width 0.3s;
}

#ar-button {
  background-image: url(ar_icon.png);
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: 12px 50%;
  background-color: #f6f2e8;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  bottom: 16px;
  padding: 0 16px 0 40px;
  font-family: "Chakra Petch", "Segoe UI", sans-serif;
  font-size: 14px;
  color: #1a1d24;
  height: 36px;
  line-height: 36px;
  border-radius: 18px;
  border: 1px solid #dcc28f;
}

#ar-button:active {
  background-color: #e8decb;
}

#ar-button:focus {
  outline: none;
}

#ar-button:focus-visible {
  outline: 2px solid #dcb87a;
}

@keyframes circle {
  from {
    transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg);
  }

  to {
    transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg);
  }
}

@keyframes elongate {
  from {
    transform: translateX(100px);
  }

  to {
    transform: translateX(-100px);
  }
}

model-viewer > #ar-prompt {
  position: absolute;
  left: 50%;
  bottom: 60px;
  animation: elongate 2s infinite ease-in-out alternate;
  display: none;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
  display: block;
}

model-viewer > #ar-prompt > img {
  animation: circle 4s linear infinite;
}

.metric-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.metric-panels article {
  border: 1px solid var(--line);
  background: rgba(8, 12, 20, 0.7);
  border-radius: 0.7rem;
  padding: 1.4rem;
}

.metric-panels h3 {
  margin-bottom: 0.8rem;
}

.metric-panels p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.66;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-price-card {
    max-width: 560px;
  }

  model-viewer {
    min-height: 500px;
  }
}

@media (max-width: 720px) {
  .section {
    padding: 5.4rem 1rem;
  }

  .hero-metrics,
  .spec-grid,
  .metric-panels {
    grid-template-columns: 1fr;
  }

  .price {
    font-size: 1.95rem;
  }

  model-viewer {
    min-height: 430px;
  }

  .variant-controls {
    width: 138px;
    margin-top: 0.55rem;
    padding: 0.36rem 0.42rem;
  }

  .progress-bar {
    width: 60%;
  }
}
