/* ============================================================
   GULITE — MASTER UX + UI SYSTEM STYLES (WORLD-CLASS POLISH)
   ============================================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* ============================================================
   COLOR SYSTEM TOKENS (DARK DEFAULT)
   ============================================================ */
:root, [data-theme="dark"] {
    --bg: #030A07;
    --surface-main: #081912;
    --surface-sec: #0A2119;
    --surface-deep: #0F2D23;

    --gold-primary: #E5C158;
    --gold-light: #F2D987;

    --emerald: #10B981;
    --emerald-bright: #34D399;

    --text-primary: #FAF8F5;
    --text-sec: rgba(250, 248, 245, 0.68);
    --text-muted: rgba(250, 248, 245, 0.42);

    --border-default: rgba(255, 255, 255, 0.07);
    --border-gold: rgba(229, 193, 88, 0.18);
    --border-green: rgba(52, 211, 153, 0.16);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-subtle: 0 20px 60px rgba(0, 0, 0, 0.22);
    --shadow-gold-glow: 0 12px 40px rgba(229, 193, 88, 0.12);

    --transition: 0.25s ease-out;
}

/* ============================================================
   LIGHT MODE COLOR SYSTEM TOKENS
   ============================================================ */
[data-theme="light"] {
    --bg: #F4F8F5;
    --surface-main: #FFFFFF;
    --surface-sec: #E4ECE7;
    --surface-deep: #091F17;

    --gold-primary: #D97706;
    --gold-light: #B45309;

    --emerald: #059669;
    --emerald-bright: #10B981;

    --text-primary: #091A12;
    --text-sec: #384E42;
    --text-muted: #6B8275;

    --border-default: rgba(9, 26, 18, 0.09);
    --border-gold: rgba(217, 119, 6, 0.24);
    --border-green: rgba(5, 150, 105, 0.24);

    --shadow-subtle: 0 16px 45px rgba(9, 26, 18, 0.06);
    --shadow-gold-glow: 0 10px 30px rgba(217, 119, 6, 0.12);
}

/* ============================================================
   RESET & BASE TYPOGRAPHY
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    background: var(--bg);
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background var(--transition), color var(--transition);
}

::selection {
    background: var(--gold-primary);
    color: #030A07;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Ambient Background Glow Spotlights */
.bg-glow-spot {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}
.glow-gold {
    background: radial-gradient(circle, rgba(229,193,88,0.12), transparent 70%);
}
.glow-emerald {
    background: radial-gradient(circle, rgba(16,185,129,0.1), transparent 70%);
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Headings & Typography System */
h1, h2, h3, .heading-font, .number-font {
    font-family: 'Manrope', sans-serif;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.section-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold-primary);
    margin-bottom: 12px;
    display: inline-block;
}

.gold-highlight {
    color: var(--gold-primary);
}

.light-gold-highlight {
    color: var(--gold-light);
}

.emerald-highlight {
    color: var(--emerald);
}

/* ============================================================
   BUTTON SYSTEM (STRICTLY 3 STYLES + THEME TOGGLE)
   ============================================================ */
/* 1. Gold Primary */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gold-primary);
    color: #030A07;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-gold-glow);
}
.btn-gold:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 16px 45px rgba(229, 193, 88, 0.22);
}

/* 2. Secondary (Transparent dark surface) */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--surface-main);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-default);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}
.btn-secondary:hover {
    border-color: var(--text-sec);
    background: var(--surface-sec);
    transform: translateY(-2px);
}

/* 3. Green Outline */
.btn-green-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--emerald);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 26px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--emerald);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}
.btn-green-outline:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.btn-theme-toggle {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    background: var(--surface-main);
    border: 1px solid var(--border-default);
    color: var(--gold-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}
.btn-theme-toggle:hover {
    border-color: var(--gold-primary);
    transform: scale(1.06);
}
.btn-theme-toggle .sun-icon { display: inline; }
.btn-theme-toggle .moon-icon { display: none; }
[data-theme="light"] .btn-theme-toggle .sun-icon { display: none; }
[data-theme="light"] .btn-theme-toggle .moon-icon { display: inline; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--bg);
    opacity: 0.96;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-default);
    padding: 16px 0;
    transition: background var(--transition), border-color var(--transition);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
}
.logo-mark {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: var(--gold-primary);
    color: #030A07;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    font-weight: 900;
}
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}
.nav-links a {
    color: var(--text-sec);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}
