/* ============================================
   Premium Cybersecurity Landing Page Styles
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0B0F14;
    --surface: #111827;
    --accent-green: #3AFF9E;
    --accent-glow: rgba(58, 255, 158, 0.15);
    --text-primary: #FFFFFF;
    --text-muted: #9CA3AF;
    --warning-red: #FF4D4D;
    
    /* Glassmorphism */
    --glass-bg: rgba(17, 24, 39, 0.4);
    --glass-border: rgba(58, 255, 158, 0.1);
    --glass-blur: blur(20px);
    
    /* Spacing */
    --section-padding: 120px 0;
    --card-padding: 2.5rem;
    
    /* Shadows */
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 8px 32px var(--accent-glow);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    filter: blur(100px);
    will-change: transform, opacity, border-radius, filter;
}

.gradient-orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse, var(--accent-green) 0%, rgba(58, 255, 158, 0.4) 30%, transparent 70%);
    top: -300px;
    right: -300px;
    animation: orbFloat1 35s ease-in-out infinite;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(ellipse, rgba(58, 255, 158, 0.5) 0%, rgba(58, 255, 158, 0.2) 40%, transparent 70%);
    bottom: -250px;
    left: -250px;
    animation: orbFloat2 40s ease-in-out infinite;
    animation-delay: 5s;
}

.gradient-orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(58, 255, 158, 0.3) 0%, rgba(58, 255, 158, 0.1) 35%, transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat3 45s ease-in-out infinite;
    animation-delay: 10s;
}

.noise-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(
        135deg,
        var(--text-primary) 0%,
        var(--accent-green) 25%,
        var(--text-primary) 50%,
        var(--text-muted) 75%,
        var(--text-primary) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease-in-out infinite;
}

.hero-subtext {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.hero-cta {
    margin-top: 2rem;
}

.btn-cta {
    background: var(--accent-green);
    color: var(--bg-primary);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-glow);
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

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

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--accent-glow);
    color: var(--bg-primary);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent-green), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   Story Section
   ============================================ */

.story-section {
    background: var(--bg-primary);
    position: relative;
    padding: var(--section-padding);
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.section-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.story-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* ============================================
   Feature Cards
   ============================================ */

.features-section {
    background: var(--bg-primary);
    padding: var(--section-padding);
}

.feature-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: var(--card-padding);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(58, 255, 158, 0.3);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-green) 0%, rgba(58, 255, 158, 0.6) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-text {
    color: var(--text-muted);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ============================================
   Flow Section
   ============================================ */

.flow-section {
    background: var(--bg-primary);
    padding: var(--section-padding);
}

.flow-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.flow-card:hover {
    transform: translateY(-8px);
    border-color: rgba(58, 255, 158, 0.3);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.flow-number {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-green);
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 1rem;
}

.flow-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.flow-text {
    color: var(--text-muted);
    line-height: 1.7;
}

.flow-arrow {
    position: absolute;
    right: -30px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--accent-green);
    opacity: 0.5;
}

/* ============================================
   Trust Section
   ============================================ */

.trust-section {
    background: var(--bg-primary);
    padding: var(--section-padding);
}

.trust-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 0 auto;
    max-width: 1200px;
}

.trust-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.trust-logo {
    opacity: 0.6;
    transition: opacity 0.3s;
}

.trust-logo:hover {
    opacity: 1;
}

.logo-placeholder {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    padding: 1rem 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
}

/* ============================================
   Waitlist Section
   ============================================ */

.waitlist-section {
    background: var(--bg-primary);
    padding: var(--section-padding);
    position: relative;
}

.waitlist-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.3;
}

