:root {
  --bg: #0d0d0e;
  --surface: #161617;
  --surface-2: #1b1b1d;
  --surface-3: #202023;

  --text: #ffffff;
  --muted: #a8a8ad;
  --muted-2: #747479;

  --border: #2b2b2e;
  --border-light: #38383c;

  --accent: #ffffff;
}


/* =========================================================
   GLOBAL
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;

  background: var(--bg);
  color: var(--text);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

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

button {
  font-family: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  width: 100%;

  border-bottom: 1px solid var(--border);

  background: rgba(13, 13, 14, 0.96);
}

.site-header__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 88px;

  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;

  gap: 14px;

  color: var(--text);
  text-decoration: none;
}

.brand:hover,
.brand:focus {
  color: var(--text);
  text-decoration: none;
}

.brand__logo {
  display: block;

  width: auto;
  height: 42px;

  max-width: 180px;

  object-fit: contain;
}

.brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand__text small {
  margin: 0;

  color: var(--muted);

  font-size: 0.68rem;
  font-weight: 600;

  letter-spacing: 0.13em;
  text-transform: uppercase;
}


/* =========================================================
   HEADER ACTIONS
   ========================================================= */



.demo-badge {
  flex: 0 0 auto;

  padding: 8px 12px;

  border: 1px solid var(--border);
  border-radius: 999px;

  color: var(--muted);

  font-size: 0.75rem;
}


/* =========================================================
   HEADER RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  .desktop-qr {
    display: none;
  }

  .site-header__inner {
    min-height: 78px;
  }

  .brand__logo {
    height: 38px;
    max-width: 160px;
  }

  .hero-layout {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .hero-qr {
    display: none;
  }
}


@media (max-width: 700px) {

  .site-header__inner {
    width: min(100% - 24px, 1180px);
    min-height: 68px;
  }

  .brand__logo {
    height: 34px;
    max-width: 150px;
  }

  .demo-badge {
    display: none;
  }
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 92px 0 58px;
}

.hero-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.45fr) minmax(300px, 0.55fr);

  gap: 90px;

  align-items: center;
}

.hero__content {
  min-width: 0;
}

.eyebrow,
.section-label {
  margin: 0 0 16px;

  color: var(--muted);

  font-size: 0.74rem;
  font-weight: 700;

  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;

  margin: 0;

  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.9;

  letter-spacing: -0.065em;
}

.hero h1 span {
  display: block;

  color: #a9a9ad;
}

.hero__intro {
  max-width: 760px;

  margin: 30px 0 0;

  color: var(--muted);

  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}


/* =========================================================
   HERO QR HANDOFF
   ========================================================= */

.hero-qr {
  justify-self: end;

  width: min(100%, 360px);

  padding: 28px;

  border: 1px solid var(--border);
  border-radius: 24px;

  background: var(--surface);
}

.hero-qr__code {
  width: 100%;

  display: grid;
  place-items: center;

  padding: 24px;

  border-radius: 18px;

  background: #ffffff;
}

.hero-qr__code img {
  display: block;

  width: min(100%, 230px);
  height: auto;
}

.hero-qr__copy {
  padding-top: 24px;
}

