/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #1a2a3a; background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ============ COLOR VARIABLES ============ */
:root {
  --gold: #C9A03D;
  --gold-hover: #b8912e;
  --gold-light: #f7f0dc;
  --gold-10: rgba(201,160,61,0.10);
  --blue: #2C5F8A;
  --blue-dark: #1e3f5e;
  --blue-light: #3a7ab5;
  --jade: #4A8B71;
  --jade-light: #e8f4ee;
  --bg: #F5F7FA;
  --white: #ffffff;
  --text: #1a2a3a;
  --text-muted: #5a6a7a;
  --border: #e2e8f0;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.10);
}

/* ============ TYPOGRAPHY ============ */
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
p { color: var(--text-muted); }
.gold-text { color: var(--gold); }
.jade-text { color: var(--jade); }
.fw-bold { font-weight: 700; }

/* ============ LAYOUT ============ */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-alt { background: var(--bg); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header h2 { color: var(--text); margin-bottom: 12px; }
.section-header p { font-size: 1.1rem; }
.section-tag { display: inline-block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); background: var(--gold-10); padding: 4px 14px; border-radius: 20px; margin-bottom: 16px; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: inherit; font-weight: 600; font-size: 0.95rem; border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; transition: all 0.2s ease; white-space: nowrap; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,160,61,0.3); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

/* ============ NAVBAR ============ */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow 0.3s ease; }
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 1.3rem; font-weight: 800; color: var(--text); }
.logo-suffix { font-weight: 500; color: var(--gold); font-size: 0.9rem; margin-left: -2px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; cursor: pointer; font-size: 0.82rem; font-weight: 500; color: var(--text-muted); transition: all 0.2s; }
.lang-toggle:hover { border-color: var(--gold); color: var(--gold); }
.lang-toggle .icon { width: 16px; height: 16px; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 4px; color: var(--text); }
.mobile-menu-btn .icon { width: 24px; height: 24px; }

/* ============ HERO ============ */
.hero { padding: 140px 0 100px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge { display: inline-block; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold); background: var(--gold-10); padding: 6px 16px; border-radius: 20px; margin-bottom: 20px; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); margin-top: 20px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 24px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.stat { text-align: center; }
.stat-number { display: block; font-size: 1.8rem; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 0.82rem; color: var(--text-muted); }
.stat-divider { width: 1px; background: var(--border); }

