/* ===============
   GOOGLE FONTS
   =============== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ===============
   DESIGN SYSTEM & CSS VARIABLES
   Ref: Warm Editorial Bento (Mobile-Only Experience)
   =============== */
:root {
    --bg-base: #F8F5EE;
    --bg-surface: #FFFFFF;
    --bg-surface-warm: #F2EDE3;
    --bg-surface-soft: #FAF7F2;
    --bg-dark: #161412;
    --bg-dark-card: #201C18;
    --bg-dark-elevated: #2B2520;
    --bg-dark-subtle: #1A1715;

    --primary: #F59E0B;
    --primary-hover: #D97706;
    --primary-light: #FEF3C7;
    --primary-dark: #B45309;
    --accent: #EA580C;
    --accent-glow: rgba(245, 158, 11, 0.35);

    --text-primary: #171513;
    --text-secondary: #6B635B;
    --text-muted: #8C8276;
    --text-light: #FFFFFF;
    --text-on-dark: #FAF6F0;
    --text-muted-dark: #A89F91;

    --border-light: #E8E2D6;
    --border-warm: #DDD5C7;
    --border-dark: #2F2A24;
    --border-active: #F59E0B;

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    --shadow-subtle: 0 2px 8px rgba(22, 20, 18, 0.04);
    --shadow-card: 0 8px 24px rgba(22, 20, 18, 0.07);
    --shadow-hover: 0 12px 28px rgba(22, 20, 18, 0.12);
    --shadow-dark: 0 16px 40px rgba(0, 0, 0, 0.4);

    --speed: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --font-head: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Mobile Container Width */
    --mobile-width: 480px;
}

/* ===============
   RESET & MOBILE-FIRST CONTAINER
   On Laptops/Desktops: Centered mobile viewport frame
   On Phones: 100% width fluid
   =============== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #0E0C0B;
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(234, 88, 12, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, #12100E 0%, #0A0908 100%);
    background-attachment: fixed;
    min-height: 100%;
}

body {
    width: 100%;
    max-width: var(--mobile-width);
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.7);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--speed);
    -webkit-tap-highlight-color: transparent;
}

ul { list-style: none; }
img { display: block; max-width: 100%; height: auto; }

/* ===============
   CONTAINER (RESPONSIVE PADDING)
   =============== */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* ===============
   HEADER (ALWAYS MOBILE)
   Pinned to top of mobile frame
   =============== */
.header {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--mobile-width);
    padding: 0 12px;
    z-index: 1000;
    pointer-events: none;
}

.header .container {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    position: relative;
    gap: 8px;
    background: rgba(22, 20, 18, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-pill);
    padding: 0 10px 0 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    max-height: 36px;
    max-width: 140px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 13px;
    color: #FFFFFF;
    flex-shrink: 1;
}

.logo img {
    height: 32px;
    max-height: 32px;
    max-width: 130px;
    width: auto;
    object-fit: contain;
    font-size: 11px;
    line-height: 1;
    overflow: hidden;
}

/* Nav Dropdown Drawer */
.header nav,
nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(22, 20, 18, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-xl);
    padding: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    pointer-events: auto;
}

.header nav.active,
nav.active {
    display: block !important;
    animation: navFadeDown 0.22s ease-out forwards;
}

@keyframes navFadeDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
}

.nav-list a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-on-dark);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--speed);
}

.nav-list a:hover {
    color: var(--primary);
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-signup {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #161412 !important;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-signup::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #161412;
    border-radius: 50%;
    opacity: 0.7;
}

/* Mobile Toggle ALWAYS VISIBLE */
.mobile-menu-toggle {
    display: flex !important;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-on-dark);
    font-size: 18px;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-pill);
    align-items: center;
    justify-content: center;
    transition: all var(--speed);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--primary);
}

/* ===============
   BREADCRUMB (SAFE HEADER CLEARANCE)
   =============== */
.breadcrumb-container {
    padding: 92px 16px 12px;
    width: 100%;
}

.breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    background: #FFFFFF;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-subtle);
    max-width: 100%;
}

.breadcrumb-nav a {
    color: var(--text-secondary);
    font-weight: 600;
    flex-shrink: 0;
}

