@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Sora:wght@300;400;500;600;700&display=swap');

:root {
  --paper: #f8f1f3;
  --paper-deep: #efe2e8;
  --panel: rgba(255, 251, 252, 0.92);
  --ink: #2b2531;
  --ink-soft: #675c72;
  --line: rgba(43, 37, 49, 0.16);
  --line-strong: rgba(43, 37, 49, 0.3);
  --green-900: #4f2f47;
  --green-700: #7e4c6f;
  --green-500: #b26f8f;
  --gold-600: #9a6b78;
  --gold-400: #c5929d;
  --alert: #8a3b2f;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 40px rgba(25, 33, 27, 0.11);
  --shadow-card: 0 12px 28px rgba(25, 33, 27, 0.08);
  --maxw: 1220px;
  --brand-badge-image: url('/assets/lumhaven-badge.svg');
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: 'Sora', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -8%, rgba(197, 146, 157, 0.3), transparent 42%),
    radial-gradient(circle at 96% 0%, rgba(178, 111, 143, 0.26), transparent 38%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(43, 37, 49, 0.02) 0,
      rgba(43, 37, 49, 0.02) 1px,
      transparent 1px,
      transparent 42px
    );
  opacity: 0.75;
}

.shell {
  width: min(var(--maxw), 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(248, 241, 243, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(118, 150, 112, 0.5);
  background:
    linear-gradient(145deg, rgba(210, 228, 201, 0.9), rgba(163, 193, 150, 0.9)),
    var(--brand-badge-image) center / cover no-repeat;
  display: grid;
  place-content: center;
  color: transparent;
  font-size: 0;
  box-shadow: 0 6px 16px rgba(25, 33, 27, 0.14);
}

.brand-text {
  display: grid;
  gap: 0.14rem;
}

.brand-title {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--green-900);
}

.brand-sub {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.62rem;
  color: var(--ink-soft);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 9px;
  padding: 0.45rem 0.62rem;
  color: var(--ink);
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 0.36rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  font-size: 0.83rem;
  transition: 140ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--green-900);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
}

.nav .nav-cta {
  border-color: rgba(178, 111, 143, 0.38);
  background: rgba(178, 111, 143, 0.15);
  color: #663f58;
}

main {
  padding: 1.2rem 0 2.6rem;
}

.hero {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 252, 253, 0.97), rgba(244, 228, 236, 0.9));
  box-shadow: var(--shadow-soft);
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1.08fr 1.22fr;
  gap: 1rem;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: 0.15rem 0.2rem;
}

.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.68rem;
  color: var(--green-700);
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.01em;
  color: var(--green-900);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.65rem);
  line-height: 0.97;
  max-width: 12ch;
}

.hero-wordmark {
  width: min(420px, 92%);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 14px rgba(30, 35, 28, 0.1));
}

.hero-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.68;
  font-size: 0.98rem;
}

