/* ============ PREMIUM ANIMATIONS GLOBAL ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,168,120,0.5); }
  70% { box-shadow: 0 0 0 12px rgba(0,168,120,0); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* PREMIUM ENTRANCES */
.page-hero h1 { animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.page-hero .lead { animation: fadeUp 0.9s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both; }
.page-eyebrow { animation: fadeIn 0.7s both; }
.breadcrumb { animation: fadeIn 0.5s both; }

.stat-num { animation: scaleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both; }
.stats-grid > *:nth-child(1) .stat-num { animation-delay: 0.05s; }
.stats-grid > *:nth-child(2) .stat-num { animation-delay: 0.15s; }
.stats-grid > *:nth-child(3) .stat-num { animation-delay: 0.25s; }
.stats-grid > *:nth-child(4) .stat-num { animation-delay: 0.35s; }

.section-eyebrow { animation: slideRight 0.6s both; }
.page-section h2 { animation: fadeUp 0.8s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* SCROLL REVEAL via IntersectionObserver hook */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============ SHARED PAGES, PREMIUM BROKER LEADER STYLE ============ */
:root {
  --ink: #1c1f20;
  --ink-soft: #4a4d4e;
  --ink-mute: #8a8d8e;
  --bg-soft: #f6f6f4;
  --line: #e8e8e6;
  --green: #00a878;
  --cream: #faf9f6;
  --radius-pill: 100px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ====== SKIP LINK ====== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; outline: 2px solid var(--green); }

/* ====== NAV (matches index.html exactly) ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.logo {
  font-weight: 800;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink-soft); }
.nav-links a[aria-current="page"] { color: var(--green); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-account {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}
.btn-account:hover { background: var(--bg-soft); border-color: var(--ink); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { height: 64px; gap: 12px; }
  .logo { font-size: 26px; }
  .btn-account span { display: none; }
}

/* ====== BREADCRUMB ====== */
.breadcrumb {
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 13px;
  color: var(--ink-mute);
}
.breadcrumb a {
  color: var(--ink-mute);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb-sep { margin: 0 8px; opacity: 0.5; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ====== HERO ====== */
.page-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}
.page-eyebrow {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 0 22px;
}
.page-hero .lead {
  font-size: clamp(18px, 1.5vw, 22px);
  color: var(--ink-soft);
  max-width: 720px;
  line-height: 1.5;
  margin: 0;
}

/* ====== HERO IMAGE ====== */
.hero-image {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-image img {
  width: 100%;
  height: clamp(280px, 50vw, 520px);
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}

/* ====== SECTIONS ====== */
.page-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 24px;
}
.page-section-narrow { max-width: 820px; }
.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 12px;
}
.page-section h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 20px;
}
.page-section h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.page-section p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  line-height: 1.65;
}
.page-section p.big { font-size: 18px; }
.page-section ul { padding-left: 20px; color: var(--ink-soft); }
.page-section ul li { margin-bottom: 8px; }

/* ====== STATS BAND ====== */
.stats-band {
  background: var(--ink);
  color: #fff;
  padding: 60px 24px;
}
.stats-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
  margin: 0 0 8px;
}
.stat-num .accent { color: var(--green); }
.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ====== CARDS GRID ====== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.card-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.3s;
}
.card-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(0,168,120,0.4), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card-item:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0,0,0,0.14), 0 4px 12px rgba(0,168,120,0.06);
  border-color: transparent;
}
.card-item:hover::before { opacity: 1; }
.card-item:hover .card-img { transform: scale(1.05); }
.card-img { transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.card-img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #fff;
  padding: 16px;
}
.card-body { padding: 24px; }
.card-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 8px;
}
.card-body h3 { font-size: 20px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.card-body p { font-size: 14px; color: var(--ink-soft); margin: 0 0 12px; line-height: 1.55; }
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 500;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-meta svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--ink-mute); }

