:root {
    --bg-color: #050505;
    --text-primary: #ededed;
    --text-secondary: #888888;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-color: #ffffff;
    --primary-btn: #ffffff;
    --primary-btn-text: #000000;
    --primary-btn-hover: #e0e0e0;
    --glass-bg: rgba(25, 25, 25, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --error: #ff4a4a;
    --success: #34c759;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Stunning background effects */
.background-beams {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
                conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255, 255, 255, 0.01) 90deg, transparent 180deg);
    animation: rotate 60s linear infinite;
    z-index: -2;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.glass-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    backdrop-filter: blur(100px);
    -webkit-backdrop-filter: blur(100px);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.7);
    border-bottom-color: var(--border-color);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.logo-mark {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #fff, #a3a3a3);
    color: #000;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.logo-mark.small {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(52, 199, 89, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.hero-title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
}

.gradient-text {
    background: linear-gradient(to right, #ffffff, #888888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
    letter-spacing: -0.01em;
}

/* Form Styles */
.waitlist-form {
    max-width: 440px;
    margin: 0 auto 80px;
    position: relative;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 6px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

input[type="email"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    font-family: inherit;
}

input[type="email"]::placeholder {
    color: var(--text-secondary);
}

.submit-btn {
    background: var(--primary-btn);
    color: var(--primary-btn-text);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: var(--primary-btn-hover);
    transform: translateY(-1px);
}

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

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

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

.submit-btn.loading .loader {
    display: block;
}

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

.form-message {
    margin-top: 16px;
    font-size: 14px;
    min-height: 21px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.form-message.show {
    opacity: 1;
    transform: translateY(0);
}

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

/* Abstract Hero Mockup */
.hero-image-wrapper {
    perspective: 1000px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.8);
    transform: rotateX(5deg) scale(0.95);
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.hero-image-wrapper:hover .hero-image-placeholder {
    transform: rotateX(0deg) scale(1);
}

.app-mockup {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mockup-header {
    height: 40px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.dots {
    display: flex;
    gap: 8px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.mockup-content {
    display: flex;
    flex: 1;
}

.mockup-sidebar {
    width: 240px;
    border-right: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2);
}

.mockup-main {
    flex: 1;
    padding: 32px;
    display: flex;
    gap: 24px;
}

.mockup-card {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    height: 160px;
}

/* Features Grid */
.features {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    padding: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.faq-container {
    max-width: 700px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
    letter-spacing: -0.02em;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 24px 0;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
}

.faq-icon {
    font-size: 24px;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* arbitrary large value */
    transition: max-height 0.8s ease-in-out;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Bottom CTA */
.bottom-cta {
    padding: 120px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.secondary-btn {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.secondary-btn:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 48px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    .input-wrapper {
        flex-direction: column;
        padding: 4px;
        background: transparent;
        border: none;
    }
    input[type="email"] {
        width: 100%;
        margin-bottom: 8px;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        background: rgba(255,255,255,0.03);
    }
    .submit-btn {
        width: 100%;
    }
    .mockup-sidebar {
        display: none;
    }
    .mockup-main {
        flex-direction: column;
    }
}
