:root {
    --bg-deep: #050505;
    --bg-surface: #0A0A0A;
    --bg-card: rgba(20, 20, 20, 0.4);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-active: rgba(63, 140, 255, 0.3);
    --text-primary: #FFFFFF;
    --text-secondary: #888888;
    --accent: #3F8CFF;
    --accent-glow: rgba(63, 140, 255, 0.15);
    --radius-lg: 32px;
    --radius-md: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    -webkit-text-size-adjust: 100%; /* Prevent font scaling issues */
}

.hub-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 100px;
}

/* Header */
.hub-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    color: var(--accent);
    width: 28px;
    height: 28px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo span {
    color: var(--text-secondary);
    font-weight: 300;
}

.hub-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.hub-nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.hub-nav a:hover {
    color: white;
}

/* Hero Section */
.hub-hero {
    padding: 8rem 0;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 10;
}

.badge {
    background: rgba(63, 140, 255, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 2rem;
    border: 1px solid rgba(63, 140, 255, 0.2);
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .hero-content h1 { font-size: 3.5rem; letter-spacing: -2px; }
}

.hero-content h1 span {
    display: block;
    color: var(--accent);
    opacity: 0.4; /* Increased from 0.15 for better readability */
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 3.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Live Simulation Styling */
.simulation-stage {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: transform 0.3s;
}

@media (max-width: 600px) {
    .simulation-stage {
        transform: scale(0.7);
        margin: -4rem 0;
    }
}

@media (max-width: 400px) {
    .simulation-stage {
        transform: scale(0.6);
        margin: -6rem 0;
    }
}

.sim-vault {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(20px);
    z-index: 10;
}

.vault-icon {
    width: 60px;
    height: 60px;
    color: var(--accent);
}

.sim-progress {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 44px;
    border: 3px solid transparent;
    border-top-color: var(--accent);
    animation: spin 2s linear infinite;
    opacity: 0.5;
}

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

.sim-files {
    position: absolute;
    width: 100%;
    height: 100%;
}

.sim-file {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: var(--accent);
    animation: flowIn 4.5s infinite;
    animation-delay: var(--delay);
}

.sim-file:nth-child(1) { top: 0; left: 0; }
.sim-file:nth-child(2) { bottom: 0; right: 0; }
.sim-file:nth-child(3) { top: 100px; right: -50px; }

@keyframes flowIn {
    0% { transform: translate(0, 0) scale(0.8); opacity: 0; }
    20% { opacity: 1; }
    80% { transform: translate(175px, 175px) scale(0.5); opacity: 0; }
    100% { transform: translate(175px, 175px) scale(0.5); opacity: 0; }
}

/* Match the positions for other child files */
@keyframes flowIn2 {
    0% { transform: translate(0, 0) scale(0.8); opacity: 0; }
    20% { opacity: 1; }
    80% { transform: translate(-175px, -175px) scale(0.5); opacity: 0; }
    100% { transform: translate(-175px, -175px) scale(0.5); opacity: 0; }
}

/* Adjusting the animation for different entry points */
.sim-file:nth-child(2) { animation: flowIn2 4.5s infinite; animation-delay: var(--delay); }

.sim-success {
    position: absolute;
    bottom: -60px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #22c55e;
    font-size: 0.8rem;
    font-weight: 700;
    animation: bounceIn 4.5s infinite;
}

@keyframes bounceIn {
    0%, 70% { transform: translateY(20px); opacity: 0; }
    80%, 95% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(0); opacity: 0; }
}

/* Trust Bar */
.trust-bar {
    display: flex;
    justify-content: space-between;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    margin-top: -2rem;
    position: relative;
    z-index: 20;
    backdrop-filter: blur(10px);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.trust-item i {
    color: var(--accent);
    width: 24px;
    height: 24px;
    opacity: 0.8;
}

.trust-item strong {
    display: block;
    font-size: 0.9rem;
}

.trust-item small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

/* Tools Grid */
.tools-grid {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

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

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-active);
    background: rgba(30, 30, 30, 0.5);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon i {
    color: var(--accent);
    width: 28px;
    height: 28px;
}

.tool-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.tool-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    flex: 1;
}

.card-action {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
}

.tool-card.disabled {
    opacity: 0.6;
    cursor: default;
}

.tool-card.disabled:hover {
    transform: none;
    border-color: var(--border-subtle);
}

.status-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Icons/Buttons */
.btn {
    padding: 1rem 2.5rem;
    border-radius: 40px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary { background: white; color: black; }
.btn-primary:hover { background: #eee; transform: translateY(-2px); }

.btn-primary-sm { padding: 0.6rem 1.5rem; background: white; color: black; font-size: 0.85rem; }

.btn-ghost { 
    background: transparent; 
    border: 1px solid var(--border-subtle); 
    color: white; 
}
.btn-ghost:hover { 
    background: rgba(255, 255, 255, 0.05); 
    border-color: white; 
}

.hub-footer {
    padding: 4rem 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* How It Works */
.how-it-works {
    padding: 8rem 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.step-card {
    position: relative;
    padding-top: 3rem;
    border-top: 1px solid var(--border-subtle);
}

.step-num {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent);
    opacity: 0.2;
}

.step-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Security Deep Dive */
.security-deep-dive {
    padding: 8rem 0;
}

.security-card {
    background: linear-gradient(135deg, rgba(63, 140, 255, 0.05), transparent);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.security-content {
    max-width: 600px;
}

.security-content h3 {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 2rem;
}

.security-content h3 span {
    color: var(--accent);
}

.security-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.security-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.security-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: all 0.3s;
}

.security-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-subtle);
    transform: translateX(10px);
}

.security-item i {
    color: var(--accent);
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin-top: 4px;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.item-details strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.item-details span {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}
.security-visual {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-halo {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    from { opacity: 0.3; transform: scale(0.9); }
    to { opacity: 0.6; transform: scale(1.1); }
}

.unlocked-icon {
    width: 100px;
    height: 100px;
    color: var(--accent);
    z-index: 10;
}

/* FAQ Section */
.faq-section {
    padding: 8rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.faq-card h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.faq-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Comparison Table */
.comparison-section {
    padding: 8rem 0;
}

.comparison-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.comparison-table th, .comparison-table td {
    padding: 2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th {
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
}

.comparison-table td:first-child {
    font-weight: 700;
    width: 30%;
}

.comparison-table td:nth-child(2) {
    color: var(--text-primary);
    background: rgba(63, 140, 255, 0.03);
    width: 35%;
}

.comparison-table td:last-child {
    color: var(--text-secondary);
    width: 35%;
}

.success-icon { color: #22c55e; width: 18px; margin-right: 8px; vertical-align: middle; }
.danger-icon { color: #ef4444; width: 18px; margin-right: 8px; vertical-align: middle; opacity: 0.6; }

@media (max-width: 900px) {
    body { overflow-x: hidden; }
    .hub-hero { flex-direction: column; padding: 4rem 0; text-align: center; }
    .hero-content { max-width: 100%; margin-bottom: 2rem; }
    .hero-content h1 { font-size: 3rem; line-height: 1.1; letter-spacing: -1.5px; }
    .hero-content p { font-size: 1.1rem; margin-bottom: 2rem; }
    .hero-actions { justify-content: center; }
    
    .hero-visual, .simulation-stage, .glass-orb { 
        display: none !important;
    }

    .trust-bar { 
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem; 
        padding: 2rem; 
        margin: 2rem 0; /* Changed from margin-top: 0 */
        text-align: left;
    }
    .trust-item { justify-content: flex-start; }

    .tools-grid { padding: 4rem 0; }
    .grid { grid-template-columns: 1fr; gap: 1rem; }
    .tool-card { 
        padding: 2.5rem 1.5rem; 
        border-radius: 24px;
    }
    .tool-card h3 { font-size: 1.3rem; }
    .tool-card p { font-size: 0.95rem; }

    .how-it-works { padding: 4rem 0; }
    .steps-container { grid-template-columns: 1fr; gap: 3rem; }
    .step-card { 
        padding-top: 1.5rem; 
        padding-bottom: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    .step-num { font-size: 2rem; top: -12px; }
    .step-card h4 { font-size: 1.2rem; }
    .step-card p { font-size: 0.9rem; }
    
    .security-deep-dive { padding: 4rem 0; }
    .security-card { 
        flex-direction: column; 
        padding: 3rem 1.5rem; 
        gap: 3rem; 
        text-align: center; 
        border-radius: 20px;
    }
    .security-content h3 { font-size: 2.2rem; letter-spacing: -1.5px; }
    .security-item { 
        text-align: left; 
        padding: 1.25rem; 
        gap: 1rem;
    }
    .security-visual {
        width: 100%;
        height: 200px;
    }
    .unlocked-icon {
        width: 60px;
        height: 60px;
    }
    .shield-halo {
        width: 180px;
        height: 180px;
    }
    
    .faq-section { padding: 4rem 0; }
    .faq-grid { grid-template-columns: 1fr; gap: 2rem; }
    .faq-card h5 { font-size: 1rem; }
    .faq-card p { font-size: 0.9rem; }

    .comparison-section { padding: 4rem 0; }
    .comparison-table-wrapper { 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch;
        border-radius: 16px;
    }
    .comparison-table th, .comparison-table td { padding: 1.25rem 1rem; font-size: 0.85rem; }
    .comparison-table td:first-child { min-width: 120px; }
    .comparison-table td:nth-child(2), .comparison-table td:last-child { min-width: 100px; }
}

@media (max-width: 600px) {
    .hub-container { padding: 0 1.5rem; padding-top: 80px; }
    .hero-content h1 { 
        font-size: 2.8rem; 
        letter-spacing: -2px; 
        line-height: 1;
    }
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        padding: 1.2rem;
    }
    .hero-visual, .simulation-stage, .glass-orb { 
        display: none !important;
    }
    .trust-bar { 
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
}
