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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(-45deg, #FFFFFF, #E5E7EB, #D1D5DB, #FFFFFF, #E8EAF0);
    background-size: 400% 400%;
    animation: gradientShift 6s ease infinite;
    color: #1A1A1A;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

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

/* Header */
.header {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1A1A1A;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #2E2E2E 0%, #1A1A1A 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 20px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1A1A1A;
}

.nav-menu {
    display: flex;
}

.nav-link {
    text-decoration: none;
    color: #2E2E2E;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link:hover {
    color: #000000;
    background-color: #F5F7FA;
}

/* Main Content */
.main-content {
    margin-top: 0px;
    min-height: calc(100vh - 140px);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 140px);
    padding: 40px 20px;
}

p.body-text {
    /* font-size: 16px; */
    margin-bottom: 10px;
}

/* iPhone Mockup */
.iphone-mockup {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.iphone-frame {
    width: 375px;
    height: 812px;
    background-color: #1A1A1A;
    border-radius: 40px;
    padding: 8px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.6s ease-out;
}

/* Mobile: Remove frame and make full screen */
@media (max-width: 768px) {
    .main-container {
        padding: 0;
        min-height: 100vh;
    }
    
    .iphone-mockup {
        padding: 0;
    }
    
    .iphone-frame {
        width: 100vw;
        height: 100vh;
        background-color: transparent;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
        margin: 0;
    }
    
    .iphone-frame::before {
        display: none;
    }
    
    .screen-content {
        border-radius: 0;
        background-color: #d9d9d9;
    }
    
    .content-wrapper {
        width: 100%;
        max-width: none;
        margin: 0;
        border-radius: 0;
        padding: 60px 0 40px;
    }
    
    .status-bar {
        display: none !important;
    }
}

.iphone-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 125px;
    height: 30px;
    background-color: #1A1A1A;
    border-radius: 15px;
    z-index: 10;
}

.screen-content {
    width: 100%;
    height: 100%;
    background: #d9d9d9;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

/* Status Bar */
.status-bar {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 44px;
    background-color: transparent;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
    z-index: 20;
    color: #1A1A1A;
    font-weight: 600;
    font-size: 17px;
}

.time {
    font-weight: 600;
}

.status-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: #1A1A1A;
    font-weight: 600;
}

/* Signal Bars */
.signal-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
}

.bar {
    width: 3px;
    background-color: #1A1A1A;
    border-radius: 1px;
}

.bar-1 {
    height: 4px;
}

.bar-2 {
    height: 6px;
}

.bar-3 {
    height: 8px;
}

.bar-4 {
    height: 10px;
}

/* WiFi Icon */
.wifi-icon {
    position: relative;
    width: 16px;
    height: 18px;
}

.wifi-arc {
    position: absolute;
    border: 1.5px solid #1A1A1A;
    border-bottom: none;
    border-radius: 50% 50% 0 0;
}

.wifi-arc-1 {
    width: 6px;
    height: 3px;
    top: 10px;
    left: 5px;
}

.wifi-arc-2 {
    width: 10px;
    height: 5px;
    top: 6.5px;
    left: 3px;
}

.wifi-arc-3 {
    width: 14px;
    height: 7px;
    top: 2px;
    left: 1px;
}

.wifi-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: #1A1A1A;
    border-radius: 50%;
    top: 14px;
    left: 7px;
}

/* Battery Icon */
.battery-icon {
    display: flex;
    align-items: center;
    gap: 1px;
}

.battery-body {
    width: 20px;
    height: 10px;
    border: 1.5px solid #1A1A1A;
    border-radius: 2px;
    position: relative;
    background-color: transparent;
}

.battery-level {
    position: absolute;
    top: 1px;
    left: 1px;
    width: 16px;
    height: 6px;
    background-color: #1A1A1A;
    border-radius: 1px;
}

.battery-tip {
    width: 2px;
    height: 6px;
    background-color: #1A1A1A;
    border-radius: 0 1px 1px 0;
}


/* Blurred Background with Real Image */
.blurred-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.1) 100%),
        url('alyx.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(15px) brightness(1.3) contrast(0.8);
    transform: scale(1.1);
    z-index: 1;
}

/* Subtle overlay for better text readability */
.blurred-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(245, 247, 250, 0.1) 0%, rgba(0, 0, 0, 0.05) 50%, rgba(46, 46, 46, 0.1) 100%);
    z-index: 1;
}

