/* ===================================
   WEALTH FREQUENCY — Page-Specific Styles
   Consistent with new dark-luxury design
   =================================== */

/* ===================================
   INNER PAGE NAV — Light pages need dark text
   =================================== */
.page-nav .nav-logo {
    color: var(--black);
}

/* .page-nav .nav-logo-img {
    box-shadow: 0 0 8px rgba(201, 168, 76, 0.3);
} */

.page-nav .nav-links a {
    color: var(--gray);
}

.page-nav .nav-links a:hover {
    color: var(--black);
}

.page-nav .nav-links a.active {
    color: var(--gold-deep);
}

.page-nav .nav-toggle span {
    background: var(--black);
}

.page-nav.scrolled {
    background: rgba(250, 246, 239, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.page-nav.scrolled .nav-logo {
    color: var(--black);
}

.page-nav.scrolled .nav-links a {
    color: var(--gray);
}

.page-nav.scrolled .nav-links a:hover {
    color: var(--black);
}

/* ===================================
   PAGE HEADERS
   =================================== */
.page-header {
    position: relative;
    padding: calc(140px + var(--space-3xl)) 0 var(--space-2xl);
    overflow: hidden;
}

.page-header-short {
    padding-bottom: var(--space-xl);
}

.page-header-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.page-header-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(201, 168, 76, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 40% 30% at 80% 20%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
        var(--cream);
}

.page-header-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    line-height: 1.7;
}

/* ===================================
   FEATURES PAGE
   =================================== */
.features-page {
    background: var(--white);
}

.feature-section {
    padding: var(--space-3xl) 0;
}

.feature-section-alt {
    background: var(--cream);
}

.feature-section-dark {
    background: var(--black);
    color: var(--white);
}

.feature-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.feature-section-grid.reverse {
    direction: rtl;
}

.feature-section-grid.reverse > * {
    direction: ltr;
}

.feature-section-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.feature-number {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.1em;
}

.feature-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.feature-section-dark .feature-section-title {
    color: var(--white);
}

.feature-section-desc {
    font-size: 1.05rem;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: var(--space-lg);
}

.feature-section-dark .feature-section-desc {
    color: rgba(255, 255, 255, 0.55);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.feature-list li svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-list li span {
    font-size: 0.95rem;
    line-height: 1.6;
}

.feature-list li strong {
    color: var(--black);
}

/* Feature Phone Mockups */
.feature-section-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-phone {
    position: relative;
}

.phone-frame-feature {
    width: 260px;
    height: 540px;
    background: linear-gradient(145deg, #2a2a2a 0%, #0a0a0a 100%);
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.12),
        0 20px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform var(--transition-normal);
}

.phone-frame-feature:hover {
    transform: translateY(-6px);
}

.phone-screen-feature {
    width: 100%;
    height: 100%;
    background: var(--cream);
    border-radius: 32px;
    overflow: hidden;
}

.phone-screen-feature .screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Currency Globe Animation */
.currency-globe {
    position: relative;
    width: 300px;
    height: 300px;
    margin: var(--space-xl) auto 0;
}

.currency-orbit {
    position: absolute;
    inset: 0;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.currency-item {
    position: absolute;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    animation: counterRotate 20s linear infinite;
}

@keyframes counterRotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.currency-item:nth-child(1) { top: 10%; left: 50%; }
.currency-item:nth-child(2) { top: 25%; left: 85%; }
.currency-item:nth-child(3) { top: 50%; left: 95%; }
.currency-item:nth-child(4) { top: 75%; left: 85%; }
.currency-item:nth-child(5) { top: 90%; left: 50%; }
.currency-item:nth-child(6) { top: 75%; left: 15%; }
.currency-item:nth-child(7) { top: 50%; left: 5%; }
.currency-item:nth-child(8) { top: 25%; left: 15%; }

.currency-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(201, 168, 76, 0.08);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(201, 168, 76, 0.2);
}

.currency-count {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}

.currency-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Page CTA */
.page-cta {
    padding: var(--space-3xl) 0;
    background: var(--cream);
    text-align: center;
}

.page-cta .cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.page-cta .cta-subtitle {
    font-size: 1.05rem;
    color: var(--gray);
    margin-bottom: var(--space-lg);
}

/* ===================================
   LEGAL PAGES (Privacy, Terms)
   =================================== */
.legal-page {
    padding: calc(80px + var(--space-xl)) 0 var(--space-3xl);
    background: var(--white);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content[data-animate] {
    opacity: 1;
    transform: none;
}

.legal-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.legal-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.legal-section {
    margin-bottom: var(--space-xl);
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--black);
}

.legal-section h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: var(--space-md);
    margin-bottom: var(--space-sm);
    color: var(--black);
}

.legal-section p {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: var(--space-sm);
}

.legal-section ul,
.legal-section ol {
    color: var(--gray);
    line-height: 1.8;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(201, 168, 76, 0.3);
}

.legal-section a:hover {
    color: var(--gold-deep);
    text-decoration-color: var(--gold-deep);
}

.legal-highlight {
    background: rgba(201, 168, 76, 0.06);
    border-left: 3px solid var(--gold);
    padding: var(--space-md);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: var(--space-md) 0;
}

.legal-highlight p {
    margin: 0;
    color: var(--black);
}

/* ===================================
   SUPPORT / FAQ PAGE
   =================================== */
.support-page {
    padding: 0 0 var(--space-3xl);
    background: var(--white);
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: var(--space-2xl);
}

.faq-section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: var(--space-xl);
    text-align: center;
    letter-spacing: -0.02em;
}

