/* =====================================================================
   CortexfieldAI — additions on top of the Luminex template (css/style.css)
   Keep template CSS untouched; put every site-specific rule here.
   ===================================================================== */

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 6.5rem; }
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 3000; background: var(--accent-color); color: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* ---------- brand / navbar ---------- */
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--text-color); }
.brand:hover { color: var(--text-color); }
.brand img { border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.18); flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 4px; font-weight: 700; letter-spacing: .18em; font-size: .92rem; line-height: 1; }
.brand-text small { font-size: .62rem; letter-spacing: .4em; color: var(--accent-color-2); font-weight: 700; }
.navbar-brand.brand { margin-right: 0; padding: 0; }
.navbar-expand-xl .navbar-nav .nav-link { padding: 12px 12px; white-space: nowrap; }
.navbar-nav .nav-link.dropdown-toggle::after { margin-left: .4rem; vertical-align: .15em; }
.dropdown-menu { min-width: 14rem; border-radius: 12px; overflow: hidden; background: var(--primary); border: 1px solid rgba(255,255,255,.08); }
@media (min-width: 1200px) and (max-width: 1399px) {
    .navbar-expand-xl .navbar-nav .nav-link { padding: 10px 8px; font-size: 15px; }
    .navbar .container-fluid { gap: .5rem; }
    .navbar .btn.btn-accent { padding-inline: 1.1rem; }
}
@media (max-width: 1199px) {
    .navbar .container-fluid { flex-wrap: wrap; }
    .navbar-collapse { width: 100%; padding-top: .75rem; }
    .nav-link, .nav-link:hover, .nav-link.active { text-align: left; }
    .dropdown-menu { position: static; background: transparent; border: 0; box-shadow: none; }
    .nav-item.dropdown:hover .dropdown-menu { display: none; }
    .nav-item.dropdown .dropdown-menu.show { display: block; }
}
@media (min-width: 1200px) { .nav-item.dropdown .dropdown-menu { margin-top: 0; } }

/* ---------- headings ---------- */
h3.title { font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.18; }
h1.hero-title { font-size: clamp(2rem, 3.9vw, 3.5rem); line-height: 1.12; }
h1.page-title { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.12; }
.lead-text { font-size: 1.15rem; line-height: 1.7; color: var(--text-color); }
.display-404 { font-size: clamp(5rem, 14vw, 10rem); line-height: 1; margin: 0; }

