/* AML Labs Light Theme — matching amllabs.io design system */
@import url('https://fonts.googleapis.com/css2?family=Audiowide&family=Exo+2:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-primary: #f5f5f5;
    --bg-secondary: #eaeaea;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f0;
    --bg-header: #f9f9f9;
    --bg-footer: #eaeaea;
    --accent-teal: #8da3b0;
    --accent-teal-hover: #7a929f;
    --accent-green: #4a9a6e;
    --accent-red: #c0524e;
    --accent-amber: #b8892e;
    --text-primary: #4a4e57;
    --text-secondary: #6b7280;
    --text-heading: #4a4e57;
    --text-muted: #9ca3af;
    --border: #d8dadf;
    --border-accent: #c0c3c9;
    --white: #ffffff;
}

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

body {
    font-family: 'Exo 2', sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
}

/* Typography */
h1, h2, h3 {
    font-family: 'Audiowide', sans-serif;
    color: var(--text-heading);
    font-weight: 400;
}

/* Navigation */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(249, 249, 249, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
}
.nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    height: 100px;
}
.nav-app {
    border-top: 1px solid var(--border);
    background: rgba(234, 234, 234, 0.5);
}
.nav-app-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; gap: 2rem;
    height: 40px;
}
.nav-app-inner a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.825rem; font-weight: 600;
    transition: color 0.2s;
}
.nav-app-inner a:hover, .nav-app-inner a.active {
    color: var(--text-heading);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.nav-app-separator { display: none; }
.nav-mobile-app { display: none; }
.nav-logo {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.15rem;
    color: var(--text-heading);
    text-decoration: none;
    display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo img {
    height: 96px;
    width: auto;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
    color: var(--text-secondary); text-decoration: none;
    font-size: 0.875rem; font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-heading);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.nav-cta {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-teal);
    color: var(--white);
    text-decoration: none !important;
    border-radius: 2px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.nav-cta:hover {
    background: var(--accent-teal-hover);
    color: var(--white) !important;
}

/* Hero */
.hero {
    padding: 10rem 2rem 4rem;
    text-align: center;
}
.hero-inner {
    max-width: 800px; margin: 0 auto;
}
.hero h1 {
    font-size: 2.75rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto; margin-right: auto;
    line-height: 1.8;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--accent-teal);
    color: var(--white);
    text-decoration: none;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-primary:hover {
    background: var(--accent-teal-hover);
}

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

/* Section */
.section {
    padding: 4rem 0;
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-label {
    color: var(--accent-teal);
    font-family: 'Exo 2', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 2rem;
    margin-bottom: 1rem;
}
.section-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.feature-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
}
.feature-icon {
    width: 56px; height: 56px;
    margin: 0 auto 1.25rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--accent-teal);
}
.feature-title {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}
.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
.stat-card {
    text-align: center;
    padding: 2rem;
}
.stat-value {
    font-family: 'Audiowide', sans-serif;
    font-size: 2.5rem;
    color: var(--accent-teal);
    margin-bottom: 0.5rem;
}
.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    background: var(--bg-secondary);
    border-radius: 4px;
    padding: 4rem 3rem;
    text-align: center;
    margin: 4rem 0;
}
.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.cta-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto; margin-right: auto;
}

/* Footer */
footer {
    background: var(--bg-footer);
    padding: 2.5rem 0;
    text-align: center;
}
.footer-nav {
    display: flex; justify-content: center; gap: 1.5rem;
    margin-bottom: 1rem;
}
.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
}
.footer-nav a:hover { color: var(--text-heading); }
.footer-nav-app {
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
}
.footer-social {
    display: flex; justify-content: center; gap: 1rem;
    margin-bottom: 1rem;
}
.footer-social a { color: var(--text-secondary); }
footer p {
    color: var(--text-muted);
    font-size: 0.8rem;
}
footer a { color: var(--accent-teal); text-decoration: none; }

/* Card (generic) */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
}

/* Service card */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}
.service-card h3 {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-heading);
    margin-bottom: 1rem;
}
.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}
.service-card p:last-child { margin-bottom: 0; }

/* Service row — alternating text + image layout */
.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.service-row + .service-row { margin-top: 2rem; }
.service-row .service-text {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.service-row .service-text h2 {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-heading);
    margin-bottom: 1.25rem;
}
.service-row .service-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.service-row .service-text p:last-child { margin-bottom: 0; }
.service-row .service-image {
    overflow: hidden;
}
.service-row .service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.service-row.reversed { direction: rtl; }
.service-row.reversed > * { direction: ltr; }

