/* ===== Zircon Financial — Shared Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* --- Reset & Variables --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-blue: #0055FF;
    --brand-blue-hover: #0044CC;
    --brand-blue-light: #E8F0FF;
    --brand-blue-glow: rgba(0,85,255,0.15);
    --primary: #0A1A3A;
    --primary-light: #0F2650;
    --secondary: #152D5A;
    --accent: #0055FF;
    --accent-light: #3D7FFF;
    --accent-dark: #0044CC;
    --navy: #060E1F;
    --green: #1A7A4C;
    --green-light: #E8F5EE;
    --red: #B22234;
    --gray-900: #1A202C;
    --gray-700: #374151;
    --gray-600: #4B5563;
    --gray-500: #6B7280;
    --gray-400: #9CA3AF;
    --gray-200: #E5E7EB;
    --gray-100: #F3F4F6;
    --gray-50: #F9FAFB;
    --white: #FFFFFF;
    --border: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --radius: 6px;
    --radius-lg: 12px;
}

html { scroll-behavior: smooth; }

/* Offset anchor targets for sticky nav */
[id] {
    scroll-margin-top: 90px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--gray-900);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- SVG Icon System --- */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon svg {
    width: 100%;
    height: 100%;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- Language Switcher --- */
.lang-switcher {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0,85,255,0.12);
    border: 1px solid rgba(0,85,255,0.2);
    border-radius: 4px;
    color: #8AB4FF;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.lang-current:hover {
    background: rgba(0,85,255,0.2);
    border-color: rgba(0,85,255,0.35);
}

.lang-current svg {
    width: 10px;
    height: 10px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    transition: transform 0.2s;
}

.lang-switcher:hover .lang-current svg {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    z-index: 1001;
    min-width: 140px;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--gray-700);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s;
    white-space: nowrap;
}

.lang-dropdown a:hover {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
}

.lang-dropdown a.active {
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    font-weight: 700;
}

/* Nav language switcher (for desktop) */
.nav-lang {
    margin-left: 8px;
}

.nav-lang .lang-current {
    background: transparent;
    border-color: var(--gray-200);
    color: var(--gray-600);
}

.nav-lang .lang-current:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

/* Chinese font support */
html[lang="zh-CN"], html[lang="zh-TW"] {
    font-family: 'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

/* --- Top Bar --- */
.top-bar {
    background: var(--navy);
    color: white;
    padding: 8px 40px;
    font-size: 13px;
    border-bottom: 1px solid rgba(0,85,255,0.15);
}

.top-bar-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-links {
    display: flex;
    gap: 28px;
    align-items: center;
}

.top-bar-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.top-bar-links a:hover { color: white; }

.credentials {
    display: flex;
    gap: 16px;
    align-items: center;
}

.credential-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0,85,255,0.15);
    border: 1px solid rgba(0,85,255,0.25);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #8AB4FF;
    letter-spacing: 0.3px;
}

.credential-badge .icon {
    width: 14px;
    height: 14px;
}

/* --- Navigation --- */
.nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
    height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-emblem {
    width: 42px;
    height: 42px;
    background: var(--brand-blue);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-emblem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.logo-tagline {
    font-size: 10px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 2px;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
    position: relative;
    padding: 4px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-blue);
    transition: width 0.25s ease;
}

.nav-menu a:hover { color: var(--primary); }
.nav-menu a:hover::after { width: 100%; }

.nav-menu a.active {
    color: var(--brand-blue);
}

.nav-menu a.active::after {
    width: 100%;
    background: var(--brand-blue);
}

.nav-cta {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: all 0.3s;
    display: block;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu overlay */
.mobile-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 999;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    display: block;
    padding: 14px 16px;
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-radius: var(--radius);
    transition: background 0.2s;
}

.mobile-menu a:hover { background: var(--gray-50); }

.mobile-menu .btn {
    margin-top: 8px;
    text-align: center;
    justify-content: center;
}

/* --- Buttons --- */
.btn {
    padding: 11px 24px;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-accent {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
}

.btn-accent:hover {
    background: var(--brand-blue-hover);
    border-color: var(--brand-blue-hover);
    box-shadow: 0 4px 16px rgba(0,85,255,0.3);
}

.btn-white-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.btn-white-outline:hover {
    background: white;
    color: var(--primary);
    border-color: white;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 14px;
}

/* --- Hero --- */
.hero {
    background: linear-gradient(160deg, var(--primary) 0%, var(--navy) 60%, #0D2847 100%);
    color: white;
    padding: 80px 40px 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(0,85,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,85,255,0.3), transparent);
}

.hero-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero h1 span {
    color: #8AB4FF;
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0.85;
    font-weight: 400;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 48px;
}

/* Trust indicators */
.trust-indicators {
    display: flex;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(0,85,255,0.15), rgba(0,85,255,0.08));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,85,255,0.2);
    color: #8AB4FF;
    backdrop-filter: blur(4px);
}

