/* ===================================================
   BitHQ Landing Page – Modern Responsive Stylesheet
   =================================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.landing-body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1c2c23;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ===================================================
   Navbar
   =================================================== */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}

.landing-nav.scrolled {
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.08);
}

.landing-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
}

/* Logo */
.landing-nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.landing-nav-logo img {
    height: 24px;
    width: auto;
}

/* Desktop: menu is a horizontal flex row taking remaining space */
.landing-nav-menu {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    margin-left: 2.5rem;
}

/* Nav links */
.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.4375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.landing-nav-link:hover {
    color: #1c2c23;
    background: rgba(60, 95, 75, 0.07);
    text-decoration: none;
}

/* Dropdown */
.landing-nav-dropdown {
    position: relative;
    list-style: none;
}

.landing-nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    gap: 0.25rem;
}

.landing-nav-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.landing-nav-dropdown:hover .landing-nav-chevron,
.landing-nav-dropdown.open .landing-nav-chevron {
    transform: rotate(180deg);
}

.landing-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.375rem);
    left: 0;
    min-width: 160px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 0.375rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    z-index: 110;
}

.landing-nav-dropdown:hover .landing-nav-dropdown-menu,
.landing-nav-dropdown.open .landing-nav-dropdown-menu {
    display: block;
}

.landing-nav-dropdown-link {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4b5563;
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}

.landing-nav-dropdown-link:hover {
    color: #1c2c23;
    background: rgba(60, 95, 75, 0.07);
    text-decoration: none;
}

/* Actions pushed to the far right */
.landing-nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}

/* Sign-in button */
.landing-btn-login {
    display: inline-flex;
    align-items: center;
    padding: 0.4375rem 1.125rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #fff;
    background: #1c2c23;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.landing-btn-login:hover {
    background: #2a4435;
    color: #fff;
    text-decoration: none;
}

/* Logout / ghost button */
.landing-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 0.4375rem 1.125rem;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #4b5563;
    background: transparent;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.landing-btn-ghost:hover {
    border-color: #1c2c23;
    color: #1c2c23;
    text-decoration: none;
}

/* Hamburger toggle – hidden on desktop */
.landing-nav-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #1c2c23;
}

.landing-nav-toggle svg {
    width: 24px;
    height: 24px;
}

/* ===================================================
   Hero
   =================================================== */
.landing-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, #111c16 0%, #1c2c23 35%, #2a4435 65%, #3c5f4b 100%);
    overflow: hidden;
    padding: 6rem 2rem 4rem;
}

/* Decorative elements */
.landing-hero::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 95, 75, 0.15) 0%, transparent 65%);
    top: -200px;
    right: -150px;
    pointer-events: none;
}

.landing-hero::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 65%);
    bottom: -120px;
    left: -100px;
    pointer-events: none;
}

.landing-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.landing-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.landing-hero-content {
    max-width: 600px;
}

.landing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.875rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.landing-hero-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5fbb7d;
    animation: pulse 2s ease-in-out infinite;
}

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

.landing-hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    color: #fff;
    margin: 0 0 1.5rem 0;
}

.landing-hero h1 span {
    background: linear-gradient(135deg, #7bc89b 0%, #5fbb7d 50%, #4a9e6a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 2.5rem 0;
    max-width: 480px;
}

.landing-hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.landing-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1c2c23;
    background: #fff;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.landing-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    color: #1c2c23;
    text-decoration: none;
}

.landing-btn-primary svg {
    width: 16px;
    height: 16px;
    transition: transform 0.15s ease;
}

.landing-btn-primary:hover svg {
    transform: translateX(2px);
}

.landing-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.75rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.landing-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    text-decoration: none;
}

/* Hero visual (right side) */
.landing-hero-visual {
    flex-shrink: 0;
    width: 400px;
    height: 400px;
    position: relative;
}

.landing-hero-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    color: #fff;
}

.landing-hero-card-1 {
    top: 0;
    left: 0;
    width: 220px;
}

.landing-hero-card-2 {
    top: 80px;
    right: 0;
    width: 200px;
}

.landing-hero-card-3 {
    bottom: 20px;
    left: 40px;
    width: 240px;
}

.landing-hero-card-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.375rem;
}

.landing-hero-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.landing-hero-card-value.green {
    color: #7bc89b;
}

.landing-hero-card-bar {
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 0.75rem;
    overflow: hidden;
}

.landing-hero-card-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #5fbb7d, #7bc89b);
}

/* ===================================================
   Features
   =================================================== */
.landing-features {
    padding: 6rem 2rem;
    background: #f8faf9;
}

.landing-section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.landing-section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 3.5rem;
}

.landing-section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #3c5f4b;
    margin-bottom: 0.75rem;
}

.landing-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.75px;
    color: #1c2c23;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.landing-section-subtitle {
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #6b7280;
    margin: 0;
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.landing-feature-card {
    background: #fff;
    border: 1px solid #e8ece9;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(28, 44, 35, 0.08);
}

