/* ========================================
   RESET & VARIÁVEIS (DESIGN SYSTEM OBRIGATÓRIO)
   ======================================== */

:root {
    /* PALETA OFICIAL - ÚNICO PADRÃO PERMITIDO */
    --primary-color: #004688;
    --primary-dark: #003366;
    --primary-light: #005aa5;
    
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    --dark: #1f2937;
    --gray: #6b7280;
    --light: #f3f4f6;
    --white: #ffffff;
    --border: #e0e0e0;
    
    --text-primary: #212529;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    /* COMPONENTES */
    --btn-radius: 8px;
    --btn-padding-md: 10px 18px;
    --btn-padding-lg: 12px 20px;
    --btn-padding-sm: 6px 12px;
    --btn-gap: 0.5rem;
    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ========================================
   UTILITY
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 575px) {
    .container {
        max-width: 100% !important;
        padding: 0 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* ========================================
   HEADER
   ======================================== */

.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
    gap: 15px;
    flex-wrap: wrap;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

.nav a {
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

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

.theme-toggle-header {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-header:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .nav {
        gap: 15px;
        font-size: 14px;
    }
    
    .theme-toggle-header {
        display: none;
    }
    
    .logo {
        font-size: 20px;
    }
}

@media (max-width: 575px) {
    .header .container {
        padding: 12px 10px;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .logo {
        font-size: 16px;
        order: 1;
        flex-basis: 100%;
    }
    
    .nav {
        gap: 8px;
        font-size: 12px;
        order: 2;
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
    
    .nav a {
        padding: 4px 8px;
        border-radius: 4px;
        background: var(--bg-secondary);
        display: inline-block;
    }
    
    .nav a:hover {
        background: var(--primary-light);
        color: var(--white);
    }
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-content {
    text-align: left;
    width: 100%;
    box-sizing: border-box;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.95;
}

.hero .description {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* MOBILE-FIRST: Hero responsivo */
@media (max-width: 575px) {
    .hero {
        padding: 50px 10px !important;
        box-sizing: border-box !important;
    }
    
    .hero .container {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }
    
    .hero-content {
        text-align: center !important;
        padding: 0 !important;
    }
    
    .hero h1 {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .hero .subtitle {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .hero .description {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }
}

/* TABLET: Hero responsivo */
@media (min-width: 576px) and (max-width: 991px) {
    .hero h1 {
        font-size: 40px;
    }
    
    .hero .subtitle {
        font-size: 20px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

.hero .description {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 575px) {
    .hero-stats {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .stat {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

.stat {
    background: rgba(255, 255, 255, 0.15);
    padding: 30px 20px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.stat-num {
    display: block;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 14px;
    opacity: 0.9;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* MOBILE-FIRST: Botões responsivos */
@media (max-width: 575px) {
    .cta-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        margin-top: 30px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .cta-buttons .btn {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        padding: 14px 10px !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
        text-align: center !important;
        min-width: auto !important;
        max-width: none !important;
        overflow: visible !important;
        margin: 0 !important;
    }
    
    .roadmap-cta .btn {
        width: 100% !important;
        padding: var(--btn-padding-lg) !important;
        display: flex !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
        max-width: none !important;
        overflow: visible !important;
    }
    
    .contact-form .btn {
        width: 100% !important;
        padding: var(--btn-padding-lg) !important;
        display: flex !important;
        box-sizing: border-box !important;
        max-width: none !important;
        overflow: visible !important;
    }
}

/* TABLET: Botões com layout intermediário */
@media (min-width: 576px) and (max-width: 991px) {
    .roadmap-cta {
        padding: 35px 20px !important;
    }
    
    .roadmap-cta .btn {
        max-width: 300px !important;
        padding: var(--btn-padding-lg) !important;
    }
}

/* DESKTOP: Button styling enhancements */
@media (min-width: 992px) {
    .cta-buttons .btn {
        padding: var(--btn-padding-lg) !important;
        font-size: 15px !important;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: var(--btn-padding-md);
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    flex-shrink: 0;
    max-width: 100%;
}

.btn:hover {
    /* NÃO usar transform: translateY - proibido */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Icons inside buttons */
.btn i {
    font-size: 1.1em;
    flex-shrink: 0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(0, 70, 136, 0.25);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.25);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.25);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.25);
}

.btn-warning {
    background-color: var(--warning-color);
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.25);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 70, 136, 0.25);
}

/* ========================================
   FEATURES
   ======================================== */

.features {
    padding: 80px 20px;
    background-color: var(--bg-secondary);
}

.features .container {
    text-align: center;
}

.features h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: left;
}

.feature-card:hover {
    /* NÃO usar transform - proibido */
    box-shadow: 0 12px 24px rgba(0, 70, 136, 0.15);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* MOBILE-FIRST: Features responsivo */
@media (max-width: 575px) {
    .features h2 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    .feature-icon {
        font-size: 40px;
    }
}

/* TABLET: Features responsivo */
@media (min-width: 576px) and (max-width: 991px) {
    .features h2 {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* STAFF APP Showcase - Responsive Image */
.staff-app-showcase {
    margin: 40px 0 60px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 70, 136, 0.12);
}

.staff-app-image {
    width: 100%;
    height: auto;
    max-width: 900px;
    display: block;
    object-fit: contain;
    transition: var(--transition);
    border-radius: 12px;
}

.staff-app-image:hover {
    box-shadow: 0 8px 30px rgba(0, 70, 136, 0.2);
    filter: brightness(1.02);
}

/* MOBILE: Staff App Showcase */
@media (max-width: 575px) {
    .staff-app-showcase {
        margin: 30px 0 40px 0;
        border-radius: 8px;
    }
    
    .staff-app-image {
        max-width: 100%;
        border-radius: 8px;
    }
}

/* TABLET: Staff App Showcase */
@media (min-width: 576px) and (max-width: 991px) {
    .staff-app-showcase {
        margin: 35px 0 50px 0;
    }
    
    .staff-app-image {
        max-width: 95%;
    }
}

/* TV/LARGE SCREENS: Staff App Showcase */
@media (min-width: 1400px) {
    .staff-app-showcase {
        margin: 50px 0 70px 0;
    }
    
    .staff-app-image {
        max-width: 1000px;
    }
}

/* ========================================
   ARCHITECTURE
   ======================================== */

.architecture {
    padding: 80px 20px;
}

.architecture h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 60px;
    text-align: center;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.tech-group {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--btn-radius);
    border-left: 4px solid var(--primary-color);
}

.tech-group h4 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 20px;
}

.tech-group ul {
    list-style: none;
}

.tech-group li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.tech-group li:last-child {
    border-bottom: none;
}

/* Roadmap Stack Groups - Com Highlights Personalizados */
.tech-group-supabase {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.08) 0%, rgba(79, 172, 254, 0.02) 100%) !important;
    border-left: 4px solid #4facfe !important;
}

.tech-group-supabase h4 {
    color: #004B87 !important;
}

.tech-group-frontend {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.02) 100%) !important;
    border-left: 4px solid #22c55e !important;
}

.tech-group-frontend h4 {
    color: #15803d !important;
}

.tech-group-mobile {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(249, 115, 22, 0.02) 100%) !important;
    border-left: 4px solid #f97316 !important;
}

.tech-group-mobile h4 {
    color: #92400e !important;
}

.architecture-diagram {
    background: var(--dark);
    color: var(--light);
    padding: 40px;
    border-radius: var(--btn-radius);
    margin-top: 40px;
    border: 1px solid var(--primary-color);
}

.architecture-diagram h3 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
}

.diagram-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.diagram-box pre {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.7;
    color: #818cf8;
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Diagram Collapse/Expand */
.diagram-box {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.diagram-box.diagram-collapsed {
    max-height: 280px;
    overflow: hidden;
    position: relative;
}

.diagram-box.diagram-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(31, 41, 55, 0), rgba(31, 41, 55, 0.9));
    pointer-events: none;
    border-radius: 0 0 8px 8px;
}

.diagram-box.diagram-expanded {
    max-height: none;
}

.diagram-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin-top: 16px;
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-top: none;
    border-radius: 0 0 8px 8px;
    color: #818cf8;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.diagram-toggle-btn:hover {
    background: rgba(129, 140, 248, 0.2);
    border-color: rgba(129, 140, 248, 0.5);
}

.diagram-toggle-btn i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.diagram-toggle-btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

/* Desktop: Show full diagram without collapse */
@media (min-width: 992px) {
    .diagram-box.diagram-collapsed {
        max-height: none;
    }

    .diagram-box.diagram-collapsed::after {
        display: none;
    }

    .diagram-toggle-btn {
        display: none;
    }
}

/* Architecture Responsiveness - Mobile First */
@media (max-width: 575px) {
    .architecture {
        padding: 50px 20px;
    }
    
    .architecture h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .architecture h2 {
        font-size: 32px;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .architecture {
        padding: 80px 20px;
    }
    
    .architecture h2 {
        font-size: 36px;
    }

    .tech-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 30px;
    }
}

/* ========================================
   ROADMAP
   ======================================== */

.roadmap {
    padding: 80px 20px;
    background-color: var(--bg-secondary);
}

.roadmap h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.roadmap-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-size: 16px;
}

.phases-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.phase {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 380px;
}

.phase h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.phase p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    flex-grow: 1;
}

.phase code {
    padding: 0;
    border-radius: 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
    display: inline-block;
}

.phase ul {
    list-style: none;
    text-align: left;
    width: 100%;
    padding: 0 8px;
    margin: 8px 0;
    font-size: 13px;
    flex-grow: 1;
}

.phase ul li {
    padding: 4px 0;
    color: var(--text-secondary);
    margin: 2px 0;
}

.phase.completed {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    border: 2px solid var(--success-color);
}

.phase.in-progress {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 2px solid var(--warning-color);
}

.phase.planned {
    background: white;
    border: 2px solid var(--border);
}

.phase:hover {
    /* NÃO usar transform - proibido */
    box-shadow: 0 8px 16px rgba(0, 70, 136, 0.12);
}

.badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
    min-width: 80px;
    align-self: center;
}

@media (max-width: 575px) {
    .badge {
        font-size: 11px;
        padding: 6px 12px;
    }
}

.badge-done {
    background: var(--success-color);
    color: white;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    font-weight: 700;
    border: none;
}

.badge-done::before {
    content: '✓ ';
}

.badge-progress {
    background: var(--warning-color);
    color: #000000;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
    font-weight: 700;
}

.badge-planned {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2);
}

.roadmap-cta {
    background: var(--primary-color);
    color: white;
    padding: 40px;
    border-radius: var(--btn-radius);
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 70, 136, 0.15);
}

