:root {
    --primary-teal: #00d4ff;
    --dark-bg: #0a0e1a;
    --card-bg: #1a1f2e;
    --text-white: #ffffff;
    --text-gray: #a0aec0;
    --border-gray: #2d3748;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-cta {
    background: var(--primary-teal);
    color: var(--dark-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

/* Mobile Menu Button (hidden on desktop) */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 21px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: flex;
    opacity: 1;
}

.mobile-menu {
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: var(--dark-bg);
    margin-left: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-gray);
}

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

.close-menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-icon {
    font-size: 2.5rem;
    color: var(--text-white);
    line-height: 1;
    font-weight: 300;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
}

.mobile-menu-link {
    color: var(--text-white);
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-menu-link:hover,
.mobile-menu-link:active {
    background: rgba(0, 212, 255, 0.1);
    border-left-color: var(--primary-teal);
    color: var(--primary-teal);
}

.mobile-menu-cta {
    display: block;
    margin: 1rem 1.5rem;
    padding: 1rem;
    background: var(--primary-teal);
    color: var(--dark-bg);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 1.125rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-cta:hover {
    background: rgba(0, 212, 255, 0.9);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('../images/hero-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(10, 14, 26, 0.95) 0%,
        rgba(10, 14, 26, 0.85) 15%,
        rgba(10, 14, 26, 0.60) 30%,
        rgba(10, 14, 26, 0.30) 50%,
        rgba(10, 14, 26, 0.10) 70%,
        rgba(10, 14, 26, 0) 100%
    );
    z-index: 1;
}

.hero-content {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    max-width: 50%;
    padding-left: 6vw;
}

.hero-headline {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-teal);
    color: var(--dark-bg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
}

.hero-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
}

/* Device Badge */
.device-badge {
    position: absolute;
    right: 5vw;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    text-align: center;
}

.badge-ring {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.2);
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 40px rgba(0, 212, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 60px rgba(0, 212, 255, 0.4);
    }
}

.badge-device {
    width: 140px;
    height: auto;
}

.badge-caption {
    font-size: 0.9rem;
    color: var(--primary-teal);
    font-weight: 600;
}

/* Hero Image Container (hidden on desktop, visible as contained element on mobile) */
.hero-image-container {
    display: none;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
}

/* Hero CTA container (for button and note) */
.hero-cta {
    display: none; /* Hidden on desktop, shown on mobile */
}

/* Desktop: Show button in hero-content, hide mobile CTA */
.hero-desktop-cta,
.hero-desktop-note {
    display: inline-block;
}

.hero-desktop-note {
    display: block;
}

.hero-mobile-cta {
    display: none;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 4rem;
}

/* Problem Section */
.problem-section {
    background: var(--dark-bg);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.problem-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-teal);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.card-number {
    font-size: 40px;
    font-weight: 700;
    color: var(--primary-teal);
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.problem-card p {
    color: var(--text-gray);
}

/* Solution Section */
.solution-section {
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--card-bg) 100%);
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.device-image {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.solution-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    width: 24px;
    height: 24px;
    color: var(--primary-teal);
}

.feature-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-teal);
}

.feature-content p {
    color: var(--text-gray);
}

/* How It Works Section */
.how-it-works {
    background: var(--dark-bg);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.step-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
    min-height: 260px;
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-teal);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.step-header {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-teal);
    line-height: 1;
}

.step-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

.step-divider {
    width: 50px;
    height: 2px;
    background: var(--primary-teal);
    margin-bottom: 1.25rem;
}

.step-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 1rem;
}

.step-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-image {
    max-width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.step-image:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
}

/* Benefits Section */
.benefits-section {
    position: relative;
    background-image: url('../images/benefits-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

.benefits-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 14, 26, 0.75) 0%,
        rgba(10, 14, 26, 0.65) 50%,
        rgba(10, 14, 26, 0.75) 100%
    );
    z-index: 1;
}

.benefits-section .container {
    position: relative;
    z-index: 2;
}

.benefits-section .section-title {
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.benefits-section .section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-white);
    margin-top: 1rem;
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: rgba(26, 31, 46, 0.92);
    backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-top: 3px solid var(--primary-teal);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(26, 31, 46, 0.96);
    border-color: var(--primary-teal);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-teal);
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-teal);
}

.benefit-card p {
    color: var(--text-gray);
}

/* Waitlist Section */
.waitlist-section {
    background: var(--dark-bg);
}

.waitlist-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Tally Form Container */
.tally-form-container {
    margin: 2rem auto 0;
    max-width: 100%;
}

.tally-form-container iframe {
    border-radius: 8px;
}

/* Legacy form styles (kept for backwards compatibility if needed) */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row input,
.form-row select,
.form-row textarea {
    flex: 1;
    padding: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
}

.form-row textarea {
    resize: vertical;
}

.form-note {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.form-note a {
    color: var(--primary-teal);
    text-decoration: none;
}

.form-success {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-teal);
    border-radius: 8px;
    color: var(--primary-teal);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--card-bg);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-gray);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.footer-logo p {
    color: var(--text-gray);
}

.footer-column h4 {
    margin-bottom: 1rem;
}

.footer-column a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-teal);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-gray);
    color: var(--text-gray);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        max-width: 70%;
        padding-left: 4vw;
    }
    
    .device-badge {
        position: static;
        transform: none;
        margin-top: 3rem;
    }
    
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .step-column {
        gap: 1.5rem;
    }
    
    .step-image {
        max-height: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* Tablet Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .navbar {
        padding: 1rem 0;
        background: rgba(10, 14, 26, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    /* Add top padding to hero to clear fixed header */
    .hero {
        padding-top: 6rem; /* 96px to clear header + breathing room */
    }
}

@media (max-width: 640px) {
    /* Mobile Hero - Stacked Layout */
    .hero {
        min-height: auto;
        background-image: none;
        background-color: var(--dark-bg);
        padding: 5rem 0 3rem; /* 80px top padding to clear fixed header */
        display: block;
    }
    
    .hero::before {
        display: none;
    }
    
    .hero-content {
        position: static;
        transform: none;
        max-width: 100%;
        padding: 0 1.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-headline {
        font-size: 1.75rem;
        text-align: left;
        margin-bottom: 1rem;
        color: var(--text-white);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-gray);
        text-align: left;
        margin-bottom: 0;
    }
    
    /* Hide desktop CTA elements in hero-content */
    .hero-desktop-cta,
    .hero-desktop-note {
        display: none;
    }
    
    /* Show Hero Image as Contained Element */
    .hero-image-container {
        display: block;
        width: calc(100% - 3rem);
        margin: 2rem auto;
        padding: 0 1.5rem;
    }
    
    .hero-image {
        width: 100%;
        height: 220px;
        border-radius: 12px;
        object-fit: cover;
        object-position: center;
    }
    
    /* Device Badge - Centered */
    .device-badge {
        position: static;
        transform: none;
        margin: 2rem auto;
        text-align: center;
    }
    
    .badge-ring {
        width: 160px;
        height: 160px;
        margin: 0 auto 1rem;
    }
    
    .badge-device {
        width: 110px;
    }
    
    .badge-caption {
        font-size: 0.875rem;
        margin-bottom: 2rem;
    }
    
    /* Show Mobile CTA Container */
    .hero-mobile-cta {
        display: block;
        padding: 0 1.5rem;
    }
    
    /* CTA Button - Full Width */
    .hero-mobile-cta .btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-mobile-cta .hero-note {
        text-align: center;
        font-size: 0.875rem;
        margin-top: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .form-row {
        flex-direction: column;
    }
}