/* ==========================================================================
   ONE CLICK AI SOLUTIONS - EDITORIAL MINIMALIST DESIGN SYSTEM
   Inspired by thehumanloops.com aesthetic & styled with the visiting card palette:
   Deep Royal Blue (#1E40AF), Slate 900 (#0F172A), Slate 50 (#F8FAFC), Slate 200 (#E2E8F0)
   ========================================================================== */

:root {
    /* Visiting Card Color Palette (Light Mode Default) */
    --bg-page: #ffffff;
    --bg-alt: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #fcfdfe;
    --bg-subtle: #f1f5f9;

    --brand-blue: #1e40af;       /* Exact visiting card royal blue */
    --brand-blue-hover: #1d4ed8;
    --brand-blue-light: #eff6ff;
    --brand-blue-border: #bfdbfe;
    
    --accent-vibrant: #2563eb;
    --accent-emerald: #10b981;

    --text-heading: #0f172a;     /* Exact visiting card slate 900 */
    --text-body: #334155;        /* Slate 700 */
    --text-muted: #64748b;       /* Slate 500 */
    --text-light: #94a3b8;

    --border-color: #e2e8f0;     /* Exact visiting card border */
    --border-card: #e2e8f0;
    --border-hover: #cbd5e1;

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;

    --shadow-subtle: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
    --shadow-hover: 0 20px 30px -10px rgba(30, 64, 175, 0.08);
}

/* Dark Mode (High-legibility Obsidian) */
[data-theme="dark"] {
    --bg-page: #0b0f19;
    --bg-alt: #111827;
    --bg-card: #111827;
    --bg-card-hover: #162032;
    --bg-subtle: #1e293b;

    --brand-blue: #3b82f6;
    --brand-blue-hover: #60a5fa;
    --brand-blue-light: rgba(59, 130, 246, 0.12);
    --brand-blue-border: rgba(59, 130, 246, 0.3);

    --text-heading: #f8fafc;
    --text-body: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #64748b;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-card: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.35);

    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

/* Global Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-page);
    color: var(--text-body);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    background-color: var(--bg-page);
    color: var(--text-body);
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.wrap {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==========================================================================
   NAVIGATION BAR (thehumanloops.com style)
   ========================================================================== */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.site-nav.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--brand-blue-light);
    border: 1px solid var(--brand-blue-border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.brand-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-heading);
    line-height: 1.1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-heading);
}

.nav-links a.active {
    color: var(--brand-blue);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.15rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 6px;
    transition: transform 0.2s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    color: var(--text-heading);
}

.mobile-burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-heading);
    cursor: pointer;
}

/* ==========================================================================
   BUTTONS (Pill Shaped - Human Loops style)
   ========================================================================== */
.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: var(--font-sans);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid transparent;
    white-space: nowrap;
}

.btn-solid {
    background-color: var(--brand-blue);
    color: #ffffff;
}

.btn-solid:hover {
    background-color: var(--brand-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.25);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-heading);
}

.btn-outline:hover {
    border-color: var(--text-heading);
    background: var(--bg-alt);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 14px 30px;
    font-size: 0.875rem;
}

/* ==========================================================================
   HERO SECTION (Bold Editorial Clean)
   ========================================================================== */
.hero {
    padding: 100px 0 90px;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.825rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-blue);
    margin-bottom: 24px;
    display: block;
}

.hero-h1 {
    font-size: clamp(2.8rem, 6.5vw, 5.25rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text-heading);
    max-width: 1000px;
    margin-bottom: 28px;
}

.hero-p {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    color: var(--text-muted);
    max-width: 820px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-p strong {
    color: var(--text-heading);
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   HOW WE DIFFER SECTION (Screenshot 4)
   ========================================================================== */
.section {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.section-title-big {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    color: var(--brand-blue);
    margin-bottom: 14px;
    line-height: 1.08;
}

.section-subtitle-lead {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-heading);
    max-width: 800px;
    margin-bottom: 50px;
    line-height: 1.45;
}

/* Differ Cards Grid */
.differ-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 0.8fr;
    gap: 20px;
    align-items: stretch;
}

.differ-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.differ-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.differ-card.highlight {
    border-color: var(--brand-blue-border);
    background: var(--brand-blue-light);
}

.differ-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-heading);
    margin-bottom: 14px;
}

