:root {
  --bg: #1a1612;
  --bg-2: #221c16;
  --fg: #f5efe4;
  --muted: #b8ad97;
  --card: #221c16;
  --card-2: #1a1410;
  --border: rgba(212, 175, 95, 0.25);
  --border-strong: rgba(212, 175, 95, 0.5);
  --gold: #d4af5f;
  --gold-bright: #ecc97a;
  --gold-dim: #8a7344;
  --gradient-gold: linear-gradient(135deg, #ecc97a, #a8853f);
  --gradient-card: linear-gradient(160deg, #2a2218, #16110c);
  --shadow-gold: 0 10px 40px -10px rgba(212, 175, 95, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; border-color: var(--border); }
html, body { background: var(--bg); color: var(--fg); font-family: 'Inter', sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Playfair Display', serif; letter-spacing: -0.02em; font-weight: 600; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-gold-dim { color: var(--gold-dim); }
.font-display { font-family: 'Playfair Display', serif; }
.italic { font-style: italic; }
.tracking-wide { letter-spacing: 0.25em; text-transform: uppercase; font-size: 11px; }

.gradient-gold-text {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gold-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(212, 175, 95, 0.1);
  border-radius: 16px;
}
.gold-card-glow {
  background: var(--gradient-card);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 30px rgba(212, 175, 95, 0.2), inset 0 1px 0 rgba(212, 175, 95, 0.2);
  border-radius: 16px;
}
.gold-border { border: 1px solid rgba(212, 175, 95, 0.35); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 8px; font-weight: 500; font-size: 14px; transition: all .3s ease; }
.btn-gold {
  background: var(--gradient-gold);
  color: #1a1410;
  box-shadow: var(--shadow-gold);
  font-weight: 600;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 15px 50px -10px rgba(212, 175, 95, 0.55); }
.btn-outline {
  border: 1px solid rgba(212, 175, 95, 0.6);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover { background: rgba(212, 175, 95, 0.1); }

.connector-line { background: linear-gradient(90deg, transparent, rgba(212, 175, 95, 0.6), transparent); height: 1px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(12px); background: rgba(26, 22, 18, 0.75); border-bottom: 1px solid var(--border); }
.nav-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gradient-card); border: 1px solid var(--border-strong); box-shadow: 0 0 20px rgba(212,175,95,0.2); }
.brand-name { font-family: 'Playfair Display', serif; font-size: 18px; line-height: 1; }
.brand-sub { font-size: 10px; letter-spacing: 0.2em; color: var(--gold-dim); margin-top: 2px; }
.nav-links { display: none; gap: 28px; font-size: 14px; }
.nav-links a { color: rgba(245,239,228,0.8); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-actions { display: none; align-items: center; gap: 12px; }
.nav-actions button { font-size: 14px; }
.nav-actions .btn { padding: 8px 20px; }
.hamburger { display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--gold); transition: all 0.3s ease; border-radius: 2px; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }
@media (min-width: 1024px) { 
  .nav-links { display: flex; } 
  .nav-actions { display: flex; }
  .hamburger { display: none; }
}
.mobile-menu { 
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(26, 22, 18, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 49;
}
.mobile-menu.active { display: block; animation: slideDown 0.3s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  color: rgba(245,239,228,0.8);
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  transition: color .2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); }
.mobile-menu .nav-actions { 
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}
.mobile-menu .nav-actions .btn { width: 100%; justify-content: center; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 88vh; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay-1 { position: absolute; inset: 0; background: linear-gradient(to right, var(--bg), rgba(26,22,18,0.85), rgba(26,22,18,0.3)); }
.hero-overlay-2 { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), transparent 50%, rgba(26,22,18,0.4)); }
.hero-overlay-3 { position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 40%, rgba(212,175,95,0.18), transparent 60%); }
.hero-content { position: relative; padding: 96px 0; width: 100%; }
.hero-content > div { max-width: 640px; animation: fadeUp .8s ease-out both; }
.hero h1 { font-size: clamp(48px, 7vw, 80px); line-height: 1.05; }
.hero p { margin-top: 24px; color: var(--muted); max-width: 420px; }
.hero-cta { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-after { margin-top: 40px; display: flex; align-items: center; gap: 16px; }
.hero-after .icon-box { width: 80px; height: 56px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: rgba(34,28,22,0.6); animation: float 5s ease-in-out infinite; }
.hero-after .line { flex: 1; max-width: 100px; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,175,95,0.6), transparent); }

