:root {
  --paper: #f7f3ed;
  --surface: #fffaf2;
  --ink: #142021;
  --muted: #65706f;
  --line: #ded6ca;
  --teal: #0f6f68;
  --coral: #d65f45;
  --gold: #b8893b;
  --leaf: #78914b;
  --shadow: 0 18px 48px rgba(20, 32, 33, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 12%, rgba(15, 111, 104, 0.18), transparent 26vw),
    radial-gradient(circle at 12% 56%, rgba(214, 95, 69, 0.12), transparent 24vw),
    linear-gradient(180deg, #f8f4ed 0%, #eef1e7 48%, #fffaf2 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(20, 32, 33, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 33, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, transparent, black 16%, black 82%, transparent);
  pointer-events: none;
}

button,
select,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(247, 243, 237, 0.92);
  border-bottom: 1px solid rgba(222, 214, 202, 0.85);
  backdrop-filter: blur(18px);
}

main {
  position: relative;
  z-index: 1;
}

.brand,
.header-actions,
.desktop-nav,
.hero-actions,
.toolbar {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--surface);
}

.desktop-nav {
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.desktop-nav a:hover {
  color: var(--ink);
}

.header-actions {
  gap: 12px;
}

.select-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 10px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.86);
  color: var(--muted);
  font-size: 0.82rem;
}

select {
  border: 0;
  background: transparent;
  color: var(--ink);
  outline: 0;
  cursor: pointer;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover,
.chip:hover,
.checkout-button:hover,
.primary-link:hover {
  transform: translateY(-1px);
}

.icon-button svg,
.operation svg,
.checkout-button svg {
  width: 19px;
  height: 19px;
}

#cartCount {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-size: 0.74rem;
  line-height: 20px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  display: grid;
  align-items: center;
  padding: clamp(56px, 7vw, 96px) clamp(18px, 5vw, 72px);
  overflow: hidden;
  isolation: isolate;
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247, 243, 237, 0.98), rgba(247, 243, 237, 0.72) 40%, rgba(247, 243, 237, 0.18) 72%),
    linear-gradient(0deg, rgba(20, 32, 33, 0.12), rgba(20, 32, 33, 0));
}

.world-3d {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.world-3d canvas {
  display: block;
  width: 100%;
  height: 100svh;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(600px, 100%);
  transform: translateY(calc(var(--hero-shift, 0) * -38px));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.hero p:not(.eyebrow) {
  color: #3b4747;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.62;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.secondary-link,
.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-link,
.checkout-button {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
}

.secondary-link {
  border: 1px solid rgba(20, 32, 33, 0.24);
  background: rgba(255, 250, 242, 0.78);
}

.metrics-band,
.drop-banner,
.scroll-story,
.catalog-section,
.operation,
.trust-band {
  padding: clamp(44px, 6vw, 78px) clamp(18px, 5vw, 72px);
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  color: var(--surface);
  perspective: 900px;
}

.metrics-band div {
  min-height: 120px;
  padding: 24px;
  background: #1d2b2b;
  opacity: calc(0.48 + (var(--scroll-reveal, 0) * 0.52));
  transform: translateY(calc((1 - var(--scroll-reveal, 0)) * 28px)) rotateX(calc((1 - var(--scroll-reveal, 0)) * 8deg));
  transform-origin: center bottom;
  transition: background 0.2s ease;
}

.metrics-band strong,
.metrics-band span {
  display: block;
}

.metrics-band strong {
  margin-bottom: 8px;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.metrics-band span {
  color: #c5cfcc;
}

.drop-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.52fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: center;
  min-height: 72svh;
  border-top: 1px solid rgba(20, 32, 33, 0.1);
  border-bottom: 1px solid rgba(20, 32, 33, 0.1);
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.9), rgba(255, 250, 242, 0.48)),
    rgba(238, 241, 231, 0.72);
  overflow: hidden;
}

.drop-banner::before {
  content: "AURORA GLOBAL DROP";
  position: absolute;
  right: -4vw;
  bottom: -0.18em;
  z-index: -1;
  color: rgba(20, 32, 33, 0.055);
  font-size: clamp(4.2rem, 13vw, 13rem);
  font-weight: 900;
  line-height: 0.8;
  white-space: nowrap;
}

.banner-copy {
  max-width: 680px;
  opacity: calc(0.5 + (var(--scroll-reveal, 0) * 0.5));
  transform:
    perspective(900px)
    translateY(calc((1 - var(--scroll-reveal, 0)) * 46px))
    rotateX(calc((1 - var(--scroll-reveal, 0)) * 7deg));
}

.banner-copy h2 {
  max-width: 760px;
  font-size: clamp(2.8rem, 7vw, 7.2rem);
  line-height: 0.88;
}

.banner-copy p:not(.eyebrow) {
  max-width: 620px;
  color: #3c4848;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.62;
}

.banner-stats {
  display: grid;
  gap: 14px;
  min-height: 320px;
  align-content: center;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(20, 32, 33, 0.16);
  border-radius: 8px;
  background: rgba(20, 32, 33, 0.88);
  color: var(--surface);
  box-shadow: var(--shadow);
  opacity: calc(0.46 + (var(--scroll-reveal, 0) * 0.54));
  transform:
    perspective(1000px)
    translate3d(calc((1 - var(--scroll-reveal, 0)) * 38px), calc((1 - var(--scroll-reveal, 0)) * 28px), 0)
    rotateY(calc((1 - var(--scroll-reveal, 0)) * -12deg));
  transform-origin: center left;
}

.banner-stats strong,
.banner-stats span {
  display: block;
}

.banner-stats strong {
  font-size: clamp(1.8rem, 4vw, 3.3rem);
  line-height: 0.95;
}

.banner-stats span {
  color: #ccd6d2;
}

.scroll-story {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 62svh;
  align-items: end;
  background: rgba(247, 243, 237, 0.72);
  perspective: 1100px;
}

.scroll-story article {
  min-height: 320px;
  padding: 24px;
  border: 1px solid rgba(20, 32, 33, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.78);
  box-shadow: 0 20px 50px rgba(20, 32, 33, 0.1);
  opacity: calc(0.46 + (var(--scroll-reveal, 0) * 0.54));
  transform:
    translateY(calc((1 - var(--scroll-reveal, 0)) * 40px))
    rotateX(calc((1 - var(--scroll-reveal, 0)) * 12deg))
    rotateY(calc((1 - var(--scroll-reveal, 0)) * var(--tilt, 1) * 7deg));
  transform-origin: center bottom;
}

.scroll-story article:nth-child(1) {
  --tilt: -1;
}

.scroll-story article:nth-child(3) {
  --tilt: 1;
}

.scroll-story span {
  display: block;
  margin-bottom: 36px;
  color: var(--coral);
  font-weight: 900;
}

.scroll-story p {
  color: var(--muted);
  line-height: 1.5;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
}

.toolbar {
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.chip.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.catalog-section {
  position: relative;
  background: rgba(247, 243, 237, 0.78);
  backdrop-filter: blur(2px);
}

.catalog-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(247, 243, 237, 0.6), rgba(247, 243, 237, 0.92));
}

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  opacity: calc(0.54 + (var(--scroll-reveal, 0) * 0.46));
  transform:
    perspective(900px)
    translateY(calc((1 - var(--scroll-reveal, 0)) * 34px))
    rotateX(calc((1 - var(--scroll-reveal, 0)) * 7deg));
  transform-origin: center bottom;
  transition:
    box-shadow 0.22s ease,
    transform 0.22s ease,
    border-color 0.22s ease;
  will-change: transform, opacity;
}

