:root {
    --primary-color: #dc2626;
    --secondary-color: #f5f5f1;
    --dark-bg: #141414;
    --card-bg: #1f1f1f;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --border-radius: 12px;
    --button-border-color: rgba(255, 255, 255, 0.2);
    --button-hover-color: rgba(255, 255, 255, 0.6);
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

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

header {
    width: 1200px;
    max-width: calc(100vw - 40px);
    margin: 0 auto;
    align-items: center;
    background-color: rgba(31, 31, 31, 0.8);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
}

header.header-hidden {
    transform: translateX(-50%) translateY(-100%);
}

header.header-scrolled {
    background-color: var(--card-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo img {
    height: 72px;
    width: auto;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

nav {
    margin-left: auto;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--text-color);
}

.auth-buttons .btn {
    margin-left: 10px;
}

.start-app-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

.btn-start-app {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0px 20px;
    padding-right: 0px;
    background-color: transparent;
    color: var(--button-border-color);
    border: 1px solid var(--button-border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: lighter;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.btn-start-app:hover:not(:has(.profile-icon:hover)) {
    border-color: var(--button-hover-color);
    color: var(--button-hover-color);
    
}

.profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--button-border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.profile-icon svg {
    width: 24px;
    height: 24px;
    color: var(--button-border-color);
    pointer-events: none;
}

.profile-icon:hover {
    color: var(--button-hover-color);
    background-color: rgba(255, 255, 255, 0.2);
}

.profile-icon:hover svg {
    color: var(--button-hover-color);
}

/* When logged in, add this class to profile-icon */
.profile-icon.logged-in {
    background-color: var(--text-color);
}

.profile-icon.logged-in svg {
    color: var(--primary-color);
}

.profile-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    z-index: 1000;
}

.profile-menu.show {
    display: block;
}

.profile-menu a {
    display: block;
    padding: 15px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.profile-menu a:first-child {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.profile-menu a:last-child {
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.profile-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.profile-menu a.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.profile-menu-user {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.profile-menu-user .user-name {
    display: block;
    font-size: 0.95rem;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #ff0a16;
}

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

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

main {
    padding: 0;
}

section {
    padding: 60px 0;
}

section#hero {
    padding: 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

#features {
    background: linear-gradient(
        to bottom,
        rgba(20, 80, 100, 0.05) 0%,
        rgba(20, 80, 100, 0.12) 30%,
        rgba(20, 80, 100, 0.12) 70%,
        rgba(100, 50, 80, 0.08) 100%
    );
    position: relative;
}

#pricing {
    background: linear-gradient(
        to bottom,
        rgba(100, 50, 80, 0.08) 0%,
        rgba(220, 38, 38, 0.08) 30%,
        rgba(220, 38, 38, 0.1) 70%,
        rgba(20, 20, 40, 0.05) 100%
    );
    position: relative;
}

#hero {
    text-align: left;
    height: 100vh;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 0;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-overlay-svg {
    width: 100%;
    height: 100%;
    display: block;
}

#hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 60px;
}

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

#hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
    letter-spacing: -0.02em;
}

#hero .hero-tagline {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-cta .btn {
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

#hero p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.video-control {
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(31, 31, 31, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.video-control:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.video-control svg {
    width: 24px;
    height: 24px;
    fill: var(--text-color);
}

.feature-subsection {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-subsection.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.feature-text ul {
    list-style: none;
    margin-top: 20px;
    padding-left: 10px;
}

.feature-text ul li {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.feature-text ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
}

.pricing-embed-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pricing-embed-container iframe {
    display: block;
}

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

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.3);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

#pricing .card {
    text-align: center;
}

#pricing .price {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 20px 0;
}

#pricing .price span {
    font-size: 1rem;
    font-weight: normal;
    color: var(--text-secondary);
}

#pricing ul {
    list-style: none;
    margin-bottom: 30px;
}

#pricing ul li {
    margin-bottom: 10px;
}

#pricing .card.pro {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

/* ============================================
   HAMBURGER MENU
   ============================================ */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile-only nav items — hidden on desktop */