.cta-row {
  display: flex;
  gap: 0.56rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  padding: 0.75rem 1rem;
  transition: 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.btn-primary {
  color: #f7f8f7;
  background: linear-gradient(132deg, #5f3554, #b26f8f);
  border-color: rgba(95, 53, 84, 0.55);
}

.btn-gold {
  color: #6d4650;
  border-color: rgba(197, 146, 157, 0.46);
  background: linear-gradient(132deg, rgba(233, 194, 205, 0.35), rgba(255, 248, 251, 0.95));
}

.hero-scene-card {
  border: 1px solid rgba(81, 59, 80, 0.26);
  border-radius: 18px;
  background: radial-gradient(circle at 50% 18%, rgba(206, 156, 180, 0.28), rgba(45, 31, 44, 0.96));
  overflow: hidden;
  min-height: 400px;
  display: grid;
  grid-template-rows: auto auto;
}

.hero-scene {
  width: 100%;
  height: 320px;
  display: block;
}

.scene-tools {
  border-top: 1px solid rgba(255, 229, 239, 0.2);
  padding: 0.58rem 0.62rem 0.64rem;
}

.scene-pills {
  display: flex;
  gap: 0.44rem;
  flex-wrap: wrap;
}

.scene-pill {
  appearance: none;
  border: 1px solid rgba(243, 206, 220, 0.38);
  border-radius: 999px;
  background: rgba(61, 39, 57, 0.68);
  color: #f4ddea;
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.36rem 0.58rem;
  cursor: pointer;
}

.scene-pill.active {
  border-color: rgba(253, 213, 231, 0.62);
  background: rgba(205, 134, 167, 0.28);
  color: #fff4fb;
}

.metric-strip {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.58rem;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.62rem;
}

.metric-label {
  display: block;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #786b7f;
}

.metric strong {
  display: block;
  margin-top: 0.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem;
  color: var(--green-900);
}

.section {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  padding: 1.05rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
}

.section-head p {
  margin: 0;
  max-width: 68ch;
  color: var(--ink-soft);
  line-height: 1.6;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 0.75rem;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  padding: 0.84rem;
}

.card h3 {
  margin: 0;
  font-size: 1.14rem;
}

.card p,
.card li,
.lead {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  line-height: 1.6;
}

.card ul {
  margin: 0.55rem 0 0;
  padding-left: 1.05rem;
}

.card .price {
  margin-top: 0.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: #7a4c5f;
}

.ribbon {
  display: inline-flex;
  border-radius: 999px;
  border: 1px solid rgba(126, 76, 111, 0.36);
  padding: 0.3rem 0.54rem;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #6e3f5b;
  background: rgba(178, 111, 143, 0.13);
}

.ribbon.gold {
  border-color: rgba(197, 146, 157, 0.44);
  color: #7d5263;
  background: rgba(233, 194, 205, 0.2);
}

.story-quote {
  margin: 0;
  border-left: 3px solid rgba(197, 146, 157, 0.56);
  padding-left: 0.65rem;
  color: #47574e;
  line-height: 1.72;
  font-style: italic;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0.7rem;
}

.timeline-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
  padding: 0.7rem 0.74rem;
}

.timeline-item .step {
  margin: 0;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5c6d63;
}

.timeline-item h4 {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
}

.form {
  display: grid;
  gap: 0.6rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.56rem;
}

label {
  display: grid;
  gap: 0.3rem;
  color: #5a695f;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

input,
textarea,
select {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font: inherit;
  padding: 0.64rem 0.7rem;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.slider-line {
  display: grid;
  gap: 0.22rem;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #6f6477;
  font-size: 0.75rem;
}

input[type='range'] {
  accent-color: #9f5f82;
  padding: 0;
}

.alert {
  border: 1px solid rgba(138, 59, 47, 0.35);
  background: rgba(138, 59, 47, 0.08);
  border-radius: 10px;
  color: var(--alert);
  padding: 0.56rem 0.62rem;
  font-size: 0.84rem;
}

.success {
  border: 1px solid rgba(126, 76, 111, 0.35);
  background: rgba(178, 111, 143, 0.12);
  border-radius: 10px;
  color: #5f3650;
  padding: 0.56rem 0.62rem;
  font-size: 0.84rem;
}

.output {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.68rem;
  display: grid;
  gap: 0.38rem;
}

.output h4 {
  margin: 0;
  font-size: 1.07rem;
}

.output p,
.output li {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.72rem;
  display: grid;
  gap: 0.34rem;
}

.product-card h4 {
  margin: 0;
  font-size: 1.06rem;
}

.product-card .tagline {
  margin: 0;
  color: #725b6c;
  font-size: 0.86rem;
}

.product-card .blend,
.product-card .purpose,
.product-card .safety {
  margin: 0;
  color: #6f6477;
  font-size: 0.79rem;
  line-height: 1.45;
}

.product-actions {
  margin-top: 0.38rem;
  display: grid;
  gap: 0.36rem;
}

.btn-checkout {
  width: 100%;
}

.buy-status {
  margin: 0;
  min-height: 1.15rem;
  color: #6a5f72;
  font-size: 0.72rem;
  line-height: 1.3;
}

.buy-status.error {
  color: var(--alert);
}

.product-controls {
  margin-bottom: 0.64rem;
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.filter-chip {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #6a5f72;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.36rem 0.62rem;
  cursor: pointer;
}

.filter-chip.active {
  border-color: rgba(126, 76, 111, 0.42);
  background: rgba(178, 111, 143, 0.14);
  color: #5f3650;
}

.orders-table-wrap {
  margin-top: 0.8rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
}

.orders-table th,
.orders-table td {
  text-align: left;
  font-size: 0.77rem;
  color: var(--ink-soft);
  padding: 0.56rem 0.62rem;
  border-bottom: 1px solid rgba(43, 37, 49, 0.1);
}

.orders-table th {
  color: #4f3f5a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
  background: rgba(248, 242, 247, 0.88);
}

.orders-table tr:last-child td {
  border-bottom: 0;
}

.orders-table code {
  font-size: 0.68rem;
}

.orders-table td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.studio-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.studio-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.85rem;
}

.studio-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.theme-grid {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-grid label {
  font-size: 0.64rem;
}

.theme-grid input[type='color'] {
  height: 38px;
  padding: 0.2rem;
}

.console-box {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  min-height: 240px;
  padding: 0.74rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.console-box h4 {
  margin: 0.1rem 0 0.3rem;
}

.console-box p,
.console-box li {
  margin: 0.2rem 0;
}

.file-upload-row {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.footer {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  padding: 1rem 0 1.4rem;
  color: #5f6e65;
  font-size: 0.82rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.footer a {
  color: #6c4760;
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 320ms ease, transform 320ms ease;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-scene-card {
    min-height: 0;
  }

  .hero-scene {
    height: 280px;
  }

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

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

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

  .studio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .hero-wordmark {
    width: min(320px, 100%);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 0.5rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
  }

  .header-inner {
    align-items: flex-start;
  }

  .grid-3,
  .grid-2,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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