/* ============================================================
   Index / Landing Page — Premium Dark Design
   ============================================================ */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #080808;
    --bg-card: #111111;
    --bg-card-hover: #161616;
    --text-primary: #f0f0f0;
    --text-secondary: #777777;
    --text-muted: #444444;
    --accent: #b590d3;
    --accent-glow: rgba(200, 168, 124, 0.08);
    --border: #1a1a1a;
    --border-hover: #2a2a2a;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* --- Subtle grain overlay --- */
.grain-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    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)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
}

/* --- Hero Layout --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 100%;
}

/* --- Hero Text --- */
.hero-text {
    margin-bottom: 3.5rem;
}

.hero-greeting {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.hero-name {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 420px;
}

/* --- Navigation Cards --- */
.hero-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-card:hover::before {
    opacity: 1;
}

.nav-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-card-icon {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 168, 124, 0.08);
    border-radius: 12px;
    color: var(--accent);
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.nav-card:hover .nav-card-icon {
    background: rgba(200, 168, 124, 0.14);
}

.nav-card-text {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-card-title {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.nav-card-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.nav-card-arrow {
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.nav-card:hover .nav-card-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

/* --- Footer --- */
.hero-footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    z-index: 1;
}

/* --- Animations --- */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0;
    animation: fadeSlideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .hero {
        padding: 2rem 1.5rem;
        justify-content: center;
    }

    .hero-text {
        margin-bottom: 2.5rem;
    }

    .hero-name {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .nav-card {
        padding: 1rem 1.25rem;
        gap: 1rem;
        border-radius: 12px;
    }

    .nav-card-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .hero-footer {
        bottom: 1.5rem;
    }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 3px;
}

/* --- Selection --- */
::selection {
    background: rgba(200, 168, 124, 0.2);
    color: var(--text-primary);
}