.nav-links a:hover {
    color: var(--text-primary);
}

.hamburger {
    display: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
}

/* Mobile Nav Drawer */
.mobile-nav {
    display: none;
    position: fixed;
    top: 69px; left: 0; right: 0;
    background: var(--surface-main);
    border-bottom: 1px solid var(--border-default);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}

/* ============================================================
   SECTIONS & LAYOUT SYSTEM
   ============================================================ */
.section {
    padding: 100px 0;
    position: relative;
    transition: background var(--transition);
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
    padding-top: 170px;
    padding-bottom: 110px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.hero h1 {
    font-size: clamp(48px, 5.5vw, 76px);
    line-height: 1.08;
    margin-bottom: 20px;
    color: var(--text-primary);
}
.hero .hero-sub {
    font-size: 19px;
    color: var(--text-sec);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Right-side realistic Gulite App Preview with Switcher Tabs */
.app-preview-card {
    background: var(--surface-main);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow-subtle);
    transition: background var(--transition), border-color var(--transition);
    position: relative;
}
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--surface-sec);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
}
.app-switcher-tabs {
    display: flex;
    gap: 6px;
    background: var(--bg);
    padding: 3px;
    border-radius: 8px;
    border: 1px solid var(--border-default);
}
.app-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-sec);
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}
.app-tab-btn.active {
    background: var(--gold-primary);
    color: #030A07;
}

.app-video-preview {
    position: relative;
    height: 320px;
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid var(--border-default);
    transition: background-image 0.4s ease-in-out;
}
.app-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3,10,7,0.2), rgba(3,10,7,0.85));
}
.app-content {
    position: relative;
    z-index: 2;
}
.app-bottom-bar {
    position: relative;
    z-index: 2;
    background: var(--surface-sec);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-default);
}

/* ============================================================
   2. THE GAP (Psychological Hook)
   ============================================================ */
.gap-section {
    background: var(--surface-main);
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}
.gap-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}
.gap-header h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
}
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 960px;
    margin: 0 auto;
}
.comp-box {
    background: var(--bg);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 36px;
    text-align: center;
    transition: background var(--transition);
}
.comp-box.video-box {
    border-color: var(--border-gold);
    background: var(--surface-sec);
}
.comp-box h3 {
    font-size: 22px;
    margin-bottom: 10px;
}
.comp-box p {
    color: var(--text-sec);
    font-size: 15px;
}

/* ============================================================
   3. THE EXPERIENCE (Video Section)
   ============================================================ */
.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}
.video-card-container {
    background: var(--surface-main);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}
.video-card-container:hover {
    border-color: var(--border-gold);
    box-shadow: var(--shadow-subtle);
}
.video-viewport {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}
.video-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sound-toggle-btn {
    position: absolute;
    bottom: 14px; right: 14px;
    padding: 8px 14px;
    border-radius: 20px;
    background: rgba(3, 10, 7, 0.85);
    border: 1px solid var(--border-default);
    color: #FAF8F5;
    display: flex; align-items: center; gap: 8px;
    cursor: pointer;
    z-index: 5;
    font-size: 12px;
    font-weight: 700;
}
.video-card-body {
    padding: 24px;
}
.video-card-body h3 {
    font-size: 22px;
    margin-top: 6px;
    margin-bottom: 8px;
}

/* ============================================================
   4. SELLERS UI (Split Panel & 3 Benefits)
   ============================================================ */
.sellers-section {
    background: var(--surface-main);
    border-top: 1px solid var(--border-default);
    border-bottom: 1px solid var(--border-default);
}
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.sellers-left h2 {
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.1;
    margin-bottom: 16px;
}
.sellers-left p {
    color: var(--text-sec);
    font-size: 17px;
    margin-bottom: 32px;
}

.seller-benefits-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
.benefit-item {
    background: var(--bg);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    transition: background var(--transition);
}
.benefit-item h4 {
    font-size: 18px;
    color: var(--gold-primary);
    margin-bottom: 8px;
}
.benefit-item p {
    font-size: 13.5px;
    color: var(--text-sec);
    line-height: 1.5;
}

/* ============================================================
   5. BUYERS UI
   ============================================================ */
.buyers-section {
    text-align: center;
}
.buyers-header {
    max-width: 680px;
    margin: 0 auto 40px;
}
.buyers-header h2 {
    font-size: clamp(36px, 4vw, 52px);
    margin-bottom: 12px;
}

