/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  /* Original Broker Lab Co color palette */
  --primary: #F7C143;
  --primary-dark: #e0ac2e;
  --primary-light: #f9d06a;
  --accent: #F7C143;
  --dark: #121212;
  --dark-2: #1a1a1a;
  --dark-3: #2B2B2B;
  --gray: #6d6d6d;
  --gray-light: #888888;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --text-dark: #121212;
  --text-on-dark: #FAF7F2;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.06), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.1);
}
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  font-family: 'Darker Grotesque', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 20px;
  font-weight: 500;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: inherit; font-weight: 700; font-size: 18px;
  padding: 12px 28px; border-radius: 10px; border: none; cursor: pointer;
  transition: all 0.25s ease; white-space: nowrap; letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--primary); color: var(--dark);
  box-shadow: 0 4px 14px rgba(247, 193, 67, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 193, 67, 0.45);
  background: var(--primary-light);
}
.btn-outline {
  background: transparent; color: var(--text-dark);
  border: 2px solid rgba(18,18,18,0.2);
}
.btn-outline:hover {
  background: rgba(18,18,18,0.04);
  border-color: rgba(18,18,18,0.35);
}
.btn-sm { padding: 8px 20px; font-size: 16px; }
.btn-lg { padding: 16px 36px; font-size: 19px; }
.btn-full { width: 100%; }

/* ===== Header (Light Cream) ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(18,18,18,0.06);
  transition: all 0.3s;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; height: 80px;
}
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 36px; }
.nav a:not(.btn) {
  font-size: 19px; font-weight: 600;
  color: rgba(18,18,18,0.55); transition: color 0.2s;
}
.nav a:not(.btn):hover { color: var(--text-dark); }
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-toggle span {
  width: 22px; height: 2px; background: var(--text-dark);
  border-radius: 2px; transition: all 0.3s;
}
.mobile-nav {
  display: none; position: fixed; top: 80px; left: 0; right: 0;
  background: rgba(250, 247, 242, 0.98);
  backdrop-filter: blur(20px); padding: 24px; flex-direction: column;
  gap: 16px; z-index: 999;
  border-bottom: 1px solid rgba(18,18,18,0.06);
}
.mobile-nav a {
  color: rgba(18,18,18,0.8); font-weight: 600; padding: 8px 0;
}
.mobile-nav.active { display: flex; }

/* ===== Hero (Cream Background) ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--cream); overflow: hidden; padding: 120px 0 80px;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(247, 193, 67, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(247, 193, 67, 0.04) 0%, transparent 50%);
}
.hero-glow {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(247, 193, 67, 0.06) 0%, transparent 70%);
  top: 10%; right: -10%; border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 20px); } }
.hero > .container {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.hero-content { position: relative; z-index: 1; }
.hero-visual { position: relative; z-index: 1; }
.hero-video-wrapper {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--white);
}
.hero-video-wrapper video {
  width: 100%; height: auto; display: block;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(247, 193, 67, 0.12);
  border: 1px solid rgba(247, 193, 67, 0.3);
  border-radius: 100px; font-size: 16px; font-weight: 700;
  color: var(--primary-dark); margin-bottom: 24px; letter-spacing: 0.02em;
}
.hero h1 {
  font-family: 'Darker Grotesque', sans-serif;
  font-size: clamp(48px, 7vw, 80px); font-weight: 900;
  line-height: 1.05; color: var(--text-dark);
  margin-bottom: 24px; letter-spacing: -0.02em;
}
.gradient-text {
  color: #c99a1e;
}
.hero-sub {
  font-size: 21px; line-height: 1.7; color: var(--gray);
  margin-bottom: 40px; max-width: 560px; font-weight: 500;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px;
}
.hero-trust {
  display: flex; align-items: center; gap: 16px;
  padding-top: 32px; border-top: 1px solid rgba(18,18,18,0.08);
}
.trust-avatars { display: flex; }
.trust-avatars img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--cream);
}
.trust-avatars img + img { margin-left: -12px; }
.trust-text strong {
  display: block; font-size: 17px; font-weight: 700; color: var(--text-dark);
}
.trust-text span { font-size: 16px; color: var(--gray); }

/* ===== Section Headers ===== */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-tag {
  display: inline-block; font-size: 15px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--primary-dark); margin-bottom: 12px;
}

/* Light section headings */
.section-header h2,
.feature-content h2 {
  font-family: 'Darker Grotesque', sans-serif;
  font-size: clamp(32px, 4.5vw, 48px); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px;
}
.section-header p { font-size: 20px; color: var(--gray); line-height: 1.7; }

/* ===== Services Grid (Cream Background) ===== */
.services-overview { padding: 100px 0; background: var(--cream); }
.services-overview .section-header h2 { color: var(--text-dark); }
.services-overview .section-tag { color: var(--primary-dark); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid rgba(18,18,18,0.06);
  border-radius: var(--radius-lg); padding: 36px 28px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}
.service-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: rgba(247, 193, 67, 0.3);
}
.service-icon {
  width: 48px; height: 48px; background: var(--primary);
  border-radius: 12px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; color: var(--dark); stroke: var(--dark); }
