/* ===================================================================
   BIZNEXEDGE CONSULT - Homepage
   -------------------------------------------------------------------
   Shares its palette and typography with login.php, register.php and
   the dashboard shell (header.php), so the marketing site, the auth
   pages and the app all read as one product.

   Palette lives in :root. Change --seal to re-accent the whole site.
   =================================================================== */

:root {
    /* surfaces */
    --ink:        #0A0E16;   /* deepest, used for dark bands  */
    --ink-2:      #161E2C;   /* gradient partner for --ink    */
    --paper:      #F4F6F8;   /* page background               */
    --card:       #FFFFFF;
    --line:       #E4E9EF;

    /* accent */
    --seal:       #0A5CFF;
    --seal-dark:  #0043CC;
    --seal-soft:  #E8EFFF;
    --glow:       #8FB4FF;   /* only legible on dark          */

    /* text */
    --text:       #10131A;
    --muted:      #5B6472;
    --dim:        #8F98A6;

    /* status */
    --ok:         #12A150;
    --ok-soft:    #E7F7EE;
    --signal:     #B45309;

    --radius:     16px;
    --radius-sm:  11px;
    --shadow:     0 1px 2px rgba(16,32,48,.04), 0 8px 24px -12px rgba(16,32,48,.14);
    --shadow-lg:  0 2px 4px rgba(16,32,48,.04), 0 24px 48px -20px rgba(16,32,48,.22);

    --display:    'Sora', system-ui, sans-serif;
    --body:       'Inter', system-ui, -apple-system, sans-serif;
    --mono:       'IBM Plex Mono', ui-monospace, monospace;

    --nav-h:      68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

body {
    font-family: var(--body);
    background: var(--paper);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: var(--seal); text-decoration: none; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 860px; }

/* ---------- shared type ---------- */

.eyebrow {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--seal);
    margin-bottom: .75rem;
}
.eyebrow.on-dark { color: var(--glow); }

.section-head { max-width: 62ch; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
    font-family: var(--display);
    font-size: clamp(1.65rem, 3.4vw, 2.35rem);
    line-height: 1.22;
    letter-spacing: -.02em;
    margin-bottom: .7rem;
}
.section-head p { color: var(--muted); font-size: 1.02rem; }

section { padding: 5.5rem 0; }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--body);
    font-size: .92rem;
    font-weight: 600;
    padding: .8rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: filter .18s, background .18s, color .18s, border-color .18s, transform .06s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--seal); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); border-color: var(--dim); }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { filter: brightness(.94); }

.btn-outline-light {
    background: rgba(255,255,255,.06);
    color: #fff;
    border-color: rgba(255,255,255,.22);
}
.btn-outline-light:hover { background: rgba(255,255,255,.14); }

.btn-lg { padding: .95rem 1.7rem; font-size: 1rem; }

/* ===================================================================
   HEADER
   =================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(244,246,248,.82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s, background .2s;
}
.site-header.stuck {
    border-bottom-color: var(--line);
    background: rgba(244,246,248,.94);
}

.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); }
.brand .badge {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: block;
    object-fit: contain;
    flex: none;
}
.brand .wordmark {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: -.01em;
    line-height: 1.15;
}
.brand .wordmark em { font-style: normal; color: var(--seal); }
.brand .tag {
    display: block;
    font-family: var(--mono);
    font-size: .58rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--dim);
    margin-top: .1rem;
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.main-nav a {
    font-size: .9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color .18s;
}
.main-nav a:hover { color: var(--text); }

/* "Sign in" lives in the header on desktop, so the duplicate inside the
   drawer stays hidden until the drawer is the only nav available. */
.main-nav li.only-mobile { display: none; }

.header-actions { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
    display: none;
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
}

.nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(10,26,47,.45);
    opacity: 0; pointer-events: none;
    transition: opacity .22s;
    z-index: 190;
}
.nav-backdrop.show { opacity: 1; pointer-events: auto; }

/* ===================================================================
   HERO
   =================================================================== */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, var(--ink) 0%, var(--ink-2) 100%);
    color: #fff;
    padding: 5rem 0 6.5rem;
}
/* Two soft light sources. Deliberately low contrast so text stays crisp. */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero::before {
    width: 720px; height: 720px;
    top: -320px; right: -220px;
    background: radial-gradient(circle, rgba(10,92,255,.46) 0%, transparent 66%);
}
.hero::after {
    width: 520px; height: 520px;
    bottom: -260px; left: -180px;
    background: radial-gradient(circle, rgba(143,180,255,.16) 0%, transparent 70%);
}
.hero > * { position: relative; z-index: 1; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3.5rem;
    align-items: center;
}