/* ============ DASHBOARD MOCK ============ */
.dashboard-mock { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--border); }
.mock-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mock-dots span:nth-child(1) { background: #ff5f57; }
.mock-dots span:nth-child(2) { background: #ffbd2e; }
.mock-dots span:nth-child(3) { background: #28ca42; }
.mock-title { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.mock-body { display: grid; grid-template-columns: 140px 1fr; min-height: 280px; }
.mock-sidebar { padding: 12px 8px; border-right: 1px solid var(--border); background: #fafbfc; }
.mock-nav-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 0.75rem; color: var(--text-muted); cursor: default; margin-bottom: 2px; }
.mock-nav-item.active { background: var(--gold-10); color: var(--gold); font-weight: 600; }
.icon-sm { width: 14px; height: 14px; }
.mock-main { padding: 16px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mock-card { background: var(--bg); border-radius: 8px; padding: 12px; text-align: center; }
.mock-card-label { display: block; font-size: 0.65rem; color: var(--text-muted); margin-bottom: 4px; }
.mock-card-value { font-size: 1.3rem; font-weight: 800; color: var(--text); }
.mock-table { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.mock-row { display: grid; grid-template-columns: 1.5fr 1fr 0.8fr; padding: 8px 12px; font-size: 0.72rem; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.mock-row:last-child { border-bottom: none; }
.mock-row.header { background: var(--bg); font-weight: 600; color: var(--text); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-jade { background: var(--jade-light); color: var(--jade); padding: 2px 8px; border-radius: 10px; font-size: 0.68rem; font-weight: 600; display: inline-block; }
.badge-gold { background: var(--gold-light); color: var(--gold); padding: 2px 8px; border-radius: 10px; font-size: 0.68rem; font-weight: 600; display: inline-block; }
.badge-blue { background: #e8f0f8; color: var(--blue); padding: 2px 8px; border-radius: 10px; font-size: 0.68rem; font-weight: 600; display: inline-block; }

/* ============ BENEFITS GRID ============ */
.benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; transition: all 0.3s ease; }
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.benefit-icon { width: 48px; height: 48px; background: var(--gold-10); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.benefit-icon svg { width: 24px; height: 24px; color: var(--gold); }
.benefit-card h3 { margin-bottom: 8px; color: var(--text); }
.benefit-card p { font-size: 0.9rem; line-height: 1.6; }

/* ============ SPLIT SECTIONS ============ */
.split-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-check { width: 24px; height: 24px; min-width: 24px; background: var(--jade-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.feature-check svg { width: 14px; height: 14px; color: var(--jade); }
.feature-list li span { font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }

/* ============ VISUAL CARDS ============ */
.visual-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.visual-card-header { display: flex; align-items: center; gap: 8px; padding: 14px 20px; background: var(--bg); border-bottom: 1px solid var(--border); font-size: 0.85rem; font-weight: 600; color: var(--text); }
.visual-card-body { padding: 20px; }
.filing-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0f2f5; font-size: 0.88rem; color: var(--text-muted); }
.filing-row:last-of-type { border-bottom: none; }
.filing-row.highlight { background: var(--gold-10); margin: 8px -20px 0; padding: 12px 20px; border-radius: 8px; border-bottom: none; }
.calendar-summary { display: flex; gap: 20px; padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--border); }
.summary-item { font-size: 0.82rem; color: var(--text-muted); }

/* ============ PORTAL FEATURES ============ */
.portal-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portal-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 24px; text-align: center; transition: all 0.3s ease; }
.portal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.portal-icon { width: 56px; height: 56px; background: var(--gold-10); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.portal-icon svg { width: 26px; height: 26px; color: var(--gold); }
.portal-card h3 { margin-bottom: 8px; color: var(--text); }
.portal-card p { font-size: 0.88rem; }

/* ============ TIER CARDS ============ */
.tiers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.tier-card { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; position: relative; transition: all 0.3s ease; }
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tier-card.featured { border-color: var(--gold); box-shadow: var(--shadow-md); }
.tier-badge { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--blue); background: #e8f0f8; padding: 4px 16px; border-radius: 20px; margin-bottom: 12px; }
.tier-badge.gold { color: var(--gold); background: var(--gold-light); }
.tier-badge.platinum { color: #6b5b95; background: #f0ecf5; }
.tier-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 16px; border-radius: 12px; white-space: nowrap; }
.tier-card h3 { margin-bottom: 4px; color: var(--text); font-size: 1.3rem; }
.tier-criteria { font-size: 0.85rem; margin-bottom: 20px; }
.tier-commission { margin-bottom: 24px; padding: 16px; background: var(--bg); border-radius: var(--radius-sm); }
.commission-rate { display: block; font-size: 2.5rem; font-weight: 800; color: var(--gold); line-height: 1; }
.commission-label { font-size: 0.82rem; color: var(--text-muted); }
.tier-benefits { list-style: none; text-align: left; margin-bottom: 24px; }
.tier-benefits li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 0.88rem; color: var(--text-muted); }
.tier-benefits li svg { min-width: 16px; }

/* ============ FAQ ============ */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; background: var(--white); transition: border-color 0.2s; }
.faq-item:hover { border-color: var(--gold); }
.faq-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 18px 24px; background: none; border: none; cursor: pointer; font-family: inherit; font-size: 0.95rem; font-weight: 600; color: var(--text); text-align: left; gap: 12px; }
.faq-arrow { transition: transform 0.3s ease; min-width: 20px; color: var(--gold); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 24px 18px; font-size: 0.9rem; line-height: 1.7; }

/* ============ APPLICATION FORM ============ */
.apply-section { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.apply-content { padding-top: 20px; }
.apply-content h2 { margin-bottom: 16px; }
.apply-content > p { font-size: 1.05rem; line-height: 1.7; }
.apply-highlights { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.apply-highlight { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--text-muted); }
.apply-form-wrapper { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); }
.apply-form h3 { margin-bottom: 24px; text-align: center; color: var(--text); font-size: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.9rem; color: var(--text); background: var(--white); transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,160,61,0.15); }
.form-group textarea { resize: vertical; }
.form-note { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 12px; }

/* ============ FOOTER ============ */
.footer { background: var(--blue-dark); color: #c8d6e5; padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand .logo span { color: #fff; }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; color: #8fa3b8; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col a { display: block; color: #8fa3b8; text-decoration: none; font-size: 0.88rem; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: #6b8096; }

/* ============ MODAL ============ */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; align-items: center; justify-content: center; }
.modal-overlay.active { display: flex; }
.modal-container { background: var(--white); border-radius: var(--radius-lg); max-width: 640px; width: 90%; max-height: 80vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--white); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.modal-header h3 { font-size: 1.1rem; color: var(--text); }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); padding: 4px 8px; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 24px; }
.modal-body h4 { color: var(--text); margin: 16px 0 8px; font-size: 0.95rem; }
.modal-body p, .modal-body li { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }
.modal-body ul { padding-left: 20px; margin-bottom: 12px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 968px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .split-section, .split-section.reverse { grid-template-columns: 1fr; gap: 40px; }
  .benefits-grid, .portal-features { grid-template-columns: repeat(2, 1fr); }
  .tiers-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .apply-section { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--white); flex-direction: column; padding: 16px 24px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); gap: 8px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 1rem; }
  .mobile-menu-btn { display: block; }
  .benefits-grid, .portal-features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 16px; align-items: flex-start; }
  .stat-divider { width: 40px; height: 1px; }
  .section { padding: 60px 0; }
}
