/* Claim Tariff Refunds — Main Stylesheet
 * Palette preserved from the lamp export:
 *   gold    #d4a843 (primary)
 *   navy    #0b1120 (foreground)
 *   white   #ffffff (background)
 */

/* =========================================================================
 * Design tokens
 * ========================================================================= */
:root {
    --primary: #d4a843;
    --primary-hover: #c49936;
    --primary-foreground: #0b1120;

    --accent: #d4a843;              /* same as primary — portal steps reuse this */
    --accent-foreground: #0b1120;

    --background: #ffffff;
    --foreground: #0b1120;

    --card: #ffffff;
    --card-foreground: #0b1120;

    --secondary: #f1f5f9;
    --secondary-foreground: #0b1120;

    --muted: #f1f5f9;
    --muted-foreground: #64748b;

    --border: #e2e8f0;
    --input: #ffffff;

    --destructive: #ef4444;
    --destructive-foreground: #ffffff;
    --success: #22c55e;
    --info: #3b82f6;
    --warning: #f59e0b;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    --radius: 0.5rem;
    --radius-lg: 0.75rem;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* CJK font overrides */
html[lang="ko"]    body { font-family: 'Noto Sans KR', 'Inter', sans-serif; line-height: 1.75; }
html[lang="ja"]    body { font-family: 'Noto Sans JP', 'Inter', sans-serif; line-height: 1.75; }
html[lang="zh-CN"] body { font-family: 'Noto Sans SC', 'Inter', sans-serif; line-height: 1.75; }
html[lang="zh-TW"] body { font-family: 'Noto Sans TC', 'Inter', sans-serif; line-height: 1.75; }

/* =========================================================================
 * Layout
 * ========================================================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 1.5rem; }
}

/* =========================================================================
 * Typography
 * ========================================================================= */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
@media (min-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.5rem; }
}

.font-serif    { font-family: var(--font-serif); }
.text-primary  { color: var(--primary); }
.text-muted    { color: var(--muted-foreground); }
.text-accent   { color: var(--accent); }
.text-center   { text-align: center; }
.text-balance  { text-wrap: balance; }

/* =========================================================================
 * Buttons
 * ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}
.btn-primary:hover:not(:disabled) { background-color: var(--primary-hover); }

.btn-secondary {
    background-color: var(--muted);
    color: var(--foreground);
}
.btn-secondary:hover:not(:disabled) { background-color: var(--border); }

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border);
    color: var(--foreground);
}
.btn-outline:hover:not(:disabled) { background-color: var(--muted); }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.w-full { width: 100%; }

/* =========================================================================
 * Bootstrap overrides — restore our design tokens
 * ========================================================================= */
.btn-primary.btn,
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: var(--primary-foreground) !important;
}
.btn-primary:hover:not(:disabled),
.btn-primary:focus:not(:disabled) {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    color: var(--primary-foreground) !important;
}

.form-control, .form-select {
    font-family: inherit;
    border-color: var(--border);
    border-radius: var(--radius);
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.2);
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.375rem;
}

.input-group-text {
    border-color: var(--border);
    background: var(--secondary);
    color: var(--muted-foreground);
}

/* =========================================================================
 * Forms (native / non-bootstrap)
 * ========================================================================= */
.form-group { margin-bottom: 1rem; }

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--foreground);
    background-color: var(--input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.form-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    accent-color: var(--primary);
}
.form-checkbox label {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--muted-foreground);
    cursor: pointer;
}
.form-checkbox label strong { color: var(--foreground); }

.form-error {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius);
    color: var(--destructive);
    font-size: 0.875rem;
}

/* =========================================================================
 * Cards / Badges
 * ========================================================================= */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}