.waitlist-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.waitlist-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.waitlist-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-control-lg,
.form-select-lg {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-control-lg:focus,
.form-select-lg:focus {
    background: rgba(17, 24, 39, 0.8);
    border-color: var(--accent-green);
    color: var(--text-primary);
    box-shadow: 0 0 0 4px var(--accent-glow);
    outline: none;
}

.form-control-lg::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.btn-submit {
    background: var(--accent-green);
    color: var(--bg-primary);
    border: none;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    box-shadow: var(--shadow-glow);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--accent-glow);
    color: var(--bg-primary);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.invalid-feedback {
    color: var(--warning-red);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.was-validated .form-control-lg:invalid,
.was-validated .form-select-lg:invalid {
    border-color: var(--warning-red);
}

.was-validated .form-control-lg:valid,
.was-validated .form-select-lg:valid {
    border-color: var(--accent-green);
}

#formMessage {
    min-height: 24px;
    font-size: 0.95rem;
    text-align: center;
}

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

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

/* ============================================
   Footer
   ============================================ */

.footer-section {
    background: var(--bg-primary);
    padding: 80px 0 40px;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    margin: 0 auto;
    max-width: 1200px;
}

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

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

/* ============================================
   Animations
   ============================================ */

/* Gradient Orb Animations - Covering whole screen with shape and color changes */
@keyframes orbFloat1 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50% 50% 50% 50%;
        opacity: 0.4;
        filter: blur(100px) brightness(1);
    }
    20% {
        transform: translate(40vw, -20vh) scale(1.3) rotate(90deg);
        border-radius: 60% 40% 50% 50%;
        opacity: 0.5;
        filter: blur(110px) brightness(1.2);
    }
    40% {
        transform: translate(30vw, 30vh) scale(0.8) rotate(180deg);
        border-radius: 40% 60% 50% 50%;
        opacity: 0.35;
        filter: blur(90px) brightness(0.9);
    }
    60% {
        transform: translate(-20vw, 20vh) scale(1.2) rotate(270deg);
        border-radius: 50% 50% 60% 40%;
        opacity: 0.45;
        filter: blur(105px) brightness(1.15);
    }
    80% {
        transform: translate(-30vw, -30vh) scale(1.1) rotate(360deg);
        border-radius: 50% 50% 40% 60%;
        opacity: 0.4;
        filter: blur(100px) brightness(1.05);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50% 50% 50% 50%;
        opacity: 0.4;
        filter: blur(100px) brightness(1);
    }
}

@keyframes orbFloat2 {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50% 50% 50% 50%;
        opacity: 0.3;
        filter: blur(100px) brightness(1);
    }
    25% {
        transform: translate(-35vw, 25vh) scale(1.4) rotate(-90deg);
        border-radius: 55% 45% 55% 45%;
        opacity: 0.4;
        filter: blur(115px) brightness(1.25);
    }
    50% {
        transform: translate(25vw, -25vh) scale(0.9) rotate(-180deg);
        border-radius: 45% 55% 45% 55%;
        opacity: 0.25;
        filter: blur(85px) brightness(0.85);
    }
    75% {
        transform: translate(20vw, 35vh) scale(1.3) rotate(-270deg);
        border-radius: 60% 40% 40% 60%;
        opacity: 0.35;
        filter: blur(108px) brightness(1.1);
    }
    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50% 50% 50% 50%;
        opacity: 0.3;
        filter: blur(100px) brightness(1);
    }
}

@keyframes orbFloat3 {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        border-radius: 50% 50% 50% 50%;
        opacity: 0.25;
        filter: blur(100px) brightness(1);
    }
    30% {
        transform: translate(calc(-50% + 25vw), calc(-50% - 20vh)) scale(1.5) rotate(120deg);
        border-radius: 65% 35% 50% 50%;
        opacity: 0.3;
        filter: blur(120px) brightness(1.15);
    }
    50% {
        transform: translate(calc(-50% - 30vw), calc(-50% + 30vh)) scale(0.7) rotate(240deg);
        border-radius: 35% 65% 50% 50%;
        opacity: 0.2;
        filter: blur(80px) brightness(0.8);
    }
    70% {
        transform: translate(calc(-50% + 20vw), calc(-50% + 25vh)) scale(1.3) rotate(360deg);
        border-radius: 50% 50% 65% 35%;
        opacity: 0.28;
        filter: blur(105px) brightness(1.05);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        border-radius: 50% 50% 50% 50%;
        opacity: 0.25;
        filter: blur(100px) brightness(1);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

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

/* Fade-in animation classes */
.fade-in-up,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
    transform: translateY(40px);
}

.fade-in-left {
    transform: translateX(-40px);
}

.fade-in-right {
    transform: translateX(40px);
}

.fade-in-up.visible,
.fade-in-left.visible,
.fade-in-right.visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Parallax effect */
.parallax-slow {
    transition: transform 0.3s ease-out;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 992px) {
    :root {
        --section-padding: 80px 0;
        --card-padding: 2rem;
    }
    
    .flow-arrow {
        display: none;
    }
    
    .trust-logos {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --card-padding: 1.5rem;
    }
    
    .hero-section {
        min-height: 90vh;
        padding: 2rem 0;
    }
    
    .waitlist-card {
        padding: 2.5rem 2rem;
    }
    
    .gradient-orb-1,
    .gradient-orb-2 {
        filter: blur(60px);
    }
}

@media (max-width: 576px) {
    .waitlist-card {
        padding: 2rem 1.5rem;
    }
    
    .feature-card,
    .flow-card {
        padding: 1.5rem;
    }
    
    .trust-logos {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
