:root {
    --blue-50: #e3f2fd;
    --blue-100: #bbdefb;
    --blue-200: #90caf9;
    --blue-400: #42a5f5;
    --blue-500: #2196f3;
    --blue-600: #1e88e5;
    --blue-700: #1976d2;
    --blue-800: #1565c0;
    --blue-900: #0d47a1;
    --surface: #0a0e17;
    --surface-elevated: #111827;
    --surface-card: #151c2c;
    --border: rgba(33, 150, 243, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(33, 150, 243, 0.15);
    --font: 'Source Sans 3', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--surface);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: var(--blue-400); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-200); }

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-800));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover { color: var(--text-primary); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-800));
    color: #fff;
    box-shadow: 0 4px 14px rgba(33, 150, 243, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.45);
    transform: translateY(-1px);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--blue-400);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: rgba(33, 150, 243, 0.08);
    border-color: var(--blue-500);
    color: var(--blue-200);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover { color: var(--text-primary); }

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
}

.btn-block { width: 100%; }

/* Hero */
.hero {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(33, 150, 243, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(33, 150, 243, 0.1);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8rem;
    color: var(--blue-400);
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 0%, var(--blue-200) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Ticker */
.ticker-strip {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 160px;
}

.ticker-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.ticker-icon__img,
.ticker-icon .crypto-logo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
}

.crypto-logo {
    display: inline-block;
    object-fit: contain;
    flex-shrink: 0;
}

.crypto-logo--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-900));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.crypto-logo--hidden {
    display: none !important;
}

.crypto-coin-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 0 0 1.25rem;
}

.auth-card .crypto-coin-strip {
    margin: 0 0 1.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--border);
}

.crypto-coin-strip__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(33, 150, 243, 0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.crypto-coin-strip__item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.2);
}

.crypto-coin-strip__logo {
    width: 1.85rem !important;
    height: 1.85rem !important;
    object-fit: contain;
}

.auth-coin-orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.auth-coin-orbit__item {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    background: rgba(21, 28, 44, 0.92);
    border: 1px solid rgba(33, 150, 243, 0.35);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35), var(--shadow-glow);
    opacity: 0.92;
    animation: auth-coin-float 6s ease-in-out infinite;
}

.auth-coin-orbit__logo {
    width: 2.35rem !important;
    height: 2.35rem !important;
    object-fit: contain;
}

.auth-coin-orbit__item--1 { top: 12%; left: 8%; animation-delay: 0s; }
.auth-coin-orbit__item--2 { top: 18%; right: 10%; animation-delay: 0.8s; }
.auth-coin-orbit__item--3 { top: 42%; left: 4%; animation-delay: 1.6s; }
.auth-coin-orbit__item--4 { top: 50%; right: 6%; animation-delay: 2.4s; }
.auth-coin-orbit__item--5 { bottom: 22%; left: 12%; animation-delay: 3.2s; }
.auth-coin-orbit__item--6 { bottom: 16%; right: 14%; animation-delay: 4s; }

@keyframes auth-coin-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 900px) {
    .auth-coin-orbit__item {
        width: 2.5rem;
        height: 2.5rem;
        opacity: 0.35;
    }

    .auth-coin-orbit__logo {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }

    .auth-coin-orbit__item--3,
    .auth-coin-orbit__item--4 {
        display: none;
    }
}

.ticker-name { font-weight: 600; font-size: 0.95rem; }
.ticker-symbol { font-size: 0.75rem; color: var(--text-muted); }

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.stat-card {
    padding: 2rem;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.stat-value {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--blue-400);
    margin-bottom: 0.35rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    padding: 1.75rem;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(33, 150, 243, 0.35);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(33, 150, 243, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Security section */
.security-section {
    background: linear-gradient(180deg, transparent, rgba(33, 150, 243, 0.04));
}

.security-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.site-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-card);
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.site-mobile-nav {
    border-top: 1px solid var(--border);
    background: rgba(10, 14, 23, 0.98);
    backdrop-filter: blur(12px);
}

.site-mobile-nav[hidden] {
    display: none !important;
}

.site-mobile-nav nav {
    padding: 1rem var(--content-padding-x) 1.25rem;
}

.site-mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.site-mobile-nav-links a {
    display: block;
    padding: 0.75rem 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.site-mobile-nav-links a:hover {
    color: var(--text-primary);
}

.site-mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

body.site-nav-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .security-grid { grid-template-columns: 1fr; }

    .site-menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-nav-desktop,
    .site-header-actions {
        display: none;
    }

    .header-inner {
        gap: 0.75rem;
        height: 64px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .hero {
        padding: 110px 0 56px;
    }

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 0.25rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        padding: 0 0.5rem;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 1.35rem 1rem;
    }

    .stat-value {
        font-size: clamp(1.1rem, 4.5vw, 1.5rem);
        word-break: break-word;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .auth-page {
        padding: 1.25rem;
        align-items: flex-start;
        padding-top: 5rem;
    }

    .auth-card {
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .ticker-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .ticker-item {
        min-width: 0;
        width: 100%;
    }
}

.security-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.security-content > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.security-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.security-list .icon { font-size: 1.25rem; flex-shrink: 0; }

.security-visual {
    padding: 2.5rem;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.shield-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Auth pages */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(33, 150, 243, 0.1), transparent 60%);
    pointer-events: none;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow), var(--shadow-glow);
    position: relative;
    z-index: 1;
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    text-align: center;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.2);
}

.form-control::placeholder { color: var(--text-muted); }

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-check input { accent-color: var(--blue-600); }

.form-check label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.error-text {
    font-size: 0.8rem;
    color: var(--danger);
    margin-top: 0.35rem;
}

.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Dashboard */
.dashboard-page {
    padding: 100px 0 4rem;
    min-height: 100vh;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.35rem;
}

.dashboard-header p { color: var(--text-secondary); }

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.dashboard-card {
    padding: 1.5rem;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.dashboard-card h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.dashboard-card .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blue-400);
}