nav ul li.mobile-only {
    display: none;
}

nav ul li.mobile-only a.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   BREAKPOINT: 1024px — Tablets / Small Laptops
   ============================================ */
@media (max-width: 1024px) {
    #hero h1 {
        font-size: 3.5rem;
    }

    #hero .hero-tagline {
        font-size: 1.15rem;
    }

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

    #hero .container {
        padding: 0 40px;
    }

    .feature-subsection {
        gap: 30px;
    }

    .feature-text h3 {
        font-size: 1.8rem;
    }

    .feature-text p {
        font-size: 1rem;
    }

    section h2 {
        font-size: 2.2rem;
    }
}

/* ============================================
   BREAKPOINT: 768px — Tablets Portrait / Large Phones
   ============================================ */
@media (max-width: 768px) {
    /* -- Header -- */
    .hamburger {
        display: flex;
    }

    header .container {
        flex-wrap: wrap;
    }

    nav {
        display: none;
        width: 100%;
        order: 3;
        margin: 10px 0 0;
    }

    nav.nav-open {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 8px 0;
        display: block;
    }

    nav ul li.mobile-only {
        display: list-item;
    }

    nav ul li.mobile-only:first-of-type {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .auth-buttons {
        display: none;
    }

    .logo img {
        height: 56px;
    }

    /* -- Hero -- */
    #hero .container {
        padding: 0 30px;
    }

    .hero-content {
        max-width: 100%;
    }

    #hero h1 {
        font-size: 2.75rem;
        line-height: 1.15;
        margin-bottom: 20px;
    }

    #hero .hero-tagline {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 14px 28px;
        font-size: 1rem;
    }

    /* -- Sections -- */
    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    /* -- Features: Stack vertically -- */
    .feature-subsection,
    .feature-subsection.reverse {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 50px;
    }

    .feature-text h3 {
        font-size: 1.6rem;
    }

    .feature-image img {
        max-width: 100%;
    }

    /* -- Pricing -- */
    .pricing-embed-container iframe {
        min-height: 500px;
    }

    /* -- Video control -- */
    .video-control {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }

    .video-control svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   BREAKPOINT: 480px — Small Mobile Phones
   ============================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo img {
        height: 44px;
    }

    #hero .container {
        padding: 0 20px;
    }

    #hero h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 16px;
    }

    #hero .hero-tagline {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 24px;
    }

    .hero-cta .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    section {
        padding: 30px 0;
    }

    section h2 {
        font-size: 1.6rem;
        margin-bottom: 24px;
    }

    .feature-text h3 {
        font-size: 1.35rem;
    }

    .feature-text p {
        font-size: 0.95rem;
    }

    .feature-text ul li {
        font-size: 0.9rem;
    }

    .feature-subsection,
    .feature-subsection.reverse {
        margin-bottom: 40px;
    }

    .btn-start-app {
        font-size: 0.7rem;
        gap: 14px;
        padding: 0 14px;
        padding-right: 0;
    }

    .profile-icon {
        width: 30px;
        height: 30px;
    }

    .profile-icon svg {
        width: 20px;
        height: 20px;
    }

    .pricing-embed-container iframe {
        min-height: 450px;
    }

    .video-control {
        width: 36px;
        height: 36px;
        bottom: 15px;
        right: 15px;
    }

    .video-control svg {
        width: 18px;
        height: 18px;
    }
}

footer {
    background: linear-gradient(
        to bottom,
        rgba(20, 20, 40, 0.05) 0%,
        rgba(20, 20, 40, 0.15) 100%
    );
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    opacity: 0.7;
    pointer-events: none;
}

.footer-divider {
    width: 1px;
    height: 120px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
}

.footer-right {
    display: flex;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
}

.footer-copyright p {
    margin: 0;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-divider {
        width: 120px;
        height: 1px;
        background: linear-gradient(
            to right,
            transparent 0%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 100%
        );
    }
    
    .footer-links {
        align-items: center;
        gap: 15px;
    }
    
    .footer-logo img {
        height: 50px;
    }
}
