/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #0a0e27;
    --light-text: #ffffff;
    --muted-text: #a0a9c9;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --success-color: #4ade80;
    --error-color: #f87171;
}

/* Light mode variables */
[data-theme="light"] {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --secondary-gradient: linear-gradient(135deg, #ec4899 0%, #ef4444 100%);
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --dark-bg: #f8fafc;
    --light-text: #0f172a;
    --muted-text: #64748b;
    --glass-bg: rgba(0, 0, 0, 0.05);
    --glass-border: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        -45deg,
        #0a0e27,
        #1a1f3a,
        #2d1b69,
        #0f172a
    );
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -2;
    transition: all 0.3s ease;
}

[data-theme="light"] body::before {
    background: linear-gradient(
        -45deg,
        #f8fafc,
        #e2e8f0,
        #cbd5e1,
        #f1f5f9
    );
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particles container */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

/* Background geometric shapes */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: shapeFloat 20s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(-45deg, #4facfe, #00f2fe);
    border-radius: 50% 50% 20% 80%;
    bottom: 20%;
    left: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    border-radius: 20% 80% 50% 50%;
    top: 60%;
    right: 20%;
    animation-delay: 10s;
}

.shape-4 {
    width: 180px;
    height: 180px;
    background: linear-gradient(225deg, #667eea, #4facfe);
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    top: 20%;
    left: 20%;
    animation-delay: 15s;
}

@keyframes shapeFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg);
        opacity: 0.2;
    }
    50% {
        transform: translate(-10px, 10px) rotate(180deg);
        opacity: 0.15;
    }
    75% {
        transform: translate(15px, 5px) rotate(270deg);
        opacity: 0.25;
    }
}

[data-theme="light"] .shape {
    opacity: 0.05;
}

/* Dynamic grid background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

[data-theme="light"] .grid-background {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 20s infinite;
    transition: background 0.3s ease;
}

[data-theme="light"] .particle {
    background: rgba(0, 0, 0, 0.3);
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    padding: 1.5rem 0;
    position: relative;
    z-index: 100;
    flex-shrink: 0;
    transform: translateY(0);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    padding: 0;
    min-height: 60px;
}

.brand-section {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
    justify-content: center;
}

.logo-text {
    font-size: 2.25rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.coming-soon-badge {
    font-size: 0.75rem;
    color: var(--muted-text);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--glass-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.coming-soon-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Theme Toggle */
.theme-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: var(--light-text);
    align-self: center;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.sun-icon, .moon-icon {
    transition: all 0.3s ease;
    position: absolute;
}

[data-theme="light"] .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.5);
}

[data-theme="light"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(-180deg) scale(0.5);
}

/* 3D Atomic Logo */
.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
    perspective-origin: center center;
}

.atomic-logo-3d {
    width: 280px;
    height: 280px;
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoFloat 6s ease-in-out infinite;
}

.atomic-logo-3d:hover {
    transform: scale(1.1) rotateY(20deg);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotateY(0deg);
    }
    50% {
        transform: translateY(-10px) rotateY(180deg);
    }
}

.logo-scene {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

/* Central Nucleus - 3D */
.nucleus-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    z-index: 10;
}

.nucleus-core {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: nucleusRotate 4s linear infinite;
}

@keyframes nucleusRotate {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    25% { transform: rotateX(90deg) rotateY(90deg); }
    50% { transform: rotateX(180deg) rotateY(180deg); }
    75% { transform: rotateX(270deg) rotateY(270deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.nucleus-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 30%, #4facfe 70%, #00f2fe 100%);
    border-radius: 50%;
    transform-style: preserve-3d;
    box-shadow: 
        0 0 40px rgba(102, 126, 234, 0.9),
        inset 0 0 30px rgba(255, 255, 255, 0.3),
        inset 20px 20px 30px rgba(255, 255, 255, 0.1),
        inset -20px -20px 30px rgba(0, 0, 0, 0.2),
        0 15px 30px rgba(0, 0, 0, 0.4);
    animation: nucleusPulse 2s ease-in-out infinite;
}

.nucleus-inner::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 15%;
    width: 30%;
    height: 30%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    border-radius: 50%;
    transform: translateZ(15px);
}

.nucleus-inner::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 20%;
    width: 20%;
    height: 20%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    transform: translateZ(10px);
}

