:root {
    --primary: #0070f3;
    --primary-light: #00d4ff;
    --bg-white: #ffffff;
    --text-dark: #1d1d1f;
    --text-muted: #86868b;
    --glass: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    --transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Loader */
.loader {
    position: fixed;
    inset: 0;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-circle {
    width: 40px;
    height: 40px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--glass);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-btn {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(0,0,0,0.05);
    transition: var(--transition);
}

.nav-btn:hover {
    background: rgba(0,0,0,0.1);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: #fff;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Capsule in front of background elements but behind some text if needed */
}

.hero-container {
    position: relative;
    z-index: 3;
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    pointer-events: auto;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.05;
    margin-bottom: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: #0062d1;
    transform: scale(1.02);
}

.btn-outline {
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    text-decoration: underline;
}

/* Split Layout Section */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 24px;
    font-weight: 700;
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 450px;
}

.split-image .image-wrapper {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #f5f5f7;
    aspect-ratio: 4/3;
    transition: var(--transition);
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Features Grid */
.section {
    padding: 150px 0;
}

.section-header {
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
}

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

.glass-card {
    background: #f5f5f7;
    border-radius: 24px;
    padding: 48px;
    transition: var(--transition);
}

.glass-card:hover {
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-8px);
}

.icon-wrapper {
    font-size: 2rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* CTA Card */
.cta-card {
    background: #000;
    color: #fff;
    text-align: center;
    border-radius: 32px;
}

.cta-card h2 {
    color: #fff;
}

.cta-card p {
    color: #a1a1a6;
}

/* Footer */
.footer {
    padding: 100px 0 50px;
    border-top: 1px solid #f5f5f7;
}

.footer-logo {
    height: 40px;
    margin-bottom: 24px;
}

.footer h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.footer p, .footer a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: block;
}

.footer a:hover {
    text-decoration: underline;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid #f5f5f7;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

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

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid #d2d2d7;
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: #d2d2d7;
    border-radius: 1px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 12px); }
}

/* Sticky Button */
.sticky-survey-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: none;
}

.sticky-survey-btn a {
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    box-shadow: 0 10px 20px rgba(0, 112, 243, 0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .split-layout {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .section-desc {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .sticky-survey-btn {
        display: block;
    }
}
