@layer base, layout, components, utilities;

@layer base {
    :root {
        --bg-color: #0b0e11;
        --surface-color: #181a20;
        --primary-color: #fcd535;
        --primary-hover: #e2c12a;
        --text-color: #eaecef;
        --text-muted: #848e9c;
        --success: #0ecb81;
        --error: #f6465d;
        --border-color: #2b2f36;
        --accent-glow: rgba(252, 213, 53, 0.15);
        
        --font-sans: 'Inter', sans-serif;
        --font-mono: 'JetBrains Mono', monospace;
    }

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

    body {
        background-color: var(--bg-color);
        color: var(--text-color);
        font-family: var(--font-sans);
        line-height: 1.6;
        overflow-x: hidden;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    h1, h2, h3 {
        color: #fff;
        line-height: 1.2;
    }
}

@layer layout {
    header {
        position: fixed;
        top: 0;
        width: 100%;
        background: rgba(11, 14, 17, 0.8);
        backdrop-filter: blur(10px);
        z-index: 1000;
        border-bottom: 1px solid var(--border-color);
    }

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

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

    .logo span {
        color: var(--primary-color);
    }

    nav ul {
        display: flex;
        list-style: none;
        gap: 2rem;
    }

    nav a:hover {
        color: var(--primary-color);
    }

    main {
        padding-top: 80px;
    }

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

    section h2 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
        text-align: center;
    }

    footer {
        padding: 4rem 2rem;
        text-align: center;
        border-top: 1px solid var(--border-color);
        color: var(--text-muted);
        font-size: 0.9rem;
    }
}

@layer components {
    #hero {
        display: flex;
        align-items: center;
        min-height: 80vh;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        gap: 2rem;
    }

    .hero-content {
        flex: 1;
    }

    .hero-content h1 {
        font-size: clamp(3rem, 8vw, 4.5rem);
        font-weight: 800;
        margin-bottom: 1.5rem;
    }

    .highlight {
        color: var(--primary-color);
        position: relative;
    }

    .hero-content p {
        font-size: 1.25rem;
        color: var(--text-muted);
        margin-bottom: 2.5rem;
        max-width: 500px;
    }

    .cta-group {
        display: flex;
        gap: 1rem;
    }

    .btn {
        padding: 1rem 2rem;
        border-radius: 8px;
        font-weight: 600;
        transition: transform 0.2s, background-color 0.2s;
    }

    .btn.primary {
        background-color: var(--primary-color);
        color: #000;
    }

    .btn.primary:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
    }

    .btn.secondary {
        border: 1px solid var(--border-color);
    }

    .btn.secondary:hover {
        background: rgba(255, 255, 255, 0.05);
    }

    .hero-visual {
        flex: 1;
        display: flex;
        justify-content: center;
        position: relative;
    }

    .glow-sphere {
        width: 300px;
        height: 300px;
        background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
        opacity: 0.2;
        border-radius: 50%;
        filter: blur(40px);
        animation: pulse 4s infinite alternate;
    }

    @keyframes pulse {
        from { transform: scale(1); opacity: 0.2; }
        to { transform: scale(1.2); opacity: 0.3; }
    }

    .concept-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .info-box {
        background: linear-gradient(135deg, var(--surface-color) 0%, #1e2126 100%);
        border: 1px solid var(--border-color);
        border-radius: 24px;
        padding: 3rem;
        position: relative;
        overflow: hidden;
    }

    .info-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: var(--primary-color);
    }

    .info-content h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .info-content p {
        font-size: 1.1rem;
        color: var(--text-muted);
        margin-bottom: 2rem;
    }

    .feature-list {
        list-style: none;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .feature-list li {
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 12px;
        border-left: 3px solid var(--primary-color);
    }

    .feature-list li strong {
        display: block;
        margin-bottom: 0.5rem;
        color: #fff;
    }

    .risk-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
    }

    .risk-card {
        background: var(--surface-color);
        border: 1px solid var(--border-color);
        padding: 2.5rem;
        border-radius: 20px;
        position: relative;
    }

    .badge {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        background: var(--primary-color);
        color: #000;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
    }

    .badge.warning {
        background: var(--error);
        color: #fff;
    }

    .risk-card h3 {
        margin-bottom: 1rem;
    }

    .risk-card p {
        color: var(--text-muted);
    }
}

@media (max-width: 768px) {
    #hero {
        flex-direction: column;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-content p {
        margin: 0 auto 2.5rem;
    }

    .cta-group {
        justify-content: center;
    }

    nav ul {
        display: none;
    }
}