.landing-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, rgba(60, 95, 75, 0.08) 0%, rgba(60, 95, 75, 0.15) 100%);
    color: #3c5f4b;
}

.landing-feature-icon svg {
    width: 24px;
    height: 24px;
}

.landing-feature-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1c2c23;
    margin: 0 0 0.5rem 0;
}

.landing-feature-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* ===================================================
   Technology / Highlights
   =================================================== */
.landing-tech {
    padding: 6rem 2rem;
    background: #1c2c23;
    position: relative;
    overflow: hidden;
}

.landing-tech::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(60, 95, 75, 0.2) 0%, transparent 65%);
    top: -200px;
    left: -150px;
    pointer-events: none;
}

.landing-tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.landing-tech-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.75px;
    color: #fff;
    margin: 0 0 1.25rem 0;
    line-height: 1.2;
}

.landing-tech-content p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.landing-tech-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.landing-tech-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem;
}

.landing-tech-item-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.375rem;
}

.landing-tech-item-value {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.landing-tech-item-value.accent {
    color: #7bc89b;
}

/* ===================================================
   Flash Messages
   =================================================== */
.landing-flash {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    width: 100%;
    max-width: 600px;
    padding: 0 1rem;
}

.landing-flash-msg {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #1c2c23;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* ===================================================
   Footer
   =================================================== */
.landing-footer {
    padding: 3rem 2rem;
    background: #f8faf9;
    border-top: 1px solid #e8ece9;
}

.landing-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-footer-logo img {
    height: 18px;
    width: auto;
    opacity: 0.5;
}

.landing-footer-text {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.landing-footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.landing-footer-links a {
    font-size: 0.8125rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.landing-footer-links a:hover {
    color: #1c2c23;
}

/* ===================================================
   Responsive – Tablet
   =================================================== */
@media (max-width: 991px) {
    .landing-hero {
        min-height: auto;
        padding: 7rem 2rem 4rem;
    }

    .landing-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .landing-hero h1 {
        font-size: 2.75rem;
    }

    .landing-hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .landing-hero-actions {
        justify-content: center;
    }

    .landing-hero-visual {
        width: 320px;
        height: 320px;
    }

    .landing-hero-card-1 { width: 180px; }
    .landing-hero-card-2 { width: 170px; top: 60px; }
    .landing-hero-card-3 { width: 200px; }

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

    .landing-tech-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .landing-tech-content {
        text-align: center;
    }

    /* Nav mobile menu */
    .landing-nav-toggle {
        display: block;
    }

    .landing-nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        padding: 1rem 2rem 1.5rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        flex-direction: column;
        gap: 0.25rem;
        flex: none;
        margin-left: 0;
    }

    .landing-nav-menu.open {
        display: flex;
    }

    .landing-nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .landing-nav-link {
        padding: 0.75rem 0.875rem;
    }

    .landing-nav-actions {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid #f0f0f0;
        margin-left: 0;
    }

    /* Dropdown: inline on mobile */
    .landing-nav-dropdown-menu {
        position: static;
        display: none;
        border: none;
        box-shadow: none;
        padding: 0 0 0 1rem;
        min-width: 0;
        background: transparent;
        border-radius: 0;
    }

    .landing-nav-dropdown.open .landing-nav-dropdown-menu {
        display: block;
    }

    .landing-nav-dropdown:hover .landing-nav-dropdown-menu {
        display: none;
    }

    .landing-nav-dropdown.open:hover .landing-nav-dropdown-menu {
        display: block;
    }

    .landing-nav-dropdown-link {
        padding: 0.625rem 0.875rem;
    }
}

/* ===================================================
   Responsive – Mobile
   =================================================== */
@media (max-width: 575px) {
    .landing-nav-inner {
        padding: 0 1.25rem;
    }

    .landing-hero {
        padding: 6rem 1.25rem 3rem;
    }

    .landing-hero h1 {
        font-size: 2.125rem;
        letter-spacing: -1px;
    }

    .landing-hero-text {
        font-size: 1rem;
    }

    .landing-hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .landing-btn-primary,
    .landing-btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .landing-hero-visual {
        width: 280px;
        height: 280px;
    }

    .landing-hero-card { padding: 1rem; }
    .landing-hero-card-1 { width: 160px; }
    .landing-hero-card-2 { width: 150px; top: 50px; }
    .landing-hero-card-3 { width: 180px; left: 20px; }
    .landing-hero-card-value { font-size: 1.375rem; }

    .landing-features {
        padding: 4rem 1.25rem;
    }

    .landing-features-grid {
        grid-template-columns: 1fr;
    }

    .landing-section-title {
        font-size: 1.75rem;
    }

    .landing-tech {
        padding: 4rem 1.25rem;
    }

    .landing-tech-content h2 {
        font-size: 1.75rem;
    }

    .landing-tech-list {
        grid-template-columns: 1fr;
    }

    .landing-footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
