/* ============================================================
   Aifiniti — Modern dark design system (2026)
   Brand: deep purple #320665 + green #00ba28, modernized with
   bright accents, glass surfaces, gradient glow and grotesk type.
   This stylesheet fully themes the site; index.css is no longer used.
   ============================================================ */

:root {
    --bg: #07060e;
    --bg-2: #0c0a18;
    --panel: rgba(255, 255, 255, .035);
    --panel-solid: #120c22;
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .16);
    --text: #ECEAF6;
    --muted: #9d96b6;
    --purple: #320665;
    --purple-br: #9d6bff;
    --green: #00ba28;
    --green-br: #2ff05a;
    --grad: linear-gradient(120deg, #9d6bff 0%, #00ba28 100%);
    --radius: 18px;
    --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, .display {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.12;
    color: #fff;
}

a { color: var(--green-br); text-decoration: none; transition: 180ms; }
a:hover { color: #fff; }

p { color: var(--muted); }

.container { max-width: var(--maxw); }

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

/* ---------- Ambient background glow ---------- */
.glow {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}
.glow:before, .glow:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .5;
}
.glow:before { width: 620px; height: 620px; background: #5b1ea8; top: -160px; left: -120px; }
.glow:after { width: 560px; height: 560px; background: #007a1b; bottom: -200px; right: -120px; opacity: .35; }
body:after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Navbar ---------- */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(8, 6, 16, .72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.site-nav .navbar { padding: 14px 0; }
.site-nav .navbar-brand img { width: 140px; }
.brand-logo { display: block; height: 30px; width: auto; }
.footer-x .brand-logo { height: 34px; margin-bottom: 18px; }
.site-nav .nav-link {
    color: var(--muted) !important;
    font-size: .95rem;
    padding: 8px 16px !important;
    font-weight: 500;
    transition: 160ms;
}
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: #fff !important; }
.site-nav .navbar-toggler { border-color: var(--border-strong); }
.site-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.btn-grad {
    background: var(--grad);
    color: #08060f !important;
    border: none;
    border-radius: 100px;
    padding: 10px 22px !important;
    font-weight: 700;
    transition: 180ms;
}
.btn-grad:hover { color: #08060f !important; transform: translateY(-1px); box-shadow: 0 10px 30px rgba(157, 107, 255, .35); }

/* ---------- Buttons ---------- */
.btn-primary-x {
    display: inline-block;
    background: var(--grad);
    color: #08060f;
    border-radius: 100px;
    padding: 14px 30px;
    font-weight: 700;
    border: none;
    transition: 180ms;
}
.btn-primary-x:hover { color: #08060f; transform: translateY(-2px); box-shadow: 0 14px 40px rgba(157, 107, 255, .35); }
.btn-ghost {
    display: inline-block;
    background: transparent;
    color: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    padding: 14px 30px;
    font-weight: 600;
    transition: 180ms;
}
.btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255, 255, 255, .05); }

/* ---------- Layout helpers ---------- */
.section { padding: 100px 0; position: relative; }
.section--tight { padding: 70px 0; }
.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .74rem;
    font-weight: 700;
    color: var(--green-br);
    margin-bottom: 16px;
}
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 16px; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 680px; }
.center { text-align: center; }
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Pills / badges ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 7px 16px;
    font-size: .85rem;
    color: var(--text);
    margin: 5px;
}
.pill i, .pill .dot { color: var(--green-br); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-br); display: inline-block; box-shadow: 0 0 10px var(--green-br); }

/* ---------- Hero ---------- */
.hero { padding: 120px 0 90px; position: relative; }
.hero .badge-live {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--panel); border: 1px solid var(--border);
    border-radius: 100px; padding: 7px 16px; font-size: .82rem; color: var(--text); margin-bottom: 26px;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); margin-bottom: 22px; }
.hero p.sub { font-size: 1.22rem; color: var(--muted); max-width: 640px; margin-bottom: 34px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-models { margin-top: 56px; }
.hero-models .lbl { text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--muted); margin-bottom: 14px; }

/* ---------- Cards ---------- */
.card-x {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 28px;
    height: 100%;
    transition: 220ms;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.card-x:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.card-x .ic {
    width: 50px; height: 50px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(157, 107, 255, .18), rgba(0, 186, 40, .18));
    color: #fff; border: 1px solid var(--border);
}
.card-x h4 { font-size: 1.18rem; margin-bottom: 10px; }
.card-x p { font-size: .96rem; margin-bottom: 0; }
.card-x .tag { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green-br); font-weight: 700; }

.card-x.feature-link { display: block; }
.card-x .more { color: var(--green-br); font-size: .9rem; font-weight: 600; margin-top: 14px; display: inline-block; }

/* ---------- Stats ---------- */
.stats-band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 50px 0; }
.stat-x { text-align: center; }
.stat-x .num { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; font-family: "Space Grotesk", sans-serif; }
.stat-x .label { color: var(--muted); font-size: .92rem; margin-top: 6px; }