/* Section */
section.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(32px, 4vw, 56px); margin-top: 12px; }

/* Stats */
.stats { margin-top: -32px; padding-bottom: 64px; }
.stats-grid { padding: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; align-items: center; gap: 16px; }
.stat .circle { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(212,175,95,0.35); }
.stat-val { font-family: 'Playfair Display', serif; font-size: 24px; color: var(--gold); }
.stat-lbl { font-size: 12px; color: var(--muted); }

/* Problems */
.grid-4 { padding: 32px; display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.problem-card { padding: 24px; transition: all .5s ease; }
.problem-card:hover { border-color: var(--border-strong); box-shadow: 0 0 30px rgba(212,175,95,0.2); }
.problem-card .circle { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(212,175,95,0.35); margin-bottom: 20px; }
.problem-card h3 { font-size: 18px; margin-bottom: 8px; }
.problem-card p { font-size: 14px; color: var(--muted); }

/* How it works */
.steps-wrap { padding: 48px; position: relative; }
.steps-line { display: none; position: absolute; top: 88px; left: 8%; right: 8%; }
@media (min-width: 768px) { .steps-line { display: block; } }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; position: relative; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(6, 1fr); } }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step .circle { width: 80px; height: 80px; border-radius: 50%; background: var(--gradient-card); border: 1px solid var(--border-strong); display: flex; align-items: center; justify-content: center; animation: pulseGlow 2.5s ease-in-out infinite; }
.step .num { margin-top: 16px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(212,175,95,0.35); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--gold); }
.step .title { margin-top: 12px; font-family: 'Playfair Display', serif; font-size: 16px; }
.step .desc { margin-top: 8px; font-size: 12px; color: var(--muted); max-width: 140px; }

/* Plans */
.plans { padding: 40px; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 768px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; padding: 28px; transition: all .5s ease; }
.plan:hover { transform: translateY(-8px); }
.plan-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 4px 16px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.plan h3 { font-size: 24px; }
.plan-features { margin-top: 24px; }
.plan-features li { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 6px 0; }
.plan-price { margin-top: 28px; }
.plan-price .amt { font-family: 'Playfair Display', serif; font-size: 30px; color: var(--gold); }
.plan-price .per { font-size: 14px; color: var(--muted); }
.plan .btn { width: 100%; margin-top: 24px; }

/* Services */
.services { padding: 32px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 768px) { .services { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .services { grid-template-columns: repeat(6, 1fr); } }
.svc-tile { position: relative; overflow: hidden; border-radius: 12px; aspect-ratio: 1; border: 1px solid rgba(212,175,95,0.35); }
.svc-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.svc-tile:hover img { transform: scale(1.1); }
.svc-tile .overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg), rgba(26,22,18,0.3), transparent); }
.svc-tile .label { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 14px; font-weight: 500; }

/* Transparency */
.trans { padding: 32px; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .trans { grid-template-columns: repeat(3, 1fr); } }
.trans-features > div { padding: 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; transition: all .3s; border-radius: 12px; }
.trans-features > div:hover { border-color: var(--border-strong); }
.trans-features .circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(212,175,95,0.35); flex-shrink: 0; }
.trans-card { padding: 20px; border-radius: 12px; }
.trans-card h3 { font-family: 'Playfair Display', serif; font-size: 18px; }
.trans-card img.main { width: 100%; margin-top: 16px; border-radius: 8px; border: 1px solid rgba(212,175,95,0.35); height: 140px; object-fit: cover; }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.ba-item { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid rgba(212,175,95,0.35); }
.ba-item img { width: 100%; height: 96px; object-fit: cover; }
.ba-item span { position: absolute; bottom: 4px; left: 8px; font-size: 12px; color: var(--gold); }
.history-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--border); }

