/* CSS Variables */
:root {
  --clr-primary: #6a4fff;
  --clr-accent: #ff3d8a;
  --clr-bg: #0a0818;
  --clr-surface: #13102b;
  --clr-surface2: #1e1a3d;
  --clr-text-body: #e8e4ff;
  --clr-text-muted: #8a85b8;
  --clr-success: #22d48f;
  --clr-border: #2e2855;
  --clr-gradient: linear-gradient(135deg, #6a4fff 0%, #ff3d8a 100%);

  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "DM Sans", sans-serif;
  --font-ui: "Rajdhani", sans-serif;

  --transition: all 0.3s ease;
  --nav-height: 76px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--clr-bg);
  color: var(--clr-text-body);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.03"/></svg>');
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
}

.h2-wrap {
  margin-bottom: 24px;
  position: relative;
}

.h2-wrap.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.h2-title {
  font-size: 44px;
  font-weight: 700;
  color: var(--clr-text-body);
  margin-bottom: 8px;
  text-align: left;
}

.center .h2-title {
  text-align: center;
}

.h2-accent {
  height: 4px;
  width: 40px;
  background: var(--clr-gradient);
  margin-bottom: 16px;
  border-radius: 2px;
}

.h2-subtitle {
  font-size: 18px;
  color: var(--clr-text-muted);
  max-width: 600px;
  margin-inline: auto;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding: 80px 0;
}

.bg-surface {
  background-color: var(--clr-surface);
}

.bg-base {
  background-color: var(--clr-bg);
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: 50px;
}

.btn-primary {
  background: var(--clr-gradient);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(106, 79, 255, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.15);
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 61, 138, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--clr-text-body);
  border: 1px solid var(--clr-primary);
  border-radius: 8px;
}

.btn-outline:hover {
  background: var(--clr-gradient);
  border-color: transparent;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition);
  background: transparent;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 4px 20px rgba(10, 8, 24, 0.8);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  z-index: 101;
}
.logo span {
  color: var(--clr-primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--clr-text-body);
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--clr-accent);
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  z-index: 101;
}

/* S1: Page Hero Split */
.page-hero-split {
  position: relative;
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 80px;
  background: var(--clr-bg);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 20px,
    rgba(106, 79, 255, 0.04) 20px,
    rgba(106, 79, 255, 0.04) 40px
  );
  z-index: 0;
  pointer-events: none;
}

.hero-split-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 58% 42%;
  gap: 40px;
  align-items: center;
}

.hero-split-content h1 {
  font-size: 64px;
  font-weight: 800;
  font-style: italic;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-split-content p {
  font-size: 18px;
  color: var(--clr-text-muted);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.6;
}

.hero-split-image {
  display: flex;
  justify-content: center;
}

.hero-split-image img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 0 30px rgba(106, 79, 255, 0.3);
}

/* S2: Why Join Trust Strip */
.trust-strip {
  background: var(--clr-surface);
  padding: 40px 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.trust-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.trust-icon {
  width: 32px;
  height: 32px;
  background: rgba(34, 212, 143, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  color: var(--clr-success);
}

.trust-text h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--clr-text-body);
  margin-bottom: 4px;
}

.trust-text p {
  font-size: 14px;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

.trust-divider {
  width: 1px;
  height: 60px;
  background: var(--clr-border);
}

/* S3: How It Works Steps */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
  margin-bottom: 48px;
}

.step-connector {
  position: absolute;
  top: 36px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--clr-primary) 0%,
    var(--clr-accent) 100%
  );
  z-index: 0;
  opacity: 0.3;
  background-size: 12px 2px;
  background-image: linear-gradient(
    to right,
    var(--clr-primary) 50%,
    transparent 50%
  );
}

.step-item {
  position: relative;
  z-index: 1;
  padding: 16px 0;
  background: var(--clr-bg);
}

.step-num-large {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  background: var(--clr-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
  line-height: 1;
  margin-bottom: 16px;
  display: inline-block;
}

.step-item h3 {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--clr-text-body);
  margin-bottom: 12px;
  text-transform: none;
}

.step-item p {
  color: var(--clr-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.steps-action {
  text-align: center;
}

/* S4: Commission Structure */
.comm-header {
  max-width: 760px;
  margin: 0 auto 48px;
}

.comm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.comm-card {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-top: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 12px;
  padding: 32px 24px;
  position: relative;
  transition: var(--transition);
}

.comm-card::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--clr-gradient);
  border-radius: 12px 12px 0 0;
}