/* ---------- Frontier / expertise columns ---------- */
.frontier-col {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 32px 30px; height: 100%; transition: 200ms;
}
.frontier-col:hover { border-color: var(--border-strong); }
.frontier-col h3 { font-size: 1.3rem; margin-bottom: 8px; }
.frontier-col .kicker { color: var(--green-br); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; display: block; }
.frontier-col ul { list-style: none; padding: 0; margin: 18px 0 0; }
.frontier-col li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--muted); font-size: .95rem; }
.frontier-col li:before { content: "\f0da"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--purple-br); position: absolute; left: 0; top: 3px; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 14px; width: max-content; animation: scroll-x 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Process steps ---------- */
.step-x { position: relative; padding-left: 70px; margin-bottom: 36px; }
.step-x .n {
    position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 14px;
    background: var(--grad); color: #08060f; font-weight: 700; font-family: "Space Grotesk", sans-serif;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.step-x h5 { font-size: 1.12rem; margin-bottom: 6px; }
.step-x p { margin-bottom: 0; }

/* ---------- Value list ---------- */
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 15px; color: var(--text); }
.check-list li:before {
    content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; color: var(--green-br);
    position: absolute; left: 0; top: 3px; font-size: .9rem;
}

/* ---------- Split / image panels ---------- */
.panel-glow {
    border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden;
    background: radial-gradient(120% 120% at 0% 0%, rgba(157, 107, 255, .15), transparent 55%), var(--bg-2);
    padding: 6px;
}
.panel-glow img { width: 100%; border-radius: 14px; display: block; }

/* ---------- Jobs ---------- */
.job-x {
    background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px 28px; margin-bottom: 16px; display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 16px; transition: 200ms;
}
.job-x:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.job-x h4 { font-size: 1.15rem; margin-bottom: 4px; }
.job-x .meta { color: var(--muted); font-size: .88rem; }

/* ---------- Contact ---------- */
.contact-panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; }
.contact-info-x .item { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-info-x .item i { color: var(--green-br); font-size: 19px; width: 24px; margin-top: 4px; }
.contact-info-x .item h6 { color: #fff; font-weight: 700; margin-bottom: 2px; font-size: .98rem; }
.contact-info-x .item p, .contact-info-x .item a { color: var(--muted); margin: 0; }
label { color: var(--text); font-weight: 500; font-size: .92rem; margin-bottom: 6px; }
.input-x {
    width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
    border-radius: 12px; padding: 13px 15px; color: #fff; transition: 160ms; font-size: .96rem;
}
.input-x::placeholder { color: #6f688a; }
.input-x:focus { outline: none; border-color: var(--purple-br); box-shadow: 0 0 0 3px rgba(157, 107, 255, .18); background: rgba(255, 255, 255, .06); }
select.input-x option { background: #120c22; color: #fff; }
.field-error { color: #ff7a7a; font-size: .84rem; display: none; margin-top: 6px; }
.form-note { display: none; margin-top: 20px; padding: 15px 18px; border-radius: 12px; }
.form-note.ok { display: block; background: rgba(0, 186, 40, .12); border: 1px solid rgba(47, 240, 90, .3); color: #b7ffc6; }

/* ---------- CTA band ---------- */
.cta-x {
    border-radius: 26px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
    background: radial-gradient(120% 160% at 50% 0%, rgba(157, 107, 255, .22), transparent 60%), var(--bg-2);
    border: 1px solid var(--border);
}
.cta-x h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 14px; }
.cta-x p { font-size: 1.1rem; max-width: 560px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.footer-x { border-top: 1px solid var(--border); background: var(--bg-2); padding: 70px 0 30px; }
.footer-x img { width: 150px; margin-bottom: 18px; }
.footer-x h5 { font-size: 1rem; margin-bottom: 16px; color: #fff; }
.footer-x ul { list-style: none; padding: 0; }
.footer-x ul li { margin-bottom: 11px; }
.footer-x a, .footer-x p { color: var(--muted); }
.footer-x a:hover { color: #fff; }
.footer-x .soc a {
    display: inline-flex; width: 38px; height: 38px; border-radius: 11px; margin-right: 8px;
    align-items: center; justify-content: center; background: var(--panel); border: 1px solid var(--border); color: #fff;
}
.footer-x .soc a:hover { background: var(--grad); color: #08060f; border-color: transparent; }
.footer-x .legal { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px; color: #6f688a; font-size: .88rem; }
.footer-x .legal a { color: #6f688a; }

/* ---------- Reveal on scroll (no-JS safe) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .section { padding: 70px 0; }
    .hero { padding: 80px 0 60px; }
    .site-nav .navbar-collapse { background: rgba(8, 6, 16, .96); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-top: 12px; }
}
@media (max-width: 767px) {
    .hero .cta-row .btn-primary-x, .hero .cta-row .btn-ghost { width: 100%; text-align: center; }
    .cta-x { padding: 48px 24px; }
    .job-x { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .marquee__track { animation: none; }
    html { scroll-behavior: auto; }
}
