/* CaseMindPro showcase — public site */
:root {
  --navy-950: #0b1324;
  --navy-900: #0f1b33;
  --navy-800: #16264a;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --green-600: #16a34a;
  --red-600: #dc2626;
  --radius: 12px;
  --shadow: 0 1px 2px rgb(15 23 42 / .06), 0 8px 24px rgb(15 23 42 / .08);
  --shadow-lg: 0 24px 60px rgb(11 19 36 / .22);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--slate-900); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); }
a:hover { color: var(--blue-600); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 750; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 650; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; border-radius: 4px; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 48px); margin-inline: auto; }
.muted { color: var(--slate-500); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--blue-700); margin-bottom: .8em; }
.eyebrow a { color: inherit; text-decoration: none; }
.lead { font-size: 1.15rem; color: var(--slate-600); max-width: 46em; }
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 16px; height: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: var(--blue-600); color: #fff; }
.btn-secondary { background: #fff; color: var(--slate-900); border-color: var(--slate-300); }
.btn-secondary:hover { border-color: var(--slate-500); color: var(--slate-900); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--blue-50); color: var(--navy-900); }
.btn-ghost-light { color: #fff; border-color: rgb(255 255 255 / .4); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(255 255 255 / .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--slate-200); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.15rem; color: var(--slate-900); text-decoration: none; letter-spacing: -.01em; }
.brand:hover { color: var(--slate-900); }
.brand-logo { display: block; height: 40px; width: auto; }
.brand-footer .brand-logo { height: 36px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) { color: var(--slate-700); text-decoration: none; font-weight: 550; font-size: .96rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--blue-700); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--slate-900); margin: 5px 0; border-radius: 2px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #1e3a8a 0%, transparent 60%), linear-gradient(180deg, var(--navy-950), var(--navy-900)); color: #fff; padding: 72px 0 96px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: #93c5fd; }
.hero h1 { color: #fff; }
.hero .lead { color: #cbd5e1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn-secondary { background: transparent; color: #fff; border-color: rgb(255 255 255 / .35); }
.hero .btn-secondary:hover { border-color: #fff; }
.hero-shot .frame { box-shadow: var(--shadow-lg), 0 0 0 1px rgb(255 255 255 / .08); }
.hero-shot .carousel-track { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }

/* Hero carousel: slides share one grid cell and cross-fade. */
.carousel-track { display: grid; }
.carousel-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.carousel-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.carousel-caption { margin: 18px auto 0; max-width: 36em; text-align: center; color: #cbd5e1; font-size: .9rem; min-height: 4.4em; }
.carousel-caption .cc-title { display: block; color: #fff; font-weight: 650; font-size: .95rem; margin-bottom: 2px; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.carousel-controls[hidden] { display: none; }
.carousel-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .18); background: rgb(255 255 255 / .08); color: #fff; font-size: 1.35rem; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; padding: 0 0 2px; }
.carousel-btn:hover { background: rgb(255 255 255 / .18); }
.carousel-btn:focus-visible, .carousel-dot:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.carousel-dots { display: flex; gap: 0; padding: 0 2px; }
/* A 24px target around a small visible dot. */
.carousel-dot { min-width: 24px; height: 24px; padding: 0 7px; border: 0; background: none; cursor: pointer; display: inline-grid; place-items: center; }
.carousel-dot::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: rgb(255 255 255 / .35); transition: width .25s, background .25s; }
.carousel-dot:hover::before { background: rgb(255 255 255 / .6); }
.carousel-dot[aria-current="true"]::before { width: 26px; background: #fff; }
.carousel-toggle { margin-left: 6px; }
.toggle-icon { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.carousel-toggle.is-paused .toggle-icon { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
@media (prefers-reduced-motion: reduce) {
  .carousel-slide, .carousel-slide.is-active, .carousel-dot::before { transition: none; }
}

/* Screenshot frame */
.shot { margin: 0; }
.frame { display: block; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--slate-200); box-shadow: var(--shadow); text-decoration: none; transition: transform .2s, box-shadow .2s; cursor: zoom-in; }
.frame:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(15 23 42 / .06), 0 16px 40px rgb(15 23 42 / .14); }
.frame-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--slate-100); border-bottom: 1px solid var(--slate-200); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--slate-300); }
.frame-bar i:first-child { background: #f87171; } .frame-bar i:nth-child(2) { background: #fbbf24; } .frame-bar i:nth-child(3) { background: #34d399; }
.shot figcaption { margin-top: 12px; font-size: .93rem; color: var(--slate-600); }
.shot figcaption strong { color: var(--slate-900); display: block; }

/* Trust strip */
.trust { border-bottom: 1px solid var(--slate-200); background: var(--slate-50); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 28px 0; }
.trust-grid > div { display: flex; gap: 12px; align-items: flex-start; color: var(--blue-700); }
.trust-grid span { color: var(--slate-600); font-size: .9rem; line-height: 1.45; }
.trust-grid strong { display: block; color: var(--slate-900); font-size: .97rem; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--slate-50); border-block: 1px solid var(--slate-200); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-title { margin-bottom: 32px; }
.page-head { padding: 72px 0 40px; background: linear-gradient(180deg, var(--blue-50), #fff); }
.page-center { text-align: center; padding: 120px 0; }
.page-center .lead { margin-inline: auto; }

/* Feature cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.feature-card { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--slate-200); border-radius: var(--radius); background: #fff; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.feature-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-2px); color: inherit; }
.feature-card p { color: var(--slate-600); font-size: .96rem; flex: 1; }
.feature-card .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--blue-700); font-size: .93rem; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--blue-50); color: var(--blue-700); margin-bottom: 18px; }
.feature-icon-lg { width: 64px; height: 64px; }

/* Pipeline */
.pipeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: step; }
.pipeline li { position: relative; padding: 22px 18px; background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); font-size: .9rem; color: var(--slate-600); }
.pipeline li strong { display: block; color: var(--slate-900); font-size: 1rem; margin-bottom: 4px; }
.pipeline li span { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy-900); color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: 12px; }
.pipeline li:not(:last-child)::after { content: ""; position: absolute; top: 36px; right: -13px; width: 10px; height: 10px; border-top: 2px solid var(--slate-300); border-right: 2px solid var(--slate-300); transform: rotate(45deg); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 32px; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-wide { grid-template-columns: 1.6fr 1fr; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0 0 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--slate-700); }
.checks .icon { color: var(--green-600); margin-top: 5px; }

.role-table { border: 1px solid var(--slate-200); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); font-size: .94rem; }
.rt-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.rt-row > span { padding: 14px 16px; border-bottom: 1px solid var(--slate-200); }
.rt-row:last-child > span { border-bottom: 0; }
.rt-head { background: var(--slate-100); font-weight: 650; }
.rt-row .yes { color: #15803d; font-weight: 600; }
.rt-row .no { color: var(--slate-500); }
.rt-caption { font-weight: 650; color: var(--slate-900); margin: 0 0 10px; }
.rt-legend { font-size: .88rem; color: var(--slate-600); margin: 12px 0 0; }

/* Feature list page */
.feature-list { display: grid; gap: 96px; }
.feature-row { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: center; }
.feature-row.reverse .feature-row-copy { order: 2; }
.feature-row h2 a { color: inherit; text-decoration: none; }
.feature-row .tagline { font-weight: 600; color: var(--slate-700); }
.feature-row p { color: var(--slate-600); }

/* Feature detail */
.feature-hero { margin-top: -8px; padding-bottom: 24px; }
.prose { color: var(--slate-700); font-size: 1.05rem; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; color: var(--slate-900); }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose code { background: var(--slate-100); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.highlights, .contact-aside { position: sticky; top: 92px; padding: 28px; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius); }
.highlights h2, .contact-aside h2 { font-size: 1.1rem; }
.side-shots { display: grid; gap: 32px; position: sticky; top: 92px; }
.pager { display: flex; justify-content: space-between; gap: 16px; padding: 48px 0 88px; }
.pager a { display: flex; flex-direction: column; text-decoration: none; font-weight: 650; padding: 16px 20px; border: 1px solid var(--slate-200); border-radius: var(--radius); min-width: 240px; color: var(--slate-900); }
.pager a:hover { border-color: var(--blue-600); }
.pager a span { font-size: .8rem; font-weight: 500; color: var(--slate-500); text-transform: uppercase; letter-spacing: .08em; }
.pager .next { text-align: right; margin-left: auto; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq { border: 1px solid var(--slate-200); border-radius: var(--radius); background: #fff; }
.faq summary { cursor: pointer; padding: 20px 24px; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue-700); }
.faq[open] summary::after { content: "−"; }
.faq .prose { padding: 0 24px 20px; font-size: 1rem; }

/* Forms */
.card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--slate-700); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: 11px 13px; border: 1px solid var(--slate-300); border-radius: 8px; background: #fff; color: var(--slate-900); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px var(--blue-100); }
.field [aria-invalid="true"], .check-field [aria-invalid="true"] { border-color: var(--red-600); }
.field-error { color: var(--red-600); font-weight: 500; font-size: .87rem; margin: 0; }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: var(--slate-600); }
.check-field input { margin-top: 5px; width: 16px; height: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.alert { padding: 12px 16px; border-radius: 8px; font-size: .95rem; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.steps { padding-left: 1.2em; color: var(--slate-600); }
.steps li { margin-bottom: 12px; }
.steps strong { color: var(--slate-900); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--navy-900), #1e3a8a); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: #cbd5e1; margin: 0; max-width: 40em; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; flex: none; }

/* Footer */
.site-footer { background: var(--navy-950); color: #94a3b8; padding: 56px 0 24px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr; gap: 32px; }
.site-footer h3 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.brand-footer, .brand-footer:hover { color: #fff; margin-bottom: 10px; }
.site-footer .muted { color: #94a3b8; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 20px; font-size: .85rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgb(2 6 23 / .92); display: flex; align-items: center; justify-content: center; padding: 48px 72px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #e2e8f0; margin-top: 14px; text-align: center; max-width: 60em; }
.lightbox button { position: absolute; background: rgb(255 255 255 / .1); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgb(255 255 255 / .2); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner, .split, .split-wide, .feature-row { grid-template-columns: 1fr; }
  .hero-shot .carousel-track { transform: none; }
  .feature-row.reverse .feature-row-copy { order: 0; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .pipeline li::after { display: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .highlights, .contact-aside, .side-shots { position: static; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--slate-200); padding: 8px 24px 20px; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--slate-100); }
  .site-nav .btn { margin-top: 12px; justify-content: center; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .pipeline, .trust-grid, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .rt-row { font-size: .82rem; }
  .rt-row > span { padding: 10px; }
  .card { padding: 22px; }
  .pager { flex-direction: column; }
  .pager a { min-width: 0; }
  .lightbox { padding: 56px 12px; }
  .lightbox-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