.badge-primary  { background-color: var(--primary); color: var(--primary-foreground); }
.badge-success  { background-color: rgba(34, 197, 94, 0.1); color: #16a34a; }
.badge-warning  { background-color: rgba(245, 158, 11, 0.1); color: #d97706; }

/* Bootstrap subtle-tone badges (used by portal) */
.bg-success-subtle { background-color: #dcfce7 !important; }
.text-success      { color: #166534 !important; }
.bg-warning-subtle { background-color: #fef3c7 !important; }
.text-warning      { color: #854d0e !important; }
.bg-secondary-subtle { background-color: #e5e7eb !important; }
.text-secondary      { color: #475569 !important; }

/* =========================================================================
 * Header
 * ========================================================================= */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: inherit;
    text-decoration: none;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--foreground);
    color: var(--primary);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.375rem;
}
.logo-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.logo-group {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--muted-foreground);
    line-height: 1.2;
}

.nav-desktop { display: none; gap: 2rem; }
@media (min-width: 768px) { .nav-desktop { display: flex; } }

.nav-desktop a,
.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: color 0.2s ease;
}
.nav-desktop a:hover,
.nav-link:hover { color: var(--foreground); }

.header-cta { display: none; }
@media (min-width: 768px) {
    .header-cta { display: flex; }
}

.header-login {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted-foreground);
    padding: 0.25rem 0.5rem;
}
.header-login:hover { color: var(--foreground); }

.lang-switcher {
    appearance: auto;
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: transparent;
    color: var(--foreground);
    cursor: pointer;
}
.lang-switcher:focus { outline: none; border-color: var(--primary); }

.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
}
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--background);
    border-top: 1px solid var(--border);
}
.mobile-menu.active { display: flex; }

.mobile-nav-link,
.mobile-menu a {
    padding: 0.75rem;
    font-weight: 500;
    color: var(--foreground);
    border-radius: var(--radius);
    transition: background-color 0.2s ease;
    text-decoration: none;
}
.mobile-nav-link:hover,
.mobile-menu a:hover { background-color: var(--muted); }

/* =========================================================================
 * Footer
 * ========================================================================= */
.footer {
    margin-top: 4rem;
    padding: 3rem 0 2rem;
    background-color: var(--foreground);
    color: var(--background);
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    align-items: start;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-brand .logo { margin-bottom: 1rem; color: var(--background); }
.footer-brand .logo-text { color: var(--background); }
.footer-brand .logo-subtitle { color: var(--primary); }

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}
.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}
.footer-disclaimer {
    margin-top: 0.5rem;
    font-size: 0.75rem;
}

/* =========================================================================
 * Hero
 * ========================================================================= */
.hero { padding: 4rem 0 5rem; }

.hero-banner {
    background-color: var(--primary);
    padding: 0.25rem 1rem;
    text-align: center;
    line-height: 1.3;
}
.hero-banner p {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary-foreground);
}

.hero-content {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.hero-tag {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .hero-title { font-size: 3.5rem; } }

.hero-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.7;
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.hero-affiliate {
    margin: 0 auto 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    max-width: 40rem;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
@media (min-width: 640px) { .hero-cta { flex-direction: row; justify-content: center; } }

.hero-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* Trust Grid */
.trust-grid {
    display: grid;
    gap: 1rem;
    margin: 3rem auto 0;
    max-width: 48rem;
}
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.trust-item svg { width: 1.25rem; height: 1.25rem; color: var(--primary); flex-shrink: 0; }
.trust-item span { font-size: 0.875rem; font-weight: 500; }

/* =========================================================================
 * Sections
 * ========================================================================= */
.section { padding: 4rem 0; }
.section-alt { background-color: var(--muted); }

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 3rem;
}

.section-tag {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1rem;
}
@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

/* How It Works */
.steps-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card {
    text-align: center;
    padding: 2rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    background-color: rgba(212, 168, 67, 0.1);
    border-radius: 50%;
    margin-bottom: 1rem;
}
.step-title { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.step-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Features / Benefits Grid */
.features-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px)  { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
    padding: 1.5rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(212, 168, 67, 0.1);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.feature-icon svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.feature-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

/* FAQ */
.faq-list { max-width: 48rem; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--foreground);
    font-family: inherit;
}
.faq-question svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--muted-foreground);
    transition: transform 0.2s ease;
}
.faq-item.active .faq-question svg { transform: rotate(180deg); }
.faq-answer {
    display: none;
    padding-bottom: 1.25rem;
    font-size: 0.875rem;
    color: var(--muted-foreground);
    line-height: 1.7;
}
.faq-item.active .faq-answer { display: block; }

