:root {
  --primary: #c8960c;
  --primary-light: #e8bf4a;
  --bg-dark: #09080c;
  --surface: #13110a;
  --surface-sec: #1e1a0e;
  --text-main: #f5e9b0;
  --text-sec: #a8996a;
  --success: #4caf6e;
  --border: #3a2e10;
  --gradient: linear-gradient(90deg, #c8960c, #e8bf4a);

  --font-display: "Cinzel", serif;
  --font-body: "DM Sans", sans-serif;
  --font-accent: "Cinzel Decorative", serif;

  --radius-sm: 8px;
  --radius-pill: 999px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul {
  list-style: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--gradient);
  color: var(--bg-dark);
  font-weight: 700;
}
.btn-primary:hover {
  box-shadow: 0 0 15px rgba(200, 150, 12, 0.4);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--primary);
}
.btn-secondary:hover {
  background: rgba(200, 150, 12, 0.1);
  border-color: var(--primary-light);
}
.btn-outline-gold {
  background: var(--surface-sec);
  color: var(--text-main);
  border: 1px solid var(--primary);
  padding: 10px 20px;
  font-size: 14px;
}
.btn-outline-gold:hover {
  background: rgba(200, 150, 12, 0.1);
  border-color: var(--primary-light);
}

/* Utilities */
.text-gold {
  color: var(--primary);
}
.text-sec {
  color: var(--text-sec);
}
.text-center {
  text-align: center;
}
.bg-dark {
  background-color: var(--bg-dark);
}
.bg-surface {
  background-color: var(--surface);
}

section {
  padding: 72px 5%;
}
@media (max-width: 767px) {
  section {
    padding: 48px 5%;
  }
}

.section-header {
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: 32px;
  border-left: 3px solid var(--primary);
  padding-left: 16px;
  line-height: 1.2;
}
.section-header.center h2 {
  border-left: none;
  padding-left: 0;
  text-align: center;
}

/* Navbar - Default dark for inner pages */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 5%;
  z-index: 1000;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}
.navbar.scrolled {
  padding: 12px 5%;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-grow: 1;
  justify-content: space-between;
  margin-left: 40px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}
.nav-actions {
  display: flex;
  gap: 16px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}
.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-main);
  transition: 0.3s;
}

/* Hero (Agent Page) */
.hero {
  position: relative;
  width: 100vw;
  min-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 180px 5% 80px;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--bg-dark) 40%, transparent 100%);
  z-index: -1;
}
.hero-content {
  max-width: 680px;
  z-index: 1;
}
.hero h1 {
  font-size: 44px;
  margin-bottom: 24px;
  line-height: 1.1;
}
.hero p {
  font-size: 16px;
  color: var(--text-sec);
  margin-bottom: 40px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 16px;
}

/* Standard Content */
.content-p {
  font-size: 16px;
  color: var(--text-sec);
  margin-bottom: 24px;
  line-height: 1.7;
}
.content-h3 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--primary-light);
  margin: 32px 0 16px;
}

/* Advantages Cards */
.adv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.adv-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  min-height: 200px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.adv-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}
.adv-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.adv-icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.5;
}
.adv-card h3 {
  font-size: 18px;
  color: var(--text-main);
}
.adv-highlight {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--primary-light);
  margin-bottom: 12px;
  line-height: 1;
}
.adv-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.8;
  flex-grow: 1;
  margin: 0;
}

/* Split Section (Commission) */
.split-section {
  display: grid;
  align-items: center;
  gap: 48px;
}
.split-text-first {
  grid-template-columns: 5fr 5fr;
}
.split-img {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.formula-box {
  background: var(--surface-sec);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  padding: 20px 24px;
  margin: 24px 0;
}
.formula-text {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-main);
  text-align: center;
  letter-spacing: 0.03em;
}

/* Steps (Horizontal) */
.steps-horiz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  margin-bottom: 40px;
}
.step-h-item {
  position: relative;
  padding-right: 16px;
}
.step-h-num-bg {
  font-family: var(--font-accent);
  font-size: 64px;
  color: var(--primary);
  opacity: 0.15;
  position: absolute;
  top: -20px;
  left: -8px;
  line-height: 1;
  z-index: 0;
}
.step-h-content {
  position: relative;
  z-index: 1;
  padding-top: 10px;
}
.step-h-content h3 {
  font-family: var(--font-body);
  font-size: 16px;
  margin-bottom: 12px;
  color: var(--text-main);
  font-weight: 500;
}
.step-h-content p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.7;
}
.steps-horiz-grid.desktop-divider .step-h-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: var(--border);
}