.trust-icon .icon {
    width: 20px;
    height: 20px;
}

.trust-text h4 {
    font-size: 13px;
    margin-bottom: 2px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.trust-text p {
    font-size: 12px;
    opacity: 0.6;
    margin: 0;
    font-weight: 400;
}

/* Hero Stats Card */
.hero-stats {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-xl);
    border-top: 3px solid var(--brand-blue);
    color: var(--gray-900);
}

.hero-stats-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 16px 8px;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* --- Sections --- */
.section {
    padding: 80px 40px;
}

.section.gray { background: var(--gray-50); }

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

.section-label {
    display: inline-block;
    color: var(--brand-blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
    line-height: 1.25;
}

.section-header p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.7;
}

/* --- Product Cards --- */
.products-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all 0.25s ease;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--accent-light));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity 0.25s;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: transparent;
}

.product-card:hover::before { opacity: 1; }

.product-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--brand-blue), #3373FF);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,85,255,0.2);
    transition: box-shadow 0.3s, transform 0.3s;
}

.product-card:hover .product-icon {
    box-shadow: 0 6px 20px rgba(0,85,255,0.3);
    transform: scale(1.05);
}

.product-icon .icon {
    width: 28px;
    height: 28px;
}

.product-icon .icon svg {
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.product-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 10px;
}

.product-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 16px;
    font-size: 14px;
}

.product-link {
    color: var(--brand-blue);
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s, gap 0.2s;
}

.product-link:hover {
    color: var(--primary);
    gap: 10px;
}

/* --- Features Section --- */
.features-section {
    background: linear-gradient(160deg, var(--primary) 0%, var(--navy) 100%);
    color: white;
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0,85,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

.features-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.features-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 16px;
    line-height: 1.25;
}

.features-info > p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 32px;
    opacity: 0.8;
}

.features-list {
    display: grid;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: start;
}

.feature-icon-small {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(0,85,255,0.15), rgba(0,85,255,0.08));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(0,85,255,0.2);
    color: #8AB4FF;
}

.feature-icon-small .icon {
    width: 20px;
    height: 20px;
}

.feature-item h4 {
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 700;
}

.feature-item p {
    font-size: 14px;
    opacity: 0.7;
    margin: 0;
    line-height: 1.6;
}

/* Platform visual */
.platform-visual {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.platform-mockup {
    background: var(--gray-900);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0,85,255,0.25);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mockup-dot:nth-child(1) { background: #FF5F57; }
.mockup-dot:nth-child(2) { background: #FFBD2E; }
.mockup-dot:nth-child(3) { background: #28CA41; }

.mockup-title {
    font-size: 11px;
    color: var(--gray-400);
    margin-left: 12px;
    font-weight: 500;
}

.mockup-body {
    padding: 20px;
}

.mockup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 13px;
    font-family: 'Inter', monospace;
}

.mockup-row:last-child { border-bottom: none; }

.mockup-pair { color: var(--gray-400); font-weight: 600; }
.mockup-bid { color: #4ADE80; }
.mockup-ask { color: #F87171; }
.mockup-spread { color: #8AB4FF; font-weight: 600; }

.mockup-footer {
    padding: 12px 20px;
    background: rgba(0,85,255,0.08);
    border-top: 1px solid rgba(0,85,255,0.15);
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--gray-400);
}

.mockup-status {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ADE80;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(160deg, var(--primary) 0%, var(--navy) 100%);
    color: white;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(0,85,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-content p {
    font-size: 16px;
    margin-bottom: 32px;
    opacity: 0.8;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* --- Footer --- */
.footer {
    background: var(--navy);
    color: white;
    padding: 60px 40px 32px;
}

.risk-warning {
    background: rgba(0,85,255,0.06);
    border: 1px solid rgba(0,85,255,0.15);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 48px;
    font-size: 12px;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
}

.risk-warning strong {
    color: #8AB4FF;
}

.footer-content {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.8fr repeat(4, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 12px;
}

.footer-brand > p {
    font-size: 13px;
    line-height: 1.7;
    opacity: 0.65;
    margin-bottom: 16px;
}

.footer-credentials {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 13px;
    line-height: 1.8;
    opacity: 0.7;
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #8AB4FF;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-links a:hover { color: white; }

.footer-bottom {
    max-width: 1300px;
    margin: 0 auto;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    opacity: 0.5;
}

/* --- FX Page Specific: Spread Table --- */
.spread-table-container {
    max-width: 1300px;
    margin: 0 auto;
    overflow-x: auto;
}

.spread-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.spread-table thead {
    background: var(--primary);
    color: white;
}

.spread-table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spread-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-200);
}

.spread-table tbody tr { transition: background 0.15s; }
.spread-table tbody tr:hover { background: var(--gray-50); }

.pair-name { font-weight: 600; color: var(--primary); }
.spread-value { color: var(--green); font-weight: 700; }

/* Account comparison */
.accounts-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.account-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    text-align: center;
    transition: all 0.25s;
    position: relative;
}

.account-card.featured {
    border-color: var(--brand-blue);
    box-shadow: 0 12px 40px rgba(0,85,255,0.12);
}

.account-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-blue);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 8px;
}

.account-card .price {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.account-features {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}

.account-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--gray-100);
    font-size: 13px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 8px;
}

.account-features li .icon {
    width: 16px;
    height: 16px;
    color: var(--green);
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,85,255,0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--brand-blue-hover);
    box-shadow: 0 6px 24px rgba(0,85,255,0.4);
    transform: translateY(-2px);
}

.back-to-top svg {
    width: 22px;
    height: 22px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
}

/* --- R1: Scroll Reveal Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- R2: Steps / How It Works --- */
.steps-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-blue-light), var(--brand-blue), var(--brand-blue-light));
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 72px;
    height: 72px;
    background: var(--brand-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 4px 20px rgba(0,85,255,0.25);
}

.step-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 8px;
}

