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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #fef5f7 0%, #e3f2fd 50%, #f0f4f8 100%);
    min-height: 100vh;
}

/* Accessibility: Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #ec4899;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Accessibility: Visually hidden but available to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

/* Header */
.header {
    text-align: center;
    padding: 40px 20px 20px;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ec4899;
    margin-bottom: 8px;
}

.tagline {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 300;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(254, 245, 247, 0.75) 0%, rgba(227, 242, 253, 0.70) 50%, rgba(240, 244, 248, 0.65) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-headline {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subheadline {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    line-height: 1.8;
}

/* Signup Section */
.signup-section {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.signup-intro {
    font-size: 1.1rem;
    color: #334155;
    margin-bottom: 24px;
    font-weight: 500;
}

.signup-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-input {
    padding: 16px 20px;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.btn-primary {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

.btn-primary:focus {
    outline: 3px solid #ec4899;
    outline-offset: 2px;
}

.btn-primary:focus:not(:focus-visible) {
    outline: none;
}

.btn-primary:focus-visible {
    outline: 3px solid #ec4899;
    outline-offset: 2px;
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-primary.loading {
    pointer-events: none;
}

.button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.success-message {
    margin-top: 20px;
    padding: 16px;
    background: #d1fae5;
    color: #065f46;
    border-radius: 12px;
    font-weight: 500;
}

.error-message {
    margin-top: 20px;
    padding: 16px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 12px;
    font-weight: 500;
}

.image-credit {
    margin-top: 40px;
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    opacity: 0.8;
}

.image-credit a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.image-credit a:hover {
    color: #ec4899;
}

.image-credit a:focus {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
    border-radius: 2px;
}

.signup-contact {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
}

.signup-contact a {
    color: #ec4899;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.signup-contact a:hover {
    color: #db2777;
    text-decoration: underline;
}

.signup-contact a:focus {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Features Section */
.features {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
    margin-top: auto;
}

.feature-description {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 80px 20px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: #475569;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 0.95rem;
}

.footer-contact {
    margin-top: 12px;
    font-size: 0.95rem;
}

.footer-contact a {
    color: #ec4899;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #db2777;
    text-decoration: underline;
}

.footer-contact a:focus {
    outline: 2px solid #ec4899;
    outline-offset: 2px;
    border-radius: 2px;
}

.share-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.share-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.6), rgba(244, 114, 182, 0.6));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.share-button:hover::before {
    opacity: 1;
}

.share-button:hover {
    transform: translateY(-4px) scale(1.05);
}

.share-button:focus {
    outline: 3px solid #ec4899;
    outline-offset: 4px;
}

.share-button:focus:not(:focus-visible) {
    outline: none;
}

.share-button:focus-visible {
    outline: 3px solid #ec4899;
    outline-offset: 4px;
}

.share-facebook {
    background: linear-gradient(135deg, rgba(24, 119, 242, 0.1), rgba(24, 119, 242, 0.05));
    color: #1877f2;
}

.share-facebook:hover {
    background: linear-gradient(135deg, #1877f2, #0e5fc5);
    color: white;
    box-shadow: 0 8px 24px rgba(24, 119, 242, 0.3);
}

.share-twitter {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.05));
    color: #000000;
}

.share-twitter:hover {
    background: linear-gradient(135deg, #000000, #333333);
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.share-linkedin {
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.1), rgba(10, 102, 194, 0.05));
    color: #0a66c2;
}

.share-linkedin:hover {
    background: linear-gradient(135deg, #0a66c2, #084d92);
    color: white;
    box-shadow: 0 8px 24px rgba(10, 102, 194, 0.3);
}

.share-email {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(236, 72, 153, 0.05));
    color: #ec4899;
}

.share-email:hover {
    background: linear-gradient(135deg, #ec4899, #f472b6);
    color: white;
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
    }

    .hero-headline {
        font-size: 2rem;
    }

    .hero-subheadline {
        font-size: 1.1rem;
    }

    .signup-section {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

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

.cf-turnstile {
    align-self: start;
}
