:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --background: #0f172a;
    --surface: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent: #06b6d4;
    --success: #10b981;
    --error: #ef4444;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Header */
/* Main Header - Global */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand-link {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    text-decoration: none;
}

.brand-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo-img {
    height: 40px;
    /* Reduced specific height for professional look */
    width: auto;
    object-fit: contain;
}

.brand-badge {
    background: #eef2ff;
    color: var(--primary);
    border: 1px solid #c7d2fe;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
    transform: translateY(-2px);
}

.brand-slogan {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

/* Navigation Links */
.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-left: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #4b5563;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.375rem;
}

.nav-link:hover {
    color: var(--primary);
    background: #f8fafc;
}

/* User & Auth area */
.auth-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: auto;
}

.btn-auth-login {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: #4b5563;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-auth-login:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    color: #1f2937;
}

.btn-auth-signup {
    padding: 0.5rem 1rem;
    text-decoration: none;
    color: white;
    background: var(--primary);
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-auth-signup:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.user-info-badge {
    text-align: right;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    min-width: 140px;
}

.user-name {
    color: #1e293b;
    font-weight: 700;
    display: block;
    font-size: 0.9rem;
}

.user-email {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: #fecaca;
}

/* Mobile Header Response */
@media (max-width: 900px) {
    .main-header {
        padding: 0.75rem 1rem;
    }

    .nav-menu {
        display: none;
        /* Hide standard nav on mobile for now - consider hamburger later */
    }

    .brand-slogan {
        display: none;
    }

    .brand-container {
        gap: 0.5rem;
    }

    .auth-container {
        gap: 0.5rem;
    }

    .btn-auth-login {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .btn-auth-signup {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Container adjustment for fixed header */
/* Container adjustment for fixed header */
.container {
    min-height: 100vh;
    padding-top: 2rem;
    /* Reduced from 150px as header is now sticky */
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    bottom: -200px;
    right: -200px;
    animation-delay: 5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* Main Content */
.content {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
}

/* Badge - Highlighted */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid var(--primary);
    border-radius: var(--radius-full);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a5b4fc;
    margin-bottom: var(--spacing-lg);
    animation: fadeIn 1s ease 0.2s both;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Heading */
.heading {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1s ease 0.4s both;
}

/* Description */
.description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
    animation: fadeIn 1s ease 0.6s both;
}

.hide-mobile {
    display: inline;
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    animation: fadeIn 1s ease 0.8s both;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.feature-text h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.feature-text p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Email Form */
.email-form {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem !important;
    margin: 0 auto var(--spacing-xl) auto;
    animation: fadeIn 1s ease 1s both;
    width: 100%;
    max-width: 600px;
}

.email-form h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.input-group {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: 0;
}

.input-group input {
    flex: 1;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.input-group input::placeholder {
    color: var(--text-secondary);
}

.btn-primary {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 6px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5, #4338ca);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary.loading .btn-text {
    display: none;
}

.btn-primary .btn-loading {
    display: none;
}

.btn-primary.loading .btn-loading {
    display: inline;
}

/* Specific style for Notify Button as requested */
.email-form .btn-primary {
    background: white;
    color: var(--primary);
    font-weight: 800;
    text-shadow: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.email-form .btn-primary:hover {
    background: #f1f5f9;
    color: var(--primary-dark);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.form-message {
    font-size: 0.875rem;
    margin-top: var(--spacing-sm);
    min-height: 1.5rem;
}

.form-message.success {
    color: var(--success);
}

.form-message.error {
    color: var(--error);
}

/* Social Links */
.social-links {
    margin-bottom: var(--spacing-xl);
    animation: fadeIn 1s ease 1.2s both;
}

.social-links p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.social-icons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.social-icon:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Footer */
.footer {
    color: var(--text-secondary);
    font-size: 0.875rem;
    animation: fadeIn 1s ease 1.4s both;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding-top: 2rem;
    }

    .heading {
        font-size: 2rem;
    }

    .description {
        font-size: 1rem;
    }

    .hide-mobile {
        display: none;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .input-group {
        flex-direction: column;
    }

    .email-form {
        padding: var(--spacing-lg);
    }

    .main-header {
        height: 70px;
        padding: 0 1rem;
    }

    .logo-container {
        height: 100%;
    }

    .logo-container img {
        max-height: 40px !important;
    }
}

@media (max-width: 480px) {
    .heading {
        font-size: 1.75rem;
    }
}

/* Text Button */
.btn-text {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.btn-text:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Navigation Button */
.btn-nav {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-nav:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

/* Positioning for header Nav */
.header-nav {
    position: absolute;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2000;
}

@media (max-width: 768px) {
    .header-nav {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-left: auto;
        /* Push to right in flex container */
    }

    .main-header {
        flex-direction: row;
        /* Keep row direction for mobile header */
        justify-content: space-between;
    }
}

/* New Classes replacing Inline Styles */

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0.5rem 1rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 500;
    color: #a5b4fc;
    margin: 0 0 1rem 0;
}

.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: left;
}

.glass-panel {
    background: rgba(30, 41, 59, 0.7);
    /* Slightly darker/more opaque for contrast */
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel:hover {
    box-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.15);
}

.tool-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
}

.tool-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tool-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tool-description {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.tool-list {
    list-style: none;
    margin-bottom: 1.5rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.tool-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-full {
    width: 100%;
    text-align: center;
    text-decoration: none;
    display: block;
    margin-top: 1rem;
}

.btn-blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.btn-blue:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.btn-purple {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.btn-purple:hover {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Mobile Navigation Overrides */
@media (max-width: 900px) {
    .main-header {
        position: relative;
        /* Scrolls away with content */
        padding: 0.75rem 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
        height: auto;
        /* Allow natural height */
    }

    .brand-container {
        width: 100%;
        justify-content: center;
    }

    .brand-slogan {
        display: none;
    }

    .nav-menu {
        display: flex;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        margin-left: 0;
        gap: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-link {
        font-size: 0.8rem;
        white-space: nowrap;
        background: #f1f5f9;
        padding: 0.35rem 0.75rem;
        border-radius: 999px;
        /* Pill shape */
    }

    .auth-container {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        border-top: 1px solid #f1f5f9;
        padding-top: 0.75rem;
        gap: 0.75rem;
    }

    .btn-auth-login,
    .btn-auth-signup {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        flex: 1;
        text-align: center;
    }

    /* Additional spacing for body content since header is relative now */
    body {
        padding-top: 0 !important;
    }

    .container {
        padding-top: 0.5rem !important;
        /* Minimal padding since header is not fixed */
    }
}