/* ============================================================
   DESIGN SYSTEM & CSS VARIABLES
   ============================================================ */
:root {
    /* Light Mode */
    --bg-color: #f7f8fa;
    --text-color: #111111;
    --text-muted: #555555;

    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: rgba(0, 0, 0, 0.05);

    --primary: #111111;
    --primary-hover: #333333;
    --primary-text: #ffffff;

    --highlight: #e0e0e0;
    --input-bg: rgba(255, 255, 255, 0.6);
    --input-border: rgba(0, 0, 0, 0.1);

    /* Orbs (Light) */
    --orb-1: rgba(200, 200, 200, 0.5);
    --orb-2: rgba(230, 230, 230, 0.5);
    --orb-3: rgba(180, 180, 180, 0.4);

    /* Section spacing */
    --section-py: 4.5rem;
}

[data-theme="dark"] {
    /* Dark Mode */
    --bg-color: #080808;
    --text-color: #f9f9f9;
    --text-muted: #a0a0a0;

    --glass-bg: rgba(20, 20, 20, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.3);

    --primary: #ffffff;
    --primary-hover: #e0e0e0;
    --primary-text: #000000;

    --highlight: #222222;
    --input-bg: rgba(30, 30, 30, 0.6);
    --input-border: rgba(255, 255, 255, 0.15);

    /* Orbs (Dark) */
    --orb-1: rgba(40, 40, 40, 0.6);
    --orb-2: rgba(20, 20, 20, 0.8);
    --orb-3: rgba(50, 50, 50, 0.4);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* Orbs shouldn't snap during theme transitions */
.bg-container, .bg-orb {
    transition: background-color 1s ease;
}

/* ============================================================
   ABSTRACT BACKGROUND ORBS
   ============================================================ */
.bg-container {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.8;
    animation: drift 20s infinite alternate ease-in-out;
}

.orb-1 { width: 40vw; height: 40vw; background: var(--orb-1); top: -10%; left: -10%; animation-delay: 0s; }
.orb-2 { width: 50vw; height: 50vw; background: var(--orb-2); bottom: -20%; right: -10%; animation-delay: -5s; animation-direction: alternate-reverse; }
.orb-3 { width: 30vw; height: 30vw; background: var(--orb-3); top: 40%; left: 30%; animation-delay: -10s; }

@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 10vh) scale(1.1); }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.text-center  { text-align: center; }
.min-vh-100   { min-height: 100vh; }
.flex-center  { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.flex-hc      { display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.flex-split   { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 2rem; }
.py-section   { padding: var(--section-py) 0; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.w-100  { width: 100%; }
.hidden { display: none !important; }

/* ============================================================
   GLASSMORPHISM BASE
   ============================================================ */
.glass-nav,
.glass-card,
.glass-panel,
.glass-badge,
.btn-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 var(--glass-shadow);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s;
    font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }

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

.btn-outline             { background: transparent; border: 1px solid var(--primary); color: var(--text-color); }
.btn-outline:hover       { background: var(--primary); color: var(--primary-text); }

.btn-glass               { color: var(--text-color); }
.btn-glass:hover         { background: var(--highlight); }

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.sticky-top {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    border-radius: 50px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    padding: 0 2rem;
}

.logo { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.logo span { color: var(--text-muted); }

.nav-content { gap: 1.5rem; }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-link   { font-weight: 500; font-size: 0.95rem; color: var(--text-muted); transition: color 0.2s; white-space: nowrap; }
.nav-link:hover { color: var(--text-color); }

/* Let's talk — one shows on desktop, the other inside the mobile drawer */
.nav-cta-mobile { display: none; }
.nav-cta-desktop { display: inline-flex; }

/* Align inline icons inside buttons — nudge down to match the optical center of text */
.btn svg,
.btn [data-lucide] {
    width: 1.05em;
    height: 1.05em;
    flex-shrink: 0;
    transform: translateY(0.08em);
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 50%;
}
.icon-btn:hover { background: var(--highlight); }

/* Sun shows in dark mode; moon shows in light mode */
[data-theme="dark"]  .icon-dark  { display: none; }
[data-theme="light"] .icon-light { display: none; }
[data-theme="light"] .icon-dark  { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: 6rem; }

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

.highlight-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

/* Warmer gradient for "compounding leverage" */
.text-gradient {
    background: linear-gradient(135deg, #c8a97e 0%, #d4b896 40%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* In light mode, stay readable */
[data-theme="light"] .text-gradient {
    background: linear-gradient(135deg, #8a6a3a 0%, #b08050 40%, #555555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 620px;
    margin-inline: auto;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================================
   SECTION HEADERS (shared)
   ============================================================ */
.section-header { margin-bottom: 4rem; }
.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

/* Small uppercase label that sits above the heading */
.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 620px;
    margin-inline: auto;
    line-height: 1.7;
}

/* ============================================================
   SERVICES — deep cards
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

/* Larger, richer card */
.service-card-deep {
    padding: 3rem;
    border-radius: 28px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.service-card-deep:hover { transform: translateY(-6px); border-color: var(--text-color); }

.service-card-deep .card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.75rem;
}
.service-card-deep .card-icon svg { width: 22px; height: 22px; }

.service-card-deep h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.4px;
}

.service-card-deep .card-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Checkmark bullet list */
.bullet-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.5;
}
.bullet-list li svg {
    /* Lucide check icon */
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 3px;
    color: var(--text-muted);
}

/* ============================================================
   HOW WE WORK — 4-step process
   ============================================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-card {
    padding: 2.5rem 2rem;
    border-radius: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.process-card:hover { transform: translateY(-4px); border-color: var(--text-color); }

.step-number {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    /* Use the theme's text color at low opacity so the digit is visibly muted
       in both light and dark modes, instead of fading into the glass border. */
    color: var(--text-color);
    opacity: 0.22;
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.process-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.process-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   EXAMPLE USE CASES — 6-card grid
   ============================================================ */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.use-case-card {
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.use-case-card:hover { transform: translateY(-4px); border-color: var(--text-color); }

.use-case-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}
.use-case-icon svg { width: 18px; height: 18px; }

.use-case-card h4 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.2px;
}

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

/* ============================================================
   ABOUT
   ============================================================ */
.about-block {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 3rem;
    border-radius: 28px;
}

.about-block h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    letter-spacing: -0.5px;
    margin-bottom: 1.75rem;
    line-height: 1.1;
}

.about-block p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ============================================================
   FAQ — native <details> accordion
   ============================================================ */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-radius: 16px;
    overflow: hidden;
    /* Remove the default marker */
    list-style: none;
}
.faq-item::-webkit-details-marker { display: none; }

.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 1.5rem 2rem;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    user-select: none;
    transition: background 0.2s;
}
.faq-item summary:hover { background: var(--highlight); }