.product-card:hover {
  border-color: rgba(15, 111, 104, 0.45);
  box-shadow: 0 18px 42px rgba(20, 32, 33, 0.14);
  transform:
    perspective(900px)
    translateY(-5px)
    rotateX(2deg)
    rotateY(-1.5deg);
}

.product-visual {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 0.86;
  background: var(--visual-bg);
  color: rgba(20, 32, 33, 0.84);
}

.product-visual svg {
  width: 46%;
  max-width: 150px;
  height: auto;
  stroke-width: 1.45;
  filter: drop-shadow(0 16px 16px rgba(20, 32, 33, 0.14));
  transform: translateZ(22px);
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.product-card p {
  color: var(--muted);
  line-height: 1.5;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.price-row strong {
  font-size: 1.25rem;
}

.add-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: var(--coral);
  color: white;
  cursor: pointer;
}

.add-button svg {
  width: 19px;
  height: 19px;
}

.operation {
  background: rgba(238, 241, 231, 0.86);
  backdrop-filter: blur(2px);
}

.operation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  perspective: 1000px;
}

.operation article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid #d5dccb;
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.62);
  opacity: calc(0.5 + (var(--scroll-reveal, 0) * 0.5));
  transform:
    perspective(840px)
    translateY(calc((1 - var(--scroll-reveal, 0)) * 30px))
    rotateX(calc((1 - var(--scroll-reveal, 0)) * 6deg));
  transform-origin: center bottom;
}

.operation svg {
  margin-bottom: 18px;
  color: var(--teal);
}

.operation p,
.trust-band li,
.checkout-note {
  color: var(--muted);
  line-height: 1.5;
}

.trust-band {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
  background: rgba(255, 250, 242, 0.88);
  opacity: calc(0.54 + (var(--scroll-reveal, 0) * 0.46));
  transform: translateY(calc((1 - var(--scroll-reveal, 0)) * 28px));
}

.trust-band ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  justify-items: end;
  background: rgba(20, 32, 33, 0.36);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.cart-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  height: 100%;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(20px);
  transition: transform 0.18s ease;
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.cart-items {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding-right: 4px;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-thumb {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--visual-bg);
}

.cart-thumb svg {
  width: 30px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-controls button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  cursor: pointer;
}

.shipping-box {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.shipping-box select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
}

.totals {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.totals dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.grand-total {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
}

.checkout-button {
  width: 100%;
  gap: 10px;
  border: 0;
  cursor: pointer;
}

.checkout-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.checkout-button:disabled svg {
  animation: spin 0.9s linear infinite;
}

.checkout-note {
  margin: 12px 0 0;
  font-size: 0.88rem;
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 36px));
  padding: 13px 15px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.status-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.status-shell {
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 70px);
  border: 1px solid rgba(20, 32, 33, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.9);
  box-shadow: var(--shadow);
}

.status-shell h1 {
  font-size: clamp(2.6rem, 7vw, 6rem);
}

.status-shell p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .product-grid,
  .operation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-heading,
  .drop-banner,
  .trust-band {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .scroll-story {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .select-shell {
    flex: 1;
    justify-content: space-between;
  }

  .hero {
    min-height: 720px;
    align-items: start;
    padding-top: 58px;
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(247, 243, 237, 0.98), rgba(247, 243, 237, 0.86) 52%, rgba(247, 243, 237, 0.28)),
      linear-gradient(0deg, rgba(20, 32, 33, 0.12), rgba(20, 32, 33, 0));
  }

  .world-3d {
    opacity: 0.78;
  }

  .metrics-band,
  .product-grid,
  .operation-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    min-height: 430px;
  }
}
