/* 
    Caption Generator - Brand Identity
    Colors: Social Purple, Electric Pink, Soft Lavender
*/

:root {
    --primary-color: #8b5cf6; /* Social Purple */
    --primary-hover: #7c3aed;
    --secondary-color: #ec4899; /* Electric Pink */
    --text-color: #1e1b4b;
    --text-light: #6366f1;
    --bg-color: #ffffff;
    --bg-alt: #f5f3ff;
    --border-color: #e0e7ff;
    --container-width: 1000px;
    --font-main: 'DM Sans', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

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

/* Sticky Footer Layout */
html, body {
    height: 100%;
}

.site-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.1;
    margin-bottom: 1.2rem;
    color: #1e1b4b;
    letter-spacing: -0.03em;
}

/* Header */
.site-header {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e1b4b;
    font-family: var(--font-heading);
    letter-spacing: -0.05em;
}

.logo span {
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    gap: 28px;
    align-items: center;
    list-style: none;
}

.main-nav a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.95rem;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 100px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 92, 246, 0.4);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top left, #f5f3ff, #ffffff);
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: #ede9fe;
    color: var(--primary-color);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero .lead {
    font-size: 1.3rem;
    color: #4b5563;
    max-width: 650px;
    margin: 0 auto 3rem;
}

/* Hero Form */
.cta-form-container {
    max-width: 500px;
    margin: 0 auto 40px;
}

.input-group {
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 100px;
    box-shadow: 0 10px 30px -5px rgba(139, 92, 246, 0.15);
    border: 1px solid var(--border-color);
}

.input-group input {
    flex: 1;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    outline: none;
    font-family: var(--font-main);
    border-radius: 100px;
}

.form-note {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.3);
}

/* Grid & Cards */
section {
    padding: 100px 0;
}

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

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.card {
    padding: 40px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 32px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Blog */
.blog-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #fdf2f8;
    color: var(--secondary-color);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.blog-card h2 {
    font-size: 1.75rem;
    margin-bottom: 12px;
}

/* Contact Section */
.contact-section {
    background: var(--bg-alt);
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 48px;
    border-radius: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-main);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.site-footer {
    background-color: #1e1b4b;
    color: #e0e7ff;
    padding: 100px 0 40px;
}

.site-footer h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: #fff;
    letter-spacing: -0.05em;
}

.site-footer h3 span {
    color: var(--primary-color);
}

.footer-cta {
    display: inline-block;
    margin-top: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-links h4, .footer-legal h4 {
    color: #818cf8;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.footer-links a, .footer-legal a {
    color: #c7d2fe;
}

.footer-links a:hover, .footer-legal a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid #312e81;
    text-align: center;
    color: #6366f1;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .input-group {
        flex-direction: column;
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
    
    .input-group input {
        background: #fff;
        border-radius: 100px;
        margin-bottom: 12px;
        border: 1px solid var(--border-color);
    }
    
    .btn {
        width: 100%;
    }

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