:root {
    --primary-bg: #f8faff;
    --text-main: #1a1a2e;
    --text-muted: #6b7280;
    
    --brand-teal: #14b8a6;
    --brand-blue: #0ea5e9;
    --brand-orange: #f97316;
    --brand-accent: #6366f1;

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.glow-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.05), transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.05), transparent 30%);
    z-index: -1;
    pointer-events: none;
}

/* Typography */
h1, h2, h3, .logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Navbar */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 1rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: var(--glass-shadow);
}

.logo {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--brand-blue);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal));
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(14, 165, 233, 0.4);
    color: white; /* fix for link hover override */
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    background: white;
    color: var(--text-main);
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal), var(--brand-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradientMove 5s linear infinite;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.stats {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Hero Image */
.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
    width: 350px;
    /* Aspect ratio placeholder if needed */
}

.floating-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1), 0 0 0 1px rgba(255,255,255,0.5) inset;
    animation: float 6s ease-in-out infinite;
    z-index: 2;
    position: relative;
}

/* Features */
.features {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: white;
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid #f3f4f6;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.gradient-1 { background: linear-gradient(135deg, var(--brand-blue), var(--brand-teal)); }
.gradient-2 { background: linear-gradient(135deg, var(--brand-orange), #fcd34d); }
.gradient-3 { background: linear-gradient(135deg, var(--brand-accent), var(--brand-blue)); }
.gradient-4 { background: linear-gradient(135deg, #ec4899, #f43f5e); }

.feature-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.glass-panel {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-teal) 100%);
    padding: 4rem 2rem;
    border-radius: 32px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.glass-panel h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.glass-panel p {
    margin-bottom: 2.5rem;
    opacity: 0.9;
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.waitlist-form {
    display: flex;
    gap: 1rem;
    justify-content: center;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.waitlist-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    outline: none;
    font-family: var(--font-body);
}

.waitlist-form button {
    background: #1a1a2e;
    color: white;
}

/* Footer */
footer {
    background: white;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid #f3f4f6;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-col a {
    display: block;
    text-decoration: none;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--brand-blue);
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid #f3f4f6;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s var(--ease-out) forwards;
}

.animate-fade {
    opacity: 0;
    animation: fadeIn 1s var(--ease-out) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Scroll Animation classes */
.hidden-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--ease-out);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        padding-top: 7rem;
        text-align: center;
    }

    .hero-content p, .cta-group, .stats {
        margin-left: auto;
        margin-right: auto;
    }
    
    .cta-group { justify-content: center; }
    .stats { justify-content: center; }

    .image-wrapper {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .glass-nav {
        padding: 0.8rem 1.5rem;
    }
    
    .nav-links a { display: none; }
    .nav-links .btn-primary { display: block; }
    
    h1 { font-size: 3rem; }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .waitlist-form {
        flex-direction: column;
    }
}
