/* =====================================================
   HBROWSER LANDING - Luxury Design
   ===================================================== */

:root {
    --obsidian: #0A0A0A;
    --charcoal: #1A1A1A;
    --pearl: #F5F3EE;
    --champagne: #C9A962;
    --gold: #D4AF37;
    --gold-glow: rgba(201, 169, 98, 0.4);
    --glass-bg: rgba(26, 26, 26, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-heading: 'Syne', sans-serif;
    --font-display: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
}

[data-theme="light"] {
    --obsidian: #F5F3EE;
    --pearl: #1A1A1A;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.08);
    /* Darker border for light mode */
    --champagne: #B08D45;
    /* Darker gold for better contrast on white */
    --gold: #D4AF37;
    --gold-glow: rgba(176, 141, 69, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--obsidian);
    color: var(--pearl);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Background Animation */
.hero-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.marble-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(201, 169, 98, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(183, 110, 121, 0.03) 0%, transparent 50%);
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

[data-theme="light"] .grid-overlay {
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .hero-image-wrapper {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), transparent);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .hero-screenshot {
    border-color: rgba(0, 0, 0, 0.1);
}

.floating-orbs .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(201, 169, 98, 0.08);
    top: 10%;
    left: 20%;
    animation: float 15s infinite ease-in-out;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: rgba(100, 100, 255, 0.05);
    top: 60%;
    right: 10%;
    animation: float 20s infinite ease-in-out reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-40px);
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

.text-gold {
    color: var(--champagne);
    text-shadow: 0 0 20px rgba(201, 169, 98, 0.3);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 24px 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    height: 32px;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--pearl);
    font-size: 14px;
    opacity: 0.7;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--champagne);
}

.nav-actions {
    display: flex;
    gap: 16px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    font-family: var(--font-heading);
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--champagne), var(--gold));
    color: #0A0A0A;
    /* Always dark text on gold button */
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(201, 169, 98, 0.2);
}

.btn-gold-outline {
    border: 1px solid var(--champagne);
    color: var(--champagne);
    background: transparent;
}

.btn-gold-outline:hover {
    background: rgba(201, 169, 98, 0.1);
}

/* Hero Section */
.hero-section {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
}

.hero-title {
    font-size: clamp(36px, 5vw + 1rem, 64px);
    margin-bottom: 24px;
    letter-spacing: -1px;
    padding: 0 10px;
}

.hero-subtitle {
    font-size: 18px;
    color: #aaa;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

.btn-hero {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-windows {
    background: #222;
    color: #fff;
    border: 1px solid #333;
}

.btn-windows:hover {
    background: #333;
    border-color: #555;
}

.btn-mac {
    background: #fff;
    color: #000;
}

.btn-mac:hover {
    background: #ddd;
}

.hero-image-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    padding: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.hero-screenshot {
    width: 100%;
    border-radius: 8px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glow-effect {
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: linear-gradient(180deg, var(--champagne), transparent);
    opacity: 0.1;
    border-radius: 14px;
    filter: blur(20px);
}

/* Features */
.features-section {
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: clamp(32px, 4vw + 1rem, 42px);
    margin-bottom: 16px;
    padding: 0 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: 16px;
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--champagne);
}

.icon-wrapper {
    font-size: 32px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--pearl);
}

.feature-card p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

/* Showcase */
.showcase-section {
    padding: 100px 0;
    overflow: hidden;
}

.showcase-header {
    text-align: center;
    margin-bottom: 80px;
}

.showcase-header h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

.showcase-header p {
    font-size: 18px;
    color: #888;
}

.showcase-3d-wrapper {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.showcase-3d-container {
    position: relative;
    width: 800px;
    height: 500px;
    transform-style: preserve-3d;
    transform: rotateX(10deg) rotateY(-10deg) rotateZ(2deg);
    transition: transform 0.5s ease;
}

.showcase-3d-container:hover {
    transform: rotateX(5deg) rotateY(-5deg) rotateZ(0deg);
}

.interface-main {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: -30px 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--obsidian);
    transform: translateZ(0);
}

.interface-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.interface-glow {
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 40%);
    pointer-events: none;
}

.float-card {
    position: absolute;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 169, 98, 0.3);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
    color: var(--pearl);
}

.float-icon {
    font-size: 24px;
}

.float-content h4 {
    font-size: 14px;
    color: var(--champagne);
    margin-bottom: 4px;
}

.float-content span {
    font-size: 12px;
    color: #aaa;
}

.score-bar {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.score-fill {
    width: 94%;
    height: 100%;
    background: var(--success, #00C853);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 200, 83, 0.4);
}

/* Positioning & Animation */
.card-1 {
    top: 10%;
    right: -50px;
    transform: translateZ(60px);
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    bottom: 20%;
    left: -60px;
    transform: translateZ(40px);
    animation: float 8s ease-in-out infinite 1s;
}

.card-3 {
    top: -30px;
    left: 100px;
    transform: translateZ(80px);
    animation: float 7s ease-in-out infinite 0.5s;
    background: rgba(30, 30, 30, 0.9);
    border-color: rgba(0, 200, 83, 0.3);
}

@keyframes float {

    0%,
    100% {
        transform: translateZ(60px) translateY(0);
    }

    50% {
        transform: translateZ(60px) translateY(-15px);
    }
}

@media (max-width: 900px) {
    .showcase-3d-container {
        width: 100%;
        height: auto;
        transform: none;
    }

    .interface-main {
        position: relative;
        inset: auto;
        transform: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .float-card {
        display: none;
    }

    /* Hide complex 3D on mobile */
    .showcase-3d-wrapper {
        perspective: none;
        height: auto;
    }
}

/* Mobile Nav Styles */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.mobile-toggle span {
    width: 100%;
    height: 3px;
    background: var(--pearl);
    border-radius: 3px;
    transition: 0.3s;
}

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--obsidian);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.mobile-menu a {
    text-decoration: none;
    color: var(--pearl);
    font-size: 18px;
    font-weight: 500;
    padding: 10px;
    border-radius: 8px;
    transition: 0.2s;
}

.mobile-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--champagne);
}

@media (max-width: 900px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-container {
        position: relative;
        justify-content: center;
        /* Center logo */
    }

    .mobile-toggle {
        position: absolute;
        left: 24px;
        /* Hamburger on left */
        top: 50%;
        transform: translateY(-50%);
    }

    .brand {
        margin: 0 auto;
    }
}

/* Footer (re-added to complete the replacement safely) */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    font-size: 14px;
    color: #666;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--champagne);
}