.hero-qr__eyebrow {
  margin: 0 0 10px;

  color: var(--muted-2);

  font-size: 0.68rem;
  font-weight: 700;

  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-qr__copy h2 {
  margin: 0;

  font-size: 1.45rem;
  line-height: 1.15;

  letter-spacing: -0.035em;
}

.hero-qr__copy>p:last-child {
  margin: 12px 0 0;

  color: var(--muted);

  font-size: 0.82rem;
  line-height: 1.55;
}


/* =========================================================
   CONFIGURATOR LAYOUT
   ========================================================= */

.configurator-section {
  padding: 32px 0 100px;
}

.configurator-layout {
  display: grid;
  grid-template-columns:
    minmax(0, 1.55fr) minmax(320px, 0.85fr);

  gap: 52px;

  align-items: start;
}


/* =========================================================
   VIEWER CARD
   ========================================================= */

.viewer-card {
  min-width: 0;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 26px;

  background: var(--surface);
}

.viewer-toolbar {
  min-height: 74px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 16px 20px;

  border-bottom: 1px solid var(--border);
}

.viewer-toolbar>div {
  display: flex;
  flex-direction: column;

  gap: 5px;
}

.viewer-toolbar__label {
  color: var(--muted-2);

  font-size: 0.7rem;

  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.viewer-toolbar strong {
  font-size: 0.95rem;
}

.viewer-status {
  padding: 7px 10px;

  border: 1px solid var(--border-light);
  border-radius: 999px;

  color: #cfcfd3;

  font-size: 0.68rem;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

model-viewer {
  display: block;

  width: 100%;
  height: 650px;

  background:
    radial-gradient(circle at center,
      #29292c 0%,
      #19191b 55%,
      #151516 100%);
}

.viewer-controls {
  min-height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 24px;

  flex-wrap: wrap;

  padding: 14px 20px;

  border-top: 1px solid var(--border);

  color: var(--muted-2);

  font-size: 0.75rem;
}

.viewer-controls strong {
  color: #c3c3c6;

  font-weight: 600;
}


/* =========================================================
   CONFIGURATION PANEL
   ========================================================= */

.configuration-panel {
  min-width: 0;

  padding-top: 12px;
}

.configuration-panel h2 {
  margin: 0;

  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;

  letter-spacing: -0.04em;
}

.configuration-intro {
  margin: 24px 0 0;

  color: var(--muted);

  line-height: 1.7;
}


/* =========================================================
   OPTION GROUPS
   ========================================================= */

.option-group {
  margin-top: 34px;

  padding-top: 22px;

  border-top: 1px solid var(--border);
}

.option-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 16px;
}

.option-heading span {
  color: var(--muted);

  font-size: 0.8rem;
  font-weight: 600;

  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.option-heading strong {
  font-size: 0.85rem;
}


/* =========================================================
   SWATCHES
   ========================================================= */

.swatches {
  display: flex;
  flex-wrap: wrap;

  gap: 12px;
}

.swatch {
  width: 48px;
  height: 48px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid var(--border-light);
  border-radius: 50%;

  background: transparent;

  cursor: pointer;

  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.swatch:hover {
  transform: translateY(-2px);

  border-color: #67676d;
}

.swatch.is-active {
  border-color: #ffffff;

  background: rgba(255, 255, 255, 0.08);
}

.swatch__color {
  width: 30px;
  height: 30px;

  display: block;

  border-radius: 50%;

  border: 1px solid rgba(255, 255, 255, 0.18);
}

.swatch__color--black {
  background: #111111;
}

.swatch__color--white {
  background: #ececec;
}

.swatch__color--blue {
  background: #4059d8;
}

.swatch__color--red {
  background: #c93939;
}

.swatch__color--silver {
  background:
    linear-gradient(135deg,
      #f0f0f0,
      #9f9fa4);
}

.swatch__color--gold {
  background:
    linear-gradient(135deg,
      #e3ca7e,
      #9f7930);
}


/* =========================================================
   WATCH FACE OPTIONS
   ========================================================= */

.face-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 10px;
}

.face-option {
  min-height: 44px;

  padding: 0 14px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--surface);

  color: var(--muted);

  font-size: 0.78rem;
  font-weight: 600;

  cursor: pointer;

  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.face-option:hover {
  border-color: var(--border-light);

  color: var(--text);
}

.face-option.is-active {
  border-color: #ffffff;

  background: #ffffff;

  color: #111111;
}


/* =========================================================
   CONFIGURATION SUMMARY
   ========================================================= */

.configuration-summary {
  margin-top: 34px;

  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: var(--surface);
}

.configuration-summary span {
  display: block;

  margin-bottom: 8px;

  color: var(--muted-2);

  font-size: 0.7rem;

  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.configuration-summary strong {
  display: block;

  font-size: 0.86rem;
  line-height: 1.45;
}


/* =========================================================
   AR BUTTON
   ========================================================= */

.ar-preview-button {
  width: 100%;
  min-height: 52px;

  margin-top: 18px;

  padding: 0 20px;

  border: 0;
  border-radius: 999px;

  background: #ffffff;
  color: #111111;

  font-size: 0.88rem;
  font-weight: 750;

  cursor: pointer;
}

.ar-preview-button:disabled {
  background: #333337;
  color: #77777c;

  cursor: not-allowed;
}

.ar-coming-soon {
  margin: 12px 0 0;

  color: var(--muted-2);

  font-size: 0.74rem;
  line-height: 1.5;

  text-align: center;
}

.ar-preview-button:not(:disabled) {
  background: #ffffff;
  color: #111111;
  cursor: pointer;
}

.ar-preview-button:not(:disabled):hover {
  background: #ececec;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  min-height: 86px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 20px;

  color: var(--muted-2);

  font-size: 0.72rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

  .configurator-layout {
    grid-template-columns: 1fr;

    gap: 46px;
  }

  .configuration-panel {
    padding-top: 0;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

  .page-shell,
  .site-header__inner {
    width: min(100% - 24px, 1180px);
  }

  .site-header__inner {
    min-height: 68px;
  }

  .brand__logo {
    height: 34px;
    max-width: 150px;
  }

  .demo-badge {
    display: none;
  }

  .hero {
    padding: 62px 0 36px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .hero__intro {
    margin-top: 24px;
  }

  .configurator-section {
    padding-bottom: 70px;
  }

  .viewer-card {
    border-radius: 20px;
  }

  model-viewer {
    height: 500px;
  }

  .viewer-toolbar {
    min-height: 68px;

    padding: 14px 16px;
  }

  .viewer-controls {
    justify-content: flex-start;

    gap: 10px 18px;

    padding: 14px 16px;
  }

  .face-options {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    min-height: 110px;

    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

  .page-shell,
  .site-header__inner {
    width: calc(100% - 20px);
  }

  model-viewer {
    height: 440px;
  }

  .swatch {
    width: 44px;
    height: 44px;
  }

  .swatch__color {
    width: 28px;
    height: 28px;
  }
}

/* =========================================================
   MOBILE HERO FIX
   Keep this at the END of the stylesheet
   ========================================================= */

@media screen and (max-width: 900px) {

  .hero {
    padding: 62px 0 44px;
  }

  .hero-layout {
    display: block;
    width: min(100% - 24px, 1180px);
  }

  .hero__content {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .hero-qr {
    display: none !important;
  }

  .hero h1 {
    width: 100%;
    max-width: none;

    font-size: clamp(4rem, 17vw, 6rem);
    line-height: 0.92;
  }

  .hero__intro {
    width: 100%;
    max-width: 100%;

    margin-top: 28px;

    font-size: 1.05rem;
    line-height: 1.65;
  }
}


@media screen and (max-width: 430px) {

  .hero {
    padding-top: 56px;
  }

  .hero h1 {
    font-size: clamp(3.7rem, 18vw, 5rem);
  }

  .hero__intro {
    font-size: 1rem;
  }
}