:root {
    --background: #050505;
    --foreground: #EDEDED;
    --brand-primary: #1351FF;
    --brand-secondary: #6A3CFF;
    --font-sans: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-sans);
    overflow-x: hidden;
    scrollbar-width: none !important;
    position: relative;
    /* ensure positioning context for absolute children */
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::-webkit-scrollbar {
    display: none !important;
}

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--background);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.0s cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader video {
    width: 128px;
    height: 128px;
    object-fit: contain;
    /* Remove border-radius: 50% which was forcing a hard circle */
    /* Add a radial mask so the edges fade perfectly into the background instead of forming a hard shape */
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 70%);
    mask-image: radial-gradient(circle, black 30%, transparent 70%);
}

.preloader.hidden {
    transform: translateY(-100%);
}

/* Background Effects */
.glow-bg {
    position: fixed;
    /* Keep it fixed with the viewport like the canvas */
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
    /* Make it more intense since it was invisible */
}

.glow-primary {
    top: -10%;
    left: 10%;
    width: 800px;
    height: 800px;
    background: rgba(19, 81, 255, 0.2);
}

.glow-secondary {
    top: 60%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: rgba(106, 60, 255, 0.2);
}

.dotted-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    /* Keep above glow but below content */
    pointer-events: none;
    width: 100vw;
    height: 100vh;
    display: block;
}

.hero-section {
    position: relative;
    padding: 60px 24px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 9999px;
    background: rgba(106, 60, 255, 0.1);
    border: 1px solid rgba(106, 60, 255, 0.2);
    font-size: 0.875rem;
    color: var(--brand-secondary);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.brand-logo {
    width: 256px;
    height: auto;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.8s ease-out 1.4s both;
}

/* Headline */
.headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: white;
    margin-bottom: 1.5rem;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.line-wrapper {
    position: relative;
    display: inline-block;
    padding: 4px 0;
    margin-top: -0.1em;
    overflow: hidden;
}

.overlay-line {
    position: absolute;
    inset: 0;
    background-color: var(--brand-primary);
    z-index: 10;
    transform: scaleX(1);
    transform-origin: right;
}

.block-text {
    display: block;
}

.text-gradient {
    background: linear-gradient(90deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtitle */
.subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: #9ca3af;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* CTA */
.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
    width: 100%;
}

.notify-input-group {
    display: flex;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 6px;
    padding-left: 24px;
    transition: all 0.3s ease;
}

.notify-input-group:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.notify-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    border-radius: 9999px;
    /* Ensure rounded corners even if background paints */
}

/* Fix browser autofill background styles to be perfectly transparent */
.notify-input-group input:-webkit-autofill,
.notify-input-group input:-webkit-autofill:hover,
.notify-input-group input:-webkit-autofill:focus,
.notify-input-group input:-webkit-autofill:active {
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.notify-input-group input::placeholder {
    color: #6b7280;
}

.btn {
    padding: 12px 28px;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    background: #e5e5e5;
    transform: scale(1.02);
}

.form-msg {
    font-size: 0.875rem;
    color: var(--brand-primary);
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Mockup Window removed */

/* Animations */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

@keyframes overlaySlideOff {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes badgeBounce {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Stagger Classes */
.overlay-1 {
    animation: overlaySlideOff 0.6s cubic-bezier(0.65, 0, 0.35, 1) 1.2s both;
}

.overlay-2 {
    animation: overlaySlideOff 0.6s cubic-bezier(0.65, 0, 0.35, 1) 1.4s both;
}

.hero-badge-anim {
    opacity: 0;
    animation: badgeBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.6s both;
}

.hero-sub-anim {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 1.8s both;
}

.hero-cta-anim {
    opacity: 0;
    animation: fadeSlideUp 0.8s ease-out 2s both;
}

/* Mockup anim removed */

@media (max-width: 640px) {
    .notify-input-group {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 12px;
    }

    .notify-input-group input {
        width: 100%;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 16px 20px;
        border-radius: 12px;
    }

    .btn {
        width: 100%;
        padding: 16px;
        border-radius: 12px;
    }

    .skeleton-cards {
        grid-template-columns: 1fr;
    }
}

/* Footer Implementation */
.footer {
    width: 100%;
    padding: 10px 20px 30px;
    font-size: 13px;
    color: #64748B;
    text-align: center;
    background: transparent;
    z-index: 10;
    position: relative;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-top .divider {
    width: 1px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-ro {
    color: #94a3b8;
    font-weight: 600;
}

.footer-email {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email:hover {
    color: var(--brand-primary);
}

.footer-email svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.footer-address {
    margin-bottom: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 10px;
    }

    .footer-top .divider {
        display: none;
    }
}