.breadcrumb-nav a:hover {
    color: var(--primary-dark);
}

.breadcrumb-sep {
    color: var(--border-warm);
    font-size: 11px;
    flex-shrink: 0;
}

.breadcrumb-current {
    color: var(--primary-dark);
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

/* ===============
   SIGNATURE SWITCH PILL (REFERENCE DESIGN)
   =============== */
.pill-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #171412;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-pill);
    padding: 3px 5px;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
    transition: all var(--speed);
}

.pill-toggle-dot-active {
    width: 14px;
    height: 14px;
    background: #F59E0B;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
    display: block;
    transition: all var(--speed);
}

.pill-toggle-dot-close {
    width: 14px;
    height: 14px;
    background: #2D2723;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D6C7B2;
    font-size: 8.5px;
    font-weight: 700;
    line-height: 1;
    transition: all var(--speed);
}

.pill-toggle:hover {
    border-color: rgba(245, 158, 11, 0.5);
}

/* ===============
   AD BANNER (MOBILE-OPTIMIZED)
   =============== */
.ad-banner-container {
    margin: 20px auto;
    padding: 0 16px;
    width: 100%;
}

.ad-banner-container a {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-subtle);
}

.ad-banner-container img {
    width: 100%;
    height: auto;
    min-height: 48px;
    display: block;
    object-fit: cover;
}

/* ===============
   FOOTER (ALWAYS MOBILE)
   =============== */
.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 44px 0 24px;
    margin-top: 44px;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 28px;
}

.footer-col h4 {
    font-family: var(--font-head);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col h4::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

.footer-col p {
    font-size: 13px;
    color: var(--text-muted-dark);
    line-height: 1.65;
    margin-bottom: 10px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-col a {
    font-size: 13px;
    color: var(--text-muted-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-col a:hover {
    color: #FFFFFF;
}

.footer-trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 16px 0;
    margin-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-pill);
    padding: 4px 9px;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--text-muted-dark);
}

.trust-badge-pill span.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10B981;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    color: var(--text-muted-dark);
    font-size: 11.5px;
    text-align: center;
}

.footer-bottom-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    font-size: 11.5px;
}

.footer-bottom-links a {
    color: var(--text-muted-dark);
}

/* ===============
   MOBILE STICKY BAR (ALWAYS VISIBLE)
   Pinned to bottom of mobile frame
   =============== */
.mobile-sticky-bar {
    display: flex !important;
    position: fixed;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: calc(var(--mobile-width) - 24px);
    z-index: 1100;
    padding: 5px;
    gap: 8px;
    background: rgba(22, 20, 18, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.mobile-sticky-bar .btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: var(--radius-pill);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.3px;
    transition: all 0.2s;
}

.mobile-sticky-bar .btn-login {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-on-dark);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-sticky-bar .btn-register {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    color: #161412;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

/* ===============
   EXTRA-SMALL MOBILE SCREENS (≤ 380px)
   iPhone SE, Galaxy Fold, Small Androids
   =============== */
@media (max-width: 380px) {
    .container {
        padding: 0 12px;
    }

    .header {
        padding: 0 8px;
    }

    .header .container {
        height: 52px;
        max-height: 52px;
        padding: 0 8px 0 12px;
        gap: 6px;
    }

    .logo {
        max-width: 120px;
    }

    .logo img {
        height: 26px;
        max-height: 26px;
        max-width: 110px;
    }

    .btn-signup {
        padding: 6px 12px;
        font-size: 11.5px;
        gap: 4px;
    }

    .mobile-menu-toggle {
        width: 34px;
        height: 34px;
        font-size: 15px;
    }

    .breadcrumb-container {
        padding: 84px 12px 10px;
    }

    .breadcrumb-nav {
        padding: 5px 12px;
        font-size: 11px;
    }

    .breadcrumb-current {
        max-width: 130px;
    }

    .mobile-sticky-bar {
        width: calc(100% - 16px);
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        gap: 6px;
        padding: 4px;
    }

    .mobile-sticky-bar .btn {
        height: 40px;
        font-size: 12.5px;
    }
}
