/*
 * CEZN Landing Pages - Main Design System
 * Version: 2.0
 * A unified design system for all landing pages
 */

/* ========== CSS VARIABLES — GitHub Primer Dark ========== */
:root {
    /* Primary / CTA — GitHub green */
    --primary: #1f883d;
    --primary-dark: #1c8139;
    --primary-light: #3fb950;
    --primary-rgb: 31, 136, 61;

    /* Accent blue — GitHub link/accent */
    --secondary: #58a6ff;
    --secondary-dark: #388bfd;
    --secondary-light: #79c0ff;
    --secondary-rgb: 88, 166, 255;

    /* Accent (kept for compatibility) */
    --accent: #388bfd;
    --accent-dark: #1f6feb;
    --accent-light: #79c0ff;
    --accent-rgb: 56, 139, 253;

    /* Page backgrounds — GitHub dark palette */
    --dark: #0d1117;
    --dark-secondary: #161b22;
    --dark-tertiary: #21262d;
    --light: #0d1117;
    --light-secondary: #161b22;
    --light-tertiary: #21262d;

    /* Surface / card tokens */
    --surface-card: #161b22;
    --surface-muted: #21262d;

    /* Border tokens */
    --border-color: #30363d;
    --border-emphasis: #6e7681;

    /* Text colors */
    --text-primary: #e6edf3;
    --text-secondary: #e6edf3;
    --text-muted: #848d97;
    --text-light: #e6edf3;
    --text-light-secondary: #e6edf3;
    --text-light-muted: #848d97;

    /* Status Colors */
    --success: #3fb950;
    --warning: #d29922;
    --error: #f85149;
    --info: #58a6ff;

    /* Gradients — dark monotone */
    --gradient-primary: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    --gradient-secondary: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    --gradient-dark: linear-gradient(180deg, #0d1117 0%, #0d1117 100%);
    --gradient-hero: linear-gradient(180deg, #0d1117 0%, #161b22 100%);

    /* Shadows — deep dark */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.5);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 0 3px rgba(88, 166, 255, 0.4);
    --shadow-focus: 0 0 0 3px rgba(88, 166, 255, 0.4);

    /* Border Radius — GitHub Primer */
    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 12px;
    --radius-xl: 12px;
    --radius-2xl: 12px;
    --radius-full: 9999px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;

    /* Typography — Inter with GitHub scale */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

    /* Font Sizes — GitHub type scale */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 32px;
    --text-4xl: 32px;
    --text-5xl: 40px;
    --text-6xl: 40px;
    --text-7xl: 40px;

    /* Line Heights — GitHub Primer */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.6;
    --leading-loose: 1.75;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
    --transition-slower: 400ms ease;

    /* Z-Index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: #0d1117;
}

body.dark-page {
    background-color: #0d1117;
    color: #e6edf3;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ========== CONTAINER ========== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-sm {
    max-width: 768px;
}

.container-lg {
    max-width: 1440px;
}

/* ========== TYPOGRAPHY — GitHub scale ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: var(--leading-tight);
    letter-spacing: -0.01em;
    color: #e6edf3;
}

h1 { font-size: 2.5rem; line-height: 1.25; }   /* 40px */
h2 { font-size: 2rem;   line-height: 1.25; }   /* 32px */
h3 { font-size: 1.25rem; line-height: 1.375; } /* 20px */
h4 { font-size: 1rem;   line-height: 1.5; }    /* 16px */
h5 { font-size: 0.875rem; line-height: 1.5; }  /* 14px */
h6 { font-size: 0.75rem;  line-height: 1.5; }  /* 12px */

.text-gradient {
    background: linear-gradient(135deg, #58a6ff 0%, #3fb950 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: linear-gradient(135deg, #3fb950 0%, #58a6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section tag / label above headings */
.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    color: #58a6ff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

/* River section CTA link */
.cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #58a6ff;
    text-decoration: none;
    margin-top: 16px;
    transition: gap var(--transition-fast);
}
.cta-link:hover { gap: 10px; color: #79c0ff; }

/* ========== BUTTONS — GitHub Primer ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 5px 16px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border-radius: 6px;
    transition: background var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-sans);
}

/* Large */
.btn-lg {
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 6px;
}

/* Small */
.btn-sm {
    padding: 3px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* Pill */
.btn-pill { border-radius: 9999px !important; }

/* Primary — GitHub green */
.btn-primary {
    background: #1f883d;
    color: #ffffff;
    border-color: transparent;
    box-shadow: none;
}
.btn-primary:hover, .btn-primary:focus {
    background: #1c8139;
    color: #ffffff;
    transform: none;
    box-shadow: none;
}
.btn-primary:active { background: #197935; }

/* Secondary — GitHub default grey */
.btn-secondary {
    background: #21262d;
    color: #e6edf3;
    border-color: #30363d;
    box-shadow: none;
}
.btn-secondary:hover, .btn-secondary:focus {
    background: #30363d;
    color: #e6edf3;
    border-color: #6e7681;
    transform: none;
    box-shadow: none;
}

/* Outline — same as secondary but transparent bg */
.btn-outline {
    background: transparent;
    color: #e6edf3;
    border-color: #30363d;
}
.btn-outline:hover {
    background: #21262d;
    color: #e6edf3;
    border-color: #6e7681;
    transform: none;
}

/* Outline light — same treatment */
.btn-outline-light {
    background: transparent;
    color: #e6edf3;
    border-color: #30363d;
}
.btn-outline-light:hover {
    background: #21262d;
    color: #e6edf3;
    border-color: #6e7681;
}

/* Ghost / invisible */
.btn-ghost {
    background: transparent;
    color: #58a6ff;
    border-color: transparent;
}
.btn-ghost:hover {
    background: rgba(88, 166, 255, 0.1);
    color: #79c0ff;
}

.btn-ghost-light {
    background: transparent;
    color: #58a6ff;
    border-color: transparent;
}
.btn-ghost-light:hover {
    background: rgba(88, 166, 255, 0.1);
    color: #79c0ff;
}

/* White (converted to dark surface) */
.btn-white {
    background: #21262d;
    color: #e6edf3;
    border-color: #30363d;
}
.btn-white:hover {
    background: #30363d;
    transform: none;
    box-shadow: none;
}

/* Danger */
.btn-danger {
    background: #cf222e;
    color: #ffffff;
    border-color: transparent;
}
.btn-danger:hover { background: #a40e26; }

/* Focus state — all buttons */
.btn:focus-visible,
button:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: 2px;
}

/* Bootstrap override — remove lift effect globally */
.btn:hover { transform: none !important; }

/* ========== BADGES — GitHub Primer ========== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background: rgba(31, 136, 61, 0.15);
    color: #3fb950;
    border: 1px solid rgba(31, 136, 61, 0.3);
}

.badge-secondary {
    background: rgba(88, 166, 255, 0.15);
    color: #58a6ff;
    border: 1px solid rgba(88, 166, 255, 0.3);
}

.badge-light {
    background: rgba(230, 237, 243, 0.08);
    color: #e6edf3;
    border: 1px solid #30363d;
}

/* ========== CARDS — GitHub Primer ========== */
.card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    border-color: #6e7681;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    transform: none;
}

.card-glass {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.card-glass:hover {
    background: #1c2128;
    border-color: #6e7681;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    transform: none;
}

.card-dark {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
}

/* Media card — image/mockup container */
.card-media {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ========== FORMS ========== */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-base);
    color: var(--text-primary);
    background: white;
    border: 2px solid var(--light-tertiary);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input-dark {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.form-input-dark:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.form-input-dark::placeholder {
    color: var(--text-light-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========== HEADER — GitHub style ========== */
.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    height: 64px;
    background: #0d1117;
    border-bottom: 1px solid #30363d;
    padding: 0;
    display: flex;
    align-items: center;
    transition: border-color var(--transition-base);
}

.site-header.scrolled {
    background: #0d1117;
    border-bottom-color: #6e7681;
    backdrop-filter: none;
    padding: 0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-logo img {
    height: 40px;
    width: auto;
}

.header-logo-text {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-link {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #e6edf3;
    border-radius: 6px;
    transition: color var(--transition-fast), background var(--transition-fast);
    text-decoration: none;
}

.nav-link:hover {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.08);
}

.nav-link.active {
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.08);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-dropdown-trigger i {
    font-size: 10px;
    transition: transform var(--transition-fast);
}

.nav-dropdown:hover .nav-dropdown-trigger i {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 240px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-dropdown-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #58a6ff;
    font-size: var(--text-sm);
}

.nav-dropdown-content h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 2px;
}

.nav-dropdown-content p {
    font-size: var(--text-xs);
    color: var(--text-light-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: var(--text-xl);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-only {
    display: none;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 320px;
    height: 100vh;
    background: #161b22;
    border-left: 1px solid #30363d;
    z-index: var(--z-modal);
    padding: var(--space-6);
    transition: right var(--transition-slow);
    overflow-y: auto;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-8);
}

.mobile-nav-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: var(--text-xl);
    border-radius: var(--radius-md);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.mobile-nav-link {
    padding: var(--space-4);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-light-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.mobile-nav-actions {
    margin-top: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* ========== FOOTER — GitHub style ========== */
.site-footer {
    background: #0d1117;
    color: #e6edf3;
    padding: 48px 0 32px;
    border-top: 1px solid #30363d;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    display: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

.footer-brand {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
}

.footer-logo img {
    height: 40px;
}

.footer-logo-text {
    font-size: var(--text-2xl);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-brand p {
    color: var(--text-light-muted);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #848d97;
    border-radius: 6px;
    transition: color var(--transition-fast);
}

.footer-social a:hover {
    color: #e6edf3;
    background: none;
    transform: none;
}

.footer-column h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #e6edf3;
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    font-size: 12px;
    color: #848d97;
    text-decoration: none;
    transition: color var(--transition-fast);
    display: block;
    margin-bottom: 8px;
}

.footer-link:hover {
    color: #e6edf3;
    padding-left: 0;
}

.footer-newsletter {
    grid-column: span 2;
}

.footer-newsletter p {
    color: var(--text-light-muted);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.newsletter-form {
    display: flex;
    gap: var(--space-3);
}

.newsletter-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-light);
    font-size: var(--text-sm);
}

.newsletter-input::placeholder {
    color: var(--text-light-muted);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid #30363d;
    margin-top: 32px;
}

.footer-copyright {
    font-size: 12px;
    color: #848d97;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-size: 12px;
    color: #848d97;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: #e6edf3;
}

/* ========== PAGE HERO — GitHub style ========== */
.page-hero {
    padding: 96px 0 64px;
    background: #0d1117;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: radial-gradient(ellipse at 50% 0%, rgba(31, 136, 61, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero .badge {
    margin-bottom: var(--space-6);
}

.page-hero h1 {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: var(--space-6);
    line-height: var(--leading-tight);
}

.page-hero p {
    font-size: var(--text-xl);
    color: var(--text-light-secondary);
    max-width: 600px;
    margin: 0 auto var(--space-8);
    line-height: var(--leading-relaxed);
}

.page-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Page Hero - Small variant */
.page-hero-sm {
    padding: 140px 0 60px;
}

.page-hero-sm h1 {
    font-size: var(--text-4xl);
}

/* ========== SECTIONS — GitHub alternating ========== */
.section {
    padding: 80px 0;
    border-top: 1px solid #30363d;
}

.section-dark {
    background: #0d1117;
    color: #e6edf3;
}

.section-light {
    background: #0d1117;
    color: #e6edf3;
}

/* Elevated section — slightly lighter */
.section-elevated {
    background: #161b22;
    color: #e6edf3;
    border-top: 1px solid #30363d;
    border-bottom: 1px solid #30363d;
}

.section-gradient {
    background: #0d1117;
    color: #e6edf3;
}

/* River layout — alternating text/media blocks */
.river-section {
    padding: 80px 0;
    border-top: 1px solid #30363d;
}

.river-section:nth-child(even) {
    background: #161b22;
}

.river-section:nth-child(odd) {
    background: #0d1117;
}

.river-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 64px;
    align-items: center;
}

.river-inner.reverse {
    flex-direction: row-reverse;
}

.river-text {
    flex: 1;
    min-width: 0;
}

.river-media {
    flex: 1;
    min-width: 0;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    background: #161b22;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section-header .badge {
    margin-bottom: var(--space-4);
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.section-dark .section-header p {
    color: var(--text-light-secondary);
}

/* ========== GRIDS ========== */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ========== STATS — GitHub style ========== */
.stats-grid {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 64px 24px;
    background: #0d1117;
    border-top: 1px solid #30363d;
    border-bottom: 1px solid #30363d;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 40px;
    font-weight: 600;
    color: #e6edf3;
    line-height: 1.25;
    margin-bottom: 4px;
}

.stat-value .text-gradient {
    background: linear-gradient(135deg, #58a6ff 0%, #3fb950 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    font-weight: 400;
    color: #848d97;
    text-transform: none;
    letter-spacing: 0;
}

/* ========== CTA SECTION — GitHub style ========== */
.cta-section {
    padding: 96px 24px;
    background: #0d1117;
    border-top: 1px solid #30363d;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(31, 136, 61, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #e6edf3;
    line-height: 1.25;
    margin-bottom: 16px;
}

.cta-section p {
    font-size: 20px;
    color: #848d97;
    margin-bottom: 32px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ========== TESTIMONIALS — GitHub card style ========== */
.testimonial-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.testimonial-card:hover {
    border-color: #6e7681;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.testimonial-content {
    font-size: var(--text-lg);
    color: var(--text-light-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-6);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-info h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-light);
}

.testimonial-info p {
    font-size: var(--text-sm);
    color: var(--text-light-muted);
}

/* ========== FAQ ACCORDION — GitHub ========== */
.faq-item {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    margin-bottom: var(--space-4);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: var(--space-5) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-light);
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question i {
    font-size: var(--text-sm);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-6) var(--space-5);
    color: var(--text-light-secondary);
    line-height: var(--leading-relaxed);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: 1fr repeat(2, 1fr);
        gap: var(--space-8);
    }

    .footer-newsletter {
        grid-column: span 3;
        margin-top: var(--space-8);
    }
}

@media (max-width: 991px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .river-inner,
    .river-inner.reverse {
        flex-direction: column;
        gap: 32px;
    }

    .header-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .mobile-login-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .mobile-login-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #fff;
    }

    .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-hero h1 {
        font-size: var(--text-4xl);
    }

    .page-hero p {
        font-size: var(--text-lg);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-brand {
        grid-column: span 2;
        max-width: none;
        margin-bottom: var(--space-8);
    }

    .footer-newsletter {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-16) 0;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-6);
    }

    .stat-value {
        font-size: var(--text-4xl);
    }

    .page-hero {
        padding: 120px 0 60px;
    }

    .page-hero h1 {
        font-size: var(--text-3xl);
    }

    .page-hero-actions {
        flex-direction: column;
    }

    .page-hero-actions .btn {
        width: 100%;
    }

    .cta-section h2 {
        font-size: var(--text-2xl);
    }

    .cta-actions {
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-newsletter {
        grid-column: span 1;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        gap: 32px;
        padding: 48px 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-4);
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }

    .page-hero h1 {
        font-size: var(--text-2xl);
    }

    .stat-value {
        font-size: var(--text-3xl);
    }
}

/* ========== ANIMATIONS — GitHub style ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Logo marquee — infinite scroll */
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.animate-fade-in { animation: fadeIn 0.4s ease forwards; }
.animate-fade-in-up { animation: fadeInUp 0.4s ease forwards; }
.animate-fade-in-down { animation: fadeInDown 0.4s ease forwards; }
.animate-pulse { animation: pulse 2s ease infinite; }

/* Logo marquee wrapper */
.logo-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 32px 0;
}

.logo-marquee-track {
    display: flex;
    gap: 48px;
    align-items: center;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.logo-marquee-track:hover {
    animation-play-state: paused;
}

.logo-marquee-item {
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 300ms ease, filter 300ms ease;
    flex-shrink: 0;
}

.logo-marquee-item:hover {
    opacity: 1;
    filter: none;
}

.logo-marquee-item img {
    height: 28px;
    width: auto;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.w-full { width: 100%; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

/* ===== BASE FONT ===== */
body, html { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important; }