.service-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; color: var(--text-dark); }
.service-card p { font-size: 18px; color: var(--gray); line-height: 1.65; }

/* ===== Feature Sections (Alternating Dark) ===== */
.feature { padding: 100px 0; }

/* Dark sections: off-black and charcoal alternating */
.feature:nth-child(odd) { background: var(--dark); }
.feature:nth-child(even) { background: var(--dark-3); }

/* Text colors on dark feature sections */
.feature .section-tag { color: var(--primary); }
.feature .feature-content h2 { color: var(--text-on-dark); }
.feature .gradient-text { color: var(--primary); }
.feature .feature-content p { color: rgba(250, 247, 242, 0.7); }
.feature .feature-list li { color: rgba(250, 247, 242, 0.75); }
.feature .feature-list li svg { color: var(--primary); }

.feature-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-right .feature-inner { direction: rtl; }
.feature-right .feature-inner > * { direction: ltr; }
.feature-content h2 { font-size: clamp(30px, 3.5vw, 42px); }
.feature-content p { font-size: 19px; line-height: 1.7; margin-bottom: 28px; }
.feature-list {
  list-style: none; display: flex; flex-direction: column;
  gap: 14px; margin-bottom: 36px;
}
.feature-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 18px; font-weight: 600;
}
.feature-list li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.feature-img-wrapper {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl); position: relative;
}
.feature-img-wrapper::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08); pointer-events: none;
}
.feature-img-wrapper img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Button on dark sections */
.feature .btn-primary {
  background: var(--primary); color: var(--dark);
}

/* ===== Testimonials (Cream Background) ===== */
.testimonials { padding: 100px 0; background: var(--cream); }
.testimonials .section-header h2 { color: var(--text-dark); }
.testimonials .section-tag { color: var(--primary-dark); }
.testimonial-card {
  max-width: 640px; margin: 0 auto; text-align: center;
  padding: 48px;
  background: var(--white);
  border: 1px solid rgba(18,18,18,0.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 28px; }
.stars svg { width: 22px; height: 22px; color: var(--primary); }
.testimonial-card blockquote {
  font-size: 22px; line-height: 1.75; color: var(--text-dark);
  font-style: italic; margin-bottom: 28px; font-weight: 500;
  opacity: 0.85;
}
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; color: var(--text-dark); font-size: 18px; font-weight: 700; }
.testimonial-author span { font-size: 16px; color: var(--gray); }

/* ===== CTA / Contact (Dark Background) ===== */
.cta { padding: 100px 0; background: var(--dark); }
.cta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.cta-inner h2 {
  font-family: 'Darker Grotesque', sans-serif;
  font-size: clamp(32px, 4.5vw, 48px); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px;
  color: var(--text-on-dark);
}
.cta-inner .gradient-text { color: var(--primary); }
.cta-inner > p { font-size: 20px; color: rgba(250,247,242,0.65); line-height: 1.7; margin-bottom: 40px; }
.cta-form {
  background: var(--dark-2); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(250,247,242,0.08);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.cta-form input {
  font-family: inherit; font-size: 16px; font-weight: 500;
  padding: 14px 18px;
  border: 1px solid rgba(250,247,242,0.12);
  border-radius: 10px; background: rgba(250,247,242,0.06);
  color: var(--text-on-dark); transition: all 0.2s; width: 100%;
}
.cta-form input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(247, 193, 67, 0.15);
}
.cta-form input::placeholder { color: rgba(250,247,242,0.4); }

/* ===== Footer (Dark) ===== */
.footer {
  background: var(--dark); padding: 64px 0 0;
  border-top: 1px solid rgba(250,247,242,0.06);
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,247,242,0.06);
}
.footer-brand img { width: 100px; height: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 17px; color: rgba(250,247,242,0.5); line-height: 1.7; max-width: 300px; }
.footer-links h4 {
  font-size: 15px; font-weight: 800; color: var(--text-on-dark);
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em;
}
.footer-links a {
  display: block; font-size: 17px; color: rgba(250,247,242,0.5);
  padding: 6px 0; transition: color 0.2s; font-weight: 500;
}
.footer-links a:hover { color: var(--primary); }
.footer-bottom { padding: 24px 0; text-align: center; }
.footer-bottom p { font-size: 14px; color: rgba(250,247,242,0.4); }

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px;
  background: var(--primary); color: var(--dark); border: none;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(247, 193, 67, 0.3); z-index: 100;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; }

/* ===== Animations ===== */
[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].in-view { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-inner { gap: 48px; }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .mobile-toggle { display: flex; }
  .hero { padding: 100px 0 60px; min-height: auto; }
  .hero > .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero h1 { font-size: 42px; }
  .hero-sub { font-size: 19px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .services-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-card { padding: 28px 24px; }
  .feature { padding: 60px 0; }
  .feature-inner { grid-template-columns: 1fr; gap: 32px; }
  .feature-right .feature-inner { direction: ltr; }
  .feature-visual { order: -1; }
  .form-row { grid-template-columns: 1fr; }
  .cta-form { padding: 24px; }
  .testimonials { padding: 60px 0; }
  .testimonial-card { padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .back-to-top { bottom: 20px; right: 20px; }
}