/* Lootly — dark + gold theme */

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0D0D0D;
  --surface: #161616;
  --surface2: #1E1E1E;
  --gold: #C9A84C;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --gold-border: rgba(201, 168, 76, 0.25);
  --text: #F0EEE8;
  --muted: #888;
  --border: rgba(255, 255, 255, 0.07);
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 10px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #e0be6a; }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 2rem; }

/* ===== NAV ===== */
.nav {
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-link { color: var(--muted); font-size: .875rem; font-weight: 500; transition: color .2s; }
.nav-link:hover { color: var(--text); text-decoration: none; }
.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .2rem .6rem;
  border-radius: 4px;
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

/* ===== HERO ===== */
.hero { background: var(--bg); padding: 80px 0 64px; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.eyebrow-line { width: 32px; height: 2px; background: var(--gold); border-radius: 2px; }
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.hero h1 .gold { color: var(--gold); }
.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 460px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: .75rem; }
.pill {
  font-size: .8rem;
  padding: .4rem .9rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: var(--surface);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  border: none;
  transition: all .15s;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--gold); color: #0D0D0E; font-family: var(--font-display); font-weight: 700; }
.btn-primary:hover { background: #d4b55a; }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--gold-border);
}
.btn-outline:hover { background: var(--gold-dim); border-color: var(--gold); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }
.btn-buy {
  background: var(--gold);
  color: #0D0D0E;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background .15s;
  font-size: .875rem;
}
.btn-buy:hover { background: #d4b55a; }
.btn-buy:disabled { opacity: .6; cursor: not-allowed; }

/* ===== SECTIONS ===== */
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-header { margin-bottom: 40px; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  max-width: 560px;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0,0,0,.4), 0 0 40px var(--gold-dim);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card-cat {
  font-size: .72rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gold);
  margin-bottom: 6px;
}
.product-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.product-card p { color: var(--muted); font-size: .85rem; flex: 1; margin-bottom: 16px; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--gold); }

/* ===== CATEGORY FILTER ===== */
.category-filter {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.cat-btn {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.cat-btn:hover { border-color: var(--gold-border); color: var(--gold); text-decoration: none; }
.cat-btn.active { background: var(--gold); border-color: var(--gold); color: #0D0D0E; font-weight: 700; }

/* ===== PRODUCT DETAIL ===== */
.detail-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 64px 0;
}
.detail-hero-page {
  background: var(--surface);
  padding: 48px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.detail-img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface2);
  border: 1px solid var(--border);
}
.detail-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.detail-content h1 { font-size: 1.75rem; margin-bottom: 8px; }
.detail-price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--gold); margin: 16px 0; }
.detail-desc { color: var(--muted); font-size: .95rem; margin-bottom: 24px; line-height: 1.7; }
.detail-email-row { margin-bottom: 20px; }
.detail-email-row label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.detail-email-row input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text);
  font-size: .9rem;
  font-family: var(--font-body);
}
.detail-email-row input::placeholder { color: var(--muted); }
.detail-email-row input:focus { outline: none; border-color: var(--gold-border); }
.detail-features { list-style: none; margin-bottom: 24px; }
.detail-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.detail-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  font-size: .9rem;
}

/* ===== TIER CARDS ===== */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: -40px;
}
.tier-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.tier-card:hover { border-color: var(--gold-border); box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.tier-card.active { border-color: var(--gold); box-shadow: 0 0 30px var(--gold-dim); }
.tier-badge-popular {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: #0D0D0E;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 20px;
  letter-spacing: .04em;
  font-family: var(--font-display);
}
.tier-name {
  font-size: .7rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.tier-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.tier-meta { font-size: .8rem; color: var(--muted); margin-bottom: 20px; }
.tier-features { list-style: none; flex: 1; margin-bottom: 20px; }
.tier-features li {
  font-size: .85rem;
  padding: 5px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
}
.tier-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }

/* ===== CHECKOUT SUCCESS ===== */
.success-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
}
.success-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  max-width: 480px;
  width: 100%;
  text-align: center;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: rgba(201, 168, 76, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border: 1px solid var(--gold-border);
}
.success-icon svg { width: 32px; height: 32px; }
.success-box h1 { font-size: 1.5rem; margin-bottom: 12px; color: var(--text); }
.success-box p { color: var(--muted); margin-bottom: 24px; font-size: .95rem; }
.success-details {
  background: var(--surface2);
  border-radius: 10px;
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
  border: 1px solid var(--border);
}
.success-details .row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .875rem; }
.success-details .label { color: var(--muted); }
.success-details .val { font-weight: 600; color: var(--text); }
.download-btn {
  display: inline-block;
  background: var(--gold);
  color: #0D0D0E;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 1rem;
  text-decoration: none;
  transition: background .15s;
}
.download-btn:hover { background: #d4b55a; text-decoration: none; }
.success-note { margin-top: 12px; font-size: .8rem; color: var(--muted); }

/* ===== 404 ===== */
.not-found {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}
.not-found h1 { font-size: 5rem; color: var(--surface2); font-family: var(--font-display); font-weight: 800; margin-bottom: 8px; }
.not-found p { color: var(--muted); margin-bottom: 24px; }

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 32px 0;
  margin-top: auto;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
}
.footer-logo span { color: var(--gold); }
.footer-copy { color: var(--muted); font-size: .85rem; }

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--muted);
  font-weight: 500;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }

/* ===== CATEGORIES BROWSE ===== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.cat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cat-card:hover { border-color: var(--gold-border); transform: translateY(-2px); }
.cat-icon { font-size: 2rem; margin-bottom: 4px; }
.cat-card h3 { font-size: .95rem; font-weight: 600; color: var(--text); }
.cat-card span { font-size: .8rem; color: var(--muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .detail-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 600px) {
  .hero { padding: 56px 0 48px; }
  .categories-grid { grid-template-columns: 1fr; }
  .success-box { padding: 32px 24px; }
  .nav-links { display: none; }
}