/* =========================================
   FINE'SA CREDOS — DESIGN SYSTEM
   Financial × Modern Tech Aesthetic
   ========================================= */

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

/* ─── CSS VARIABLES ─── */
:root {
  /* Brand Colors */
  --gold:           #C9A84C;
  --gold-light:     #E2C06C;
  --gold-dark:      #A07830;
  --gold-pale:      rgba(201, 168, 76, 0.12);
  --purple:         #6B5DA6;
  --purple-light:   #8B7DC6;
  --purple-dark:    #4A3D8A;
  --purple-pale:    rgba(107, 93, 166, 0.12);

  /* Neutrals */
  --black:          #080A0E;
  --dark-1:         #0D1117;
  --dark-2:         #141820;
  --dark-3:         #1C2230;
  --dark-4:         #242A3A;
  --mid:            #3A4258;
  --muted:          #6B7494;
  --light-muted:    #A0A8C0;
  --light:          #D8DCE8;
  --white:          #F4F6FA;
  --pure-white:     #FFFFFF;

  /* Typography */
  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'DM Sans', sans-serif;
  --font-mono:      'DM Mono', monospace;

  /* Spacing */
  --space-xs:       0.25rem;
  --space-sm:       0.5rem;
  --space-md:       1rem;
  --space-lg:       1.5rem;
  --space-xl:       2rem;
  --space-2xl:      3rem;
  --space-3xl:      5rem;
  --space-4xl:      8rem;

  /* Layout */
  --max-width:      1280px;
  --nav-height:     100px;

  /* Borders & Radius */
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      16px;
  --radius-xl:      24px;
  --radius-full:    9999px;

  /* Shadows */
  --shadow-gold:    0 0 40px rgba(201, 168, 76, 0.15);
  --shadow-purple:  0 0 40px rgba(107, 93, 166, 0.15);
  --shadow-card:    0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow:    0 0 80px rgba(201, 168, 76, 0.08);

  /* Transitions */
  --ease:           cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:       150ms;
  --dur-normal:     300ms;
  --dur-slow:       600ms;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--dark-1);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: var(--radius-full); }

/* ─── SELECTION ─── */
::selection {
  background: var(--gold);
  color: var(--black);
}

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--white);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p { color: var(--light-muted); line-height: 1.75; }
a { text-decoration: none; color: inherit; }

strong { color: var(--white); font-weight: 600; }

/* ─── LAYOUT UTILITIES ─── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-sm {
  padding: var(--space-3xl) 0;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-purple { color: var(--purple-light); }
.text-muted { color: var(--muted); }

/* ─── SECTION LABELS ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--light-muted);
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all var(--dur-normal) var(--ease);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  font-weight: 600;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease);
}

.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(201,168,76,0.35); }

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
}

.btn-outline:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--light);
  border: 1px solid rgba(255,255,255,0.15);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.3);
}

.btn span { position: relative; z-index: 1; }
.btn svg { position: relative; z-index: 1; transition: transform var(--dur-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ─── CARDS ─── */
.card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--dur-normal) var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--dur-normal) var(--ease);
}

.card:hover {
  border-color: rgba(201,168,76,0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-gold);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gold-pale);
  border: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--gold);
}

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--dur-slow) var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav.scrolled {
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-logo img {
  height: 96px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--light-muted);
  letter-spacing: 0.04em;
  transition: color var(--dur-fast) var(--ease);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--dur-normal) var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-lang {
  display: flex;
  gap: 4px;
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: all var(--dur-fast) var(--ease);
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--gold);
  border-color: rgba(201,168,76,0.3);
  background: var(--gold-pale);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: var(--radius-full);
  transition: all var(--dur-normal) var(--ease);
}

/* ─── PAGE HERO ─── */
.page-hero {
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
  background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark-1) 100%);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ─── DIVIDERS ─── */
.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.3), transparent);
  margin: var(--space-2xl) 0;
}

/* ─── STAT BLOCKS ─── */
.stat-block {
  text-align: center;
  padding: var(--space-xl);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ─── BADGE / TAGS ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-gold {
  background: var(--gold-pale);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
}

.badge-purple {
  background: var(--purple-pale);
  color: var(--purple-light);
  border: 1px solid rgba(107,93,166,0.3);
}

.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--dark-3);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: var(--space-lg) 0;
  overflow: hidden;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.trust-item svg { color: var(--gold); flex-shrink: 0; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── HIGHLIGHT BOX ─── */
.highlight-box {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(107,93,166,0.08));
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.highlight-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
}

/* ─── FOOTER ─── */
.footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.footer-logo {
  margin-bottom: var(--space-lg);
}

.footer-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-lg);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color var(--dur-fast) var(--ease);
}

.footer-links a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.footer-contact-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-lg) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--mid);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all var(--dur-normal) var(--ease);
}

.social-link:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-pale);
}

/* ─── MOBILE MENU ─── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: rgba(13,17,23,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  padding: var(--space-xl);
  z-index: 999;
  flex-direction: column;
  gap: var(--space-sm);
  transform: translateY(-100%);
  transition: transform var(--dur-normal) var(--ease);
}

.mobile-menu.open {
  display: flex;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: var(--space-md) 0;
  font-size: 1.1rem;
  color: var(--light-muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color var(--dur-fast);
}

.mobile-menu a:hover { color: var(--gold); }

/* ─── FORM ELEMENTS ─── */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--light-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--dark-4);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--white);
  transition: all var(--dur-normal) var(--ease);
  outline: none;
  appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
  background: var(--dark-3);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--mid);
}

.form-textarea { resize: vertical; min-height: 140px; }

.form-select option { background: var(--dark-3); }

/* ─── BACK TO TOP ─── */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.3);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all var(--dur-normal) var(--ease);
  z-index: 500;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--gold-pale);
  transform: translateY(-3px);
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  bottom: var(--space-xl);
  left: var(--space-xl);
  max-width: 380px;
  background: var(--dark-3);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  z-index: 9000;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s var(--ease);
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner h4 {
  font-size: 1rem;
  margin-bottom: var(--space-sm);
  color: var(--white);
}

.cookie-banner p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 var(--space-lg); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: var(--space-3xl) 0; }

  .nav-links,
  .nav-cta { display: none; }

  .nav-toggle { display: flex; }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}

@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  h1 { font-size: 2rem; }
  .cookie-banner { left: var(--space-md); right: var(--space-md); max-width: none; }
}