/* Capernaum AI - Professional Design System */

:root {
    /* Colors */
    --color-bg-primary: #FAFBFC;
    --color-bg-secondary: #FFFFFF;
    --color-bg-button: #18181B;
    --color-bg-button-hover: #27272A;
    --color-bg-button-secondary: #F4F4F5;
    --color-bg-button-secondary-hover: #E4E4E7;

    --color-text-primary: #18181B;
    --color-text-secondary: #71717A;
    --color-text-tertiary: #A1A1AA;
    --color-text-button: #FFFFFF;

    --color-border: #E4E4E7;
    --color-border-subtle: #F4F4F5;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

html {
    font-size: 10px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(to bottom, var(--color-bg-primary) 0%, #FFFFFF 100%);
    background-attachment: fixed;
    color: var(--color-text-primary);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'kern' 1, 'liga' 1;
    -webkit-text-size-adjust: 100%;
    min-height: 100vh;
}

::selection {
    background-color: var(--color-bg-button);
    color: var(--color-text-button);
}

::-moz-selection {
    background-color: var(--color-bg-button);
    color: var(--color-text-button);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(250, 251, 252, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.8rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 32px;
    display: block;
    transition: opacity 0.2s ease;
}

.logo:hover img {
    opacity: 0.8;
}

.header-nav {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.header-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
}

.header-link:hover {
    color: var(--color-text-secondary);
}

.header-btn {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-bg-secondary);
    text-decoration: none;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: var(--color-bg-button);
    letter-spacing: -0.01em;
}

.header-btn:hover {
    background-color: var(--color-bg-button-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* CTA Button */
.cta-button {
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--color-text-button);
    text-decoration: none;
    padding: 1.4rem 3.6rem;
    border: none;
    border-radius: 10px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: var(--color-bg-button);
    display: inline-block;
    letter-spacing: -0.01em;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 1s ease-out 0.3s both;
}

.cta-button:hover {
    background-color: var(--color-bg-button-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Main Content */
.main {
    min-height: 100vh;
    padding-top: 76px;
}

.hero-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10rem 4rem 12rem;
    min-height: calc(100vh - 76px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
}

.hero-content {
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 0.8s ease-out;
}

.hero-eyebrow {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: var(--space-3xl);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.hero-text {
    font-size: 2rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.01em;
    font-weight: 400;
}

.hero-text:first-of-type {
    font-weight: 500;
    color: var(--color-text-primary);
}

.hero-text:last-of-type {
    margin-bottom: 0;
    font-weight: 500;
    color: var(--color-text-primary);
}

.hero-divider {
    width: 100%;
    height: 1px;
    background-color: var(--color-border);
    margin: var(--space-3xl) 0;
}

/* Solutions Page */
.solutions-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 10rem 4rem 12rem;
    min-height: calc(100vh - 76px);
}

.solutions-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    align-items: start;
}

.solutions-intro {
    position: sticky;
    top: 120px;
    animation: fadeInUp 0.8s ease-out;
}

.solutions-title {
    font-size: 3.6rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.solutions-description {
    font-size: 1.8rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    letter-spacing: -0.01em;
}

.solutions-grid {
    display: grid;
    gap: var(--space-lg);
    animation: fadeIn 1s ease-out 0.2s both;
}

.solution-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: var(--space-2xl);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.solution-card:hover {
    border-color: var(--color-text-tertiary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.solution-card-title {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.solution-card-description {
    font-size: 1.7rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    letter-spacing: -0.01em;
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, transparent 0%, var(--color-bg-primary) 20%);
    border-top: 1px solid var(--color-border);
}

.footer-cta {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--space-3xl) 4rem;
}

.footer-eyebrow {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
    color: var(--color-text-secondary);
    letter-spacing: -0.01em;
}

.footer-title {
    font-size: 3.6rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: var(--space-2xl);
    max-width: 800px;
    letter-spacing: -0.02em;
}

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: var(--space-xl) 4rem;
    background-color: var(--color-bg-secondary);
}

.footer-bottom-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-copyright {
    font-size: 1.4rem;
    color: var(--color-text-tertiary);
    font-weight: 400;
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-link {
    font-size: 1.4rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 400;
}

.footer-link:hover {
    color: var(--color-text-primary);
}

/* Legal Pages (Privacy Policy & Terms of Service) */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--space-2xl) 2rem;
}

.legal-content {
    background-color: var(--color-bg-secondary);
    border-radius: 12px;
    padding: var(--space-3xl) 8rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.legal-content h1 {
    font-size: 3.6rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text-primary);
    letter-spacing: -0.02em;
}

.legal-date {
    font-size: 1.5rem;
    color: var(--color-text-tertiary);
    margin-bottom: var(--space-3xl);
    font-style: italic;
    font-weight: 400;
}

.legal-section {
    margin-bottom: var(--space-xl);
}

.legal-section h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

.legal-section p {
    font-size: 1.6rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

.legal-section ul {
    margin-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.legal-section li {
    font-size: 1.6rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.legal-section a {
    color: var(--color-text-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

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

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.6rem;
    transition: opacity 0.2s ease;
}

.hamburger:hover {
    opacity: 0.7;
}

.hamburger span {
    width: 2.2rem;
    height: 0.2rem;
    background-color: var(--color-text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.6rem, 0.6rem);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.6rem, -0.6rem);
}

.nav-close {
    display: none;
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 4rem;
    color: var(--color-text-primary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 4rem;
    height: 4rem;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.nav-close:hover {
    opacity: 0.7;
}

/* Tablet and Below */
@media (max-width: 64rem) {
    .hero-section {
        padding: 8rem 3rem 10rem;
    }

    .hero-content {
        max-width: 700px;
    }

    .footer-cta {
        padding: var(--space-3xl) 3rem;
    }

    .footer-bottom {
        padding: var(--space-xl) 3rem;
    }

    .legal-content {
        padding: var(--space-3xl) 4rem;
    }

    .solutions-section {
        padding: 8rem 3rem 10rem;
    }

    .solutions-container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .solutions-intro {
        position: static;
        margin-bottom: var(--space-xl);
    }

    .solutions-title {
        font-size: 3.2rem;
    }
}

/* Mobile Responsive */
@media (max-width: 48rem) {
    .hamburger {
        display: flex;
    }

    .nav-close {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-3xl);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: var(--shadow-lg);
    }

    .header-nav.active {
        right: 0;
    }

    .header-link,
    .header-btn {
        font-size: 2.2rem;
    }

    .header-btn {
        padding: 1.2rem 2.8rem;
    }

    .header {
        z-index: 1001;
    }

    .logo {
        z-index: 1002;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 9px;
    }

    .header-inner {
        padding: 1.6rem 2.4rem;
    }

    .hero-section {
        padding: 8rem 2.4rem 10rem;
        gap: var(--space-2xl);
    }

    .hero-eyebrow {
        font-size: 2.2rem;
        margin-bottom: var(--space-2xl);
    }

    .hero-text {
        font-size: 1.9rem;
        margin-bottom: 1.8rem;
    }

    .footer-cta {
        padding: var(--space-2xl) 2.4rem;
    }

    .footer-title {
        font-size: 3rem;
    }

    .footer-bottom {
        padding: var(--space-lg) 2.4rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .footer-links {
        gap: var(--space-lg);
    }

    .legal-container {
        padding: var(--space-lg) var(--space-sm);
    }

    .legal-content {
        padding: var(--space-2xl) 2.4rem;
        border-radius: 10px;
    }

    .legal-content h1 {
        font-size: 3rem;
    }

    .legal-section h2 {
        font-size: 2rem;
    }

    .legal-section p,
    .legal-section li {
        font-size: 1.5rem;
    }

    .cta-button {
        font-size: 1.6rem;
        padding: 1.2rem 2.8rem;
        border-radius: 8px;
    }

    .solutions-section {
        padding: 8rem 2.4rem 10rem;
    }

    .solutions-title {
        font-size: 2.8rem;
        margin-bottom: var(--space-md);
    }

    .solutions-description {
        font-size: 1.7rem;
    }

    .solutions-grid {
        gap: var(--space-md);
    }

    .solution-card {
        padding: var(--space-lg);
    }

    .solution-card-title {
        font-size: 2rem;
        margin-bottom: var(--space-sm);
    }

    .solution-card-description {
        font-size: 1.6rem;
    }
}