.step-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}

/* --- R3: Enhanced Spread Table --- */
.spread-table thead th {
    background: var(--primary);
}

.spread-table thead th:first-child {
    border-radius: var(--radius) 0 0 0;
}

.spread-table thead th:last-child {
    border-radius: 0 var(--radius) 0 0;
}

.spread-tight { background: rgba(0,85,255,0.04); }
.spread-tight .spread-value { color: var(--brand-blue); font-size: 15px; }

.spread-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--brand-blue-light);
    color: var(--brand-blue);
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    vertical-align: middle;
}

/* --- R4: Enhanced Card Hover --- */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    box-shadow: 0 16px 48px rgba(0,85,255,0.12);
    transform: translateY(-4px);
    border-color: rgba(0,85,255,0.2);
}

.account-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.account-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Stat counter animation */
.stat-number {
    transition: color 0.3s;
}

.stat-item:hover .stat-number {
    color: var(--brand-blue);
}

/* Hero stats card hover */
.hero-stats {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-stats:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}

/* Platform mockup subtle animation */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* --- R5: Mobile Fixed CTA --- */
.mobile-fixed-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
    z-index: 998;
    gap: 8px;
}

.mobile-fixed-cta .btn {
    flex: 1;
    justify-content: center;
    padding: 14px 16px;
}

/* Better section dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gray-200), transparent);
    max-width: 1300px;
    margin: 0 auto;
}

/* Improved stat-number on hero for better emphasis */
.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1;
    letter-spacing: -0.5px;
}

/* Better product link arrow animation */
.product-link::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
}

/* Logo name on dark backgrounds */
.hero .logo-name,
.features-section .logo-name {
    color: white;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 38px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .features-content { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .accounts-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-indicators { flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .nav-container { padding: 0 20px; }
    .nav-menu { display: none; }
    .nav-cta { display: none; }
    .hamburger { display: flex; }

    .hero { padding: 48px 20px 56px; }
    .hero h1 { font-size: 30px; }
    .hero-subtitle { font-size: 15px; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { justify-content: center; }
    .trust-indicators { flex-direction: column; gap: 16px; }

    .section { padding: 48px 20px; }
    .section-header h2 { font-size: 28px; }
    .products-grid { grid-template-columns: 1fr; }
    .accounts-grid { grid-template-columns: 1fr; }

    .features-section { padding: 48px 20px; }
    .features-info h2 { font-size: 28px; }

    .cta-section { padding: 48px 20px; }
    .cta-content h2 { font-size: 28px; }
    .cta-buttons { flex-direction: column; }
    .cta-buttons .btn { justify-content: center; }

    .footer { padding: 40px 20px 24px; padding-bottom: 80px; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    .mobile-fixed-cta { display: flex; }
    .back-to-top { bottom: 80px; }

    .steps-grid { grid-template-columns: 1fr; gap: 24px; }
    .steps-grid::before { display: none; }
}
