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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Hero Gradient ── */
.hero-gradient {
    background: linear-gradient(135deg, #1a1b21 0%, #2d2a26 30%, #4a2c24 60%, #3a2220 80%, #1a1b21 100%);
}

.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.15) 1px, transparent 0);
    background-size: 40px 40px;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: #E07A5F;
    color: #fff;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #d46245;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(224, 122, 95, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: transparent;
    color: #33343e;
    border: 1px solid #d4d4dc;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: #33343e;
    border-color: #33343e;
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    background: transparent;
    color: #ffd0be;
    border: 1px solid rgba(255,208,190,0.4);
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 400;
    text-decoration: none;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-outline-light:hover {
    background: rgba(255,208,190,0.1);
    border-color: #ffd0be;
    color: #fff;
    transform: translateY(-1px);
}

/* ── Cards ── */
.card-dark {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.25rem;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.card-dark:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(224,122,95,0.3);
    transform: translateY(-4px);
}

/* ── Navigation ── */
.nav {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-logo {
    transition: color 0.3s ease;
}

.nav.scrolled .nav-logo {
    color: #1a1b21;
}

.nav-menu a {
    transition: color 0.2s ease;
}

.nav.scrolled .nav-menu a {
    color: #5c5d6b;
}

.nav.scrolled .nav-menu a:hover {
    color: #1a1b21;
}

.nav-menu-btn svg {
    stroke: #1a1b21;
    transition: stroke 0.3s ease;
}

.nav.scrolled .nav-menu-btn svg {
    stroke: #1a1b21;
}

/* ── Mobile Menu ── */
.mobile-link {
    transition: color 0.2s ease;
}

/* ── Scroll Reveal ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* stagger delays set via inline style or JS */
.reveal {
    --delay: 0s;
    transition-delay: var(--delay);
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .card-dark:hover {
        transform: none;
    }
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover,
    .btn-outline-light:hover {
        transform: none;
    }
    .hero-dots {
        animation: none;
    }
    .animate-bounce {
        animation: none;
    }
}

/* ── Focus Styles ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #E07A5F;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Selection ── */
::selection {
    background: rgba(224, 122, 95, 0.2);
    color: #1a1b21;
}

/* ── Utility ── */
@media (max-width: 768px) {
    .hero-gradient {
        background: linear-gradient(160deg, #1a1b21 0%, #2d2a26 40%, #4a2c24 70%, #1a1b21 100%);
    }
}
