/* ============ Zeugos — dark theme ============ */
:root {
    --bg: #0a0e14;
    --bg-soft: #0f141d;
    --bg-card: #131a26;
    --bg-card-hover: #1a2333;
    --border: #223047;
    --text: #e8edf5;
    --text-dim: #9aa7ba;
    --accent: #38e0c3;
    --accent-2: #4f8cff;
    --grad: linear-gradient(100deg, #38e0c3, #4f8cff);
    --header-h: 72px;
    --radius: 14px;
    --shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

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

html { scroll-behavior: smooth; scrollbar-color: #2a3a55 var(--bg); }

::selection { background: rgba(56, 224, 195, .28); color: var(--text); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a3a55; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #3d5170; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.15; }

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

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ============ Buttons ============ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
    font-family: 'Inter', sans-serif;
}
.btn-primary {
    background: var(--grad);
    color: #05141a;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(56, 224, 195, .35);
}
.btn-ghost {
    border-color: var(--border);
    color: var(--text);
    background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 15px 32px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; text-align: center; }

/* ============ Header / Nav ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 14, 20, .85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 10px;
    background: var(--grad);
    color: #05141a;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 20px;
}
.brand-name {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    letter-spacing: .22em;
    font-size: 17px;
}

.main-nav { display: flex; gap: 6px; margin-left: auto; }
.header-cta { white-space: nowrap; }

/* Hamburger (mobile only) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 11px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform .2s ease, opacity .2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-link {
    background: none;
    border: none;
    color: var(--text-dim);
    font: 500 15px 'Inter', sans-serif;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 8px;
    transition: color .15s ease;
    height: var(--header-h);
}
.nav-item.open .nav-link,
.nav-link:hover { color: var(--accent); }
.chev { font-size: 10px; opacity: .7; margin-left: 2px; transition: transform .2s ease; display: inline-block; }
.nav-item.open .chev { transform: rotate(180deg); }

/* ---- Screen-wide mega dropdown ---- */
.mega {
    position: fixed;
    left: 0; right: 0;
    top: var(--header-h);
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 99;
}
.nav-item.open .mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 36px 24px 44px;
}
.mega-eyebrow {
    font-size: 12px;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 600;
}
.mega-grid { display: grid; gap: 16px; }
.mega-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.mega-grid.cols-1 { grid-template-columns: 1fr; }

.mega-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
a.mega-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    background: var(--bg-card-hover);
}
.mega-card.static { cursor: default; opacity: .85; }
.mega-card h3 { font-size: 17px; margin-bottom: 8px; }
.mega-card h3 .sub {
    display: block;
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 400;
    margin-top: 2px;
    letter-spacing: .04em;
}
.mega-card p { font-size: 13.5px; color: var(--text-dim); }
.mega-card-icon { font-size: 26px; color: var(--accent); margin-bottom: 12px; }
.mega-card-cta {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}
.badge {
    display: inline-block;
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    background: rgba(79, 140, 255, .15);
    color: var(--accent-2);
    border: 1px solid rgba(79, 140, 255, .35);
    border-radius: 999px;
    padding: 3px 10px;
    margin-left: 8px;
    vertical-align: middle;
    font-family: 'Inter', sans-serif;
}

.mega-contact {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}
.mega-contact h3 { font-size: 24px; margin-bottom: 10px; }
.mega-contact p { color: var(--text-dim); }
.mega-contact-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
.contact-phone { font-size: 18px; font-weight: 600; color: var(--accent); }
.contact-phone:hover { text-decoration: underline; }

/* dim the page behind an open menu */
.mega-backdrop {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(4, 6, 10, .6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s;
    z-index: 98;
}
.site-header.menu-open .mega-backdrop { opacity: 1; visibility: visible; }

/* ============ Hero ============ */
.hero, .page-hero { position: relative; overflow: hidden; }
.hero-glow {
    position: absolute;
    top: -240px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 560px;
    background: radial-gradient(ellipse at center, rgba(56, 224, 195, .16), rgba(79, 140, 255, .08) 45%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 110px 24px 90px;
    text-align: center;
    position: relative;
}
.hero-inner > *, .page-hero-inner > * { animation: rise .6s ease both; }
.hero-inner > *:nth-child(2), .page-hero-inner > *:nth-child(2) { animation-delay: .08s; }
.hero-inner > *:nth-child(3), .page-hero-inner > *:nth-child(3) { animation-delay: .16s; }
.hero-inner > *:nth-child(4), .page-hero-inner > *:nth-child(4) { animation-delay: .24s; }
@keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-inner > *, .page-hero-inner > * { animation: none; }
    .form-field.shake { animation: none; }
    html { scroll-behavior: auto; }
}
.hero-eyebrow {
    font-size: 13px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 22px;
}
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; }
.hero-sub {
    max-width: 620px;
    margin: 26px auto 0;
    color: var(--text-dim);
    font-size: 18px;
}
.hero-actions {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 90px 24px 70px;
    text-align: center;
    position: relative;
}
.page-hero.compact .page-hero-inner { padding-bottom: 30px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
.page-hero .hero-sub { margin-top: 20px; }
.placeholder-note {
    display: inline-block;
    margin-top: 34px;
    padding: 10px 22px;
    border: 1px dashed var(--border);
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 14px;
}

/* ============ Scroll reveals (home page) ============ */
/* Hidden states only apply once JS adds .has-reveal, so no-JS visitors
   see everything; animation (not transition) so card hover transforms
   still run at their own speed afterwards */
.has-reveal [data-reveal],
.has-reveal [data-cascade] > * { opacity: 0; }
.has-reveal [data-reveal].in,
.has-reveal [data-cascade].in > * {
    opacity: 1;
    animation: sweep-up .65s cubic-bezier(.16, .84, .36, 1) backwards;
    animation-delay: var(--d, 0ms);
}
@keyframes sweep-up {
    from { opacity: 0; transform: translateY(30px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .has-reveal [data-reveal],
    .has-reveal [data-cascade] > * { opacity: 1; animation: none; }
}

/* ============ Stats strip ============ */
.strip { border-block: 1px solid var(--border); background: var(--bg-soft); }
.strip-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 34px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.stat-num {
    display: block;
    font-family: 'Sora', sans-serif;
    font-size: 34px;
    font-weight: 800;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stat-label { font-size: 13px; color: var(--text-dim); letter-spacing: .04em; }

/* ============ Sections & cards ============ */
.section { padding: 90px 0; }
.section.alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-inner { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section-eyebrow {
    font-size: 12px;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 14px;
}
.section h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 42px; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
a.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    background: var(--bg-card-hover);
    box-shadow: 0 14px 40px rgba(56, 224, 195, .1);
}
.card-icon { font-size: 30px; color: var(--accent); margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--text-dim); }
.card-cta {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

/* ============ CTA band ============ */
.cta-band {
    background:
        radial-gradient(ellipse at 20% 120%, rgba(56, 224, 195, .14), transparent 55%),
        radial-gradient(ellipse at 80% -20%, rgba(79, 140, 255, .14), transparent 55%),
        var(--bg-soft);
    border-top: 1px solid var(--border);
}
.cta-band-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 90px 24px;
    text-align: center;
}
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); }
.cta-band p { color: var(--text-dim); margin: 14px 0 34px; font-size: 17px; }

/* ============ Contact page ============ */
.contact-section { padding-top: 40px; }
.contact-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    align-items: start;
}
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 20px; }
.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    padding: 13px 16px;
    font: 400 15px 'Inter', sans-serif;
    transition: border-color .15s ease, box-shadow .15s ease;
    resize: vertical;
}
.form-field input:hover,
.form-field textarea:hover { border-color: #35496b; }
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 224, 195, .15);
}
.form-field ::placeholder { color: #5b6b82; }

/* Phone input with US flag +1 prefix */
.phone-group {
    display: flex;
    align-items: stretch;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.phone-group:hover { border-color: #35496b; }
.phone-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(56, 224, 195, .15);
}
.phone-prefix {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 12px;
    border-right: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 14.5px;
    font-weight: 600;
    user-select: none;
    white-space: nowrap;
}
.us-flag { width: 21px; height: auto; border-radius: 2px; display: block; }
.phone-group input,
.phone-group input:hover,
.phone-group input:focus {
    border: none;
    box-shadow: none;
    background: transparent;
}

/* Validation errors */
.form-field.error input,
.form-field.error textarea,
.form-field.error .phone-group { border-color: #ff5d6c; }
.form-field.error .phone-group input { border: none; }
.form-field.error .phone-group:focus-within,
.form-field.error input:focus,
.form-field.error textarea:focus { box-shadow: 0 0 0 3px rgba(255, 93, 108, .15); }
.field-error {
    margin-top: 7px;
    font-size: 13px;
    color: #ff5d6c;
    font-weight: 500;
}
.form-field { scroll-margin-top: calc(var(--header-h) + 24px); }
.form-field.shake { animation: shake .4s ease; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-7px); }
    40% { transform: translateX(7px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.form-banner {
    background: rgba(255, 93, 108, .1);
    border: 1px solid rgba(255, 93, 108, .4);
    color: #ff8f9a;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 14px;
    margin-bottom: 22px;
}

/* Sending state: grey out fields, spinner in the button */
.form-card.sending .form-field,
.form-card.sending .form-footnote {
    opacity: .45;
    pointer-events: none;
}
.btn:disabled { cursor: wait; transform: none; box-shadow: none; opacity: .85; }
.btn-loading { display: inline-flex; align-items: center; gap: 10px; }
.btn-loading[hidden], .btn-label[hidden] { display: none; }
.spinner {
    width: 17px;
    height: 17px;
    border: 2.5px solid rgba(5, 20, 26, .25);
    border-top-color: #05141a;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-footnote {
    margin-top: 16px;
    text-align: center;
    font-size: 12.5px;
    color: var(--text-dim);
}

.contact-aside {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    position: sticky;
    top: calc(var(--header-h) + 24px);
}
.contact-aside h3 { font-size: 16px; margin-bottom: 12px; }
.contact-aside p { font-size: 13.5px; color: var(--text-dim); margin-bottom: 14px; }
.aside-divider { height: 1px; background: var(--border); margin: 24px 0; }

.success-card { text-align: center; animation: pop .45s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes pop {
    from { opacity: 0; transform: scale(.94) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.success-icon {
    width: 64px; height: 64px;
    margin: 0 auto 20px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: var(--grad);
    color: #05141a;
    font-size: 30px;
    font-weight: 800;
}
.success-card h2 { margin-bottom: 12px; }
.success-card p { color: var(--text-dim); margin-bottom: 28px; }

/* ============ Footer ============ */
.site-footer {
    background: #070a10;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 64px 24px 28px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--border);
}
.footer-col h4 {
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.footer-col p { font-size: 14px; color: var(--text-dim); }
.footer-logo-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 12px 20px 12px 12px;
    color: var(--text-dim);
    font-size: 13px;
    margin-bottom: 18px;
}
.footer-tagline { max-width: 300px; margin-bottom: 16px; }
.footer-phone { font-weight: 600; color: var(--text); font-size: 15px; }
.footer-phone:hover { color: var(--accent); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 26px;
    flex-wrap: wrap;
}
.footer-copy { font-size: 13.5px; color: var(--text-dim); }
.footer-quote { font-size: 13px; color: #5b6b82; font-style: italic; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
    .mega-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .strip-inner { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-wrap { grid-template-columns: 1fr; }
    .contact-aside { position: static; }
    .mega-contact { grid-template-columns: 1fr; gap: 24px; }
    .header-cta { display: none; }
}

/* ---- Mobile nav: hamburger + accordion panel ---- */
@media (max-width: 860px) {
    .nav-toggle { display: flex; margin-left: auto; }

    .main-nav {
        /* header's backdrop-filter is the containing block, so size
           against the viewport explicitly instead of bottom: 0 */
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        margin-left: 0;
        flex-direction: column;
        gap: 0;
        background: var(--bg);
        overflow-y: auto;
        padding: 8px 0 48px;
        display: none;
        z-index: 99;
    }
    .site-header.nav-open .main-nav { display: flex; }
    body.nav-open { overflow: hidden; }

    .nav-item { border-bottom: 1px solid var(--border); }
    .nav-link {
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 18px 24px;
        font-size: 16px;
        color: var(--text);
    }

    /* Mega panels become inline accordions inside the nav list */
    .mega {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        display: none;
        box-shadow: none;
        border-bottom: none;
        background: var(--bg-soft);
    }
    .nav-item.open .mega { display: block; }
    .mega-inner { padding: 20px 24px 28px; }
    .mega-backdrop { display: none; }
}

@media (max-width: 620px) {
    .mega-grid.cols-4 { grid-template-columns: 1fr; }
    .card-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .hero-inner { padding: 80px 20px 64px; }
    .page-hero-inner { padding: 64px 20px 48px; }
    .header-inner { padding: 0 16px; gap: 16px; }
    .form-card { padding: 28px 20px; }
    .contact-aside { padding: 24px 20px; }
    .cta-band-inner { padding: 64px 20px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}
