:root {
  --obsidian-gold: #d4af37;
  --noir-black: #04040a;
  --viewport-w: 393px;
  --viewport-ratio: 393 / 852;
  --horizon: 40%;
}

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

html, body {
  width: 100%;
  min-height: 100dvh;
  background: var(--noir-black);
  color: var(--obsidian-gold);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  opacity: 0;
  transition: opacity 0.45s ease;
}

body.is-ready {
  opacity: 1;
}

.home-shell {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12px 0 32px;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, rgba(212, 175, 55, 0.08), transparent 55%), var(--noir-black);
}

/* Viewport clamp — iPhone 393×852 baseline */
.home-viewport {
  position: relative;
  width: 100%;
  max-width: var(--viewport-w);
  aspect-ratio: var(--viewport-ratio);
  min-height: min(852px, 100dvh);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

/* Horizon 40% — text-free background layer z-0 */
.home-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: var(--noir-black);
}

.home-bg-layer img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--horizon);
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

.home-bg-fade {
  position: absolute;
  top: calc(var(--horizon) - 48px);
  left: 0;
  right: 0;
  height: 96px;
  background: linear-gradient(to bottom, transparent, var(--noir-black));
  z-index: 1;
  pointer-events: none;
}

/* Text stack starts at top 40% */
.home-content {
  position: absolute;
  top: var(--horizon);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px 18px 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.home-glass {
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(9, 9, 11, 0.4);
  border: 1px solid rgba(212, 175, 55, 0.16);
  border-radius: 18px;
  padding: 16px 14px;
}

.home-kicker {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.72);
  margin-bottom: 6px;
}

.home-title {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(28px, 8vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 4px;
}

.home-sub {
  font-size: 12px;
  color: rgba(240, 237, 232, 0.62);
  line-height: 1.55;
  margin-bottom: 14px;
}

.home-state {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: var(--obsidian-gold);
  margin-bottom: 16px;
}

.home-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.home-product {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.18);
  background: rgba(4, 4, 10, 0.55);
  padding: 12px 12px 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.home-product:not(.is-disabled):hover {
  border-color: rgba(212, 175, 55, 0.42);
  transform: translateY(-1px);
}

.home-product.is-disabled {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
}

.home-product-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.home-product-desc {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(240, 237, 232, 0.58);
}

.home-product-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.22);
}

.home-product-badge--live { color: #f0c93a; }
.home-product-badge--hold { color: rgba(240, 201, 58, 0.75); }
.home-product-badge--standby { color: rgba(240, 237, 232, 0.45); }

.home-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 11px;
  margin-bottom: 12px;
}

.home-legal a {
  color: rgba(212, 175, 55, 0.82);
  text-decoration: none;
}

.home-legal a:hover { text-decoration: underline; }

.home-warning {
  font-size: 10px;
  line-height: 1.5;
  color: rgba(240, 237, 232, 0.42);
}

.home-mail {
  margin-top: 10px;
  font-size: 11px;
}

.home-mail a {
  color: rgba(212, 175, 55, 0.7);
  text-decoration: none;
}

@media (max-width: 420px) {
  .home-shell { padding: 0; }
  .home-viewport {
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}