/* CTA */
.cta-section {
    background-color: var(--foreground);
    color: var(--background);
    padding: 4rem 0;
    text-align: center;
}
.cta-content { max-width: 40rem; margin: 0 auto; }
.cta-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1rem;
}
@media (min-width: 768px) { .cta-title { font-size: 2.5rem; } }
.cta-description {
    font-size: 1.125rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

/* Countdown (landing) */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.countdown-item {
    text-align: center;
    padding: 1rem 1.5rem;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 5rem;
}
.countdown-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}
.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-foreground);
}

/* =========================================================================
 * Modal theming (Bootstrap handles structure)
 * ========================================================================= */
#consentModal .modal-content,
#loginModal .modal-content,
#successModal .modal-content {
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* -------------------------------------------------------------------------
 * Modal label + form colors.
 * Must override body.landing's white --foreground so text stays readable on
 * the white modal surface. Explicit colors, no tokens.
 * ------------------------------------------------------------------------- */
#consentModal .modal-title,
#loginModal .modal-title,
#successModal .modal-title {
    color: #0b1120;
    font-weight: 700;
}

#consentModal .modal-header p {
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.5;
}

#consentModal .form-label,
#loginModal .form-label {
    color: #0b1120;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

#consentModal .modal-body,
#loginModal .modal-body {
    padding: 1rem 1.25rem 1.25rem;
}
#consentModal .modal-header,
#loginModal .modal-header {
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: none;
}
/* Modal width: use Bootstrap 5 default (500px) to match tariff.capital */

#consentModal .form-control,
#consentModal .form-select {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    color: #0b1120;
    border-color: #d1d5db;
}
#consentModal .form-text {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.25rem;
    line-height: 1.35;
}
#consentModal .recaptcha-disclaimer {
    font-size: 0.65rem;
    line-height: 1.3;
    color: #94a3b8;
    margin-top: 0.5rem;
    margin-bottom: 0;
}
#consentModal .recaptcha-disclaimer a {
    color: #64748b;
    text-decoration: underline;
}
#consentModal .form-select {
    font-size: 0.8125rem;
}
#consentModal .input-group-text {
    color: #374151;
    background: #f9fafb;
    border-color: #d1d5db;
}
#consentModal .mb-3 { margin-bottom: 0.75rem !important; }
#consentModal hr { margin: 0.75rem 0; opacity: 0.12; }

#consentModal .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

#consentModal .form-check-label {
    font-size: 0.75rem;
    line-height: 1.35;
    color: #0b1120;
}

#consentModal .form-check {
    margin-bottom: 0.375rem;
}

/* Pre-checked "any and all means" — fine-print treatment */
#consentModal .consent-fine {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(11, 17, 32, 0.08);
}
#consentModal .consent-fine .form-check-label {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
}

/* Gold submit button — match tariff.capital's solid pill */
#consentModal .btn-primary,
#consentModal .btn-primary.btn {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #0b1120 !important;
    font-weight: 600;
    padding: 0.625rem 1rem;
    border-radius: var(--radius);
}
#consentModal .btn-primary:disabled {
    opacity: 0.5;
}

#consentModal .form-check-label .consent-help {
    display: block;
    font-size: 0.8125rem;
    color: var(--muted-foreground);
    margin-top: 0.125rem;
}

#consentModal .text-muted,
#loginModal .text-muted {
    color: #64748b !important;
}

.form-disclaimer {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    text-align: center;
    margin-top: 1rem;
}

/* Success icon (modal) */
.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 50%;
    margin-bottom: 1.25rem;
    color: var(--success);
}
.success-icon svg { width: 2rem; height: 2rem; }

/* =========================================================================
 * Utility classes
 * ========================================================================= */
