/* ============================================================
   PREMIUM DARK LUXURY DESIGN SYSTEM
============================================================ */

/* ============================================================
   DESIGN TOKENS
============================================================ */
:root{
    --bg-black:#0b0f19;
    --bg-dark:#111827;
    --bg-soft:#1a1f2e;
    --bg-elevated:rgba(26,31,46,0.78);

    --text-light:#ffffff;
    --text-muted:#b8c1d1;
    --text-soft:#8c96ab;

    --gold:#facc15;
    --gold-soft:#eab308;
    --gold-deep:#ca8a04;

    --border-soft:rgba(255,255,255,0.08);
    --border-strong:rgba(255,255,255,0.14);

    --shadow-lg:0 20px 50px rgba(0,0,0,0.35);
    --shadow-md:0 10px 30px rgba(0,0,0,0.24);

    --radius:10px;
    --radius-lg:18px;

    --transition:0.3s ease;
    --container-max:1200px;
    --header-height:84px;
}

/* ============================================================
   RESET
============================================================ */
*,
*::before,
*::after{
    box-sizing:border-box;
    margin:0;
    padding:0;
}

html{
    scroll-behavior:smooth;
    scroll-padding-top: var(--header-height);
}

body{
    background:var(--bg-black);
    color:var(--text-light);
    font-family:'Inter',system-ui,-apple-system,sans-serif;
    line-height:1.6;
    padding-top: var(--header-height);
    -webkit-font-smoothing:antialiased;
    overflow-x:hidden;
}

body.menu-open{
    overflow:hidden;
}

@media(prefers-reduced-motion:reduce){
    *{
        animation:none !important;
        transition:none !important;
        scroll-behavior:auto !important;
    }
}

:focus-visible{
    outline:2px solid var(--gold);
    outline-offset:3px;
}