.comm-card:hover {
  box-shadow: 0 0 24px rgba(106, 79, 255, 0.35);
  transform: translateY(-4px);
}

.comm-card h3 {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--clr-text-body);
  margin-bottom: 12px;
  text-transform: none;
}

.comm-card p {
  color: var(--clr-text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

.comm-image-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.comm-image-wrapper img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* S5: Who Can Become an Agent */
.type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.type-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  padding: 32px 24px;
  position: relative;
  transition: var(--transition);
}

.type-card::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: -1px;
  width: 4px;
  background: var(--clr-gradient);
  border-radius: 4px;
}

.type-card:hover {
  box-shadow: 0 0 24px rgba(106, 79, 255, 0.25);
  transform: translateY(-4px);
}

.type-label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.type-card h3 {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--clr-text-body);
  margin-bottom: 12px;
  text-transform: none;
}

.type-card p {
  color: var(--clr-text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* S6: Agent Benefits */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.benefit-card {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  border-top: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 12px;
  padding: 32px 24px;
  position: relative;
  transition: var(--transition);
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: -3px;
  left: -1px;
  right: -1px;
  height: 3px;
  background: var(--clr-gradient);
  border-radius: 12px 12px 0 0;
}

.benefit-card:hover {
  box-shadow: 0 0 24px rgba(106, 79, 255, 0.35);
  transform: translateY(-4px);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: rgba(106, 79, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  margin-bottom: 20px;
}

.benefit-card h3 {
  font-family: var(--font-body);
  font-size: 20px;
  text-transform: none;
  margin-bottom: 12px;
  color: var(--clr-text-body);
}

.benefit-card p {
  color: var(--clr-text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* S7: FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-left: 3px solid var(--clr-primary);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  color: var(--clr-text-body);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  font-size: 20px;
  transition: transform 0.3s;
  color: var(--clr-primary);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--clr-text-muted);
  font-size: 15px;
}

/* S8: Final CTA */
.final-cta {
  background: var(--clr-gradient);
  text-align: center;
}

.final-cta h2 {
  font-size: 52px;
  font-style: italic;
  color: #fff;
  margin-bottom: 16px;
}

.final-cta p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  max-width: 600px;
  margin-inline: auto;
}

.btn-white {
  background: #fff;
  color: var(--clr-primary);
  border-radius: 50px;
}
.btn-white:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.legal-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 24px;
  display: block;
}

/* Footer */
.footer {
  background: var(--clr-bg);
  padding: 60px 0 24px;
  border-top: 1px solid var(--clr-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: var(--clr-text-muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #fff;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--clr-text-muted);
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--clr-primary);
}

.footer-bottom {
  border-top: 1px solid var(--clr-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--clr-text-muted);
}

.license-badge {
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--clr-success);
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(106, 79, 255, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(106, 79, 255, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(106, 79, 255, 0);
  }
}

/* Responsive Breakpoints */
@media (max-width: 1023px) {
  .h2-title {
    font-size: 38px;
  }

  .hero-split-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-split-image {
    order: -1;
  }
  .hero-split-image img {
    max-height: 300px;
  }

  .trust-row {
    flex-wrap: wrap;
  }
  .trust-item {
    flex: 1 1 40%;
  }
  .trust-divider {
    display: none;
  }

  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-connector {
    display: none;
  }

  .comm-grid,
  .type-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .section-pad {
    padding: 48px 0;
  }
  .h2-title {
    font-size: 30px;
  }

  /* Navbar Mobile */
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--clr-bg);
    padding: 24px;
    border-bottom: 1px solid var(--clr-border);
    gap: 24px;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 20px;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .hamburger {
    display: block;
  }

  /* Content Mobile */
  .page-hero-split {
    padding-bottom: 48px;
    min-height: 400px;
  }
  .hero-split-content h1 {
    font-size: 38px;
  }
  .hero-split-content p {
    font-size: 15px;
  }
  .hero-split-content .btn {
    width: 100%;
  }
  .hero-split-image img {
    max-height: 240px;
  }

  .trust-item {
    flex: 1 1 100%;
  }

  .steps-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .comm-image-wrapper img {
    max-height: 220px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .final-cta h2 {
    font-size: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
