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

:root {
    --background: 210 20% 98%;
    --foreground: 215 25% 15%;
    --card: 0 0% 100%;
    --card-foreground: 215 25% 15%;
    --primary: 215 85% 25%;
    --primary-foreground: 0 0% 100%;
    --secondary: 185 75% 45%;
    --secondary-foreground: 0 0% 100%;
    --muted: 210 20% 95%;
    --muted-foreground: 215 15% 45%;
    --accent: 0 85% 55%;
    --accent-foreground: 0 0% 100%;
    --border: 215 20% 90%;
    --radius: 0.75rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
}

.min-h-screen {
    min-height: 100vh;
}

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

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('hero-ai-canada.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsl(215 85% 25%) 0%, hsl(185 75% 35%) 100%);
    opacity: 0.9;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 5rem 1rem;
}

.hero-inner {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(95, 179, 201, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(95, 179, 201, 0.3);
    margin-bottom: 2rem;
    color: hsl(var(--primary-foreground));
    font-size: 0.875rem;
    font-weight: 500;
}

.sparkle-icon {
    color: hsl(var(--secondary));
    width: 16px;
    height: 16px;
}

.headline {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: hsl(var(--primary-foreground));
}

.gradient-text {
    display: block;
    background: linear-gradient(135deg, hsl(185 75% 45%) 0%, hsl(195 85% 55%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subheadline {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Form Container - Controls 2-step flow */
.form-container {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Step 1: Email form - Initially visible */
.form-container[data-step="1"] .step-1 {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.form-container[data-step="1"] .success-message,
.form-container[data-step="1"] .step-2-container {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

/* Step 2: Success message + Optional fields - Visible after submission */
.form-container[data-step="2"] .step-1 {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.form-container[data-step="2"] .success-message {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    margin-bottom: 2rem;
    animation: fadeInScale 0.5s ease-out;
}

.form-container[data-step="2"] .step-2-container {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
    height: auto;
    animation: slideUpFadeIn 0.6s ease-out 0.3s both;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-input {
    width: 100%;
    height: 3.5rem;
    padding: 0 1.5rem;
    font-size: 1.125rem;
    border: 1px solid rgba(215, 220, 240, 0.5);
    border-radius: 0.625rem;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    color: hsl(var(--foreground));
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input::placeholder {
    color: hsl(var(--muted-foreground));
}

.form-input:focus {
    background: white;
    border-color: hsl(var(--secondary));
    box-shadow: 0 0 0 3px rgba(95, 179, 201, 0.1);
}

.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 0.5rem 0;
}

.submit-button {
    width: 100%;
    height: 3.5rem;
    padding: 0 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    background: hsl(var(--accent));
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.submit-button:hover:not(:disabled) {
    background: hsl(0 85% 50%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.submit-button:disabled {
    background: hsl(var(--muted));
    color: hsl(var(--muted-foreground));
    cursor: not-allowed;
    opacity: 0.6;
}

.form-message {
    padding: 1rem 1.5rem;
    border-radius: 0.625rem;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease-out;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: rgb(21, 128, 61);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: rgb(185, 28, 28);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Message Styling */
.success-message {
    text-align: center;
    padding: 2rem;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 1rem;
    color: white;
    transition: all 0.3s ease;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
}

.success-icon svg {
    color: rgb(34, 197, 94);
    width: 48px;
    height: 48px;
}

.success-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.success-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Step 2 Container */
.step-2-container {
    transition: all 0.3s ease;
}

.step-2-intro {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 1.5rem;
}

.optional-tag {
    font-weight: 400;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.step-2-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.skip-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem;
}

.skip-link:hover {
    color: white;
    text-decoration: underline;
}

.social-proof {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.trust-indicators {
    margin-top: 4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: hsl(var(--secondary));
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.features-section {
    padding: 6rem 1rem;
    background: hsl(var(--background));
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

.section-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    background: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(210 20% 98%) 100%);
    border: 1px solid hsl(var(--border));
    box-shadow: 0 4px 20px -2px rgba(33, 63, 125, 0.08);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px -10px rgba(33, 63, 125, 0.15);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, hsl(185 75% 45%) 0%, hsl(195 85% 55%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-icon svg {
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: hsl(var(--foreground));
}

.feature-card p {
    color: hsl(var(--muted-foreground));
    line-height: 1.6;
}

.topics-section {
    padding: 6rem 1rem;
    background: hsl(210 20% 96%);
}

.topics-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.topic-tag {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(95, 179, 201, 0.1);
    border: 1px solid rgba(95, 179, 201, 0.3);
    border-radius: 50px;
    color: hsl(var(--primary));
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
}

.topic-tag:hover {
    background: rgba(95, 179, 201, 0.15);
    border-color: rgba(95, 179, 201, 0.5);
}

.footer {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    padding: 3rem 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-contact h4,
.footer-links h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-item svg {
    flex-shrink: 0;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: white;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}