/* Dashboard Layout (Desktop Tab / Mobile Accordion) */
.dash-wrapper {
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--border);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}
.dash-desktop {
  display: flex;
  min-height: 320px;
}
.dash-tabs {
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.dash-tab-btn {
  height: 64px;
  padding: 0 20px;
  border: none;
  background: transparent;
  color: var(--text-sec);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.dash-tab-btn:hover {
  background: var(--surface-sec);
}
.dash-tab-btn.active {
  border-left-color: var(--primary);
  background: var(--surface-sec);
  color: var(--text-main);
}
.dash-content-area {
  flex-grow: 1;
  padding: 40px;
  background: var(--bg-dark);
}
.dash-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.dash-panel.active {
  display: block;
}
.dash-panel h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 16px;
}
.dash-panel p {
  font-size: 15px;
  color: var(--text-sec);
  line-height: 1.8;
  margin-bottom: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Accordion for Dashboard */
.dash-mobile {
  display: none;
  flex-direction: column;
}
.dash-acc-item {
  border-bottom: 1px solid var(--border);
}
.dash-acc-item:last-child {
  border-bottom: none;
}
.dash-acc-btn {
  width: 100%;
  text-align: left;
  padding: 20px;
  background: var(--surface);
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.dash-acc-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--text-sec);
  transition: transform 0.3s;
}
.dash-acc-item.active .dash-acc-btn svg {
  transform: rotate(180deg);
}
.dash-acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: var(--bg-dark);
}
.dash-acc-inner {
  padding: 20px;
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.7;
}

/* Dual Role Card */
.dual-role-wrapper {
  position: relative;
  max-width: 760px;
  margin: 48px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dual-card {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.dual-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-main);
  margin-bottom: 16px;
  text-align: center;
}
.dual-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dual-list li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 12px;
}
.dual-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  transform: rotate(45deg);
}
.dual-plus {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--primary);
  z-index: 2;
}

/* Support Cards */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sup-icon {
  width: 32px;
  height: 32px;
  fill: var(--primary);
  margin-bottom: 16px;
}
.sup-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-main);
  margin-bottom: 12px;
}
.sup-card p {
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 24px;
}
.highlight-time {
  color: var(--primary-light);
  font-weight: 500;
}

/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 18px;
  text-align: left;
}
.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--primary);
  transition: var(--transition);
}
.faq-icon::before {
  top: 9px;
  left: 0;
  width: 20px;
  height: 2px;
}
.faq-icon::after {
  top: 0;
  left: 9px;
  width: 2px;
  height: 20px;
}
.faq-item.active .faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--text-sec);
  font-size: 15px;
  line-height: 1.7;
}
.faq-answer-inner {
  padding-bottom: 24px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: -8px;
}

/* Footer */
footer {
  background: var(--surface);
  padding: 60px 5% 24px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--primary);
}
.footer-col p {
  font-size: 14px;
  color: var(--text-sec);
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-sec);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--primary);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-sec);
}
.license-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--border);
  border: 1px solid var(--primary);
  color: var(--primary-light);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

/* Floating CTA */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.floating-cta.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 1023px) {
  .steps-horiz-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
  .steps-horiz-grid.desktop-divider .step-h-item::after {
    display: none;
  }
  .support-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-left: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px 5%;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  }
  .navbar.menu-open .nav-menu {
    display: flex;
  }
  .nav-links {
    flex-direction: column;
    width: 100%;
    text-align: center;
    gap: 20px;
    margin-bottom: 24px;
  }
  .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 16px;
  }
  .nav-actions .btn {
    width: 100%;
  }
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero h1 {
    font-size: 27px;
  }
  .hero-actions {
    flex-direction: column;
  }

  .adv-grid {
    grid-template-columns: 1fr;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split-text-first .split-img {
    order: -1;
    max-height: 220px;
  }

  .steps-horiz-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Dashboard Mobile Switch */
  .dash-desktop {
    display: none;
  }
  .dash-mobile {
    display: flex;
  }

  /* Dual Role Mobile */
  .dual-role-wrapper {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dual-plus {
    position: static;
    transform: none;
    margin: 8px auto;
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .floating-cta {
    right: 16px;
    bottom: 16px;
    padding: 12px 18px;
    font-size: 14px;
  }
}