.faq-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}
.faq-icon svg { width: 18px; height: 18px; }

/* When open, hide plus and show × via CSS transform + content swap handled in JS */
.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-answer {
    padding: 0.25rem 2rem 1.75rem;
    border-top: 1px solid var(--glass-border);
    margin: 0 0.5rem;
    animation: fadeSlideIn 0.2s ease forwards;
}
.faq-answer p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
    padding-top: 1.25rem;
    max-width: 60ch;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}
.detail-row svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted); }
.detail-row a { color: var(--text-color); }
.detail-row a:hover { text-decoration: underline; }

.form-container {
    padding: 3rem;
    border-radius: 24px;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    /* Avoid the global transition fighting focus changes */
    transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--text-color);
    background: var(--glass-bg);
}

/* Fix select appearance in dark mode */
.form-group select option { background: var(--bg-color); color: var(--text-color); }

.success-msg { color: #10b981; font-weight: 500; font-size: 1rem; }
.inline-icon { vertical-align: text-bottom; width: 1.25rem; height: 1.25rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-logo { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.3px; }

.footer-copy { color: var(--text-muted); }

.social-links { display: flex; gap: 1rem; }
.social-links a { color: var(--text-muted); display: flex; }
.social-links a:hover { color: var(--text-color); }
.social-links svg { width: 18px; height: 18px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   NAV — DESKTOP DEFAULTS (hamburger hidden)
   ============================================================ */
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    flex: 1;
}
.menu-btn { display: none; }
.icon-menu-close { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet — 1024px */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .use-case-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile — 768px */
@media (max-width: 768px) {
    :root { --section-py: 2.75rem; }

    /* Let's talk CTA swaps sides at mobile */
    .nav-cta-desktop { display: none; }
    .nav-cta-mobile  { display: inline-flex; }

    .hero-title { letter-spacing: -1px; }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* Nav: hamburger drawer */
    .nav-content { padding: 0 1.5rem; }
    .menu-btn { display: inline-flex; }

    .nav-links {
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 1rem;
        background: var(--bg-color);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
        z-index: 1001;

        opacity: 0;
        transform: translateY(-8px) scale(0.98);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    #main-nav.menu-open .nav-links {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 12px;
        font-size: 1rem;
    }
    .nav-link:hover { background: var(--input-bg); }
    .nav-cta { width: 100%; justify-content: center; margin-top: 0.25rem; }

    /* Hamburger icon state swap */
    #main-nav.menu-open .icon-menu-open { display: none; }
    #main-nav.menu-open .icon-menu-close { display: inline-flex; }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }
    .service-card-deep { padding: 2rem; }

    /* Process */
    .process-grid { grid-template-columns: 1fr; }

    /* Use cases */
    .use-case-grid { grid-template-columns: 1fr; }

    /* About */
    .about-block { padding: 2.5rem 1.5rem; }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .form-container { padding: 2rem; }

    /* Footer */
    .site-footer .flex-split { justify-content: center; text-align: center; flex-direction: column; gap: 1rem; }
}

/* Small phones — 480px */
@media (max-width: 480px) {
    .container { padding: 0 1.25rem; }
    .section-header { margin-bottom: 2.5rem; }
    .faq-item summary { padding: 1.25rem 1.5rem; font-size: 0.98rem; }
    .faq-answer { padding: 0 1.5rem 1.5rem; }
}
