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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --accent-color: #8b5cf6;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #64748b;
    --background: #ffffff;
    --background-light: #f8fafc;
    --border-color: #e2e8f0;
    --success-color: #10b981;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
    --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);
}

/* Utilities */
.section {
    padding: 6rem 0;
}

.section--light {
    background: var(--background-light);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

/* Base Card Styles */
.card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

/* Card Modifiers */
.card--thick {
    border-width: 2px;
}

.card--sm-radius {
    border-radius: 0.75rem;
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}

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

/* Button classes for navigation (styling handled by nav.css) */
.btn-primary-small,
.btn-secondary-small {
    display: inline-flex;
    align-items: center;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

h1,
.hero h1,
body h1 {
    font-size: 3.5rem !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin-bottom: 1.5rem !important;
    letter-spacing: -0.02em !important;
}

.gradient-text {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

/* Hero Visual */
.hero-visual {
    position: relative;
}

.hero-visual img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
}

/* Floating Cards (Hero Visual) */
.floating-card {
    position: absolute;
    background: white;
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: float 3s ease-in-out infinite;
}

.card-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 10%;
    left: -10%;
    animation-delay: 1.5s;
}

/* Floating Card Content */
.card-icon {
    font-size: 1.5rem;
}

.card-title {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.card-trend {
    font-size: 0.875rem;
    font-weight: 600;
}

.card-trend.positive {
    color: var(--success-color);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

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

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

    .hero-cta {
        flex-direction: column;
    }

    .questions-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table-wrapper {
        overflow-x: scroll;
    }

    .comparison-table {
        min-width: 600px;
    }
}

/* General fix for HR tags before headings in all marketing pages */
.markdown-content hr:has(+ h2),
.markdown-content hr:has(+ h3) {
    display: none;
}

.markdown-content hr+h2,
.markdown-content hr+h3 {
    border-top: none !important;
    padding-top: 0 !important;
}

/* Platform Logo Styles */
.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
    flex-shrink: 0;
}

.logo-item:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.platform-logo {
    height: 2rem;
    width: auto;
    max-width: 80px;
    transition: transform 0.2s ease, opacity 0.2s ease;
    object-fit: contain;
    opacity: 0.7;
}

.logo-item:hover .platform-logo {
    transform: scale(1.08);
    opacity: 1;
}

@media (min-width: 768px) {
    .platform-logo {
        height: 2.5rem;
        max-width: 100px;
    }
}

/* Tech Stack Logo Styles - square logos need different sizing */
.tech-logo {
    height: 2.5rem;
    width: 2.5rem;
    max-width: 80px;
    max-height: 80px;
    transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
    object-fit: contain;
    opacity: 0.7;
    filter: brightness(0) saturate(100%) invert(25%);
}

.logo-item:hover .tech-logo {
    transform: scale(1.08);
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(35%);
}

@media (min-width: 768px) {
    .tech-logo {
        height: 3rem;
        width: 3rem;
        max-width: 80px;
        max-height: 80px;
    }
}