.hidden { display: none; }
.block  { display: block; }
.flex   { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================================================
 * Dark landing theme (body.landing)
 *
 * The portal and Bootstrap modals keep the light palette above. The landing
 * page alone inverts to navy-on-white so the product matches the v0 design:
 *   background  #0b1120  (deep navy)
 *   surface     #111a2e  (slightly lighter for cards / alt sections)
 *   border      rgba(212,168,67,0.15)  (whisper-thin gold)
 *   foreground  #ffffff
 *   muted fg    #94a3b8  (slate-400)
 * ========================================================================= */
body.landing {
    --background: #0b1120;
    --foreground: #ffffff;
    --card: #111a2e;
    --card-foreground: #ffffff;
    --secondary: #111a2e;
    --secondary-foreground: #ffffff;
    --muted: #111a2e;
    --muted-foreground: #94a3b8;
    --border: rgba(212, 168, 67, 0.18);
    --input: #111a2e;

    background-color: var(--background);
    color: var(--foreground);
}

/* Header — transparent over navy, gold bottom rule */
body.landing .header {
    background-color: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

/* Gold shield logo (no filled square) */
body.landing .logo-icon {
    background: transparent;
    color: var(--primary);
    width: 2rem;
    height: 2rem;
}
body.landing .logo-icon svg { width: 100%; height: 100%; }
body.landing .logo-text { color: var(--foreground); }
body.landing .logo-subtitle { color: var(--primary); }

body.landing .nav-desktop a { color: #cbd5e1; }
body.landing .nav-desktop a:hover { color: var(--foreground); }

body.landing .header-login { color: #cbd5e1; }
body.landing .header-login:hover { color: var(--foreground); }

body.landing .lang-switcher {
    background-color: transparent;
    color: var(--foreground);
    border-color: rgba(255, 255, 255, 0.15);
}
body.landing .lang-switcher option { color: #0b1120; }

body.landing .mobile-menu-btn { color: var(--foreground); }
body.landing .mobile-menu {
    background-color: var(--card);
    border-top-color: var(--border);
}
body.landing .mobile-menu a { color: var(--foreground); }
body.landing .mobile-menu a:hover { background-color: rgba(212, 168, 67, 0.08); }

/* Section-alt: same navy — the gold section-tag provides separation */
body.landing .section-alt {
    background-color: #0a0f1c;
}

/* Hero — text colors over dark */
body.landing .hero-description { color: #cbd5e1; }
body.landing .hero-note { color: #94a3b8; }
body.landing .hero-affiliate { color: var(--foreground); }

/* Trust cards — dark with thin gold border */
body.landing .trust-item {
    background-color: var(--card);
    border-color: var(--border);
}
body.landing .trust-item span { color: var(--foreground); }

/* Section headers */
body.landing .section-description { color: #cbd5e1; }

/* Step + feature cards */
body.landing .step-card,
body.landing .feature-card {
    background-color: var(--card);
    border-color: var(--border);
}
body.landing .step-title,
body.landing .feature-title { color: var(--foreground); }
body.landing .step-description,
body.landing .feature-description { color: #cbd5e1; }

/* FAQ */
body.landing .faq-item { border-bottom-color: var(--border); }
body.landing .faq-question { color: var(--foreground); }
body.landing .faq-question svg { color: var(--primary); }
body.landing .faq-answer { color: #cbd5e1; }

/* Countdown cards */
body.landing .countdown-item {
    background-color: var(--card);
    border-color: var(--border);
}
body.landing .countdown-label { color: #94a3b8; }

/* CTA section (already inverted in base styles — make sure text is bright enough over the same-navy background) */
body.landing .cta-section {
    background-color: #0a0f1c;
    border-top: 1px solid var(--border);
    color: #ffffff;
}
body.landing .cta-section .cta-title { color: #ffffff; }
body.landing .cta-section .cta-description { color: #cbd5e1; opacity: 1; }

/* Footer — keep the pre-existing dark footer but tie border colors in */
body.landing .footer { background-color: #080d18; }
body.landing .footer-brand .logo-icon { color: var(--primary); }