.faq-category {
    margin-bottom: var(--space-xl);
}

.faq-category-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold-deep);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 1px solid rgba(201, 168, 76, 0.15);
    letter-spacing: 0.02em;
}

.faq-item {
    margin-bottom: 6px;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    background: var(--cream);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--black);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.faq-question:hover {
    background: var(--cream-dark);
    border-color: rgba(201, 168, 76, 0.1);
}

.faq-icon {
    width: 18px;
    height: 18px;
    color: var(--gold);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-question {
    background: rgba(201, 168, 76, 0.06);
    border-color: rgba(201, 168, 76, 0.15);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: var(--space-md);
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: var(--space-sm);
}

.faq-answer ul,
.faq-answer ol {
    padding-left: var(--space-lg);
}

.faq-answer li {
    margin-bottom: 6px;
}

.faq-answer a {
    color: var(--gold);
}

/* Contact Section */
.contact-section {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    background: var(--cream);
    border-radius: var(--radius-2xl);
    padding: var(--space-xl);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.contact-info > p {
    color: var(--gray);
    margin-bottom: var(--space-lg);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--white);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.contact-method:hover {
    transform: translateX(4px);
    border-color: rgba(201, 168, 76, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.contact-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 168, 76, 0.08);
    border-radius: var(--radius-sm);
    color: var(--gold);
}

.contact-icon svg {
    width: 20px;
    height: 20px;
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--gray);
}

.contact-value {
    font-weight: 600;
    color: var(--black);
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form-wrapper h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--black);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--black);
    transition: all var(--transition-fast);
}

.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, 168, 76, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

.contact-form .btn {
    margin-top: var(--space-xs);
}

.contact-form .btn-icon-right {
    width: 16px;
    height: 16px;
    margin-left: 4px;
}

/* ===================================
   ACTIVE NAV LINK
   =================================== */
.nav-links a.active {
    color: var(--gold) !important;
}

/* ===================================
   404 PAGE
   =================================== */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-lg);
    background: var(--black);
    color: var(--white);
}

.error-content {
    max-width: 500px;
}

.error-code {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 800;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.error-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.error-desc {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-lg);
}

/* ===================================
   RESPONSIVE — PAGES
   =================================== */
@media (max-width: 1024px) {
    .feature-section-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .feature-section-grid.reverse {
        direction: ltr;
    }

    .feature-section-visual {
        order: -1;
    }

    .contact-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: calc(100px + var(--space-2xl)) 0 var(--space-xl);
    }

    .phone-frame-feature {
        width: 220px;
        height: 460px;
    }

    .currency-globe {
        width: 250px;
        height: 250px;
    }

    .currency-center {
        width: 100px;
        height: 100px;
    }

    .currency-count {
        font-size: 1.5rem;
    }

    .currency-item {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .contact-card {
        padding: var(--space-md);
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: var(--space-sm);
        font-size: 0.9rem;
    }

    .contact-method {
        padding: var(--space-xs);
    }

    .contact-icon {
        width: 36px;
        height: 36px;
    }
}
