/* ===== GLOBAL STYLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #c9a84c;
  --gold-light: #e8c76a;
  --gold-dim: rgba(201,168,76,0.12);
  --dark: #09090f;
  --dark2: #111118;
  --dark3: #18181f;
  --card: #13131c;
  --border: rgba(201,168,76,0.16);
  --border2: rgba(255,255,255,0.06);
  --text: #e2e2ee;
  --muted: #7a7a9a;
  --green: #3ec97a;
  --red: #e05252;
  --blue: #4a9eff;
  --radius: 16px;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --nav-h: 64px;
}

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

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% 15%, rgba(201,168,76,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 85% 85%, rgba(62,201,122,0.04) 0%, transparent 60%);
  pointer-events: none;
}

/* ===== NAVIGATION ===== */
nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(9,9,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 24px; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  color: var(--gold-light); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.logo-icon { font-size: 1.4rem; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--border2); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold) !important;
  color: var(--dark) !important; font-weight: 600 !important;
  padding: 7px 16px !important; border-radius: 999px !important;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--muted);
  border-radius: 2px; transition: all 0.3s;
}
.mobile-menu {
  display: none; position: fixed; top: var(--nav-h);
  left: 0; right: 0; z-index: 99;
  background: rgba(9,9,15,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column; gap: 4px;
}
.mobile-menu a {
  color: var(--muted); text-decoration: none;
  font-size: 15px; padding: 10px 12px; border-radius: 8px;
  transition: all 0.2s; display: block;
}
.mobile-menu a:hover, .mobile-menu a.active { color: var(--gold); background: var(--gold-dim); }
.mobile-menu.open { display: flex; }

@media(max-width: 820px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ===== WRAPPER ===== */
.wrapper {
  position: relative; z-index: 1;
  max-width: 1140px; margin: 0 auto;
  padding: 0 24px 80px;
}

/* ===== PAGE HERO ===== */
.page-hero {
  text-align: center;
  padding: 56px 0 44px;
  animation: fadeDown 0.6s ease both;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-dim); border: 1px solid var(--border);
  padding: 5px 14px; border-radius: 999px;
  font-size: 11px; color: var(--gold); letter-spacing: 1.8px;
  text-transform: uppercase; font-weight: 600; margin-bottom: 18px;
}
.badge::before { content: '◆'; font-size: 7px; }
h1.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900; line-height: 1.1; margin-bottom: 14px;
  background: linear-gradient(135deg, #fff 30%, var(--gold-light) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub { color: var(--muted); font-size: 1rem; max-width: 520px; margin: 0 auto; }

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.card-title {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 20px;
}

/* ===== GRID ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media(max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media(max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media(max-width: 520px) { .grid-3 { grid-template-columns: 1fr; } .grid-4 { grid-template-columns: 1fr; } }

/* ===== RANGE INPUTS ===== */
.field { margin-bottom: 22px; }
.field-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field-value {
  font-size: 14px; font-weight: 600; color: var(--gold);
  background: var(--gold-dim); padding: 3px 10px; border-radius: 6px;
  min-width: 80px; text-align: right;
}
input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; background: var(--dark3);
  border-radius: 999px; outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--gold);
  border: 3px solid var(--dark); cursor: pointer;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2); box-shadow: 0 0 0 6px rgba(201,168,76,0.15);
}
.range-limits { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--muted); }
.input-wrap input[type=number] {
  width: 100%; padding: 11px 16px; margin-top: 10px;
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-size: 15px; font-family: var(--font-body); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}
.input-wrap input[type=number]:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.input-wrap input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  border: none;
}
.btn-gold { background: var(--gold); color: var(--dark); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,168,76,0.25); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--gold-dim); }

/* ===== TABLE ===== */
.table-scroll { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 500px; }
thead tr { background: var(--dark3); }
thead th {
  padding: 12px 14px; text-align: right;
  font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border);
}
thead th:first-child { text-align: left; }
tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.15s; }
tbody tr:hover { background: rgba(201,168,76,0.04); }
tbody tr:last-child { border-bottom: none; }
td { padding: 11px 14px; text-align: right; }
td:first-child { text-align: left; color: var(--muted); font-size: 12px; }
.td-green { color: var(--green); font-weight: 500; }
.td-red { color: var(--red); font-weight: 500; }

/* ===== CONTENT PAGES (privacy, about, etc) ===== */
.content-page { max-width: 760px; margin: 0 auto; }
.content-page h2 {
  font-family: var(--font-display); font-size: 1.6rem;
  color: var(--gold-light); margin: 36px 0 12px;
}
.content-page h3 { font-size: 1.1rem; color: var(--text); margin: 24px 0 8px; }
.content-page p { color: var(--muted); margin-bottom: 14px; line-height: 1.8; }
.content-page ul { color: var(--muted); padding-left: 20px; margin-bottom: 14px; }
.content-page ul li { margin-bottom: 8px; line-height: 1.7; }
.content-page a { color: var(--gold); text-decoration: none; }
.content-page a:hover { text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
  background: var(--dark2); border-top: 1px solid var(--border);
  padding: 48px 24px 24px; margin-top: 60px; position: relative; z-index: 1;
}
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 10px; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 13px; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { color: var(--muted); font-size: 12px; }
.footer-sec { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-sec span { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 5px; }

@media(max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media(max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== STAT BOXES ===== */
.stat-box {
  background: var(--dark3); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px;
}
.stat-box .label { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.stat-box .value { font-size: 1.2rem; font-weight: 600; }
.value-green { color: var(--green); }
.value-red { color: var(--red); }
.value-gold { color: var(--gold-light); }

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin: 32px 0 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ===== TOOL CARD ===== */
.tool-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  text-decoration: none; display: block;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative; overflow: hidden;
}
.tool-card:hover {
  border-color: var(--gold); transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(201,168,76,0.1);
}
.tool-card .icon { font-size: 2rem; margin-bottom: 14px; display: block; }
.tool-card h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.tool-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }
.tool-card .arrow {
  position: absolute; top: 20px; right: 20px;
  color: var(--muted); font-size: 18px; transition: color 0.2s, transform 0.2s;
}
.tool-card:hover .arrow { color: var(--gold); transform: translate(2px, -2px); }

/* ===== FAQ ===== */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  padding: 18px 0; color: var(--text); font-size: 15px; font-weight: 500;
  font-family: var(--font-body); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chevron { color: var(--gold); font-size: 18px; transition: transform 0.3s; flex-shrink: 0; }
.faq-q.open .chevron { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.faq-a.open { display: block; }

/* ===== ANIMATIONS ===== */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.anim-1 { animation: fadeUp 0.6s 0.1s ease both; }
.anim-2 { animation: fadeUp 0.6s 0.2s ease both; }
.anim-3 { animation: fadeUp 0.6s 0.3s ease both; }
.anim-4 { animation: fadeUp 0.6s 0.4s ease both; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }

/* ===== MISC ===== */
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
strong { color: var(--text); }
