.home-page {
    --bg: #06060f;
    --bg2: #0d0d1a;
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.08);
    --accent1: #7c3aed;
    --accent2: #06b6d4;
    --accent3: #f0abfc;
    --text: #e2e8f0;
    --text-muted: #64748b;
    --glow1: rgba(124, 58, 237, 0.35);
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.12), transparent 24%),
        linear-gradient(180deg, var(--bg2), var(--bg));
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.home-page *,
.home-page *::before,
.home-page *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.home-page::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.home-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px;
    background: rgba(6, 6, 15, 0.64);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
    color: var(--text);
    text-decoration: none;
    font-family: 'Space Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--accent2);
    transition: width 0.25s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.home-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 48px 120px;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 104px;
    position: relative;
}

.hero-eyebrow {
    margin: 0 0 24px;
    color: var(--accent2);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fadeUp 0.8s ease 0.2s both;
}

.hero-title {
    margin: 0 0 28px;
    font-size: clamp(52px, 7vw, 92px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.05em;
    animation: fadeUp 0.8s ease 0.4s both;
}

.hero-line {
    display: block;
}

.hero-line.accent {
    background: linear-gradient(135deg, var(--accent1) 0%, var(--accent2) 60%, var(--accent3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    max-width: 620px;
    margin: 0 0 44px;
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.8;
    animation: fadeUp 0.8s ease 0.6s both;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease 0.8s both;
}

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.3s ease, opacity 0.2s ease;
}

.btn-primary {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    box-shadow: 0 0 0 rgba(124, 58, 237, 0);
}

.btn-primary:hover {
    opacity: 0.95;
    box-shadow: 0 10px 34px var(--glow1);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
    background: rgba(6, 182, 212, 0.07);
    border-color: rgba(6, 182, 212, 0.35);
}

.scroll-indicator {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    animation: fadeIn 1s ease 1.2s both;
}

.scroll-indicator span {
    font-family: 'Space Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent2), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.content-section {
    padding: 100px 0 0;
    scroll-margin-top: 110px;
}

.section-label {
    margin: 0 0 16px;
    color: var(--accent1);
    font-family: 'Space Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.section-title {
    margin: 0 0 48px;
    font-size: clamp(34px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    display: block;
    min-height: 260px;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(124, 58, 237, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover {
    border-color: rgba(124, 58, 237, 0.35);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(124, 58, 237, 0.18);
}

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

.card-tag {
    display: inline-block;
    margin-bottom: 20px;
    padding: 4px 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent3);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card-title {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.card-desc {
    margin: 0 0 28px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.75;
}

.card-link {
    color: var(--accent2);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.card-wip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-family: 'Space Mono', monospace;
    font-size: 12px;
}

.card-wip::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 6px #f59e0b;
    animation: blink 2s ease-in-out infinite;
}

.contact-section {
    padding-bottom: 60px;
}

.contact-desc {
    max-width: 560px;
    margin: 0 0 36px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s 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;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scrollPulse {
    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@media (max-width: 900px) {
    .home-nav {
        padding: 18px 20px;
        gap: 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-links {
        gap: 18px;
        flex-wrap: wrap;
    }

    .home-wrapper {
        padding: 0 20px 88px;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding-top: 140px;
    }

    .hero-title {
        font-size: clamp(42px, 16vw, 72px);
    }

    .hero-desc,
    .contact-desc {
        font-size: 15px;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .content-section {
        padding-top: 84px;
    }
}
