/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
    --primary-color: #0066cc;
    --primary-hover: #0052a3;
    --secondary-color: #00b894;
    --secondary-hover: #00996d;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e1e8ed;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --max-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===========================
   Typography
   =========================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ===========================
   Buttons
   =========================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===========================
   Header & Navigation
   =========================== */
.header {
    position: sticky;
    top: 0;
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.logo-img {
    max-height: 40px;
    width: auto;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
}

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

.nav-ctas {
    display: flex;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 600px;
}

.hero-content {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    animation: fadeInRight 0.8s ease;
}

.hero-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #e3f2fd, #c8e6c9);
    min-height: 400px;
    object-fit: cover;
}

/* ===========================
   Sections
   =========================== */
.section {
    padding: 4rem 2rem;
}

.section:nth-child(even) {
    background-color: var(--bg-light);
}

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

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.section-lead {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.subsection-title {
    text-align: center;
    margin: 4rem 0 2rem;
    font-size: 2rem;
}

/* ===========================
   Two Columns
   =========================== */
.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.column {
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.column-text {
    font-size: 1.125rem;
    line-height: 1.8;
}

/* ===========================
   Engines Grid
   =========================== */
.engines-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.engine-card {
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.engine-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.engine-image {
    height: 250px;
    overflow: hidden;
}

.engine-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
}

.engine-title {
    padding: 1.5rem 2rem 0.5rem;
    color: var(--primary-color);
}

.engine-description {
    padding: 0 2rem 2rem;
    color: var(--text-light);
    font-size: 1.125rem;
}

/* ===========================
   Services - Category Grid
   =========================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-category {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 2px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-category:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.service-category:hover::before {
    transform: scaleX(1);
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.category-services {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-services li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

.category-services li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
}

.category-services li strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.25rem;
}

/* ===========================
   For Creators Section
   =========================== */
.for-creators {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
}

.creator-image {
    margin-bottom: 3rem;
    text-align: center;
}

.creator-img {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #fff9c4, #ffccbc);
    min-height: 300px;
    object-fit: cover;
}

.creator-process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.creator-step-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.creator-step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.creator-step-card h4 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-size: 1.125rem;
}

.creator-step-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
}

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

/* ===========================
   How It Works (Horizontal Flow)
   =========================== */
.how-it-works-image {
    margin: 0 auto 2rem;
    text-align: center;
    max-width: 960px;
}

.how-it-works-img {
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--border-radius);
    height: auto;
}

.how-it-works-flow {
    display: grid;
    grid-template-columns: repeat(6, minmax(110px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto 0;
    text-align: center;
    align-items: start;
    max-width: 960px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.flow-step h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.flow-step p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.flow-arrow {
    display: none;
}

/* ===========================
   Proof Section
   =========================== */
.proof-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.proof-img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #e0f7fa, #f3e5f5);
    min-height: 300px;
    object-fit: cover;
}

.proof-list {
    list-style: none;
    margin-bottom: 2rem;
}

.proof-list li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
    font-size: 1.125rem;
    line-height: 1.8;
}

.proof-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.proof-logos {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.logo-placeholder {
    padding: 1.5rem 2rem;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--text-light);
}

.partner-logo {
    max-height: 60px;
    width: auto;
    object-fit: contain;
}

/* ===========================
   Contact Section
   =========================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form-wrapper h3,
.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-status {
    padding: 1rem;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.contact-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateX(8px);
}

.contact-link .icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-link span {
    font-weight: 600;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
    max-width: var(--max-width);
    margin: 0 auto 2rem;
}

.footer h4 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.footer p {
    color: #b2bec3;
    line-height: 1.8;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #b2bec3;
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #b2bec3;
}

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

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

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .engines-grid,
    .two-columns,
    .proof-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .creator-process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .nav-menu,
    .nav-ctas {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .how-it-works-flow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

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

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

    .hero-subtitle,
    .section-lead {
        font-size: 1rem;
    }

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

    .service-category {
        padding: 2rem;
    }

    .creator-process-grid {
        grid-template-columns: 1fr;
    }

    .hero-ctas,
    .contact-links {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .how-it-works-flow {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===========================
   Legal Pages
   =========================== */
.legal-content {
    background-color: var(--bg-white);
    padding: 4rem 2rem 6rem;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.legal-container h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-updated {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-container h2 {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.legal-container h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-container p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.legal-container ul {
    list-style-type: disc;
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.legal-container ul li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.8;
}

.legal-container ul li::marker {
    color: var(--primary-color);
}

.legal-container a {
    color: var(--primary-color);
    text-decoration: underline;
}

.legal-container a:hover {
    color: var(--secondary-color);
}

.legal-container strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Footer Legal Links */
.footer-bottom p {
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #b2bec3;
    transition: var(--transition);
}

.footer-bottom a:hover {
    color: var(--secondary-color);
}

@media (max-width: 640px) {
    .legal-container {
        padding: 2rem 1.5rem;
    }

    .legal-container h1 {
        font-size: 2rem;
    }

    .legal-container h2 {
        font-size: 1.5rem;
    }

    .legal-container h3 {
        font-size: 1.2rem;
    }
}
