/* ============================================================
   NewAgentic — stylesheet
   Modern, dark, tech-forward aesthetic for an AI consultancy.
   ============================================================ */

:root {
    --bg:        #0a0b14;
    --bg-2:      #0f1120;
    --surface:   #14172a;
    --surface-2: #1b1f38;
    --border:    #262b47;
    --text:      #e7e9f3;
    --muted:     #9aa0c0;
    --brand:     #7c5cff;
    --brand-2:   #21d4c4;
    --brand-3:   #ff7ac6;
    --danger:    #ff6b6b;
    --success:   #2bd980;
    --radius:    16px;
    --maxw:      1140px;
    --shadow:    0 20px 60px -20px rgba(0,0,0,.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.grad {
    background: linear-gradient(100deg, var(--brand) 0%, var(--brand-3) 55%, var(--brand-2) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem;
    padding: .75rem 1.4rem;
    border-radius: 999px;
    background: linear-gradient(100deg, var(--brand), #5d7bff);
    color: #fff; font-weight: 600; font-size: .95rem;
    border: 0; cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
    box-shadow: 0 8px 24px -8px rgba(124,92,255,.7);
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 14px 30px -10px rgba(124,92,255,.8); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.02rem; }
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-ghost {
    background: transparent; box-shadow: none;
    border: 1px solid var(--border); color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand); background: rgba(124,92,255,.08); }

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(10,11,20,.78);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--text); display: flex; align-items: center; gap: .5rem; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-links a.btn { color: #fff; }
.nav-toggle, .nav-burger { display: none; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 500px at 80% -10%, rgba(124,92,255,.22), transparent 60%),
        radial-gradient(700px 500px at 0% 10%, rgba(33,212,196,.14), transparent 55%),
        var(--bg);
    padding: 84px 0 96px;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .14em;
    font-size: .76rem; font-weight: 700; color: var(--brand-2);
    background: rgba(33,212,196,.1); border: 1px solid rgba(33,212,196,.25);
    padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1.1rem;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); margin: 0 0 1.1rem; font-weight: 800; }
.lede { font-size: 1.16rem; color: var(--muted); max-width: 36em; margin: 0 0 1.8rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.8rem; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1.2rem; color: var(--muted); font-size: .92rem; }

/* Hero visual — abstract agent graph */
.hero-visual { position: relative; min-height: 340px; }
.orb {
    position: absolute; inset: 10% 8%;
    background: conic-gradient(from 120deg, var(--brand), var(--brand-3), var(--brand-2), var(--brand));
    filter: blur(14px); opacity: .35; border-radius: 50%;
    animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.node-card {
    position: absolute; display: flex; align-items: center; gap: .6rem;
    background: var(--surface); border: 1px solid var(--border);
    padding: .7rem 1rem; border-radius: 12px; box-shadow: var(--shadow);
    font-size: .9rem; font-weight: 500;
    animation: float 6s ease-in-out infinite;
}
.node-card    { top: 12%;  left: 6%; }
.node-card--2 { top: 46%;  right: 2%; animation-delay: 1.5s; }
.node-card--3 { bottom: 10%; left: 18%; animation-delay: 3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.node-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.node-dot--2 { background: var(--brand-2); box-shadow: 0 0 12px var(--brand-2); }
.node-dot--3 { background: var(--success); box-shadow: 0 0 12px var(--success); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 42em; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin: .4rem 0 .6rem; }
.section-sub { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 30px 26px; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card-icon { font-size: 2rem; margin-bottom: .6rem; }
.card h3 { margin: 0 0 .4rem; font-size: 1.3rem; }
.card-lead { color: var(--muted); margin: 0 0 1.1rem; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.check-list li { position: relative; padding-left: 1.6rem; color: var(--text); }
.check-list li::before {
    content: "✓"; position: absolute; left: 0; top: 0;
    color: var(--brand-2); font-weight: 700;
}

/* ---------- Platforms / logo wall ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.logo-item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: .35rem; padding: 30px 22px;
    background: linear-gradient(180deg, var(--surface), var(--bg-2));
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: transform .2s ease, border-color .2s ease;
}
.logo-item:hover { transform: translateY(-4px); border-color: var(--brand); }
.logo-mark {
    width: 64px; height: 64px; margin-bottom: .7rem;
    display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 100%; height: 100%; }
.logo-name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 1.1rem; }
.logo-sub { color: var(--muted); font-size: .86rem; }

/* ---------- Process steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px; margin-bottom: .8rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-3));
    color: #fff; font-weight: 700; font-family: 'Space Grotesk', sans-serif;
}
.step h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; }
.about-grid h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: .4rem 0 1rem; }
.about-grid p { color: var(--muted); font-size: 1.06rem; margin: 0 0 1.1rem; }
.stat-stack { display: grid; gap: 16px; }
.stat {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 22px 24px; display: flex; flex-direction: column;
}
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 2.2rem; font-weight: 700; color: var(--brand-2); }
.stat-label { color: var(--muted); }

/* ---------- Booking ---------- */
.section-book {
    background:
        radial-gradient(700px 400px at 100% 0%, rgba(124,92,255,.16), transparent 60%),
        var(--bg-2);
    border-top: 1px solid var(--border);
}
.book-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.book-intro h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: .4rem 0 1rem; }
.book-intro p { color: var(--muted); font-size: 1.06rem; }
.book-intro .check-list { margin: 1.2rem 0; }

.book-form-wrap {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
}
.book-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: .4rem; }
.field > span { font-size: .9rem; font-weight: 600; color: var(--text); }
.field em { color: var(--brand-3); font-style: normal; }
.field input, .field select, .field textarea {
    width: 100%; padding: .8rem .9rem;
    background: var(--bg); color: var(--text);
    border: 1px solid var(--border); border-radius: 10px;
    font: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(124,92,255,.25);
}
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Alerts ---------- */
.alert { border-radius: 12px; padding: 18px 20px; margin-bottom: 4px; }
.alert p { margin: .4rem 0 0; }
.alert ul { margin: .5rem 0 0; padding-left: 1.2rem; }
.alert-success { background: rgba(43,217,128,.12); border: 1px solid rgba(43,217,128,.4); color: #c9ffe5; }
.alert-success strong { color: var(--success); }
.alert-error { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.4); color: #ffd9d9; }
.alert-error strong { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { margin: 0 0 .6rem; font-size: 1rem; }
.footer-grid .brand { margin-bottom: .6rem; }
.footer-grid a { color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { min-height: 260px; order: -1; }
    .card-grid { grid-template-columns: 1fr; }
    .logo-wall { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .about-grid, .book-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }

    .nav-burger {
        display: flex; flex-direction: column; gap: 5px; cursor: pointer;
        padding: 8px; background: none; border: 0;
    }
    .nav-burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
    .nav-links {
        position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg-2); border-bottom: 1px solid var(--border);
        padding: 8px 24px 18px; display: none;
    }
    .nav-links a { padding: .8rem 0; border-bottom: 1px solid var(--border); }
    .nav-links a.btn { margin-top: 12px; }
    .nav-toggle:checked ~ .nav-links { display: flex; }
}

@media (max-width: 560px) {
    .field-row { grid-template-columns: 1fr; }
    .logo-wall { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 64px; }
    .section { padding: 60px 0; }
}

/* ---------- Chat widget ---------- */
.na-chat { position: fixed; right: 22px; bottom: 22px; z-index: 200; font-family: inherit; }

.na-chat-launcher {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .8rem 1.25rem; border: 0; cursor: pointer;
    border-radius: 999px; color: #fff; font-weight: 600; font-size: .98rem;
    background: linear-gradient(100deg, var(--brand), #5d7bff);
    box-shadow: 0 12px 30px -8px rgba(124,92,255,.7);
    transition: transform .15s ease, box-shadow .15s ease;
}
.na-chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(124,92,255,.85); }
.na-chat-launcher-icon { font-size: 1.15rem; line-height: 1; }
.na-chat.is-open .na-chat-launcher { display: none; }

.na-chat-panel {
    position: absolute; right: 0; bottom: 0;
    width: min(380px, calc(100vw - 32px));
    height: min(560px, calc(100vh - 48px));
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 18px; box-shadow: var(--shadow);
    animation: na-pop .18s ease;
}
/* Respect the [hidden] attribute the JS toggles (a bare class selector would
   otherwise override the browser's default [hidden]{display:none}). */
.na-chat-panel[hidden] { display: none; }
@keyframes na-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.na-chat-head {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    background: linear-gradient(100deg, rgba(124,92,255,.18), rgba(33,212,196,.10));
}
.na-chat-head-text { display: flex; flex-direction: column; line-height: 1.3; }
.na-chat-head-text strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.02rem; }
.na-chat-status { color: var(--muted); font-size: .78rem; }
.na-chat-close {
    background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1;
    cursor: pointer; padding: 0 .2rem; border-radius: 8px;
}
.na-chat-close:hover { color: var(--text); }

.na-chat-log {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 10px;
    background: var(--bg-2);
}
.na-msg {
    max-width: 84%; padding: .6rem .85rem; border-radius: 14px;
    font-size: .92rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word;
}
.na-msg--assistant { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 5px; }
.na-msg--user { align-self: flex-end; background: linear-gradient(100deg, var(--brand), #5d7bff); color: #fff; border-bottom-right-radius: 5px; }

.na-typing { display: inline-flex; gap: 5px; }
.na-typing span {
    width: 7px; height: 7px; border-radius: 50%; background: var(--muted);
    animation: na-blink 1.2s infinite ease-in-out;
}
.na-typing span:nth-child(2) { animation-delay: .2s; }
.na-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes na-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.na-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.na-chat-input {
    flex: 1; resize: none; max-height: 120px;
    padding: .65rem .8rem; font: inherit; font-size: .92rem;
    color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
}
.na-chat-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124,92,255,.25); }
.na-chat-send {
    flex: 0 0 auto; width: 42px; height: 42px; border: 0; cursor: pointer;
    border-radius: 12px; color: #fff; font-size: 1.05rem;
    background: linear-gradient(100deg, var(--brand), #5d7bff);
}
.na-chat-send:disabled { opacity: .5; cursor: default; }
.na-chat-foot { margin: 0; padding: 0 12px 12px; text-align: center; color: var(--muted); font-size: .72rem; }

@media (max-width: 560px) {
    .na-chat { right: 14px; bottom: 14px; }
    .na-chat-launcher-label { display: none; }
    .na-chat-launcher { padding: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
}
