/* ══════════════════════════════════════════════════════════
   Plutus Corporate — Website CSS
   Aesthetic: Refined luxury dark · Gold accents · Editorial
   ══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --gold:      #c9a84c;
  --gold-dim:  #c9a84c22;
  --gold-mid:  #c9a84c88;
  --bg:        #0c0d10;
  --bg2:       #111318;
  --bg3:       #181b22;
  --bg4:       #1e2230;
  --border:    #ffffff0f;
  --border2:   #ffffff18;
  --text1:     #f0ede6;
  --text2:     #a89f92;
  --text3:     #5a5650;
  --accent:    #c9a84c;
  --red:       #e05252;
  --green:     #52c469;
  --blue:      #5284e0;
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'DM Sans', sans-serif;
  --ff-mono:    'Space Mono', monospace;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text1);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--ff-display); font-weight: 300; line-height: 1.15; }
h1 { font-size: clamp(3rem, 6vw, 6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2vw, 2rem); }
p  { color: var(--text2); line-height: 1.75; }
a  { color: var(--gold); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .75; }

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw;
  height: 72px;
  background: linear-gradient(to bottom, #0c0d10ee, #0c0d1000);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
.nav.scrolled { background: #0c0d10f5; }
.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text1);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text2);
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text1); }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-hamburger { display: none; background: none; border: none; color: var(--text1); cursor: pointer; padding: 8px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 4px;
  font-family: var(--ff-body); font-size: 13px; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase;
  cursor: pointer; border: none; transition: all .2s;
}
.btn-primary {
  background: var(--gold); color: #0c0d10;
}
.btn-primary:hover { background: #dabb6a; color: #0c0d10; opacity: 1; }
.btn-outline {
  background: transparent; color: var(--text1);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); opacity: 1; }
.btn-ghost {
  background: transparent; color: var(--text2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text1); border-color: var(--border2); opacity: 1; }
.btn-lg { padding: 15px 36px; font-size: 14px; }
.btn-sm { padding: 8px 16px; font-size: 12px; }

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 100px 5vw; }
.section-sm { padding: 60px 5vw; }
.container { max-width: 1200px; margin: 0 auto; }
.section-label {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.section-title { margin-bottom: 20px; }
.section-title em { font-style: italic; color: var(--gold); }
.section-sub { font-size: 16px; max-width: 560px; margin-bottom: 48px; }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  width: 48px; height: 1px; background: var(--gold);
  margin: 24px 0;
}

/* ── Tag/Pill ─────────────────────────────────────────────── */
.tag {
  display: inline-block; padding: 4px 12px;
  font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  border-radius: 2px; border: 1px solid var(--gold-mid); color: var(--gold);
  background: var(--gold-dim);
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 8px; padding: 32px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border2); transform: translateY(-2px); }

/* ── Form elements ───────────────────────────────────────── */
.input {
  width: 100%; background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 4px; padding: 12px 16px;
  color: var(--text1); font-family: var(--ff-body); font-size: 14px;
  transition: border-color .2s; outline: none;
}
.input:focus { border-color: var(--gold); }
.input::placeholder { color: var(--text3); }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text3); margin-bottom: 8px; }
.form-error { color: var(--red); font-size: 13px; margin-top: 6px; }
select.input { appearance: none; cursor: pointer; }
textarea.input { resize: vertical; min-height: 120px; }

/* ── Page Hero ───────────────────────────────────────────── */
.page-hero {
  padding: 160px 5vw 80px;
  background: radial-gradient(ellipse at 30% 0%, #c9a84c12 0%, transparent 60%),
              radial-gradient(ellipse at 80% 100%, #c9a84c08 0%, transparent 50%);
  border-bottom: 1px solid var(--border);
}
.page-hero-label { margin-bottom: 12px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 64px 5vw 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand h3 { font-family: var(--ff-display); font-size: 1.6rem; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; }
.footer-col h4 { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text3); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text2); font-size: 14px; }
.footer-col a:hover { color: var(--gold); opacity: 1; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 13px; color: var(--text3); }

/* ── Pricing card ────────────────────────────────────────── */
.plan-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 12px; padding: 40px 32px;
  display: flex; flex-direction: column;
  transition: all .25s;
  position: relative; overflow: hidden;
}
.plan-card.featured {
  border-color: var(--gold);
  background: linear-gradient(145deg, #1a1a10, var(--bg2));
}
.plan-card.featured::before {
  content: 'Most Popular';
  position: absolute; top: 20px; right: -30px;
  background: var(--gold); color: #0c0d10;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 40px; transform: rotate(35deg);
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--gold-mid); }
.plan-name { font-family: var(--ff-display); font-size: 1.8rem; margin-bottom: 4px; }
.plan-price { margin: 20px 0 8px; }
.plan-price .amount { font-size: 3rem; font-weight: 700; font-family: var(--ff-display); color: var(--gold); }
.plan-price .period { font-size: 14px; color: var(--text3); }
.plan-desc { font-size: 13px; color: var(--text3); margin-bottom: 24px; }
.plan-features { list-style: none; margin-bottom: 32px; flex: 1; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text2); padding: 8px 0; border-bottom: 1px solid var(--border); }
.plan-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.plan-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 24px; }
.plan-spec { background: var(--bg3); border-radius: 6px; padding: 10px 12px; text-align: center; }
.plan-spec-val { font-size: 1.4rem; font-family: var(--ff-display); color: var(--text1); font-weight: 600; }
.plan-spec-label { font-size: 10px; color: var(--text3); letter-spacing: .06em; text-transform: uppercase; }