/* Content Wrapper with Glassmorphism Effect */
.content-wrapper {
    position: absolute;
    top: 52%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    width: calc(100% - 40px);
    max-width: 320px;
}

.main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 20px rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #1A1A1A 0%, #2E2E2E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.alyx-highlight {
    color: #000000;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    font-size: 14px;
    color: #2E2E2E;
    font-weight: 400;
    margin: 0 0 30px 0;
}

.subheader {
    font-size: 18px;
    color: #000000;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Signup Form */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0px;
    max-width: 280px;
    width: 100%;
}

.captcha-container {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

.g-recaptcha {
    transform: scale(0.8);
    transform-origin: center;
}

.email-input {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #1A1A1A;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.email-input:focus {
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.email-input::placeholder {
    color: #000000;
}

.join-btn {
    padding: 16px 24px;
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.join-btn:hover {
    background-color: #000000;
    transform: translateY(-1px);
}

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

/* Signup Count */
.signup-count {
    text-align: center;
    margin-bottom: 20px;
    border-radius: 12px;
    padding: 12px;
    width: 100%;
}

.signup-count p {
    font-size: 12px;
    color: #ffffff;
    margin: 0;
    font-weight: 400;
    line-height: 1.4;
}

/* Countdown Section */
.countdown-section {
    text-align: center;
}

.countdown-label {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.8;
}

.countdown-timer {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
}

.countdown-timer span {
    display: inline-block;
    min-width: 2ch;
}

/* Copyright Section */
.copyright-section {
    text-align: center;
    margin-top: 0px;
    padding-top: 20px;
}

.copyright-section .copyright {
    font-size: 10px;
    color: #ffffff;
    margin: 0;
    opacity: 1;
    font-weight: 400;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #E5E7EB;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(26, 26, 26, 0.1);
}

.scroll-arrow:hover {
    background-color: #FFFFFF;
    border-color: #000000;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Footer */
.footer {
    background: #000000;
    backdrop-filter: blur(20px);
    color: #ffffff;
    padding: 20px 0;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.copyright {
    color: #FFFFFF;
    font-size: 14px;
    margin: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    .container {
        padding: 0px;
    }

    .iphone-frame::before {
        width: 100px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0px;
    }
    
    .phone-mockup {
        max-width: 100%;
        border-radius: 20px;
    }

    .status-icons, .status-bar {
        font-size: 12px;
    }
    .status-bar {
        padding: 0 15px;
    }
    
    .main-title {
        font-size: 30px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .signup-form {
        flex-direction: column;
        gap: 0;
    }
    
    .join-btn {
        width: 100%;
    }
    
    .count-number {
        font-size: 1.8rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (min-width: 768px) {
    .phone-mockup {
        max-width: 400px;
    }
    
    .main-title {
        font-size: 30px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .count-number {
        font-size: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .phone-mockup {
        max-width: 450px;
    }
    
    .main-title {
        font-size: 30px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .count-number {
        font-size: 3rem;
    }
}

/* Hover effects for better UX */
.email-input, .join-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus states for accessibility */
.email-input:focus,
.join-btn:focus {
    outline: none;
}

/* Loading state for form submission */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .join-btn {
    background: #ccc;
    cursor: not-allowed;
}

/* Success state */
.success .join-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

/* Error state */
.error .email-input {
    border-color: #f44336;
    background-color: #ffebee;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}

/* iPhone Mockup Responsive */
@media (max-width: 768px) {
    .iphone-frame {
        width: 100vw;
        height: 760px;
        border-radius: 35px;
    }

    .screen-content {
        border-radius: 0;
    }
    
    .main-title {
        font-size: 30px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .countdown-timer {
        font-size: 1.5rem;
    }
    
    .content-wrapper {
        padding: 50px 25px 30px;
    }
}

@media (max-width: 480px) {
    .iphone-frame {
        width: 100vw;
        height: 760px;
        border-radius: 30px;
    }

    .screen-content {
        border-radius: 0;
    }
    
    .main-title {
        font-size: 30px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .countdown-timer {
        font-size: 1.3rem;
    }
    
    .signup-form {
        max-width: 250px;
    }
    
    .content-wrapper {
        padding: 80px 20px 25px;
    }
}
