/* ===================================
   CoParentSync - Premium Design V2
   =================================== */

/* CSS Variables */
:root {
    --color-teal: #14B8A6;
    --color-teal-dark: #0D9488;
    --color-coral: #FB923C;
    --color-coral-dark: #F97316;
    --color-purple: #A855F7;
    --color-blue: #3B82F6;
    --color-dark: #0F172A;
    --color-gray-900: #1E293B;
    --color-gray-800: #334155;
    --color-gray-700: #475569;
    --color-gray-600: #64748B;
    --color-gray-500: #94A3B8;
    --color-gray-400: #CBD5E1;
    --color-gray-300: #E2E8F0;
    --color-gray-200: #F1F5F9;
    --color-gray-100: #F8FAFC;
    --color-white: #FFFFFF;
    
    --font-display: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-gray-900);
    line-height: 1.6;
    background: var(--color-white);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-teal) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-coral) 0%, transparent 70%);
    top: 40%;
    right: -5%;
    animation-delay: 5s;
}

.orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-purple) 0%, transparent 70%);
    bottom: -20%;
    left: 30%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    margin-bottom: 32px;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    height: 80px;
    width: auto;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-coral) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-subtitle strong {
    color: var(--color-white);
    font-weight: 700;
}

/* Waitlist Card */
.waitlist-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-2xl);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-header {
    text-align: center;
    margin-bottom: 24px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-coral) 100%);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    font-family: var(--font-display);
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.waitlist-form input[type="email"] {
    width: 100%;
    padding: 18px 24px;
    font-size: 1.05rem;
    font-family: var(--font-body);
    border: 2px solid var(--color-gray-300);
    border-radius: 12px;
    transition: var(--transition);
    background: var(--color-white);
}

.waitlist-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.1);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-message {
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 24px;
    margin-top: 8px;
}

.form-message.success {
    color: var(--color-teal-dark);
}

.form-message.error {
    color: #EF4444;
}

/* Social Proof */
.social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.proof-number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-white);
    font-family: var(--font-display);
}

.proof-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.proof-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.3);
}

/* Features Section */
.features {
    padding: 120px 0;
    background: var(--color-gray-100);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-coral) 100%);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-gray-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-description {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--color-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-teal);
}

.feature-card.featured {
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    color: var(--color-white);
}

.feature-card.featured h3,
.feature-card.featured p {
    color: var(--color-white);
}

.feature-card.featured .feature-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.feature-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-coral) 100%);
    color: var(--color-white);
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-gray-600);
}

/* CTA Section */
.cta {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

.waitlist-form-inline {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.waitlist-form-inline input[type="email"] {
    flex: 1;
    padding: 18px 24px;
    font-size: 1.05rem;
    font-family: var(--font-body);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    transition: var(--transition);
}

.waitlist-form-inline input[type="email"]:focus {
    outline: none;
    border-color: var(--color-white);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    padding: 18px 32px;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: var(--font-body);
    color: var(--color-teal-dark);
    background: var(--color-white);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    padding: 60px 0 32px;
    background: var(--color-gray-900);
    color: var(--color-gray-400);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--color-gray-800);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--color-gray-400);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-teal);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 60px 0;
    }
    
    .logo {
        height: 60px;
    }
    
    .waitlist-card {
        padding: 32px 24px;
    }
    
    .social-proof {
        flex-direction: column;
        gap: 16px;
    }
    
    .proof-divider {
        width: 40px;
        height: 1px;
    }
    
    .features {
        padding: 80px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta {
        padding: 80px 0;
    }
    
    .waitlist-form-inline {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .waitlist-card {
        padding: 24px 16px;
    }
    
    .feature-card {
        padding: 32px 24px;
    }
}
