/* ===================================
   SHARED DESIGN SYSTEM — syazwak.com
   =================================== */

:root {
    --bg: #050505;
    --bg-soft: #0f1115;
    --bg-dark: #050505;
    --panel: rgba(15, 17, 21, 0.84);
    --panel-strong: #171b25;
    --bg-card: rgba(15, 17, 21, 0.84);
    --bg-nav: rgba(5, 5, 5, 0.82);

    --text: #f5f7fb;
    --text-main: #f5f7fb;
    --muted: #a8b4ca;
    --text-muted: #a8b4ca;
    --text-dim: #64748b;
    --line: rgba(255, 255, 255, 0.10);

    --accent: #6366f1;
    --accent-strong: #8b5cf6;
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.45);
    --secondary: #8b5cf6;
    --secondary-glow: rgba(139, 92, 246, 0.45);
    --gold: #f59e0b;
    --platinum: #38bdf8;

    --border: rgba(255, 255, 255, 0.10);
    --border-hover: rgba(255, 255, 255, 0.2);

    --shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    --shadow-premium: 0 20px 50px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px var(--primary-glow);
    --radius: 24px;

    --gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-2: linear-gradient(135deg, #8b5cf6 0%, #38bdf8 100%);
    --gradient-dark: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);

    --font-main: 'Manrope', sans-serif;
    --font-heading: 'Sora', sans-serif;

    --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===================================
   RESET & BASE
   =================================== */

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

html {
    scroll-behavior: smooth;
    background: #050505;
}

body {
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--text);
    background:
        radial-gradient(ellipse at 80% 0%, rgba(99, 102, 241, 0.20) 0%, transparent 40%),
        radial-gradient(ellipse at 10% 90%, rgba(139, 92, 246, 0.16) 0%, transparent 38%),
        linear-gradient(180deg, #050505 0%, #080a10 100%);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}

body {
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--text);
    background:
        radial-gradient(ellipse at 80% 0%, rgba(99, 102, 241, 0.20) 0%, transparent 40%),
        radial-gradient(ellipse at 10% 90%, rgba(139, 92, 246, 0.16) 0%, transparent 38%),
        linear-gradient(180deg, #050505 0%, #080a10 100%);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ===================================
   LAYOUT
   =================================== */

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

/* ===================================
   NAVIGATION
   =================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--bg-nav);
    border-bottom: 1px solid var(--line);
}

.nav-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text);
    transition: opacity 0.2s;
}

.brand:hover { opacity: 0.75; }

.brand-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.site-nav {
    display: flex;
    gap: 8px;
}

.site-nav a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.site-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line);
}

.site-nav a.nav-active {
    color: var(--text);
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.3);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--muted);
    border-radius: 2px;
    transition: background 0.2s;
}

.hamburger:hover .bar { background: var(--text); }

/* ===================================
   SHARED COMPONENTS
   =================================== */

.eyebrow {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 800;
}

.section-intro {
    margin-bottom: 32px;
}

.section-intro h2 {
    font-family: var(--font-heading);
    margin-top: 10px;
    font-size: clamp(1.9rem, 3.2vw, 3.2rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--gradient-1);
    color: #f8fafc;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--line);
    color: var(--text);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
    padding: 28px 0 44px;
    border-top: 1px solid var(--line);
    background: rgba(5, 5, 5, 0.7);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-brand {
    display: inline-block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-main);
    transition: opacity 0.2s;
}

.footer-brand:hover { opacity: 0.75; }

.footer-copy {
    color: var(--muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.footer-links a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

/* ===================================
   ANIMATIONS
   =================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   RESPONSIVE — shared
   =================================== */

@media (max-width: 768px) {
    .site-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 5, 5, 0.97);
        border-bottom: 1px solid var(--line);
        padding: 16px 24px;
        gap: 4px;
        z-index: 10;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 16px;
    }

    .site-header {
        position: relative;
    }

    .hamburger {
        display: flex;
    }

    .nav-shell {
        position: relative;
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .nav-shell,
    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-nav {
        gap: 4px;
    }
}