.hero h1 {
    font-family: var(--display);
    font-size: clamp(2.1rem, 5vw, 3.35rem);
    line-height: 1.12;
    letter-spacing: -.028em;
    margin-bottom: 1.1rem;
}
.hero h1 .accent {
    background: linear-gradient(100deg, var(--glow) 0%, #BFD9FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-lede {
    font-size: 1.08rem;
    line-height: 1.68;
    color: rgba(255,255,255,.7);
    max-width: 52ch;
    margin-bottom: 2rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.5rem; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255,255,255,.1);
}
.hero-trust div {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: rgba(255,255,255,.62);
}
.hero-trust i { color: var(--glow); font-size: .8rem; }

/* --- the floating result card --- */

.hero-visual { display: flex; justify-content: center; }

.result-card {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    padding: 1.4rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 30px 60px -25px rgba(0,0,0,.55);
    animation: float 7s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-11px); }
}

.result-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.result-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); flex: none; }
.result-head .label {
    font-family: var(--mono);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.55);
}
.result-head .timer {
    margin-left: auto;
    font-family: var(--mono);
    font-size: .7rem;
    color: var(--glow);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .55rem 0;
    font-size: .87rem;
}
.result-row .k { color: rgba(255,255,255,.5); }
.result-row .v { font-family: var(--mono); color: #fff; font-size: .82rem; text-align: right; }

.result-status {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(18,161,80,.16);
    border: 1px solid rgba(18,161,80,.35);
    color: #6EE7A8;
    font-family: var(--body);
    font-size: .74rem;
    font-weight: 600;
    padding: .16rem .55rem;
    border-radius: 999px;
}

.result-foot {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
    color: rgba(255,255,255,.6);
}
.result-foot i { color: var(--glow); }

/* ===================================================================
   STATS STRIP
   =================================================================== */

.stats {
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 2.5rem 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    text-align: center;
}
.stat .n {
    font-family: var(--display);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink);
    line-height: 1.1;
}
.stat .n span { color: var(--seal); }
.stat .l {
    font-size: .82rem;
    color: var(--muted);
    margin-top: .25rem;
}

/* ===================================================================
   SERVICES
   =================================================================== */

.services { background: var(--paper); }

.service-group { margin-bottom: 3rem; }
.service-group:last-child { margin-bottom: 0; }

.group-label {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.25rem;
}
.group-label h3 {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 600;
    white-space: nowrap;
}
.group-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 1.1rem;
}

.service-card {
    display: block;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: var(--text);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover {
    transform: translateY(-3px);
    border-color: #C7D6FF;
    box-shadow: var(--shadow-lg);
}

.service-card .ico {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--seal-soft);
    color: var(--seal);
    display: grid; place-items: center;
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
}
.service-card h4 {
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .4rem;
}
.service-card p {
    font-size: .89rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: .9rem;
}
.service-card .meta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--seal);
}
.service-card .meta.slow { color: var(--signal); }

/* ===================================================================
   HOW IT WORKS
   =================================================================== */

.how { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    counter-reset: step;
}
.step { position: relative; padding-top: 3.25rem; }
.step::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    top: 0; left: 0;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--glow);
    display: grid; place-items: center;
    font-family: var(--mono);
    font-size: .95rem;
    font-weight: 600;
}
/* Connector line between steps on wide screens */
.step::after {
    content: '';
    position: absolute;
    top: 21px; left: 54px; right: -2rem;
    height: 1px;
    background: linear-gradient(90deg, var(--line), transparent);
}
.step:last-child::after { display: none; }

.step h4 {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: .45rem;
}
.step p { font-size: .92rem; color: var(--muted); }

/* ===================================================================
   DEVELOPER API BAND
   =================================================================== */

.api-band {
    background: linear-gradient(155deg, var(--ink) 0%, var(--ink-2) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.api-band::before {
    content: '';
    position: absolute;
    width: 620px; height: 620px;
    top: -280px; left: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10,92,255,.38) 0%, transparent 68%);
    pointer-events: none;
}
.api-band > * { position: relative; z-index: 1; }

.api-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 3.5rem;
    align-items: center;
}
.api-copy h2 {
    font-family: var(--display);
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    line-height: 1.24;
    letter-spacing: -.02em;
    margin-bottom: .9rem;
}
.api-copy p { color: rgba(255,255,255,.68); margin-bottom: 1.5rem; max-width: 46ch; }

.api-list { list-style: none; margin-bottom: 2rem; display: grid; gap: .7rem; }
.api-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .92rem;
    color: rgba(255,255,255,.72);
}
.api-list i { color: var(--glow); font-size: .78rem; margin-top: .42rem; flex: none; }

