:root {
  --bg: #050505;
  --panel: #101010;
  --text: #f3eee8;
  --muted: #b7ae9e;
  --gold: #bf9255;
  --line: #292117;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  background: radial-gradient(circle at 10% 10%, #16120f 0%, var(--bg) 45%);
  color: var(--text);
  min-height: 100vh;
  transition: opacity 900ms ease;
}

body.fade-out {
  opacity: 0;
}

.container {
  width: min(900px, 92vw);
  margin: 0 auto;
}

.page-title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  font-weight: 600;
}

.btn-primary {
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, #6f522f, #b4864d);
  color: #120d08;
  font-size: 1rem;
  padding: 0.75rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(191, 146, 85, 0.2);
}

.gateway {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.2rem;
  text-align: center;
}

.logo-mark {
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  letter-spacing: 0.6rem;
  font-weight: 700;
}

.gateway-line {
  color: var(--muted);
  margin: 0;
}

.page-enter,
.page-depth,
.page-reveal,
.page-ritual,
.page-checkout {
  padding: 3rem 0;
}

.smoke {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(200, 200, 200, 0.08), transparent 42%),
    radial-gradient(circle at 20% 70%, rgba(200, 200, 200, 0.06), transparent 36%);
  filter: blur(30px);
  pointer-events: none;
  animation: drift 8s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translateY(-10px);
  }
  to {
    transform: translateY(16px);
  }
}

.enter-wrap,
.depth-wrap,
.reveal-wrap,
.ritual-wrap,
.checkout-minimal {
  position: relative;
  z-index: 2;
}

.enter-wrap {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 2rem;
}

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

.presence-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(17, 17, 17, 0.7);
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  transition: transform 280ms ease, border-color 280ms ease;
}

.presence-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

.presence-icon {
  font-size: 2.1rem;
}

.presence-name {
  font-size: 1.5rem;
}

.depth-wrap {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.depth-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.depth-btn {
  text-align: center;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  background: #0f0f0f;
  transition: border-color 220ms ease, transform 220ms ease;
}

.depth-btn:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.subline {
  text-align: center;
  color: var(--muted);
}

.reveal-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.reveal-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.1rem;
  background: linear-gradient(120deg, rgba(15, 15, 15, 0.95), rgba(28, 23, 16, 0.72));
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease, box-shadow 250ms ease;
}

.reveal-card.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card.glow {
  box-shadow: 0 18px 36px rgba(191, 146, 85, 0.15);
  border-color: #6e5638;
}

.reveal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.reveal-head h3 {
  margin: 0;
}

.ritual-wrap {
  display: grid;
  gap: 1.4rem;
}

.ritual-title {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.95;
}

.ritual-image {
  height: clamp(240px, 42vw, 380px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: radial-gradient(circle at 20% 20%, rgba(191, 146, 85, 0.2), transparent 40%), #0d0d0d;
}

.notes {
  display: grid;
  gap: 0.8rem;
}

.notes-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.8rem;
}

.notes-item strong {
  display: block;
  margin-bottom: 0.25rem;
}

.size-picker {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.size-option {
  border: 1px solid var(--line);
  background: #101010;
  color: var(--text);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.size-option.active {
  border-color: var(--gold);
}

.price {
  color: var(--gold);
  font-size: 1.2rem;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

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

.cart-panel {
  width: min(420px, 90vw);
  background: #111;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  display: grid;
  gap: 0.8rem;
}

.checkout-minimal {
  min-height: 84vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.checkout-form {
  display: grid;
  gap: 0.7rem;
}

.checkout-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
}

.checkout-form input {
  background: #0e0e0e;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 0.65rem;
}

@media (max-width: 760px) {
  .presence-grid,
  .depth-options {
    grid-template-columns: 1fr;
  }

  .presence-card {
    min-height: 140px;
  }
}
