/* ═══════════════════════════════════════════
   FXIVY BRAND SYSTEM
   ═══════════════════════════════════════════ */
:root {
  /* Brand Colors */
  --ivy-black: #0B0E11;
  --ivy-dark: #131720;
  --ivy-panel: #181D28;
  --ivy-border: #242A38;
  --ivy-muted: #5A6478;
  --ivy-text: #A8B2C3;
  --ivy-light: #D4DAE6;
  --ivy-white: #F0F2F7;

  /* Accent — gold/amber for finance trust */
  --ivy-gold: #D4A843;
  --ivy-gold-dim: #B8922E;
  --ivy-gold-glow: rgba(212, 168, 67, 0.15);

  /* Secondary accents */
  --ivy-green: #34D399;
  --ivy-green-dim: rgba(52, 211, 153, 0.12);
  --ivy-red: #F87171;
  --ivy-blue: #60A5FA;
  --ivy-blue-dim: rgba(96, 165, 250, 0.12);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  /* Spacing */
  --section-gap: 100px;
  --content-max: 1140px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ivy-black);
  color: var(--ivy-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--ivy-gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--ivy-white); }

.container { max-width: var(--content-max); margin: 0 auto; padding: 0 28px; }

/* ═══════════════════════════════════════════
   BACKGROUND TEXTURE
   ═══════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 20% 10%, rgba(212, 168, 67, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 600px 500px at 80% 80%, rgba(96, 165, 250, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Grid pattern */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 28px;
  background: rgba(11, 14, 17, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ivy-border);
}

.header-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ivy-white);
  letter-spacing: -0.5px;
}
.logo span { color: var(--ivy-gold); }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ivy-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ivy-white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ivy-light);
  transition: 0.3s;
}

/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  position: relative;
  z-index: 1;
  padding: 180px 0 120px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid var(--ivy-gold-dim);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ivy-gold);
  background: var(--ivy-gold-glow);
  margin-bottom: 32px;
  animation: fadeDown 0.8s ease-out;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: var(--ivy-white);
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeDown 0.8s ease-out 0.1s both;
}
.hero h1 em {
  font-style: normal;
  color: var(--ivy-gold);
}

.hero-sub {
  font-size: 19px;
  color: var(--ivy-muted);
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.8;
  animation: fadeDown 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeDown 0.8s ease-out 0.3s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s;
}
.btn-primary {
  background: var(--ivy-gold);
  color: var(--ivy-black);
}
.btn-primary:hover {
  background: var(--ivy-white);
  color: var(--ivy-black);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 168, 67, 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--ivy-light);
  border: 1px solid var(--ivy-border);
}
.btn-outline:hover {
  border-color: var(--ivy-gold);
  color: var(--ivy-gold);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════ */
.stats-bar {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--ivy-border);
  border-bottom: 1px solid var(--ivy-border);
  padding: 40px 0;
  margin-bottom: var(--section-gap);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item h3 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--ivy-gold);
  margin-bottom: 4px;
}
.stat-item p {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--ivy-muted);
}

/* ═══════════════════════════════════════════
   SECTION TITLES
   ═══════════════════════════════════════════ */
.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ivy-gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--ivy-white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--ivy-muted);
  font-size: 17px;
  max-width: 600px;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   SITE MAP / SECTIONS GRID
   ═══════════════════════════════════════════ */
.sections {
  position: relative;
  z-index: 1;
  padding-bottom: var(--section-gap);
}
.sections-header {
  text-align: center;
  margin-bottom: 60px;
}
.sections-header .section-desc { margin: 0 auto; }

.sections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.section-card {
  background: var(--ivy-panel);
  border: 1px solid var(--ivy-border);
  border-radius: 14px;
  padding: 36px 32px 32px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.section-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ivy-gold), var(--ivy-gold-dim));
  opacity: 0;
  transition: opacity 0.3s;
}
.section-card:hover {
  border-color: var(--ivy-gold-dim);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.section-card:hover::before { opacity: 1; }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
  background: var(--ivy-gold-glow);
  border: 1px solid rgba(212, 168, 67, 0.15);
}

.card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ivy-white);
  margin-bottom: 10px;
}

.card-path {
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: var(--ivy-gold-dim);
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.card-desc {
  font-size: 15px;
  color: var(--ivy-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.card-subs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--ivy-border);
  padding-top: 16px;
}
.card-subs a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ivy-text);
  padding: 5px 0;
  transition: all 0.2s;
}
.card-subs a::before {
  content: '→';
  color: var(--ivy-gold-dim);
  font-size: 12px;
  transition: transform 0.2s;
}
.card-subs a:hover {
  color: var(--ivy-gold);
  padding-left: 6px;
}
.card-subs a:hover::before { transform: translateX(3px); }

/* ═══════════════════════════════════════════
   FEATURES STRIP
   ═══════════════════════════════════════════ */
.features {
  position: relative;
  z-index: 1;
  padding-bottom: var(--section-gap);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.feature-item {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--ivy-border);
  border-radius: 14px;
  background: rgba(24, 29, 40, 0.5);
  transition: all 0.3s;
}
.feature-item:hover {
  border-color: var(--ivy-gold-dim);
  background: var(--ivy-panel);
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 18px;
}
.feature-item h4 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ivy-white);
  margin-bottom: 10px;
}
.feature-item p {
  font-size: 14px;
  color: var(--ivy-muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════ */
.cta-banner {
  position: relative;
  z-index: 1;
  margin-bottom: var(--section-gap);
}
.cta-inner {
  background: linear-gradient(135deg, var(--ivy-panel) 0%, var(--ivy-dark) 100%);
  border: 1px solid var(--ivy-border);
  border-radius: 20px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 50% 50%, var(--ivy-gold-glow) 0%, transparent 50%);
  pointer-events: none;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ivy-white);
  margin-bottom: 16px;
  position: relative;
}
.cta-inner p {
  color: var(--ivy-muted);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto 32px;
  position: relative;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--ivy-border);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p {
  font-size: 14px;
  color: var(--ivy-muted);
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ivy-light);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ivy-muted);
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--ivy-gold); }

.footer-bottom {
  border-top: 1px solid var(--ivy-border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: 13px;
  color: var(--ivy-muted);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; color: var(--ivy-muted); }
.footer-legal a:hover { color: var(--ivy-gold); }

/* ═══════════════════════════════════════════
   DISCLAIMER
   ═══════════════════════════════════════════ */
.disclaimer {
  position: relative;
  z-index: 1;
  background: rgba(24, 29, 40, 0.5);
  border-top: 1px solid var(--ivy-border);
  padding: 28px 0;
}
.disclaimer p {
  font-size: 12px;
  color: var(--ivy-muted);
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(11, 14, 17, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--ivy-border);
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .sections-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .hero { padding: 140px 0 80px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