.code-window {
    background: rgba(3,12,22,.62);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 60px -25px rgba(0,0,0,.6);
}
.code-bar {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .75rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.09);
}
.code-bar .d { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.code-bar .f {
    margin-left: .6rem;
    font-family: var(--mono);
    font-size: .7rem;
    color: rgba(255,255,255,.42);
}
.code-window pre {
    margin: 0;
    padding: 1.1rem 1.2rem;
    overflow-x: auto;
    font-family: var(--mono);
    font-size: .78rem;
    line-height: 1.75;
    color: #DCE7F0;
}
.code-window .c-key { color: var(--glow); }
.code-window .c-str { color: #A5E8B8; }
.code-window .c-com { color: rgba(255,255,255,.35); }

/* ===================================================================
   FAQ
   =================================================================== */

.faq { background: var(--paper); }

.faq-list { display: grid; gap: .75rem; }

.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.faq-item summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.3rem;
    font-family: var(--display);
    font-size: .96rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '\f078';                       /* chevron-down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: .7rem;
    color: var(--dim);
    margin-left: auto;
    transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item[open] summary { color: var(--seal); }
.faq-item .answer {
    padding: 0 1.3rem 1.2rem;
    font-size: .92rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ===================================================================
   CTA BAND
   =================================================================== */

.cta-band { background: var(--card); border-top: 1px solid var(--line); }

.cta-inner {
    background: linear-gradient(140deg, var(--ink) 0%, var(--ink-2) 100%);
    border-radius: 22px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cta-inner::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    top: -240px; right: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10,92,255,.46) 0%, transparent 68%);
    pointer-events: none;
}
.cta-inner > * { position: relative; z-index: 1; }

.cta-inner h2 {
    font-family: var(--display);
    font-size: clamp(1.55rem, 3.2vw, 2.15rem);
    letter-spacing: -.02em;
    margin-bottom: .75rem;
}
.cta-inner p { color: rgba(255,255,255,.68); max-width: 48ch; margin: 0 auto 1.9rem; }
.cta-inner .btns { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

/* ===================================================================
   FOOTER
   =================================================================== */

.site-footer {
    background: var(--ink);
    color: rgba(255,255,255,.62);
    padding: 4rem 0 1.75rem;
    font-size: .9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}
.footer-about .brand { color: #fff; margin-bottom: 1rem; }
.footer-about .brand .badge { border: 1px solid rgba(255,255,255,.14); }
.footer-about .brand .tag { color: var(--glow); }
.footer-about p { line-height: 1.7; max-width: 34ch; margin-bottom: 1.25rem; }

.footer-col h5 {
    font-family: var(--display);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: grid; gap: .6rem; }
.footer-col a { color: rgba(255,255,255,.62); transition: color .18s; }
.footer-col a:hover { color: var(--glow); }

.contact-line { display: flex; align-items: flex-start; gap: .6rem; line-height: 1.6; }
.contact-line i { color: var(--glow); font-size: .82rem; margin-top: .35rem; flex: none; }

.socials { display: flex; gap: .55rem; }
.socials a {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.11);
    color: rgba(255,255,255,.75);
    display: grid; place-items: center;
    font-size: .85rem;
    transition: background .18s, color .18s;
}
.socials a:hover { background: var(--seal); color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.09);
    padding-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    font-size: .84rem;
    color: rgba(255,255,255,.45);
}
.footer-bottom .legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--glow); }

/* ===================================================================
   SCROLL REVEAL
   =================================================================== */

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.in { opacity: 1; transform: none; }

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

@media (max-width: 1040px) {
    .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { order: -1; }
    .result-card { max-width: 380px; }
    .api-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .step::after { display: none; }
}

@media (max-width: 860px) {
    .nav-toggle { display: block; margin-left: auto; }

    .main-nav {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        width: 100%;
        margin-left: 0;
        background: var(--card);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        transform: translateY(-130%);
        transition: transform .26s ease;
        z-index: 195;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem 1.5rem 1.25rem;
    }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .main-nav li:last-child { border-bottom: none; }
    .main-nav a { display: block; padding: .95rem 0; font-size: .95rem; color: var(--text); }

    /* "Sign in" collapses into the drawer; only the primary CTA stays */
    .header-actions .btn-ghost { display: none; }
    .main-nav li.only-mobile { display: block; }

    section { padding: 4rem 0; }
    .section-head { margin-bottom: 2.25rem; }
    .hero { padding: 3.5rem 0 4.5rem; }
    .cta-inner { padding: 2.5rem 1.5rem; }
}

@media (max-width: 560px) {
    .brand .tag { display: none; }
    .hero-cta .btn { width: 100%; }
    .hero-trust { gap: .85rem; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
