/* ==========================================
   BIDJORY - Design System Global
   Variáveis CSS controladas via JS (theme)
   ========================================== */

:root {
    --primary: #000000;
    --secondary: #ffffff;
    --accent: #666666;
    --background: #ffffff;
    --text: #000000;
    --text-secondary: #555555;
    --border: #e5e5e5;
    
    --status-active: #10b981;
    --status-testing: #f59e0b;
    --status-building: #3b82f6;
    --status-inactive: #9ca3af;
    
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --space-2xl: 120px;
    
    --max-width: 1100px;
    --radius: 12px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
}

.nav-list {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

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

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Overlay mobile */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition);
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all var(--transition);
    border: 1.5px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: #1a1a1a;
}

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

.btn-outline:hover {
    border-color: var(--primary);
    background: #fafafa;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 64px;
}

.hero-content {
    max-width: 700px;
}

.hero-overline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}

.hero-headline {
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.hero-tags span[aria-hidden] {
    color: #ccc;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

/* Footer */
.footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

/* Section titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-lg);
}

/* Cards (shared) */
.card {
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}

/* Status badges */
.status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-active {
    background: rgba(16,185,129,0.1);
    color: var(--status-active);
}

.status-testing {
    background: rgba(245,158,11,0.1);
    color: var(--status-testing);
}

.status-building {
    background: rgba(59,130,246,0.1);
    color: var(--status-building);
}

.status-inactive {
    background: rgba(156,163,175,0.1);
    color: var(--status-inactive);
}

/* Tag */
.tag {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    background: #f5f5f5;
    padding: 3px 10px;
    border-radius: 4px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--secondary);
        padding: 100px 32px 32px;
        transition: right var(--transition);
        box-shadow: -4px 0 20px rgba(0,0,0,0.06);
        z-index: 100;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 28px;
    }

    .nav-link {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 1.9rem;
    }

    .hero-tags {
        font-size: 0.9rem;
        gap: 6px;
    }

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

    .btn {
        justify-content: center;
    }

    .container {
        padding: 0 16px;
    }
}