/* Partner */
.partner { padding: 56px; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .partner { grid-template-columns: 1fr 1fr; } }
.partner h2 { font-size: clamp(28px, 4vw, 48px); line-height: 1.2; margin-top: 12px; }
.partner p { margin-top: 20px; color: var(--muted); max-width: 420px; }
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.partner-card { padding: 20px; text-align: center; border-radius: 12px; transition: all .3s; }
.partner-card:hover { border-color: var(--border-strong); }
.partner-card .circle { width: 48px; height: 48px; margin: 0 auto 12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(212,175,95,0.35); }

/* Testimonials */
.testi-wrap { padding: 40px; }
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 768px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi { padding: 24px; border-radius: 12px; transition: all .3s; }
.testi.active { border-color: var(--border-strong); box-shadow: 0 0 30px rgba(212,175,95,0.2); transform: scale(1.02); }
.testi .stars { display: flex; gap: 4px; color: var(--gold); margin-bottom: 12px; }
.testi p { font-size: 14px; color: var(--muted); font-style: italic; }
.testi-author { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.testi-author img, .testi-author .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(212,175,95,0.35); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; color: var(--gold); background: var(--gradient-card); }
.dots { display: flex; justify-content: center; margin-top: 24px; gap: 8px; }
.dots button { height: 8px; width: 8px; border-radius: 999px; background: var(--card); transition: all .3s; }
.dots button.active { width: 32px; background: var(--gold); }

/* CTA */
.cta { padding: 56px; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at left, rgba(212,175,95,0.2), transparent 60%); }
.cta-inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 768px) { .cta-inner { grid-template-columns: 1fr 1fr; } }
.cta h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.2; }
.cta p { margin-top: 16px; color: var(--muted); max-width: 420px; }
.cta-buttons { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) { .cta-buttons { flex-direction: row; justify-content: flex-end; } }

/* Footer */
footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { padding: 40px 0; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
@media (min-width: 768px) { .footer-inner { flex-direction: row; } }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--gold); }

/* Animations */
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 20px rgba(212,175,95,0.3); } 50% { box-shadow: 0 0 40px rgba(212,175,95,0.6); } }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
[data-reveal].in { opacity: 1; transform: translateY(0); }

.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 28px; height: 28px; }

/* User Profile Dropdown */
.user-profile-dropdown {
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: rgba(34, 28, 22, 0.6);
  border: 1px solid rgba(212, 175, 95, 0.35);
  border-radius: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-profile-btn:hover {
  background: rgba(34, 28, 22, 0.9);
  border-color: rgba(212, 175, 95, 0.6);
  box-shadow: 0 4px 12px rgba(212, 175, 95, 0.2);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: #1a1410;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}

.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--gold);
}

.user-profile-btn:hover .dropdown-icon {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 280px;
  background: var(--gradient-card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 95, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.user-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 20px;
  background: rgba(34, 28, 22, 0.6);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.user-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: #1a1410;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  font-family: 'Playfair Display', serif;
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-info-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-info-email {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(245, 239, 228, 0.9);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.user-dropdown-item:hover {
  background: rgba(212, 175, 95, 0.1);
  color: var(--gold);
}

.user-dropdown-item svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.logout-item {
  color: rgba(255, 107, 107, 0.9);
}

.logout-item:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #ff6b6b;
}

/* Mobile User Info */
.mobile-user-info {
  padding: 20px 0;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.mobile-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.mobile-user-name {
  font-weight: 600;
  font-size: 16px;
  color: var(--fg);
  margin-bottom: 4px;
}

.mobile-user-email {
  font-size: 13px;
  color: var(--muted);
}

.mobile-user-info .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}

.btn-logout {
  width: 100%;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: #ff6b6b;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-logout:hover {
  background: rgba(220, 53, 69, 0.1);
  border-color: #ff6b6b;
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .user-profile-dropdown {
    display: none;
  }
}

@media (min-width: 1024px) {
  .mobile-user-info {
    display: none;
  }
}
