:root {
    /* Colors & Gradients */
    --bg-gradient: radial-gradient(circle at 50% 50%, #ffffff 0%, #f2f2f7 100%);
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-blur: blur(25px);
    --pill-bg: rgba(255, 255, 255, 0.7);
    --pill-border: rgba(255, 255, 255, 0.5);

    /* Layout */
    --max-width: 1200px;
    --section-spacing: clamp(80px, 15vw, 180px);

    /* Transitions */
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fluid Base Scaling */
html {
    font-size: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    html { font-size: 95%; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.47059;
    letter-spacing: -0.022em;
    width: 100%;
    position: relative;
}

/* Typography */
.huge-title {
    font-size: clamp(2.6rem, 10vw, 6.8rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: clamp(1rem, 3vw, 2.2rem);
    background: linear-gradient(180deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.top-tagline {
    font-size: clamp(1rem, 4.6vw, 4rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    background: linear-gradient(180deg, #1d1d1f 0%, #434344 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    width: 100%;
    margin-top: 0;
    margin-bottom: auto;
    overflow: hidden;
    text-overflow: ellipsis;
}



.subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.75rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 2.5vw, 1.875rem);
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

p {
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.5;
}

/* Layout */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5vw;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

section {
    padding: var(--section-spacing) 0;
    width: 100%;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 52px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    flex-direction: row;
    /* Overriding global .container column direction */
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
}

.nav-links {
    display: flex;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    font-weight: 500;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    opacity: 1;
}

/* Tagline Section */
.tagline-section {
    width: 100%;
    padding-top: calc(52px + 2rem);
    padding-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 5;
}

/* Hero & Background */
.hero {
    position: relative;
    padding-top: 0;
    min-height: calc(85vh - 52px - 4rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden;
}

.hero .container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.hero .container>div:last-child {
    margin: 0;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
    mix-blend-mode: multiply;
}



/* Buttons */
.cta-button {
    display: inline-block;
    padding: clamp(0.8rem, 1.5vw, 1.2rem) clamp(1.8rem, 4vw, 3rem);
    background: var(--text-primary);
    color: white;
    text-decoration: none;
    border-radius: 980px;
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    font-weight: 600;
    transition: var(--transition-smooth);
    border: 1px solid #000;
    cursor: pointer;
}

.cta-button.glass {
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    backdrop-filter: var(--glass-blur);
    border: 1px solid #000;
}

.cta-button:hover {
    transform: scale(1.03) translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Forms & Cards */
.auth-container {
    padding-top: 150px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    padding: clamp(2rem, 5vw, 4rem);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #d2d2d7;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.error-message {
    color: #ff3b30;
    /* Apple system red */
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    display: none;
    text-align: center;
    font-weight: 500;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: clamp(2.5rem, 6vw, 4rem);
    border-radius: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.04);
}

/* Footer */
footer {
    background: #f5f5f7;
    padding: clamp(4rem, 10vw, 6rem) 0;
    width: 100%;
}

footer .logo:hover {
    opacity: 1 !important;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 100px;
    }

    .card-stage {
        aspect-ratio: 1/1;
    }
}

@media (max-width: 480px) {
    .pill {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }
}