:root {
    /* Color Palette - Updated for Premium Teal/Dark Theme */
    --primary: #10B981;
    /* Emerald/Teal from sample */
    --primary-hover: #059669;
    --secondary: #34D399;
    --dark-bg: #062221;
    /* Deep dark teal background */
    --dark-card: rgba(255, 255, 255, 0.05);
    --white: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);

    /* Gradients */
    --grad-bg: radial-gradient(circle at top right, #0D4B48 0%, #062221 100%);
    --grad-primary: linear-gradient(135deg, #10B981 0%, #34D399 100%);

    /* Shadows */
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

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

/* Glassmorphism Updated */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
}

.white-card {
    background: var(--white);
    border-radius: 2rem;
    color: #1e293b;
    padding: 2.5rem;
    box-shadow: var(--shadow-premium);
}

/* Header/Navbar */
.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    height: 70px;
    background: rgba(6, 34, 33, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .logo img {
    height: 35px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-item {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--white);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-left: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Mobile Menu Active States */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Responsive Header */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #062221;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition);
        backdrop-filter: blur(20px);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

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

    .nav-auth {
        border-left: none;
        flex-direction: column;
        width: 100%;
        padding: 0;
        margin: 0;
    }
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-content h1 span {
    color: var(--primary);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 550px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    border-radius: 3rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: none;
    gap: 0.8rem;
}

.btn-primary {
    background: var(--grad-primary);
    color: #062221;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4);
}

/* Features List in White Card */
.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.check-icon {
    width: 24px;
    height: 24px;
    background: #DCFCE7;
    color: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.stat-card {
    padding: 2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        margin: 0 auto 3rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

    .stats-grid {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }

    .btn {
        width: 100%;
    }
}

/* Signature Hero Visual - Updated */
.hero-signature-visual {
    background: #0F172A;
    border-radius: 1rem;
    padding: 1.5rem;
    width: 320px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Inter', sans-serif;
    transform: rotate(-3deg);
    transition: var(--transition);
}

.hero-signature-visual:hover {
    transform: rotate(0deg) scale(1.02);
}

.hsv-header {
    text-align: center;
    color: #F8FAFC;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.hsv-subtext {
    text-align: center;
    color: #64748B;
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
}

.hsv-box {
    border: 2px dashed #334155;
    border-radius: 0.75rem;
    height: 120px;
    position: relative;
    margin-bottom: 3rem; /* Space for the floating badge */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.5);
}

.hsv-pen-bg {
    width: 48px;
    height: 48px;
    color: #1E293B;
    position: absolute;
    opacity: 0.5;
}

.hsv-signature {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hsv-sig-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: signAnimation 4s ease-in-out infinite;
}

@keyframes signAnimation {
    0% { stroke-dashoffset: 1000; opacity: 0; }
    10% { opacity: 1; }
    70% { stroke-dashoffset: 0; opacity: 1; }
    90% { stroke-dashoffset: 0; opacity: 0; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

.hsv-badge {
    position: absolute;
    bottom: 85px; /* Adjust to overlap the box slightly */
    left: -10px;
    background: #1E293B;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 10;
    animation: floatBadge 6s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.hsv-badge-icon {
    width: 32px;
    height: 32px;
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hsv-badge-content {
    display: flex;
    flex-direction: column;
}

.hsv-badge-label {
    font-size: 0.7rem;
    color: #64748B;
}

.hsv-badge-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: #F8FAFC;
}

.hsv-button {
    background: #2563EB; /* Bright Blue */
    color: white;
    text-align: center;
    padding: 0.8rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: default;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.3);
}