/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary: #ff3b30;
    --primary-glow: rgba(255, 59, 48, 0.5);
    --secondary: #8e0000;
    --dark: #0a0e14;
    --dark-surface: #141a25;
    --light: #f4f7f6;
    --grey: #a0aec0;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 38px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

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

.lang-switch {
    display: flex;
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-switch:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-login {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-login:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 5% 60px;
    overflow: hidden;
}

/* Hero Background Layers */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: linear-gradient(rgba(10, 14, 20, 0.6), rgba(10, 14, 20, 0.6)), url('marketing/hero.png');
    background-size: cover;
    background-position: center;
    /* Removed filter to match client_landing.html */
}

.hero-overlay {
    display: none;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
    animation: fadeIn 1s ease-out;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.05;
    background: linear-gradient(to bottom right, #ffffff 40%, #a0aec0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.3rem;
    color: var(--grey);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

.cta-button {
    display: inline-block;
    padding: 20px 48px;
    background: var(--gradient-main);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(255, 59, 48, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(255, 59, 48, 0.5);
}

/* --- Features --- */
.features {
    padding: 120px 5%;
    background-color: var(--dark);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.section-subtitle {
    text-align: center;
    color: var(--grey);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 80px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--dark-surface);
    padding: 50px 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.04), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background: rgba(255, 59, 48, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: white;
}

.feature-card p {
    color: var(--grey);
    font-size: 1rem;
    line-height: 1.7;
}

/* --- Pricing --- */
.pricing {
    padding: 120px 5%;
    background: linear-gradient(to bottom, var(--dark), var(--dark-surface));
}

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

.price-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
    position: relative;
}

.price-card.featured {
    background: rgba(255, 59, 48, 0.05);
    /* Slight tint for featured */
    border-color: rgba(255, 59, 48, 0.3);
    transform: scale(1.05);
    z-index: 2;
}

.price-card:hover {
    transform: translateY(-5px) scale(1.02);
    /* For featured, need to maintain its scale boost */
}

.price-card.featured:hover {
    transform: translateY(-5px) scale(1.07);
}

.card-header {
    margin-bottom: 30px;
    text-align: center;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 10px;
}

.card-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-heading);
}

.feature-list {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.feature-list li {
    margin-bottom: 15px;
    color: var(--grey);
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.btn-price {
    display: block;
    width: 100%;
    padding: 16px;
    text-align: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.price-card.featured .btn-price {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(255, 59, 48, 0.3);
}

.btn-price:hover {
    background: white;
    color: var(--dark);
}

.price-card.featured .btn-price:hover {
    background: #ff6b61;
    color: white;
}


/* --- Footer --- */
footer {
    padding: 80px 5% 40px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: var(--dark);
}

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

.social-links {
    display: flex;
    gap: 20px;
}

.copyright {
    color: var(--grey);
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--grey);
    margin: 0 15px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- Header Layout Updates --- */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Lang Switch Horizontal */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    /* Match handytools slightly */
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.1);
}

#lang-label {
    font-size: 0.9rem;
    font-weight: 600;
}


/* --- Mobile Dropdown Menu --- */
.mobile-dropdown {
    position: absolute;
    top: 100%;
    /* Directly below header */
    left: 0;
    width: 100%;
    background: rgba(10, 14, 20, 0.98);
    /* Almost solid dark */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 20px 5%;
    display: flex;
    flex-direction: column;

    /* Animation State */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 999;
}

.mobile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.mobile-nav-links a {
    font-size: 1.2rem;
    gap: 10px;
    color: white;
    /* Teal color like in example */
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
}

.mobile-footer-text {
    font-size: 0.9rem;
    color: var(--grey);
    line-height: 1.5;
}

/* Mobile Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background-color: var(--light);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Animations for Hamburger */
.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .hamburger-menu {
        display: flex;
        /* Ensure visible */
    }

    header {
        padding: 15px 5%;
        /* Smaller padding */
    }

    .nav-actions {
        /* On mobile, we might need to separate the nav links from the login button/lang switch or group them */
        /* For simplicity, we will assume nav-links is the main menu */
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 14, 20, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: right 0.4s ease;
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .showcase-text h2 {
        font-size: 2rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .price-card.featured {
        transform: scale(1);
    }

    .hero {
        padding-top: 100px;
    }
}

/* Hide mobile elements on desktop */
@media (min-width: 769px) {

    .mobile-menu-drawer,
    .mobile-menu-overlay,
    .hamburger-menu {
        display: none;
    }
}