/* ── Marketplace ─────────────────────────────────────────── */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.listing-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: all .2s; }
.listing-card:hover { border-color: var(--gold-mid); transform: translateY(-3px); }
.listing-img { width: 100%; height: 200px; background: var(--bg3); object-fit: cover; }
.listing-img-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--bg3), var(--bg4)); display: flex; align-items: center; justify-content: center; color: var(--text3); font-size: 48px; }
.listing-body { padding: 20px; }
.listing-price { font-family: var(--ff-display); font-size: 1.5rem; color: var(--gold); }
.listing-title { font-size: 16px; font-weight: 500; margin: 4px 0 8px; }
.listing-location { font-size: 13px; color: var(--text3); margin-bottom: 12px; }
.listing-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text2); }
.listing-badge { background: var(--bg3); border-radius: 4px; padding: 3px 8px; font-size: 11px; }

/* ── Team card ───────────────────────────────────────────── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.team-card { text-align: center; }
.team-avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-mid); margin: 0 auto 16px; background: var(--bg3); display: block; }
.team-name { font-family: var(--ff-display); font-size: 1.2rem; }
.team-role { font-size: 13px; color: var(--gold); letter-spacing: .04em; }
.team-bio { font-size: 13px; color: var(--text3); margin-top: 8px; }

/* ── Toast ───────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bg3); border: 1px solid var(--border2); border-radius: 8px; padding: 14px 20px; font-size: 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 32px rgba(0,0,0,.4); animation: slideIn .3s ease; max-width: 360px; }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--gold); }
@keyframes slideIn { from { transform: translateX(100%); opacity:0; } to { transform: translateX(0); opacity:1; } }

/* ── Stat counters ───────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-item { border-left: 2px solid var(--gold); padding-left: 24px; }
.stat-number { font-family: var(--ff-display); font-size: 3rem; color: var(--text1); font-weight: 300; }
.stat-label  { font-size: 13px; color: var(--text3); letter-spacing: .06em; text-transform: uppercase; }

/* ── Feature grid ────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-item { padding: 32px; border: 1px solid var(--border); border-radius: 8px; transition: border-color .2s; }
.feature-item:hover { border-color: var(--gold-mid); }
.feature-icon { font-size: 2rem; margin-bottom: 16px; }
.feature-title { font-family: var(--ff-display); font-size: 1.2rem; margin-bottom: 8px; }

/* ── Download section ────────────────────────────────────── */
.download-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 40px; display: flex; align-items: center; gap: 32px; transition: border-color .2s; }
.download-card:hover { border-color: var(--gold-mid); }
.download-icon { font-size: 3rem; flex-shrink: 0; }
.download-info { flex: 1; }
.download-version { font-size: 12px; color: var(--text3); font-family: var(--ff-mono); margin-bottom: 4px; }

/* ── Map (contact) ───────────────────────────────────────── */
.map-frame { width: 100%; height: 400px; border: 1px solid var(--border); border-radius: 8px; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 500; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg2); border: 1px solid var(--border2); border-radius: 12px; padding: 40px; width: 100%; max-width: 520px; position: relative; }
.modal h3 { font-family: var(--ff-display); font-size: 1.8rem; margin-bottom: 24px; }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--text2); cursor: pointer; font-size: 20px; }

/* ── Misc helpers ────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-dim  { color: var(--text3); }
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; } .mt-8 { margin-top: 32px; } .mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.flex { display: flex; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.align-center { align-items: center; }
.loading { text-align: center; padding: 40px; color: var(--text3); }
.badge-available { background: #52c46922; color: #52c469; border: 1px solid #52c46933; border-radius: 4px; padding: 2px 8px; font-size: 11px; }
.badge-unavailable { background: #e0525222; color: #e05252; border: 1px solid #e0525233; border-radius: 4px; padding: 2px 8px; font-size: 11px; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg2); padding: 24px 5vw; border-bottom: 1px solid var(--border); z-index: 99; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .plan-specs { grid-template-columns: 1fr 1fr; }
}

/* ── Animations ──────────────────────────────────────────── */
.fade-in { animation: fadeIn .6s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-delay-1 { animation-delay: .1s; }
.fade-in-delay-2 { animation-delay: .2s; }
.fade-in-delay-3 { animation-delay: .3s; }

/* ── Noise texture overlay ───────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
}

/* ── Gold horizontal rule ────────────────────────────────── */
.gold-rule { width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--gold-mid), transparent); margin: 64px 0; }

/* ── Enquiry form ────────────────────────────────────────── */
.enquiry-form { background: var(--bg3); border: 1px solid var(--border2); border-radius: 10px; padding: 32px; }

/* ── Subscription key input ──────────────────────────────── */
.key-input {
  font-family: var(--ff-mono); font-size: 1.1rem;
  letter-spacing: .15em; text-transform: uppercase;
  text-align: center; padding: 18px 24px;
  background: var(--bg); border: 2px solid var(--gold-mid);
  border-radius: 6px; color: var(--gold); width: 100%;
  outline: none; transition: border-color .2s;
}
.key-input:focus { border-color: var(--gold); }

/* ── Auth pages ──────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 50% 0%, #c9a84c14 0%, transparent 60%);
  padding: 40px 20px;
}
.auth-box {
  background: var(--bg2); border: 1px solid var(--border2);
  border-radius: 12px; padding: 48px 40px; width: 100%; max-width: 460px;
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo h1 { font-family: var(--ff-display); font-size: 2.4rem; }
.auth-logo h1 span { color: var(--gold); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text3); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