/* Quote box */
.quote-box {
    background: var(--bg-card);
    border-left: 4px solid var(--accent-teal);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 4px 4px 0;
}
.quote-box p {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}
.quote-box .attribution {
    font-size: 0.9rem;
    font-style: normal;
    font-weight: 600;
    color: var(--accent-teal);
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--bg-card);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
}
th, td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
th {
    background: var(--bg-secondary);
    color: var(--text-heading);
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-primary); }

/* References */
.references {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
    margin-top: 3rem;
}
.references h3 {
    margin-bottom: 1rem;
}
.references ol {
    padding-left: 1.5rem;
}
.references li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Blog */
.blog-post {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}
.blog-header {
    padding: 3rem 3rem 2rem;
    border-bottom: 1px solid var(--border);
}
.blog-header h2 {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}
.blog-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.blog-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    font-style: italic;
}
.blog-body {
    padding: 2.5rem 3rem 3rem;
}
.blog-body h3 {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    margin: 2.5rem 0 1rem;
}
.blog-body h3:first-child { margin-top: 0; }
.blog-body h4 {
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-heading);
    margin: 1.75rem 0 0.75rem;
}
.blog-body p {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1rem;
}
.blog-body ul {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.blog-body li {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.6rem;
}
.blog-body em { font-style: italic; }
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}
.tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-radius: 2px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}
.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2.5rem;
    text-align: center;
}
.contact-icon {
    width: 64px; height: 64px;
    margin: 0 auto 1.25rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-secondary);
    border-radius: 50%;
    color: var(--accent-teal);
}
.contact-card h3 {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-heading);
    margin-bottom: 0.75rem;
}
.contact-card a {
    color: var(--accent-teal);
    text-decoration: none;
}
.contact-card a:hover { text-decoration: underline; }
.contact-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}
.contact-social {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.contact-social a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 500;
}
.contact-social a:hover { text-decoration: underline; }

/* About */
.about-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.about-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2rem;
}
.about-info-icon {
    color: var(--accent-teal);
    margin-bottom: 0.75rem;
}
.about-info-card h3 {
    font-family: 'Audiowide', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}
.about-info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.about-mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.about-mission-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2.5rem;
}
.about-mission-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    color: var(--accent-teal);
}
.about-mission-header h2 {
    font-size: 1.25rem;
}
.about-mission-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}
.founder-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3rem;
}
.founder-text p {
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}
.founder-text p:last-child { margin-bottom: 0; }
.founder-profile {
    text-align: center;
}
.founder-profile img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.25rem;
}
.founder-info h3 {
    font-family: 'Audiowide', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.25rem;
}
.founder-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
nav.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
nav.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}
nav.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Responsive */
@media (max-width: 768px) {
    body { overflow-x: hidden; }

    /* Nav */
    .nav-inner { height: 72px; }
    .nav-logo img { height: 64px; }
    .nav-toggle { display: flex; }
    .nav-app { display: none; }
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0; right: 0;
        background: rgba(249, 249, 249, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 1rem;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    nav.nav-open .nav-links { display: flex; }
    .nav-links a {
        display: flex;
        align-items: center;
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
        min-height: 48px;
        border-bottom: 1px solid var(--border);
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-links a.nav-cta {
        display: flex;
        margin: 0.75rem 1.5rem 0;
        justify-content: center;
        border-bottom: none;
        border-radius: 4px;
    }
    .nav-mobile-app {
        display: contents;
    }
    .nav-app-separator {
        display: block;
        height: 0;
        border-top: 2px solid var(--accent-teal);
        margin: 0.5rem 1.5rem;
    }

    /* Hero */
    .hero { padding: 7rem 1.5rem 3rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }

    /* Content */
    .container { padding: 0 1.25rem; }
    .section-title { font-size: 1.5rem; }
    .feature-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .service-row { grid-template-columns: 1fr; }
    .service-row.reversed { direction: ltr; }
    .service-row .service-image { min-height: 200px; }
    .service-row .service-text { padding: 2rem 1.5rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .blog-header, .blog-body { padding-left: 1.5rem; padding-right: 1.5rem; }
    .about-info-cards { grid-template-columns: 1fr; }
    .about-mission-grid { grid-template-columns: 1fr; }
    .founder-section { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
    .founder-profile { order: -1; }
    .cta-section { padding: 2.5rem 1.5rem; }

    /* Footer */
    .footer-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem 1rem;
        text-align: left;
    }
}