a:focus-visible{
    outline:2px solid var(--gold);
    outline-offset:2px;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

a{
    color:inherit;
    text-decoration:none;
    transition:var(--transition);
}

button,
input,
select,
textarea{
    font:inherit;
}

/* ============================================================
   ACCESSIBILITY
============================================================ */
.skip-link{
    position:absolute;
    left:16px;
    top:-48px;
    z-index:2000;
    background:var(--gold);
    color:#000;
    padding:10px 14px;
    border-radius:8px;
    font-weight:800;
}

.skip-link:focus{
    top:16px;
}

/* ============================================================
   CONTAINER
============================================================ */
.container{
    width:100%;
    margin:0 auto;
    padding:0 16px;
}

@media (min-width:640px){
    .container{
        max-width:640px;
        padding:0 20px;
    }
}

@media (min-width:768px){
    .container{
        max-width:768px;
        padding:0 24px;
    }
}

@media (min-width:1024px){
    .container{
        max-width:1024px;
        padding:0 28px;
    }
}

@media (min-width:1280px){
    .container{
        max-width:var(--container-max);
        padding:0 32px;
    }
}

@media (min-width:1536px){
    .container{
        max-width:1320px;
    }
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1,h2{
    font-weight:900;
    letter-spacing:-0.04em;
    line-height:1.05;
}

h3,h4{
    font-weight:800;
    letter-spacing:-0.02em;
    line-height:1.2;
}

h1{
    font-size:clamp(38px,6vw,72px);
}

h2{
    font-size:clamp(28px,4vw,46px);
}

h3{
    font-size:clamp(22px,2.4vw,30px);
}

h4{
    font-size:16px;
}

p{
    color:var(--text-muted);
    font-size:16px;
}

@media (max-width:640px){
    p{
        font-size:15px;
    }
}

/* ============================================================
   GLOBAL SECTION SYSTEM
============================================================ */
.section{
    padding:72px 0;
}

@media(min-width:768px){
    .section{
        padding:96px 0;
    }
}

@media(min-width:1024px){
    .section{
        padding:112px 0;
    }
}

/* ============================================================
   SHARED LAYOUT HELPERS
============================================================ */
.section-header{
    max-width:760px;
    margin:0 auto 32px;
    text-align:center;
}

.section-header p{
    margin-top:12px;
}

.grid{
    display:grid;
    gap:24px;
}

.grid-2{
    grid-template-columns:1fr;
}

.grid-3{
    grid-template-columns:1fr;
}

.grid-4{
    grid-template-columns:1fr;
}

@media(min-width:768px){
    .grid-2,
    .grid-3{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(min-width:1024px){
    .grid-3{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .grid-4{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
}

.surface-card{
    background:linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
    border:1px solid var(--border-soft);
    border-radius:var(--radius-lg);
    box-shadow:var(--shadow-md);
}

/* ============================================================
   BUTTONS
============================================================ */
.cta-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:48px;
    padding:12px 18px;
    border-radius:999px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:0.04em;
    font-size:12px;
    border:none;
    cursor:pointer;
    transition:var(--transition);
}

.cta-btn.primary{
    background:var(--gold);
    color:#000;
    box-shadow:0 8px 20px rgba(250,204,21,0.18);
}

.cta-btn.primary:hover{
    background:var(--gold-soft);
    transform:translateY(-2px);
}

.cta-btn.secondary{
    background:transparent;
    border:1px solid var(--border-strong);
    color:var(--text-light);
}

.cta-btn.secondary:hover{
    border-color:var(--gold);
    color:var(--gold);
    transform:translateY(-2px);
}

/* ============================================================
   HEADER
============================================================ */
.header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    z-index:1000;
    background:rgba(11,15,25,0.78);
    backdrop-filter:blur(14px);
    border-bottom:1px solid rgba(255,255,255,0.06);
}

@supports(backdrop-filter: blur(10px)){
    .header{
        backdrop-filter:blur(14px);
    }
}

.header-inner{
    min-height:var(--header-height);
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

/* Logo */
.logo{
    display:inline-flex;
    align-items:center;
    gap:12px;
    min-width:0;
    flex-shrink:0;
}

.site-logo{
    width:auto;
    height:44px;
    flex-shrink:0;
}

.logo-text{
    font-weight:800;
    font-size:15px;
    line-height:1.1;
    white-space:normal;
    max-width:180px;
}

@media (max-width:640px){
    .logo-text{
        font-size:14px;
        max-width:140px;
    }
}

/* Desktop nav */
.nav{
    display:flex;
    align-items:center;
    gap:20px;
    margin-left:auto;
}

.nav a{
    position:relative;
    font-weight:700;
    font-size:14px;
    color:rgba(255,255,255,0.86);
    padding:8px 0;
}

.nav a:hover,
.nav a.active{
    color:var(--gold);
}

.nav a.active::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-2px;
    width:100%;
    height:2px;
    background:var(--gold);
    border-radius:999px;
}

.nav .nav-cta{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    padding:0 16px;
    border-radius:999px;
    background:var(--gold);
    color:#000;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:0.04em;
    font-size:12px;
}

.nav .nav-cta:hover{
    background:var(--gold-soft);
    color:#000;
    transform:translateY(-1px);
}

/* ============================================================
   MOBILE NAV
============================================================ */
.hamburger{
    display:none;
    width:44px;
    height:44px;
    border-radius:999px;
    border:1px solid var(--border-soft);
    background:rgba(255,255,255,0.03);
    color:#fff;
    align-items:center;
    justify-content:center;
    font-size:18px;
    cursor:pointer;
    flex-shrink:0;
}

.hamburger:hover{
    border-color:var(--gold);
    color:var(--gold);
}

.mobile-menu{
    position:fixed;
    top:var(--header-height);
    left:0;
    width:100%;
    height:calc(100vh - var(--header-height));
    z-index:999;
    background:rgba(11,15,25,0.98);
    border-top:1px solid rgba(255,255,255,0.06);
    transform:translateY(-110%);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    overflow-y:auto;
    transition:transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.open{
    transform:translateY(0);
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.mobile-menu-inner{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding-top:20px;
    padding-bottom:28px;
}

.mobile-menu a{
    display:block;
    padding:14px 0;
    border-bottom:1px solid rgba(255,255,255,0.06);
    font-size:15px;
    font-weight:800;
    color:rgba(255,255,255,0.92);
}

.mobile-menu a:hover,
.mobile-menu a.active{
    color:var(--gold);
}

.mobile-menu .nav-cta{
    margin-top:12px;
    padding:14px 16px;
    text-align:center;
    border:none;
    border-radius:999px;
    background:var(--gold);
    color:#000;
}

@media (max-width:920px){
    .nav{
        display:none;
    }

    .hamburger{
        display:inline-flex;
    }
}

/* ============================================================
   MAIN
============================================================ */
main{
    min-height:60vh;
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer{
    margin-top:96px;
    padding:64px 0 24px;
    background:linear-gradient(180deg, #111827 0%, #0f172a 100%);
    border-top:1px solid rgba(255,255,255,0.06);
}

.footer-container{
    display:grid;
    grid-template-columns:1fr;
    gap:32px;
}

.footer-col h3,
.footer-col h4{
    margin-bottom:14px;
}

.footer-col h3{
    font-size:22px;
}

.footer-col h4{
    color:var(--gold);
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:0.06em;
}

.footer-col p{
    color:var(--text-muted);
    max-width:320px;
}

.footer-col a{
    display:block;
    color:var(--text-muted);
    margin-bottom:10px;
}

.footer-col a:hover{
    color:var(--gold);
}

@media(min-width:768px){
    .footer-container{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(min-width:1024px){
    .footer-container{
        grid-template-columns:1.3fr 1fr 1fr 1fr;
        gap:40px;
    }
}

.copyright{
    margin-top:40px;
    padding-top:18px;
    border-top:1px solid rgba(255,255,255,0.06);
    color:var(--text-soft);
    font-size:14px;
    text-align:center;
}

/* ============================================================
   UTILITIES
============================================================ */
.text-center{ text-align:center; }
.text-gold{ color:var(--gold); }

.hidden-mobile{
    display:none;
}

@media(min-width:768px){
    .hidden-mobile{
        display:initial;
    }
}

/* ============================================================
   404
============================================================ */
.notfound{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:70vh;
    text-align:center;
    padding:40px 0;
}

section[id]{
    scroll-margin-top: var(--header-height);
}