/* ====== TRUST PILLS ====== */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-soft);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
  cursor: default;
}
.trust-pill:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,168,120,0.18);
}
.trust-pill::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

/* ====== FAQ ====== */
.faq-item {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item summary {
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  padding: 4px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 26px;
  color: var(--ink-mute);
  transition: transform 0.2s;
  flex-shrink: 0;
  font-weight: 300;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); font-size: 15px; margin: 14px 0 0; line-height: 1.65; }

/* ====== CTA BLOCK ====== */
.cta-block {
  background: linear-gradient(135deg, var(--ink) 0%, #2a2d2e 100%);
  color: #fff;
  border-radius: 28px;
  padding: 60px 48px;
  text-align: center;
  margin: 60px auto;
  max-width: 980px;
}
.cta-block h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  color: #fff;
}
.cta-block p { color: rgba(255,255,255,0.75); margin: 0 0 28px; font-size: 17px; }
.cta-block .cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 18px 36px;
  border-radius: 100px;
  box-shadow: 0 14px 36px rgba(0,168,120,0.40);
  transition: transform 0.2s, background 0.2s;
}
.cta-block .cta:hover { background: #009666; transform: translateY(-3px) scale(1.02); box-shadow: 0 20px 50px rgba(0,168,120,0.55); }
.cta-block {
  background: linear-gradient(135deg, var(--ink) 0%, #2a2d2e 50%, var(--ink) 100%);
  background-size: 200% 200%;
  animation: gradientShift 12s ease infinite;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0,168,120,0.15), transparent 50%);
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block .cta { animation: pulse 2.5s ease-in-out infinite; }

/* ====== CONTACT ====== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-form {
  background: var(--bg-soft);
  padding: 36px;
  border-radius: 20px;
}
.contact-form .field { margin-bottom: 18px; }
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none;
  border-color: var(--ink);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
  margin-top: 8px;
  transition: background 0.2s;
}
.contact-form button:hover { background: #000; }
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-info {
  padding: 22px;
  background: var(--bg-soft);
  border-radius: 16px;
}
.contact-info .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-mute);
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-info .value {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}
.contact-info .value:hover { color: var(--green); }
.contact-info .note {
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 4px;
}

/* ====== ACCOUNT BENEFITS ====== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.benefit {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: border-color 0.2s, transform 0.2s;
}
.benefit:hover {
  border-color: var(--ink);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.10);
}
.benefit:hover .benefit-icon {
  background: var(--green);
  transform: rotate(-6deg) scale(1.1);
}
.benefit-icon { transition: background 0.3s, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.benefit-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.benefit h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
}
.benefit p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

/* ====== AUTH CARD ====== */
.auth-wrap {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.08);
}
.auth-wrap h2 { font-size: 26px; margin: 0 0 8px; font-weight: 800; letter-spacing: -0.02em; }
.auth-wrap .sub { color: var(--ink-soft); font-size: 15px; margin: 0 0 24px; }
.auth-wrap .field { margin-bottom: 14px; }
.auth-wrap label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.auth-wrap input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
}
.auth-wrap input:focus { outline: none; border-color: var(--ink); }
.auth-wrap button {
  width: 100%;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s;
  font-family: inherit;
}
.auth-wrap button:hover { background: #000; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--ink-soft); }
.auth-alt a { color: var(--green); font-weight: 700; text-decoration: none; }

/* ====== FOOTER (matches index.html) ====== */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.70);
  padding: 60px 0 30px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: #fff;
  font-weight: 700;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,0.70);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--green); }
.footer-brand .logo { color: #fff; font-size: 32px; margin-bottom: 12px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; line-height: 1.6; margin: 0; max-width: 320px; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal-links { display: flex; gap: 18px; }
.footer-bottom a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.lang-selector {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.70);
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.global-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.40);
  line-height: 1.6;
  margin: 24px 0 0;
  max-width: 100%;
}