.differ-card p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 24px;
}

.differ-card p strong {
    color: var(--text-heading);
}

.stat-callout {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-sans);
    color: var(--brand-blue);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-callout-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Output formats pill track */
.tag-track {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.track-tag {
    font-family: var(--font-mono);
    font-size: 0.725rem;
    padding: 5px 12px;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
}

/* ==========================================================================
   SERVICES SECTION (Screenshot 3 - Interactive Split)
   ========================================================================== */
.category-filter-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-pill {
    padding: 9px 20px;
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

.services-split-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
}

/* Left Featured Service Card */
.service-featured-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 44px;
}

.service-featured-card .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-blue);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.service-featured-card h3 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.service-featured-card .lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.included-list-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 16px;
    display: block;
}

.included-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.included-list li {
    font-size: 0.925rem;
    color: var(--text-body);
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.included-list li::before {
    content: "—";
    color: var(--brand-blue);
    font-weight: 800;
}

/* Right Accordion / Service Modules List */
.service-modules-list {
    display: grid;
    gap: 12px;
}

.service-module-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}

.service-module-item:hover {
    border-color: var(--brand-blue);
    background: var(--bg-card-hover);
}

.service-module-item.active {
    border-color: var(--brand-blue);
    background: var(--brand-blue-light);
}

.module-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.module-num {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-blue);
}

.module-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
}

.module-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.service-module-item.active .module-icon {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
}

/* ==========================================================================
   SELECTED WORK / CASE STUDIES (Screenshot 2)
   ========================================================================== */
.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.case-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card);
}

.case-card.highlight {
    border-color: var(--brand-blue-border);
}

.case-card .eyebrow {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--brand-blue);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: block;
}

.case-impact-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-heading);
    line-height: 1.3;
    margin-bottom: 10px;
}

.case-meta-line {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.case-breakdown-steps {
    display: grid;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
}

.case-step h5 {
    font-family: var(--font-mono);
    font-size: 0.725rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.case-step p {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.6;
}

/* ==========================================================================
   ONECLICK ATTENDANCE HIGHLIGHT BOX
   ========================================================================== */
.product-hero-box {
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.product-hero-box h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    margin-bottom: 14px;
}

.product-hero-box p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 28px;
}

/* ==========================================================================
   FINAL CTA SECTION (Screenshot 1: "Let's talk. Ready to build with us?")
   ========================================================================== */
.cta-section {
    padding: 130px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.cta-eyebrow {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand-blue);
    margin-bottom: 8px;
}

.cta-headline {
    font-size: clamp(2.75rem, 5.5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-heading);
    margin-bottom: 16px;
    line-height: 1.1;
}

.cta-subtext {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 620px;
    margin-inline: auto;
    margin-bottom: 36px;
    line-height: 1.5;
}

/* Contact Drawer / Form */
.contact-modal-box {
    max-width: 680px;
    margin-inline: auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 36px;
    text-align: left;
    box-shadow: var(--shadow-card);
    margin-top: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.input-group label {
    display: block;
    font-size: 0.775rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    background: var(--bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-heading);
    transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: var(--bg-card);
}

/* ==========================================================================
   FOOTER (thehumanloops.com style)
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 35px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-nav {
    display: flex;
    gap: 24px;
    font-size: 0.775rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
    font-size: 0.8rem;
}

/* Toast */
.toast-notice {
    display: none;
    padding: 12px;
    border-radius: var(--radius-sm);
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.875rem;
    margin-top: 14px;
    text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .differ-grid {
        grid-template-columns: 1fr;
    }

    .services-split-layout {
        grid-template-columns: 1fr;
    }

    .case-study-grid {
        grid-template-columns: 1fr;
    }

    .product-hero-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-burger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 78px;
        left: 0;
        right: 0;
        background: var(--bg-page);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

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

    .footer-top {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
