/* AlphaGuard Brand Colors - Dark Blue Trading Theme */
:root {
    /* Core Brand Colors */
    --primary: #1f6feb;
    --primary-dark: #060b16;
    --accent: #4d8dff;
    --accent-bright: #7db3ff;
    --accent-dark: #1c5fd6;
    
    /* Functional Colors */
    --risk-red: #ff5b6c;
    --neutral-bg: #060b16;
    --audit-text: #d7e6ff;
    --text: #f1f6ff;
    --text-light: #9ab3d5;
    --text-meta: #7f96b7;
    
    /* UI Elements */
    --bg: #0d1528;
    --card-border: rgba(125, 179, 255, 0.22);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-light);
    background:
        radial-gradient(circle at 15% -10%, rgba(77, 141, 255, 0.16) 0%, transparent 42%),
        radial-gradient(circle at 100% 0%, rgba(31, 111, 235, 0.12) 0%, transparent 35%),
        var(--neutral-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation - Financial Professional Style */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(8, 14, 30, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(125, 179, 255, 0.2);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 2rem;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-logo-link:hover {
    opacity: 0.85;
}

.nav-logo-img {
    height: 40px;
    width: auto;
}

.nav-logo-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--text);
}

.nav-menu a.btn-primary,
.nav-menu a.btn-primary:hover {
    color: #ffffff;
}

