:root {
    --bg-color: #fcfdfe;
    --card-bg: rgba(255, 255, 255, 0.65);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent-color: #0ea5e9;
    --accent-dark: #0369a1;
    --accent-glow: rgba(14, 165, 233, 0.08);
    --font-family: 'Assistant', sans-serif;
    --font-heading: 'Assistant', sans-serif;
    --inner-border: rgba(255, 255, 255, 0.9);
    --outer-border: rgba(14, 165, 233, 0.1);
    --shadow-soft: 0 10px 30px -10px rgba(0, 0, 0, 0.04);
    --shadow-deep: 0 40px 80px -20px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
    /* Enable scrollbars when content overflows */
    position: relative;
}

/* Technical Background Pattern */
body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 2px 2px, rgba(14, 165, 233, 0.03) 2px, transparent 0);
    background-size: 40px 40px;
    z-index: -2;
}

/* Background Interactive Glows */
.background-glow {
    position: absolute;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    top: -10%;
    right: -10%;
    z-index: -1;
    filter: blur(120px);
    animation: pulse-slow 15s infinite alternate ease-in-out;
}

.background-glow::after {
    content: '';
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.03) 0%, transparent 70%);
    bottom: -20%;
    left: -30%;
    filter: blur(100px);
}

@keyframes pulse-slow {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1) translate(-50px, 30px);
        opacity: 1;
    }
}

.container {
    padding: 1rem 2rem 3rem;
    /* Reduced top padding by half */
    width: 100%;
    max-width: 680px;
    z-index: 10;
    margin-top: 90px;
    /* Adjusted for compact nav */
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(40px) saturate(160%);
    -webkit-backdrop-filter: blur(40px) saturate(160%);

    /* Sophisticated Layered Border */
    position: relative;
    border-radius: 40px;
    padding: 1.5rem 4rem 3rem;
    /* Reduced top padding by half */
    text-align: center;
    box-shadow: var(--shadow-soft), var(--shadow-deep);

    /* Animation */
    opacity: 0;
    animation: reveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 1px;
    background: linear-gradient(135deg, var(--inner-border), var(--outer-border));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

@keyframes reveal {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Old header styles removed or adjusted */
header {
    margin-bottom: 0;
    display: none;
    /* Hide if empty */
}

.tagline {
    font-size: 0.875rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-family: var(--font-heading);
    margin-top: 1rem;
    display: inline-block;
}

.content {
    margin-bottom: 4.5rem;
}

.content h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    /* Changed to Blue */
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.message {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 80%;
    margin: 0 auto 2.5rem;
}

/* Newsletter styles */
.newsletter-box {
    max-width: 480px;
    margin: 0 auto;
}

#notify-form {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem;
    border-radius: 100px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--inner-border);
    backdrop-filter: blur(10px);
}

.email-input {
    flex: 1;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-family: var(--font-family);
    font-size: 1rem;
    outline: none;
    background: transparent;
    color: var(--text-main);
}

.email-input::placeholder {
    color: #cbd5e1;
}

.notify-btn {
    background: var(--text-main);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.notify-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.25);
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-btn {
    font-size: 1rem;
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 3rem;
    border: 1px solid var(--text-main);
    border-radius: 100px;
    background: var(--text-main);
    box-shadow: 0 4px 15px -1px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(14, 165, 233, 0.3);
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.contact-details {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 400;
}

/* Animations */
.animate-text {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.content h2 {
    animation-delay: 0.6s;
}

.message {
    animation-delay: 0.8s;
}

.newsletter-box {
    animation-delay: 1s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Navigation */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid var(--outer-border);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 2rem;
    /* Minimal vertical padding */
    height: auto;
    /* Let content determine height */
    min-height: 80px;
    /* Further reduced for smaller logo */
}

.nav-logo {
    height: auto;
    max-height: 80px;
    /* Reduced by half again */
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    display: block;
    padding: 1.5rem 0;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--accent-color);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 160px;
    box-shadow: var(--shadow-deep);
    border-radius: 12px;
    padding: 0.5rem;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    border: 1px solid var(--inner-border);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.9rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.dropdown-menu li a:hover {
    background: var(--bg-color);
    color: var(--accent-color);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 24px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: var(--shadow-deep);
}

.large-modal {
    max-width: 800px;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--inner-border);
}

.close-modal,
.close-dashboard {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.input-group {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--text-muted);
    outline: none;
}

.action-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
}

.error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

/* Dashboard */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.upload-section {
    border: 2px dashed var(--accent-glow);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    transition: all 0.2s;
}

.upload-section.dragover {
    background: var(--accent-glow);
    border-color: var(--accent-color);
}

.upload-zone {
    cursor: pointer;
    color: var(--accent-color);
    font-weight: 600;
}

.file-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid transparent;
}

.file-item:hover {
    border-color: var(--accent-glow);
    background: white;
}

.file-name {
    font-weight: 500;
    color: var(--text-main);
}

.file-actions {
    display: flex;
    gap: 1rem;
}

.text-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
}

.delete-btn {
    color: #ef4444;
}

@media (max-width: 640px) {
    .card {
        padding: 4rem 2rem;
        border-radius: 32px;
    }

    .content h2 {
        font-size: 1.75rem;
    }

    .message {
        max-width: 100%;
    }

    #notify-form {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
        gap: 1rem;
    }

    .email-input {
        background: white;
        box-shadow: var(--shadow-soft);
        text-align: center;
    }

    .notify-btn {
        width: 100%;
    }
}