@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-color: #05070a;
    --text-main: #f0f2f5;
    --text-dim: #94a3b8;
    --accent-glow: rgba(138, 43, 226, 0.4);
    --card-bg: rgba(15, 23, 42, 0.6);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent-primary: #a855f7;
    --accent-secondary: #0ea5e9;
    --grid-gap: 20px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 50% -20%, rgba(138, 43, 226, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(14, 165, 233, 0.05) 0%, transparent 40%);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
    width: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 0 100px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    background: linear-gradient(to bottom right, #fff 30%, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(160px, auto);
    gap: var(--grid-gap);
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    backdrop-filter: blur(12px);
    gap: 20px;
}

.bento-card .icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-card .icon img,
.bento-card .icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.bento-card.large {
    grid-column: span 6;
    grid-row: span 2;
    padding: 60px;
}

.bento-card.small {
    grid-column: span 4;
    padding: 30px;
}

.bento-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.bento-card.small h3 {
    font-size: 1.4rem;
}

.bento-card p {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.6;
}

.bento-card.small p {
    font-size: 0.95rem;
}

.section-label {
    grid-column: span 12;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent-secondary);
    margin-top: 40px;
    margin-bottom: 10px;
}

.eigenarc {
    border-bottom: 4px solid var(--accent-primary);
}

.ilumina {
    border-bottom: 4px solid var(--accent-secondary);
}

.free-tool {
    border-top: 1px solid var(--card-border);
}

/* Footer */
footer {
    margin-top: auto;
    padding: 80px 0 40px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.email-link {
    font-size: 1.1rem;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.email-link:hover {
    color: var(--accent-secondary);
}

.github-btn {
    padding: 10px 24px;
    background: white;
    color: black;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s;
}

.github-btn:hover {
    transform: scale(1.05);
}

.copyright {
    color: #475569;
    font-size: 0.85rem;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 900px) {

    .bento-card.large,
    .bento-card.small {
        grid-column: span 12;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 40px 20px;
    }

    .hero {
        padding: 40px 0 60px;
    }

    .bento-card {
        padding: 30px;
    }
}