.roadmap-cta p {
    margin-bottom: 15px;
}

.roadmap-cta strong {
    font-size: 18px;
}

/* Roadmap Responsiveness - Mobile First */
@media (max-width: 575px) {
    .roadmap {
        padding: 50px 20px;
    }
    
    .roadmap h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .phases-timeline {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .phase {
        padding: 20px 15px;
        min-height: 320px;
    }
    
    .phase h4 {
        font-size: 16px;
    }
    
    .phase p {
        font-size: 13px;
    }
    
    .roadmap-cta {
        padding: 30px 20px;
        text-align: center;
    }
    
    .roadmap-cta p {
        font-size: 14px;
    }
    
    .roadmap-cta .btn {
        margin-top: 15px;
        width: 100%;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .roadmap h2 {
        font-size: 32px;
    }
    
    .phases-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 992px) {
    .roadmap {
        padding: 80px 20px;
    }
    
    .roadmap h2 {
        font-size: 36px;
    }
    
    .phases-timeline {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

/* ========================================
   CONTACT
   ======================================== */

.contact {
    padding: 80px 20px;
}

.contact h2 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

.contact-intro {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-size: 16px;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--btn-radius);
    text-align: center;
    border: 1px solid var(--border);
}

.contact-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 15px;
}

.contact-link {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 50px;
    border-radius: var(--btn-radius);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border);
}

.contact-form h3 {
    font-size: 24px;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

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

/* reCAPTCHA Styling */
.form-group .g-recaptcha {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 10px;
}

/* Contact Responsiveness - Mobile First */
@media (max-width: 575px) {
    .contact {
        padding: 50px 20px;
    }
    
    .contact h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .contact-card {
        padding: 20px;
        text-align: center;
    }
    
    .contact-form {
        padding: 30px 20px;
        max-width: 100%;
    }
    
    .contact-form h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
}

@media (min-width: 576px) and (max-width: 991px) {
    .contact h2 {
        font-size: 32px;
    }
    
    .contact-methods {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .contact-form {
        padding: 40px;
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .contact {
        padding: 80px 20px;
    }
    
    .contact h2 {
        font-size: 36px;
    }
    
    .contact-methods {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }
    
    .contact-form {
        padding: 50px;
        max-width: 600px;
    }
}

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

.footer {
    background: var(--dark);
    color: var(--light);
    padding: 60px 20px 30px;
}

.footer .container {
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-bottom: 0;
    width: 100%;
}

.footer-section h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-section p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--gray);
    font-size: 14px;
    transition: color 0.3s ease;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.footer-bottom {
    display: none;
}

/* Footer Responsiveness - Mobile First */
@media (max-width: 575px) {
    .footer {
        padding: 40px 15px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section h4 {
        font-size: 15px;
    }
    
    .footer-section a,
    .footer-section p {
        font-size: 13px;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .footer {
        padding: 50px 20px 25px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .footer {
        padding: 50px 20px 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (min-width: 992px) {
    .footer {
        padding: 60px 20px 30px;
    }
    
    .footer-content {
        grid-template-columns: repeat(5, 1fr);
        gap: 40px;
    }
}

/* ========================================
   SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   BOTTOM TAB BAR - ATOMIC COMPONENTS
   ======================================== */

/* DESKTOP: Hide bottom tab bar */
@media (min-width: 992px) {
    .bottom-tab-bar,
    .more-menu {
        display: none !important;
    }
}

/* Atoms: Basic structure */
.bottom-tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    background: var(--white);
    border-top: 2px solid var(--border);
    padding: 0;
    height: 70px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 99;
    gap: 0;
}

/* Atoms: Tab item base */
.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    gap: 4px;
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 500;
    padding: 0;
}

.tab-item:active,
.tab-item.active {
    color: var(--primary-color);
    background: rgba(0, 70, 136, 0.05);
}

/* Atoms: Tab icon */
.tab-icon {
    font-size: 24px;
    display: block;
    line-height: 1;
    transition: var(--transition);
}

/* Atoms: Tab label */
.tab-label {
    display: block;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Molecule: More button */
.tab-more {
    color: var(--text-secondary);
}

.tab-more.active {
    color: var(--primary-color);
}

/* MOBILE: Tab bar responsive */
@media (max-width: 575px) {
    .bottom-tab-bar {
        height: 65px;
    }
    
    .tab-label {
        font-size: 10px;
    }
    
    .tab-icon {
        font-size: 22px;
    }
}

/* ========================================
   MORE MENU - ATOMIC COMPONENTS
   ======================================== */

.more-menu {
    position: fixed;
    bottom: 70px;
    right: 15px;
    background: var(--white);
    border-radius: var(--btn-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    z-index: 98;
    min-width: 200px;
    animation: slideUp 0.2s ease-out;
}

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

.more-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
    width: 100%;
    text-align: left;
}

.more-item:last-child {
    border-bottom: none;
}

.more-item:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding-left: 20px;
}

.more-item i {
    font-size: 16px;
    width: 20px;
}

/* MOBILE: More menu responsive */
@media (max-width: 575px) {
    .more-menu {
        bottom: 65px;
        right: 10px;
        min-width: 180px;
    }
    
    .more-item {
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ========================================
   COMMAND BAR - ATOMIC COMPONENTS
   ======================================== */

/* Overlay behind command bar */
.command-bar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.15s ease-out;
    z-index: 100;
    display: block;
}

.command-bar-overlay[hidden] {
    display: none !important;
    pointer-events: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Main command bar container */
.command-bar {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    max-height: 60vh;
    z-index: 101;
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.15s ease-out;
}

.command-bar[hidden] {
    display: none !important;
    pointer-events: none !important;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Atoms: Command bar header */
.command-bar-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 10px;
}

/* Atoms: Command input */
.command-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    padding: 8px 0;
}

.command-input::placeholder {
    color: var(--text-secondary);
}

/* Atoms: Command hint (ESC) */
.command-hint {
    background: var(--bg-secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.6;
    white-space: nowrap;
}

/* Molecules: Command results */
.command-results {
    overflow-y: auto;
    max-height: calc(60vh - 60px);
    padding: 8px 0;
}

.command-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
}

.command-item:hover,
.command-item.active {
    background: var(--bg-secondary);
    color: var(--primary-color);
    padding-left: 24px;
}

.command-item-icon {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.command-item-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.command-item-text {
    font-size: 14px;
    color: var(--text-primary);
}

.command-item-shortcut {
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* MOBILE: Command bar responsive */
@media (max-width: 575px) {
    .command-bar {
        width: 95%;
        max-height: 70vh;
        top: 40%;
    }
    
    .command-bar-header {
        padding: 14px 16px;
    }
    
    .command-input {
        font-size: 14px;
    }
    
    .command-item {
        padding: 10px 16px;
        font-size: 13px;
    }
}

/* ========================================
   CTRL+K HINT TOOLTIP
   ======================================== */

.ctrl-k-hint {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: var(--white);
    border-radius: var(--btn-radius);
    box-shadow: 0 4px 20px rgba(0, 70, 136, 0.2);
    padding: 16px 18px;
    z-index: 90;
    max-width: 280px;
    border-left: 4px solid var(--primary-color);
    animation: slideInRight 0.3s ease-out;
    opacity: 0;
}

.ctrl-k-hint.show {
    opacity: 1;
}

.ctrl-k-hint.hide {
    animation: slideOutRight 0.3s ease-out;
    opacity: 0;
}

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

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

.hint-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-primary);
}

.hint-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.hint-text {
    flex: 1;
    line-height: 1.4;
}

.hint-text kbd {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 3px 6px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 12px;
}

.hint-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hint-close:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* MOBILE: Ctrl+K hint */
@media (max-width: 575px) {
    .ctrl-k-hint {
        bottom: 80px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* ========================================
   DARK MODE STYLES
   ======================================== */

[data-theme="dark"],
.dark-mode {
    color-scheme: dark;
}

.dark-mode {
    --bg-primary: #0f172a;
    --bg-secondary: #1f2937;
    --bg-tertiary: #374151;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --border: #4b5563;
    --white: #1f2937;
}

.dark-mode body,
.dark-mode .header,
.dark-mode .hero,
.dark-mode .features,
.dark-mode .architecture,
.dark-mode .roadmap,
.dark-mode .contact,
.dark-mode .footer {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.dark-mode .feature-card,
.dark-mode .tech-group,
.dark-mode .contact-card,
.dark-mode .phase {
    background: var(--bg-secondary);
    border-color: var(--border);
    color: var(--text-primary);
}

.dark-mode .phase.completed {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%);
    border-color: #22c55e;
}

.dark-mode .phase.in-progress {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.15) 0%, rgba(234, 179, 8, 0.08) 100%);
    border-color: #eab308;
}

.dark-mode .phase.planned {
    background: var(--bg-secondary);
    border-color: var(--border);
}

.dark-mode .command-bar,
.dark-mode .more-menu,
.dark-mode .ctrl-k-hint {
    background: var(--bg-secondary);
    border-color: var(--border);
}

.dark-mode .feature-card:hover,
.dark-mode .command-bar:hover {
    background: var(--bg-tertiary);
}

.dark-mode input,
.dark-mode textarea,
.dark-mode select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border);
}

.dark-mode .command-item:hover,
.dark-mode .command-item.active {
    background: var(--bg-tertiary);
}

.dark-mode .more-item:hover {
    background: var(--bg-tertiary);
}

.dark-mode .phase h4 {
    color: var(--text-primary);
}

.dark-mode .phase code {
    color: #4ade80;
}

.dark-mode .phase p,
.dark-mode .phase ul li {
    color: var(--text-secondary);
}

.dark-mode .header {
    background: var(--bg-secondary);
    border-bottom-color: var(--border);
}

.dark-mode .theme-toggle-header {
    color: var(--text-primary);
}

.dark-mode .theme-toggle-header:hover {
    background: var(--bg-tertiary);
    color: #fbbf24;
}

.dark-mode a {
    color: #60a5fa;
}

.dark-mode a:hover {
    color: #93c5fd;
}

.dark-mode .footer-section a {
    color: #60a5fa;
}

.dark-mode .footer-section a:hover {
    color: #93c5fd;
}

.dark-mode .contact-card {
    background: var(--bg-secondary);
}

.dark-mode .contact-card h4 {
    color: var(--text-primary);
}

/* Dark Mode Buttons */
.dark-mode .btn-success {
    background-color: #22c55e;
    color: white;
}

.dark-mode .btn-success:hover {
    background-color: #16a34a;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
}

.dark-mode .btn-secondary {
    background-color: #6b7280;
    color: white;
}

.dark-mode .btn-secondary:hover {
    background-color: #4b5563;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.4);
}

.dark-mode .btn-warning {
    background-color: #fbbf24;
    color: #1f2937;
}

.dark-mode .btn-warning:hover {
    background-color: #f59e0b;
    color: #1f2937;
}

.dark-mode .btn-danger {
    background-color: #ef4444;
    color: white;
}

.dark-mode .btn-danger:hover {
    background-color: #dc2626;
}

/* ========================================
   LAYOUT ADJUSTMENT FOR BOTTOM TAB BAR
   ======================================== */

/* Only apply bottom padding on mobile */
@media (max-width: 991px) {
    body {
        padding-bottom: 70px;
    }
    
    @media (max-width: 575px) {
        body {
            padding-bottom: 65px;
        }
    }
}