/* ---------- hero ---------- */
.heroheader.home-hero { height: auto; min-height: 100vh; padding-top: 9.5rem; padding-bottom: 5rem; display: flex; align-items: center; }
.heroheader.inner-hero { height: auto; min-height: 0; padding-top: 10rem; padding-bottom: 4.5rem; }
.heroheader .row { width: 100%; }
.hero-shot { position: relative; margin: 0; border-radius: 18px; padding: 8px; background: linear-gradient(135deg, rgba(158,86,230,.55), rgba(255,119,233,.25)); box-shadow: 0 30px 80px rgba(158,86,230,.35); }
.hero-shot img { width: 100%; border-radius: 12px; display: block; }
.hero-shot-label { position: absolute; left: 20px; bottom: 20px; right: 20px; padding: .5rem .9rem; border-radius: 10px; background: rgba(11,15,14,.75); backdrop-filter: blur(8px); font-size: .8rem; display: flex; gap: .5rem; align-items: center; }
.hero-shot-label i { color: #3ddc97; font-size: .5rem; }
.hero-icon { width: min(260px, 60vw); aspect-ratio: 1/1; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: clamp(3.5rem, 8vw, 6rem); color: var(--primary); background: var(--accent-color-7); box-shadow: 0 0 90px rgba(168,85,247,.55), inset 0 0 40px rgba(255,255,255,.3); }
.breadcrumb { margin-bottom: .5rem; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px; background: rgba(250,250,250,.06); border: 1px solid rgba(158,86,230,.4); color: var(--text-color); font-size: .9rem; line-height: 1.2; }
.chip i { color: var(--accent-color-2); font-size: .8rem; }
a.chip-link { text-decoration: none; transition: all .3s; }
a.chip-link:hover { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
a.chip-link:hover i { color: #fff; }
.brand-chip { padding: .5rem 1rem; border-radius: 10px; background: var(--primary); border: 1px solid #323232; font-weight: 600; font-size: .9rem; }
.industry-nav { position: relative; }

/* ---------- lists ---------- */
.check-list { padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text-color-2); line-height: 1.5; }
.check-list li i { color: var(--accent-color); margin-top: .25rem; }
.check-list.cross li i { color: #ff6b81; }
.check-list.big li { font-size: 1.1rem; color: var(--text-color); }

/* ---------- panels & cards ---------- */
.panel { background: var(--accent-color-3); border: 1px solid rgba(158,86,230,.18); border-radius: 16px; padding: 2rem; box-shadow: inset 0 0 45px rgba(192,132,252,.08); }
.card-feature.tall { min-height: 20rem; justify-content: space-between; height: 100%; }
.card-service { text-decoration: none; }
.card-service h5, .card-service p { color: inherit; }
.card-service p { color: var(--text-color-2); }
.card-service.animated-gradient p { color: var(--text-color); }
.industry-card { transition: transform .35s, box-shadow .35s; }
.industry-card:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(158,86,230,.25); color: var(--text-color); }
.card-link { margin-top: auto; padding-top: .5rem; color: var(--accent-color-2); font-weight: 600; font-size: .95rem; }
.card-link i { transition: transform .3s; margin-left: .25rem; }
.industry-card:hover .card-link i { transform: translateX(4px); }
.step-no { font-weight: 700; font-size: .9rem; letter-spacing: .15em; color: var(--accent-color-2); }
.best-for { display: flex; flex-direction: column; gap: .25rem; padding-top: 1rem; border-top: 1px solid #323232; width: 100%; }
.best-for span { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-color-2); }
.card-service.deploy { gap: 1.25rem; }
.card-service .btn { align-self: flex-start; }

.card-module { display: flex; flex-direction: column; height: 100%; background: var(--accent-color-3); border-radius: 16px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); transition: transform .35s, box-shadow .35s; }
.card-module:hover { transform: translateY(-6px); box-shadow: 0 18px 50px rgba(158,86,230,.25); }
.card-module figure { margin: 0; aspect-ratio: 16/9; overflow: hidden; background: #0b0f0e; }
.card-module figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card-module:hover figure img { transform: scale(1.04); }
.card-module-body { padding: 1.5rem 1.75rem 1.75rem; display: flex; flex-direction: column; gap: .25rem; }
.card-module-body p { margin: 0; }

.cap-card { height: 100%; padding: 1.5rem; border-radius: 16px; background: var(--accent-color-3); border: 1px solid rgba(255,255,255,.06); transition: all .35s; }
.cap-card:hover { border-color: rgba(158,86,230,.6); transform: translateY(-4px); box-shadow: 0 14px 40px rgba(158,86,230,.2); }
.cap-card .icon-box { padding: 12px; font-size: 18px; }
.cap-cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-color-2); font-weight: 700; }

.compare { height: 100%; padding: 2rem 2.25rem; border-radius: 16px; background: var(--accent-color-3); border: 1px solid #323232; }
.compare.good { border-color: rgba(158,86,230,.55); }
.compare.good.animated-gradient { background-image: radial-gradient(at 100% 53%, hsla(266,74%,61%,.35) 0, transparent 50%), radial-gradient(at 87% 99%, hsla(309,100%,73%,.25) 0, transparent 50%); }
.compare.good .check-list li { color: var(--text-color); }

.step-card { position: relative; height: 100%; padding: 2rem; border-radius: 16px; background: var(--accent-color-3); border: 1px solid rgba(255,255,255,.06); }
.steps-row .col { position: relative; }

.big-counter { padding: 2.5rem; border-radius: 16px; background: var(--accent-color-3); border: 1px solid rgba(158,86,230,.3); }
.big-counter .number, .big-counter h2 { font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1; }

.value-card { height: 100%; display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; border-radius: 16px; background: var(--accent-color-3); border: 1px solid rgba(255,255,255,.06); }
.card-contact { background: var(--accent-color-3); border-radius: 16px; align-items: center; gap: .5rem; text-decoration: none; height: 100%; }
.card-contact .icon-box { margin-inline: auto; }
.card-contact h6 { word-break: break-word; margin: 0; }
.card-contact span { color: var(--text-color-2); }

.careers-band { padding: 2.5rem; border-radius: 20px; background: var(--accent-color-3); border: 1px solid rgba(158,86,230,.3); box-shadow: inset 0 0 60px rgba(192,132,252,.1); }
.strip-note { color: var(--text-color-2); max-width: 760px; margin-inline: auto; }
.disclaimer p { font-size: .8rem; opacity: .7; margin: 0 0 .4rem; }
p.disclaimer { font-size: .8rem; opacity: .7; }
.marquee-word { font-weight: 600; font-size: 1.15rem; white-space: nowrap; color: var(--text-color); }
.cta-section { padding-block: 5rem; }
.faq-sticky { position: sticky; top: 7rem; }
@media (max-width: 1199px) { .faq-sticky { position: static; } }
.industry-block { padding-block: 3.5rem; }
.industry-block + .industry-block { border-top: 1px solid rgba(255,255,255,.06); }

/* ---------- forms ---------- */
.form-card { padding: 2.25rem; border-radius: 20px; background: var(--accent-color-3); border: 1px solid rgba(158,86,230,.3); box-shadow: inset 0 0 60px rgba(192,132,252,.1); }
.form-card .form-control { background: var(--primary); color: var(--text-color); border: 1px solid #323232; border-radius: 12px; }
.form-card .form-control:focus { border-color: var(--accent-color); box-shadow: 0 0 0 .2rem rgba(158,86,230,.25); }
.form-card .form-control::placeholder { color: #8a90a0; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.invalid-feedback { color: #ff8da1; }
.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 12px; font-size: .95rem; }
.form-status.ok { background: rgba(61,220,151,.12); border: 1px solid rgba(61,220,151,.5); color: #7ff0bd; }
.form-status.err { background: rgba(255,107,129,.12); border: 1px solid rgba(255,107,129,.5); color: #ff9fae; }
.form-status a { color: inherit; text-decoration: underline; }
button.submit_form[disabled] { opacity: .7; cursor: progress; }

/* ---------- footer ---------- */
.footer-main { height: auto; }
.footer-links { padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a, .footer-main .link { color: var(--text-color-2); text-decoration: none; }
.footer-links a:hover, .footer-main .link:hover { color: var(--text-color); }
.footer-contact { padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: .6rem; }
.footer-contact li { display: flex; gap: .7rem; align-items: center; color: var(--text-color-2); }
.footer-contact i { color: var(--accent-color); width: 1rem; }
.footer-contact a { color: var(--text-color-2); text-decoration: none; }
.footer-contact a:hover { color: var(--text-color); }
.footer-brand-col { padding-right: 2rem; }
@media (min-width: 1200px) { .footer-grid > .footer-brand-col { flex: 0 0 auto; width: 32%; } .footer-grid > .col:not(.footer-brand-col) { flex: 0 0 auto; width: 17%; } }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
    .heroheader.home-hero { padding-top: 7.5rem; }
    .heroheader.inner-hero { padding-top: 8rem; }
    .section { padding: 4em 1.25em; }
    .panel, .form-card, .careers-band, .big-counter { padding: 1.5rem; }
    .card-feature.tall { min-height: 0; gap: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .animated-gradient, .marquee { animation: none !important; }
}

/* ---------- fixes after visual QA ---------- */
.btn-accent span { white-space: nowrap; }
.tags { width: max-content; max-width: 100%; }
.hero-shot-label { max-width: calc(100% - 40px); }
.btn-accent span { display: inline-flex; align-items: center; gap: .4rem; }
.btn-accent span i { margin: 0 !important; }
.tags { align-self: flex-start; }
.text-center .tags, .align-items-center > .tags, .tags.mx-auto { align-self: center; }
