@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&family=Playfair+Display:ital,wght@0,400;0,600;1,400&display=swap');

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

:root {
    --bg-color: #050505;
    --text-primary: #F5F5F7;
    --text-secondary: #86868B;
    /* Slightly muted gray */
    --accent-color: #ffffff;
    /* Stark white for interactions */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Playfair Display', serif;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    scroll-snap-type: y mandatory;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    /* Elegant, not bold */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

/* Smart Strikethrough */
.strike-smart {
    position: relative;
    display: inline-block;
    color: var(--text-secondary);
}

.strike-smart::after {
    content: '';
    position: absolute;
    left: -10%;
    top: 50%;
    width: 120%;
    height: 2px;
    background: #ef4444;
    /* Red strike */
    transform: rotate(-15deg);
    opacity: 0.9;
    z-index: 1;
    /* Ensure it's on top */
    pointer-events: none;
    /* Don't interfere with clicks */
}

h1 {
    font-size: clamp(2rem, 6vw, 4rem);
    /* Fix horizontal scroll for "Financial Planner" */
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.4rem, 4vw, 2.5rem);
}

h4 {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Background Utilities */
.grid-bg {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    /* Larger touch target */
    border-radius: 4px;
    /* Slightly softer */
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #fff;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background-color: #e5e5e5;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Chips (Static) - distinct from buttons */
/* Chips (Static) - distinct from buttons */
.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.8rem;
    /* Smaller padding */
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Very subtle border */
    border-radius: 6px;
    /* Tech-badge look, not button pill */
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    font-family: monospace;
    /* Data feel */
    letter-spacing: 0.05em;
    cursor: default;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Landing Page Vertical Sections */
.landing-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 2rem;
    padding: 6rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    scroll-snap-align: start;
    /* Snap to start of section */
    scroll-snap-stop: always;
    /* Force stop at each section */
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

/* Rotating Text Styles */
.role-container {
    display: inline-block;
    position: relative;
    height: 1.2em;
    /* Tighter fit matched to line-height */
    vertical-align: bottom;
    overflow: hidden;
    width: 100%;
    /* Default to full width for safety */
    max-width: fit-content;
    text-align: left;
    margin-bottom: -0.2em;
    padding-bottom: 0px;
}

.role-text {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
    white-space: nowrap;
    color: #60a5fa;
    line-height: 1.2;
}

.role-text.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.role-text.exit {
    opacity: 0;
    transform: translateY(-100%);
    position: absolute;
}

@media (max-width: 768px) {
    /* .hero-title font-size handled by clamp() */

    body,
    .scroll-section {
        scroll-snap-type: none !important;
        scroll-snap-align: none !important;
    }

    /* Ensure role container fits in one line if possible or breaks gracefully */
    .role-container {
        display: block;
        /* Break to new line on mobile */
        width: 100%;
        min-width: auto;
        height: 1.4em;
        margin-bottom: 0;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .section-grid {
        gap: 3rem;
        /* Better spacing than 2rem but less than 4rem */
    }

    /* Chart specific */
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Hide floating waitlist on mobile to avoid blocking */
    .floating-waitlist {
        display: none;
    }

    .mobile-only-form {
        display: block !important;
    }
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .section-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Responsive Grid Utility */
.grid-2-cols-responsive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .grid-2-cols-responsive {
        grid-template-columns: 1fr 1fr;
    }
}

/* Cards within Landing */
.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    /* Prevent spillover */
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* Floating Waitlist */
.floating-waitlist {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    max-width: 400px;
    width: calc(100% - 4rem);
}

.glass-float {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Viz Containers */
.viz-container {
    width: 100%;
    max-width: 800px;
    height: 400px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    /* Less rounded */
    padding: 1.5rem;
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
    /* Important for mobile */
}

/* Tags (Pills) */
.tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #60a5fa;
    /* Blue accent to signify brand but not button */
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Nav */
.back-nav {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 100;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    mix-blend-mode: difference;
    /* Visible on light/dark */
}

.back-nav:hover {
    color: #fff;
    text-decoration: underline;
}

/* Main Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 1.5rem;
    /* Compact header */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.9);
    /* Darker for legibility */
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

/* Form Elements */
input[type="email"],
input[type="number"],
input[type="text"] {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 1rem;
    border-radius: 2px;
    font-family: var(--font-sans);
    transition: border-color 0.3s ease;
    width: 100%;
}

input:focus {
    outline: none;
    border-color: #fff;
}

/* Scroll Sections (Generic) */
.scroll-section {
    min-height: 100vh;
    padding: 4rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    display: flex;
    /* Centering content */
    align-items: center;
    scroll-snap-align: start;
}

/* New Footer CTA */
.footer-cta {
    text-align: center;
    padding: 6rem 1rem 8rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-cta h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
}

.footer-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 400px;
}

.footer-input {
    border: none;
    border-bottom: 1px solid var(--glass-border);
    border-radius: 0;
    padding: 0.5rem 0;
    text-align: center;
    width: 100%;
    font-size: 1rem;
    color: var(--text-secondary);
}

.footer-input:focus {
    border-bottom-color: #fff;
}

.limit-text {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #444;
    margin-top: 2rem;
}

.site-footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.site-footer a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}