/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Glassmorphism Background */
    --background: 220 27% 8%;
    --foreground: 220 40% 98%;

    /* Dark Glass Cards */
    --card: 220 27% 12%;
    --card-foreground: 220 40% 98%;
    --glass: 0 0% 100% / 0.05;
    --glass-border: 0 0% 100% / 0.1;

    /* Saiba Brand Colors */
    --primary: 203 89% 58%; /* #3fa9f5 - Light Blue */
    --primary-foreground: 0 0% 100%;
    --secondary: 223 83% 43%; /* #0d4dcf - Dark Blue */
    --secondary-foreground: 0 0% 100%;

    /* Typography */
    --muted: 220 27% 18%;
    --muted-foreground: 220 13% 65%;

    --accent: 203 89% 58%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 0 0% 98%;

    --border: 220 27% 18%;
    --input: 220 27% 18%;
    --ring: 203 89% 58%;

    --radius: 0.75rem;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(135deg, rgb(15, 23, 42) 0%, rgb(30, 41, 59) 50%, rgb(30, 58, 138) 100%);
    color: hsl(var(--foreground));
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.logo {
    height: 2rem;
    filter: brightness(0) saturate(100%) invert(70%) sepia(23%) saturate(372%) hue-rotate(186deg) brightness(95%) contrast(89%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    filter: none;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 1.5rem 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(3rem);
}

.bg-element-1 {
    top: 25%;
    left: 25%;
    width: 18rem;
    height: 18rem;
    background: hsla(var(--primary), 0.2);
    animation: pulse 2s infinite;
}

.bg-element-2 {
    bottom: 25%;
    right: 25%;
    width: 24rem;
    height: 24rem;
    background: hsla(var(--secondary), 0.2);
    animation: pulse 2s infinite 1s;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.gradient-text {
    background: linear-gradient(to right, hsl(var(--primary)), hsl(var(--secondary)));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: hsl(var(--foreground));
}

.hero-description {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 3rem;
    line-height: 1.6;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.5rem;
    }
}

/* Social Proof */
.social-proof {
    margin-bottom: 2rem;
}

.social-text {
    font-size: 0.875rem;
    color: hsla(var(--foreground), 0.7);
    font-weight: 500;
}

/* CTA Subtext */
.cta-subtext {
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-top: 0.5rem;
    text-align: center;
}

/* Feature Stats */
.feature-stat {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: hsla(var(--primary), 0.1);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(var(--primary));
    text-align: center;
}

/* Email Form */
.email-form {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 640px) {
    .form-group {
        flex-direction: row;
        align-items: center;
    }
}

.email-input {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: hsl(var(--foreground));
    border-radius: 0.375rem;
    backdrop-filter: blur(8px);
    font-size: 1rem;
    transition: all 0.2s ease;
}

@media (min-width: 640px) {
    .email-input {
        flex: 0 1 auto;
    }
}

.email-input::placeholder {
    color: hsla(var(--foreground), 0.5);
}

.email-input:focus {
    outline: none;
    border-color: hsl(var(--primary));
    background: rgba(255, 255, 255, 0.1);
}

.submit-btn {
    padding: 0.75rem 2rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border: none;
    border-radius: 0.375rem;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.submit-btn:hover {
    background: hsl(203 89% 65%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px hsla(203, 89%, 58%, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Features Section */
.features {
    padding: 6rem 1.5rem;
}

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

.features-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .features-title {
        font-size: 3rem;
    }
}

.features-description {
    font-size: 1.25rem;
    color: hsl(var(--muted-foreground));
    max-width: 32rem;
    margin: 0 auto;
}

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

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.feature-content {
    text-align: center;
}

.feature-icon {
    font-size: 3.75rem;
    margin-bottom: 1.5rem;
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: hsl(var(--foreground));
}

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

/* Footer */
.footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-text {
    text-align: center;
    color: hsl(var(--muted-foreground));
}

.footer-link {
    color: hsl(var(--primary));
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: hsla(var(--primary), 0.8);
}

/* Toast */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    min-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

.toast-content h4 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.toast-content p {
    color: hsl(var(--muted-foreground));
    font-size: 0.875rem;
}