:root {
  --ink: #0f1b2d; --muted: #5b6b80; --line: #e3e8ef;
  --bg: #ffffff; --bg-alt: #f5f7fb; --brand: #13294b; --brand-2: #fdf3d6; --accent: #f5b800; --gold-text: #8a6400;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 Manrope, system-ui, sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4.4vw, 3rem); font-weight: 800; max-width: 24ch; text-transform: uppercase; letter-spacing: 0; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 62ch; }
.section { padding: 72px 16px; }
.band { background: var(--bg-alt); padding: 72px 0; border-block: 1px solid var(--line); }
.head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.head a { color: var(--brand); font-weight: 700; text-decoration: none; }

.btn { display: inline-block; padding: .8em 1.4em; border-radius: 10px; background: var(--accent); color: var(--brand); text-decoration: none; font-weight: 700; }
.btn:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-light { background: var(--accent); color: var(--brand); }
.btn-sm { padding: .5em 1em; }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.logo { font-weight: 800; font-size: 1.25rem; text-decoration: none; }
.logo span { color: var(--brand); }
.nav nav { align-items: center; }
.nav nav a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 600; }
.nav nav a.on { color: var(--brand); }

.hero { padding: 88px 16px 72px; }
.hero-sm { padding: 56px 16px 48px; }
.eyebrow, .tag { color: var(--gold-text); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; margin: 0 0 .75rem; }
.crumb { color: var(--muted); font-size: .9rem; margin: 0 0 1.5rem; }
.crumb a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.for { color: var(--muted); }
.for b { color: var(--ink); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(15,27,45,.35); }
.card-img { aspect-ratio: 16/10; background: var(--brand-2); border-bottom: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.card-img span { font-weight: 800; font-size: 1.4rem; color: var(--brand); padding: 1rem; text-align: center; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body p:not(.tag) { color: var(--muted); margin: 0 0 1rem; }
.more { margin-top: auto; color: var(--brand); font-weight: 700; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 1.5rem; }
.tile { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; }
a.tile:hover { border-color: var(--brand); }
.tile p { color: var(--muted); margin: 0 0 .75rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px 32px; margin-top: 1.5rem; }
.feature-grid div { border-top: 3px solid var(--accent); padding-top: 14px; }
.feature-grid p { color: var(--muted); margin: 0; }

.features { list-style: none; padding: 0; margin: 1rem 0 0; max-width: 720px; }
.features li { padding: .7rem 0 .7rem 1.75rem; border-bottom: 1px solid var(--line); position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }

.shots .main img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(15,27,45,.35); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; margin-top: 16px; }
.thumbs a { text-decoration: none; font-size: .85rem; color: var(--muted); }
.thumbs img { border-radius: 8px; border: 1px solid var(--line); aspect-ratio: 16/10; object-fit: cover; object-position: top left; margin-bottom: 6px; transition: transform .15s; }
.thumbs a:hover img { transform: translateY(-2px); border-color: var(--brand); }
.pending { aspect-ratio: 16/7; border-radius: 14px; border: 2px dashed var(--line); display: grid; place-items: center; color: var(--muted); font-weight: 600; background: #fff; padding: 1rem; text-align: center; }
.pending a { color: var(--brand); }

.contact { background: var(--brand); color: #fff; padding: 72px 0; text-align: center; }
.contact .lead { color: rgba(255,255,255,.8); margin: 0 auto 2rem; }

.foot { background: var(--ink); color: #c5cfdc; padding-top: 56px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot .logo { color: #fff; }
.foot .foot-h { font-size: 1rem; color: #fff; margin: 0 0 .75rem; }
.foot-grid a:not(.logo) { display: block; text-decoration: none; padding: .2rem 0; }
.foot-grid a:hover { color: #fff; }
.foot-bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; padding-block: 24px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.1); }

dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; }
dialog::backdrop { background: rgba(10,15,25,.85); }
dialog img { max-height: 90vh; border-radius: 10px; }
dialog button { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; font-size: 24px; cursor: pointer; background: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h3 { font-size: 1.15rem; font-weight: 700; }
nav.crumb { display: block; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info { margin-top: 2rem; max-width: 360px; }
.contact-info a { color: var(--brand); font-weight: 700; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 24px 48px -32px rgba(15,27,45,.35); }
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: .7em .85em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-2); }
.form button { border: 0; cursor: pointer; justify-self: start; font: inherit; font-weight: 700; }
.hp { position: absolute; left: -9999px; }
.alert { border-radius: 10px; padding: 14px 18px; margin-bottom: 16px; }
.alert ul { margin: 0; padding-left: 1.2rem; }
.alert.err { background: #fdecec; color: #8a1c1c; }
.alert.ok { background: var(--brand-2); color: var(--brand); }
.alert.ok p { margin: 0; color: var(--ink); }
.logo img { height: 60px; width: auto; }
.foot .logo img { height: 48px; margin-bottom: .5rem; }

/* Home hero: text + screenshot collage */
.hero-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.hero-split h1 { max-width: 18ch; }
.hero-art { position: relative; aspect-ratio: 5 / 4; }
.hero-art::before { content: ""; position: absolute; inset: 8% -4% 4% 10%; background: radial-gradient(closest-side, var(--brand-2), transparent); z-index: 0; }
.shot { position: absolute; border-radius: 12px; border: 1px solid var(--line); background: #fff; box-shadow: 0 30px 60px -30px rgba(15,27,45,.45); }
.shot-back  { width: 58%; top: 0;   right: 0;  transform: rotate(3deg); opacity: .9; z-index: 1; }
.shot-mid   { width: 58%; top: 10%; left: 0;   transform: rotate(-3deg); z-index: 2; }
.shot-front { width: 82%; bottom: 0; left: 12%; z-index: 3; }
.badge { position: absolute; z-index: 4; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em; font-weight: 700; font-size: .85rem; box-shadow: 0 10px 24px -12px rgba(15,27,45,.4); }
.badge::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: .5em; vertical-align: middle; }
.badge-1 { top: 38%; right: -2%; }
.badge-2 { bottom: 6%; left: 0; }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 560px; }
}

/* ---- Long-form content ---- */
.h1-sub { display: block; font-size: .42em; font-weight: 700; letter-spacing: .02em; color: var(--brand); margin-top: .6rem; text-transform: none; }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.prose p { color: #3b4a5e; font-size: 1.05rem; line-height: 1.75; margin: 0 0 1.1rem; max-width: 68ch; }
.side-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 16px; padding: 24px; position: sticky; top: 100px; }
.side-card .features { margin: 0; }
.side-card .features li { color: var(--ink); }
.side-card a { color: var(--ink); text-decoration: none; }
.side-card a:hover { color: var(--brand); }
.chips-lg { margin-top: 1rem; }
.chips-lg li { padding: .55em 1.1em; border-radius: 999px; background: var(--brand-2); color: var(--brand); font-weight: 600; }
.note { color: var(--muted); margin-top: 1.5rem; }
.note a { color: var(--brand); font-weight: 600; }

/* Feature cards */
.feature-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.feature-grid > div { position: relative; background: #fff; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 22px 70px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.feature-grid > div::before { content: ""; position: absolute; left: 20px; top: 22px; width: 34px; height: 34px; border-radius: 10px; background: var(--brand-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313294b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 18px no-repeat; }
.feature-grid > div:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: 0 18px 36px -24px rgba(15,27,45,.45); }
.feature-grid h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.feature-grid p { font-size: .95rem; line-height: 1.55; }
.section .feature-grid > div { background: var(--bg-alt); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-top: 12px; background: #fff; max-width: 860px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 20px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: #3b4a5e; line-height: 1.7; }

/* Process steps */
.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; counter-reset: step; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 800; font-size: 1.6rem; color: var(--accent); margin-bottom: .4rem; }
.steps p { color: var(--muted); margin: 0; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.stats div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.stats b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stats span { color: var(--muted); }
.band-tight { padding: 36px 0; }
.head + .lead { margin: -0.5rem 0 1.5rem; }

/* Who uses */
.who { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .who { grid-template-columns: 1fr; gap: 24px; } }
.who-intro p { color: #3b4a5e; line-height: 1.7; margin: 0 0 1.5rem; }
.who-intro a:not(.btn) { color: var(--brand); font-weight: 600; }
.who-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.who-grid-wide { margin-top: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.who-grid li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; line-height: 1.3; transition: border-color .15s, transform .15s; }
.who-grid li:hover { border-color: var(--brand); transform: translateY(-2px); }
.who-grid li::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313294b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14M9 21v-6h6v6M9 10h.01M15 10h.01'/%3E%3C/svg%3E") center / 20px no-repeat; }
.faq { text-align: center; }
.faq h2 { max-width: 860px; margin-left: auto; margin-right: auto; }
.faq details { margin-left: auto; margin-right: auto; text-align: left; }
/* Who uses: intro on top, industry cards below */
.who { grid-template-columns: 1fr; gap: 28px; }
.who-intro { display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: end; }
.who-intro h2 { grid-column: 1 / -1; margin: 0; }
.who-intro p { margin: 0; max-width: 70ch; }
@media (max-width: 700px) { .who-intro { grid-template-columns: 1fr; } }
.who-cards > div::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2313294b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18M5 21V7l7-4 7 4v14M9 21v-6h6v6M9 10h.01M15 10h.01'/%3E%3C/svg%3E"); background-size: 20px; }

/* Navy & gold theme accents */
.btn:hover { filter: none; background: #ffc928; }
.btn-ghost:hover { background: transparent; border-color: var(--brand); }
.contact { background: var(--brand); background-image: radial-gradient(circle at 85% 20%, rgba(245,184,0,.18), transparent 45%); }
.contact h2 { color: #fff; }
.stats b { color: var(--brand); }
.stats div { border-top: 3px solid var(--accent); }
.chips a { background: var(--brand-2); color: var(--brand); }
.hero-art::before { background: radial-gradient(closest-side, rgba(245,184,0,.22), transparent); }
.side-card { border-top: 3px solid var(--accent); }
.foot a:hover, .foot-grid a:hover { color: var(--accent); }
.thumbs-lg { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-top: 0; }
.shots .h3 { margin-bottom: 1rem; }
.hero-sm.hero-split { padding-top: 40px; }
.hero-sm .hero-art { aspect-ratio: 16 / 12; }
@media (max-width: 520px) { .nav-in { height: 64px; } .logo img { height: 42px; } }

/* Menu: inline on desktop, off-canvas panel (native popover) on mobile */
.menu-btn, .menu-close { display: none; background: none; border: 0; cursor: pointer; color: var(--brand); }
@media (min-width: 821px) {
  .nav nav[popover] { display: flex; gap: 1.25rem; position: static; inset: auto; margin: 0; padding: 0; border: 0; background: none; width: auto; height: auto; overflow: visible; color: inherit; }
  .mobile-only { display: none; }
}
@media (max-width: 820px) {
  .menu-btn { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border-radius: 10px; }
  .menu-btn span { display: block; height: 2px; background: currentColor; border-radius: 2px; }
  .menu-btn:hover { background: var(--bg-alt); }
  #menu { position: fixed; inset: 0 0 0 auto; width: min(84vw, 320px); height: 100dvh; max-height: none; margin: 0; padding: 76px 24px 24px; border: 0; background: #fff; box-shadow: -20px 0 50px -20px rgba(15,27,45,.45); flex-direction: column; align-items: stretch; gap: 0;
         transform: translateX(100%); transition: transform .25s ease, overlay .25s allow-discrete, display .25s allow-discrete; }
  #menu:popover-open { display: flex; transform: translateX(0); }
  @starting-style { #menu:popover-open { transform: translateX(100%); } }
  #menu::backdrop { background: rgba(15,27,45,.45); }
  #menu a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; color: var(--ink); }
  #menu a.on { color: var(--gold-text); }
  #menu .btn { margin-top: 1.25rem; text-align: center; padding: .8em 1.4em; }
  .menu-close { display: block; position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; font-size: 2rem; line-height: 1; border-radius: 10px; }
  .menu-close:hover { background: var(--bg-alt); }
}