.nucleus-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: nucleusGlow 3s ease-in-out infinite alternate;
}

@keyframes nucleusPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 0 30px rgba(102, 126, 234, 0.8),
            inset 0 0 20px rgba(255, 255, 255, 0.2),
            0 10px 20px rgba(0, 0, 0, 0.3);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 
            0 0 50px rgba(102, 126, 234, 1),
            inset 0 0 30px rgba(255, 255, 255, 0.3),
            0 15px 30px rgba(0, 0, 0, 0.4);
    }
}

@keyframes nucleusGlow {
    0% { opacity: 0.3; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.2); }
}

/* Electron Orbit System */
.orbit-system {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
}

.electron-orbit {
    position: absolute;
    border: 3px solid rgba(79, 172, 254, 0.4);
    border-radius: 50%;
    transform-style: preserve-3d;
    box-shadow: 0 0 20px rgba(79, 172, 254, 0.3);
}

[data-theme="light"] .electron-orbit {
    border-color: rgba(79, 46, 229, 0.4);
    box-shadow: 0 0 20px rgba(79, 46, 229, 0.3);
}

.orbit-x {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg);
    animation: orbitRotateX 8s linear infinite;
}

.orbit-y {
    width: 240px;
    height: 240px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(60deg) rotateY(30deg);
    animation: orbitRotateY 12s linear infinite reverse;
}

.orbit-z {
    width: 280px;
    height: 280px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(30deg) rotateY(60deg);
    animation: orbitRotateZ 10s linear infinite;
}

@keyframes orbitRotateX {
    0% { transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(360deg) rotateY(0deg) rotateZ(0deg); }
}