.buyer-search-mockup {
    max-width: 720px;
    margin: 0 auto 40px;
    background: var(--surface-main);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow-subtle);
    transition: background var(--transition);
}
.search-field-item {
    flex: 1;
    text-align: left;
    background: var(--bg);
    border: 1px solid var(--border-default);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
}
.search-field-item label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}
.search-field-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.buyer-flow-three {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--gold-primary);
}

/* ============================================================
   6. FOUNDING 99 UI (Conversion Centerpiece)
   ============================================================ */
.founding-container {
    background: var(--surface-sec);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 60px 48px;
    box-shadow: var(--shadow-gold-glow);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    transition: background var(--transition);
    position: relative;
    z-index: 2;
}
.big-credits-num {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(72px, 8vw, 110px);
    font-weight: 900;
    line-height: 0.9;
    color: var(--gold-primary);
}
.credits-lbl {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--gold-light);
    margin-bottom: 24px;
}

.founding-composite-img {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.composite-box {
    background: var(--surface-main);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 16px;
    font-size: 13px;
}

/* ============================================================
   7. TRUST UI
   ============================================================ */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}
.trust-card {
    background: var(--surface-main);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    transition: background var(--transition);
}
.trust-card i {
    font-size: 24px;
    color: var(--emerald);
    margin-bottom: 12px;
}

/* ============================================================
   8. JOURNEY UI
   ============================================================ */
.journey-line-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 50px auto 0;
    position: relative;
}
.journey-line-container::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: var(--border-default);
    z-index: 1;
}
.journey-node {
    position: relative;
    z-index: 2;
    background: var(--surface-main);
    border: 1px solid var(--border-gold);
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--gold-primary);
}

/* ============================================================
   9. VISION SECTION
   ============================================================ */
.vision-section {
    background: var(--surface-deep);
    border-top: 1px solid var(--border-green);
    border-bottom: 1px solid var(--border-green);
    text-align: center;
    padding: 110px 0;
    color: #FAF8F5;
}
.vision-section h2 {
    font-size: clamp(34px, 4.5vw, 56px);
    max-width: 850px;
    margin: 0 auto 20px;
    line-height: 1.15;
}

/* ============================================================
   10. TEAM
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
}
.team-compact-card {
    background: var(--surface-main);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
    transition: background var(--transition);
}
.avatar-small {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: var(--surface-sec);
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 20px;
    margin: 0 auto 16px;
}

/* ============================================================
   11. FINAL CTA & FOOTER
   ============================================================ */
.final-cta {
    background: linear-gradient(180deg, var(--bg), var(--surface-deep));
    text-align: center;
    padding: 120px 0 80px;
}
[data-theme="light"] .final-cta {
    background: linear-gradient(180deg, var(--bg), #061710);
    color: #FAF8F5;
}
[data-theme="light"] .final-cta h2,
[data-theme="light"] .final-cta p,
[data-theme="light"] .final-cta div {
    color: #FAF8F5;
}
[data-theme="light"] .final-cta .gold-highlight {
    color: #F59E0B;
}

.final-cta h2 {
    font-size: clamp(40px, 5vw, 68px);
    margin-bottom: 24px;
    line-height: 1.1;
}

footer {
    border-top: 1px solid var(--border-default);
    padding: 40px 0;
    background: var(--bg);
    text-align: center;
    font-size: 14px;
    color: var(--text-sec);
}

/* ============================================================
   MODAL WITH ROLE SELECTOR
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(3, 10, 7, 0.92);
    backdrop-filter: blur(16px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.modal.open { display: flex; }
.modal-box {
    background: var(--surface-main);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-lg);
    padding: 36px;
    max-width: 500px;
    width: 100%;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}

.role-selector-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.role-chip {
    flex: 1;
    padding: 10px;
    background: var(--bg);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-sec);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}
.role-chip.selected {
    border-color: var(--gold-primary);
    background: var(--surface-sec);
    color: var(--gold-primary);
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 992px) {
    .hero-grid, .split-grid, .founding-container,
    .comparison-grid, .experience-grid, .team-grid, .trust-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 { font-size: 48px; }
    .hero { padding-top: 130px; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero .hero-sub { margin-left: auto; margin-right: auto; }
    .nav-links { display: none; }
    .hamburger { display: block; }
    .seller-benefits-three { grid-template-columns: 1fr; }
    .journey-line-container { flex-direction: column; gap: 16px; }
    .journey-line-container::before { display: none; }
}