/* Buttons - Professional Grade */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.btn-small {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #f8fbff;
    box-shadow: 0 6px 18px rgba(31, 111, 235, 0.35);
    font-weight: 700;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2e79f1 0%, #5b9eff 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section - Immersive Financial UI */
.hero {
    padding: 140px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, #09162f 0%, #132952 60%, #0b1833 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(125, 179, 255, 0.16) 0%, transparent 52%),
        radial-gradient(circle at 80% 80%, rgba(31, 111, 235, 0.18) 0%, transparent 56%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.coming-soon-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(77, 141, 255, 0.16);
    color: #c9e1ff;
    padding: 0.5rem 1.25rem;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 1px solid rgba(125, 179, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.92;
    color: #d3e2fa;
    line-height: 1.7;
    text-wrap: balance;
    hyphens: none;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-green {
    color: #69adff;
    font-weight: 700;
    white-space: nowrap;
}

.hero-cta {
    margin-bottom: 1.5rem;
}

.hero-cta .btn-primary {
    font-size: 1.1rem;
    padding: 1.1rem 2.75rem;
}

.hero-note {
    font-size: 0.95rem;
    color: #b7cbe8;
    margin-top: 1rem;
    font-weight: 500;
}

.hero-fade-item {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(2px);
    transition: opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 560ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-fade-item.is-visible {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Sections - Bloomberg Terminal Inspired */
.section {
    padding: 90px 0;
    background: transparent;
}

.section-alt {
    background: #0b1224;
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    font-weight: 400;
}

/* Features Interactive Layout - Seamless design */
.features-interactive {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1.75rem;
    border-left: 2px solid transparent;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: linear-gradient(90deg, rgba(27, 52, 94, 0.42) 0%, rgba(15, 30, 58, 0.18) 100%);
    border-left-color: rgba(125, 179, 255, 0.55);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    transform: translateX(4px);
}

.feature-item.active {
    background: linear-gradient(90deg, rgba(34, 72, 132, 0.5) 0%, rgba(16, 35, 70, 0.3) 100%);
    border-left-color: #61b2ff;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
    transform: translateX(6px);
}

.feature-item-content {
    flex: 1;
}

.feature-item h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.feature-item.active h3 {
    color: #ffffff;
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.5;
}

.feature-arrow {
    color: var(--text-light);
    transition: all 0.3s ease;
    opacity: 0;
}

.feature-item:hover .feature-arrow,
.feature-item.active .feature-arrow {
    color: var(--accent-bright);
    opacity: 0.8;
    transform: translateX(4px);
}

/* Features Preview */
.features-preview {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    /* 高度由 JS 同步设置 */
}

.preview-content {
    display: none;
}

.preview-content.active {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.preview-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    object-fit: contain;
}

.preview-image.preview-fade-in {
    animation: previewFadeIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes previewFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Section - Immersive Overlay Style */
.cta-section {
    background: linear-gradient(135deg, #09162f 0%, #132952 60%, #0b1833 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(77, 141, 255, 0.14) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(125, 179, 255, 0.14) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.cta-content > p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.92;
    line-height: 1.6;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto 1.25rem;
    background: rgba(12, 23, 46, 0.72);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(125, 179, 255, 0.2);
}

.form-group {
    width: 100%;
}

.cta-form input[type="email"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(125, 179, 255, 0.25);
    border-radius: 8px;
    font-size: 1rem;
    background: #091326;
    color: var(--text);
    font-family: 'Inter', sans-serif;
}

.cta-form input[type="email"]::placeholder {
    color: #7393bc;
}

.cta-form input[type="email"]:focus {
    outline: 3px solid rgba(125, 179, 255, 0.45);
}

.experience-group {
    text-align: left;
}

.experience-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1rem;
    letter-spacing: 0.3px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(9, 19, 38, 0.78);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.radio-option:hover {
    background: rgba(15, 33, 64, 0.9);
    border-color: rgba(125, 179, 255, 0.35);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-bright);
}

.radio-option span {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.radio-option:has(input:checked) {
    background: rgba(77, 141, 255, 0.22);
    border-color: #9bc3ff;
}

.btn-submit {
    width: 100%;
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
}

.btn-submit:hover {
    transform: translateY(-2px);
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 1.25rem;
    color: #b7cbe8;
    white-space: nowrap;
    overflow: visible;
}

/* Toast Notification - Above Form */
.toast-container {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    pointer-events: none;
    width: max-content;
    max-width: 90%;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    pointer-events: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    animation: toastIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    white-space: nowrap;
}

.toast.toast-success {
    background: rgba(46, 125, 50, 0.92);
    color: white;
    border: 1px solid rgba(174, 234, 0, 0.4);
}

.toast.toast-error {
    background: rgba(211, 47, 47, 0.92);
    color: white;
    border: 1px solid rgba(255, 100, 100, 0.4);
}

.toast.toast-warning {
    background: rgba(245, 166, 35, 0.92);
    color: #1A3258;
    border: 1px solid rgba(245, 166, 35, 0.4);
}

.toast.toast-out {
    animation: toastOut 0.35s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* Confetti Canvas */
.confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Stats Section - Terminal Dashboard Style */
.stats-section {
    background: #090f1f;
    border-top: 1px solid rgba(125, 179, 255, 0.16);
    border-bottom: 1px solid rgba(125, 179, 255, 0.16);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-card {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-bright);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer - Professional Minimal */
.footer {
    background: #070d1a;
    color: white;
    padding: 3.5rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo {
    height: 1.5rem;
    width: auto;
    object-fit: contain;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: white;
    font-weight: 700;
    margin: 0;
}

.footer-brand p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.25rem 0 0 0;
}

.footer-email {
    color: var(--text-meta) !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
}

.footer-column h4 {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--accent-bright);
}

.footer-bottom {
    border-top: 1px solid rgba(125, 179, 255, 0.18);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-meta);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-interactive {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features-preview {
        min-height: 300px;
    }
    
    .cta-form {
        padding: 1.5rem;
    }
    
    .radio-option span {
        font-size: 0.9rem;
    }
    
    .cta-form {
        flex-direction: column;
        padding: 0.75rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2.75rem;
    }
    
    .nav-logo-img {
        height: 32px;
    }
    
    .nav-logo-text {
        font-size: 1.2rem;
    }
}

/* Professional Typography Enhancement */
@supports (font-variation-settings: normal) {
    body {
        font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    }
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Lightweight reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-opacity {
    opacity: 0;
    transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
    transition: opacity 360ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible,
.reveal-opacity.is-visible,
.reveal-scale.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .hero-fade-item {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }

    .reveal,
    .reveal-opacity,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .preview-image.preview-fade-in {
        animation: none !important;
    }
}