@keyframes orbitRotateY {
    0% { transform: translate(-50%, -50%) rotateX(60deg) rotateY(30deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(60deg) rotateY(30deg) rotateZ(360deg); }
}

@keyframes orbitRotateZ {
    0% { transform: translate(-50%, -50%) rotateX(30deg) rotateY(60deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(30deg) rotateY(60deg) rotateZ(360deg); }
}

/* Electrons */
.electron {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 15px currentColor;
    animation: electronGlow 2s ease-in-out infinite alternate;
}

.electron-1 {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, #4facfe, #0ea5e9);
    color: #4facfe;
}

.electron-2 {
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, #00f2fe, #06b6d4);
    color: #00f2fe;
}

.electron-3 {
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, #f093fb, #ec4899);
    color: #f093fb;
}

.electron-4 {
    top: -6px;
    left: 20%;
    transform: translateX(-50%);
    background: radial-gradient(circle, #667eea, #4f46e5);
    color: #667eea;
}

.electron-5 {
    top: -6px;
    left: 80%;
    transform: translateX(-50%);
    background: radial-gradient(circle, #764ba2, #7c3aed);
    color: #764ba2;
}

@keyframes electronGlow {
    0% { 
        box-shadow: 0 0 15px currentColor;
        transform: translateX(-50%) scale(1);
    }
    100% { 
        box-shadow: 0 0 25px currentColor;
        transform: translateX(-50%) scale(1.2);
    }
}

/* Energy Rings */
.energy-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.energy-ring {
    position: absolute;
    border: 1px solid transparent;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: energyPulse 4s ease-in-out infinite;
}

.ring-1 {
    width: 150px;
    height: 150px;
    border-color: rgba(79, 172, 254, 0.2);
    animation-delay: 0s;
}

.ring-2 {
    width: 220px;
    height: 220px;
    border-color: rgba(240, 147, 251, 0.15);
    animation-delay: 1.3s;
}

.ring-3 {
    width: 300px;
    height: 300px;
    border-color: rgba(0, 242, 254, 0.1);
    animation-delay: 2.6s;
}

@keyframes energyPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}


/* Main content */
main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
    min-height: 0; /* Allows flex shrinking */
}

.content-wrapper {
    text-align: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 1rem;
    min-height: fit-content; /* Ensure content is never cut off */
}

/* Badge */
.badge-wrapper {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out 0.5s both;
    position: relative;
}

.badge-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: badgeGlow 3s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes badgeGlow {
    0% { opacity: 0.3; transform: translate(-50%, -50%) scale(0.8); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

/* Headings */
.main-heading {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.7s both;
    position: relative;
}

.main-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 80px;
    height: 2px;
    background: var(--accent-gradient);
    transform: translateX(-50%) scaleX(0);
    animation: underlineExpand 1s ease-out 1.2s both;
}

@keyframes underlineExpand {
    0% { transform: translateX(-50%) scaleX(0); }
    100% { transform: translateX(-50%) scaleX(1); }
}

.heading-line {
    display: block;
    overflow: hidden;
}

.word-animate {
    display: inline-block;
    margin-right: 0.5rem;
    animation: wordSlideUp 0.8s ease-out both;
    opacity: 0;
}

.heading-line:nth-child(1) .word-animate:nth-child(1) { animation-delay: 0.9s; }
.heading-line:nth-child(1) .word-animate:nth-child(2) { animation-delay: 1.1s; }
.heading-line:nth-child(1) .word-animate:nth-child(3) { animation-delay: 1.3s; }
.heading-line:nth-child(2) .word-animate:nth-child(1) { animation-delay: 1.5s; }

@keyframes wordSlideUp {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text .word-animate {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Description */
.description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--muted-text);
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

/* Email form */
.email-form-wrapper {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.email-form {
    max-width: 450px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 100; /* Ensure form is always on top */
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    animation: slideUpIn 1s ease-out 1.4s both;
}

.input-container {
    position: relative;
    flex: 1;
}

.email-input {
    width: 100%;
    padding: 1.2rem 1.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    color: var(--light-text);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    min-width: 280px;
}

.email-input::placeholder {
    color: var(--muted-text);
}

.email-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.input-highlight {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 0.75rem;
    background: var(--accent-gradient);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
    filter: blur(20px);
}

.email-input:focus + .input-highlight {
    opacity: 0.3;
}

.submit-btn {
    padding: 1.2rem 2.2rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 0.75rem;
    color: var(--light-text);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

.btn-particles {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn:hover .btn-particles {
    opacity: 1;
}

/* Trusted By Section */
.trusted-by {
    margin-top: 2rem;
    text-align: center;
    animation: fadeInUp 1s ease-out 1.0s both;
}

.trusted-text {
    font-size: 0.875rem;
    color: var(--muted-text);
    margin-bottom: 1rem;
}

.count-up {
    color: var(--light-text);
    font-weight: 600;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-text);
    background: var(--glass-bg);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.trust-item svg {
    width: 16px;
    height: 16px;
    color: var(--accent-gradient);
}

.form-message {
    text-align: center;
    font-size: 0.875rem;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-message.show {
    opacity: 1;
}

.form-message.success {
    color: var(--success-color);
}

.form-message.error {
    color: var(--error-color);
}

/* Features preview */
.features-preview {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-4px) scale(1.05);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(10deg) scale(1.1);
}

.feature-card span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-text);
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
}

.footer-text {
    color: var(--muted-text);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-text {
    color: var(--muted-text);
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Extra large desktop screens */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    .atomic-logo-3d {
        width: 320px;
        height: 320px;
    }
    
    .main-heading {
        font-size: clamp(3rem, 5vw, 4.5rem);
    }
    
    .description {
        font-size: 1.3rem;
        max-width: 700px;
    }
    
    .email-input {
        font-size: 1.2rem;
        padding: 1.4rem 2rem;
    }
    
    .submit-btn {
        font-size: 1.2rem;
        padding: 1.4rem 2.5rem;
    }
}

/* Large desktop screens */
@media (min-width: 1201px) and (max-width: 1440px) {
    .atomic-logo-3d {
        width: 300px;
        height: 300px;
    }
    
    .main-heading {
        font-size: clamp(2.8rem, 6vw, 4rem);
    }
    
    .description {
        font-size: 1.2rem;
        max-width: 600px;
    }
}

/* Standard desktop screens */
@media (min-width: 993px) and (max-width: 1200px) {
    .container {
        padding: 1rem 1.5rem;
        min-height: 100vh;
    }
    
    main {
        padding: 1rem 0;
    }
    
    .atomic-logo-3d {
        width: 280px;
        height: 280px;
    }
    
    .main-heading {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
    }
    
    .description {
        font-size: 1.1rem;
        max-width: 550px;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
}

/* Desktop specific styles */
@media (min-width: 769px) {
    body {
        min-height: 100vh;
        overflow-x: hidden; /* Prevent horizontal scroll only */
        overflow-y: auto; /* Allow vertical scroll when needed */
    }
    
    .container {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }
    
    main {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: calc(100vh - 160px);
        padding: 1rem 0;
    }
    
    .content-wrapper {
        gap: 2.5rem;
        max-height: none; /* Remove height restrictions */
    }
    
    /* Ensure form is always accessible */
    .input-group {
        position: relative;
        z-index: 10;
    }
}

/* Large tablets */
@media (max-width: 992px) and (min-width: 769px) {
    body {
        overflow-y: auto; /* Allow scroll on tablets too */
    }
    
    .container {
        padding: 1rem 1.5rem;
        min-height: 100vh;
    }
    
    main {
        padding: 1rem 0;
    }
    
    .atomic-logo-3d {
        width: 260px;
        height: 260px;
    }
    
    .main-heading {
        font-size: clamp(2.2rem, 7vw, 3.2rem);
    }
    
    .description {
        font-size: 1.05rem;
        max-width: 500px;
    }
    
    .content-wrapper {
        gap: 2rem;
        padding: 1rem;
    }
    
    .email-input {
        font-size: 1.05rem;
        padding: 1.1rem 1.7rem;
    }
    
    .submit-btn {
        font-size: 1.05rem;
        padding: 1.1rem 2.1rem;
    }
}

/* Tablets and small laptops */
@media (max-width: 768px) and (min-width: 577px) {
    .container {
        padding: 0.8rem 1.2rem;
        min-height: 100vh;
    }
    
    .header-content {
        padding: 0;
    }
    
    .atomic-logo-3d {
        width: 240px;
        height: 240px;
    }
    
    .main-heading {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    
    .description {
        font-size: 1rem;
        max-width: 450px;
    }
    
    .input-group {
        flex-direction: row;
        gap: 0.8rem;
    }
    
    .submit-btn {
        flex-shrink: 0;
        justify-content: center;
    }
    
    .content-wrapper {
        gap: 1.8rem;
        padding-bottom: 1rem;
    }
    
    .email-input {
        min-width: auto;
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .submit-btn {
        font-size: 1rem;
        padding: 1rem 1.8rem;
    }
    
    main {
        padding: 0.5rem 0;
    }
    
    header {
        padding: 1rem 0 0.5rem 0;
    }
    
    footer {
        padding: 0.5rem 0;
        margin-top: 1rem;
    }
}

/* Mobile phones large */
@media (max-width: 576px) {
    .container {
        padding: 0.5rem 1rem;
        min-height: 100vh;
    }
    
    .header-content {
        padding: 0;
    }
    
    .atomic-logo-3d {
        width: 200px;
        height: 200px;
    }
    
    .main-heading {
        font-size: clamp(1.8rem, 9vw, 2.5rem);
    }
    
    .description {
        font-size: 0.95rem;
        line-height: 1.5;
        max-width: 400px;
    }
    
    .input-group {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .content-wrapper {
        gap: 1.5rem;
        padding-bottom: 1rem;
    }
    
    .email-input {
        min-width: auto;
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .submit-btn {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
    
    main {
        padding: 0.5rem 0;
    }
    
    header {
        padding: 1rem 0 0.5rem 0;
    }
    
    footer {
        padding: 0.5rem 0;
        margin-top: 1rem;
    }
}

/* Small mobile phones */
@media (max-width: 400px) {
    .logo-text {
        font-size: 1.6rem;
    }
    
    .coming-soon-badge {
        font-size: 0.6rem;
        padding: 0.15rem 0.5rem;
    }
    
    .atomic-logo-3d {
        width: 160px;
        height: 160px;
    }
    
    .nucleus-3d {
        width: 30px;
        height: 30px;
    }
    
    .orbit-x {
        width: 90px;
        height: 90px;
    }
    
    .orbit-y {
        width: 110px;
        height: 110px;
    }
    
    .orbit-z {
        width: 130px;
        height: 130px;
    }
    
    .main-heading {
        font-size: clamp(1.5rem, 10vw, 2.2rem);
    }
    
    .description {
        font-size: 0.85rem;
        line-height: 1.4;
        max-width: 300px;
    }
    
    .email-input,
    .submit-btn {
        font-size: 0.875rem;
        padding: 0.9rem 1.2rem;
    }
    
    .content-wrapper {
        gap: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .container {
        padding: 0.3rem 0.8rem;
        min-height: 100vh;
    }
    
    header {
        padding: 0.8rem 0 0.3rem 0;
    }
    
    footer {
        padding: 0.3rem 0;
        margin-top: 0.5rem;
    }
    
    main {
        padding: 0.3rem 0;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .logo-text {
        font-size: 1.4rem;
    }
    
    .coming-soon-badge {
        font-size: 0.55rem;
        padding: 0.1rem 0.4rem;
    }
    
    .atomic-logo-3d {
        width: 140px;
        height: 140px;
    }
    
    .nucleus-3d {
        width: 25px;
        height: 25px;
    }
    
    .orbit-x {
        width: 80px;
        height: 80px;
    }
    
    .orbit-y {
        width: 100px;
        height: 100px;
    }
    
    .orbit-z {
        width: 120px;
        height: 120px;
    }
    
    .main-heading {
        font-size: clamp(1.3rem, 12vw, 2rem);
    }
    
    .description {
        font-size: 0.8rem;
        line-height: 1.3;
        max-width: 280px;
    }
    
    .email-input,
    .submit-btn {
        font-size: 0.8rem;
        padding: 0.8rem 1rem;
    }
    
    .content-wrapper {
        gap: 0.8rem;
        padding-bottom: 0.3rem;
    }
    
    .container {
        padding: 0.3rem 0.6rem;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
    }
    
    .header-content {
        min-height: 50px;
    }
}

/* Loading state */
.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading animation for page */
body:not(.loaded) {
    opacity: 0;
}

body:not(.loaded) .container {
    transform: translateY(20px);
}

body {
    transition: opacity 0.8s ease;
}

.container {
    transition: transform 0.8s ease;
}

body.loaded {
    opacity: 1;
}

body.loaded .container {
    transform: translateY(0);
}

/* Ensure footer is also covered by loading animation */
footer {
    opacity: inherit;
    transition: inherit;
}

/* Enhanced hover effects for trust items */
.trust-item {
    position: relative;
    overflow: hidden;
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.trust-item:hover::before {
    left: 100%;
}

/* Enhanced feature cards with 3D effects */
.feature-card {
    position: relative;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.feature-card:hover {
    transform: perspective(1000px) rotateX(-10deg) rotateY(5deg) translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(102, 126, 234, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}
