/* =====================================================================================================================
   AccordPortal marketing site — design system
   Modern CSS: custom properties, color-mix(), clamp(), container queries, :has(), native nesting, cross-document
   view transitions and scroll-driven reveal (with an IntersectionObserver fallback in site.js).
   ===================================================================================================================== */

@view-transition { navigation: auto; }

:root {
  --navy-900: #0b1f33;
  --navy-800: #0f2a44;
  --navy-700: #163a5c;
  --teal-600: #2e6a8e;
  --teal-500: #3784b0;
  --teal-400: #5aa7d1;
  --sky-100: #e7f1f8;
  --sky-50: #f3f8fc;
  --orange-500: #e07b24;
  --orange-600: #c86514;
  --mint-500: #17a37a;
  --rose-500: #d9485f;
  --violet-500: #6d5bd0;
  --amber-500: #d99a1e;

  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --card: #ffffff;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06), 0 1px 3px rgb(15 23 42 / .08);
  --shadow-md: 0 8px 24px -8px rgb(15 23 42 / .18);
  --shadow-lg: 0 30px 60px -20px rgb(11 31 51 / .35), 0 12px 24px -12px rgb(11 31 51 / .25);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;

  --font-head: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #e8eef5;
  --text: #c3cfdc;
  --muted: #8da0b5;
  --line: #22384f;
  --bg: #0a1828;
  --bg-soft: #0d1f33;
  --card: #10263d;
  --sky-100: #13304c;
  --sky-50: #0f2840;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-md: 0 8px 24px -8px rgb(0 0 0 / .6);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e8eef5; --text: #c3cfdc; --muted: #8da0b5; --line: #22384f; --bg: #0a1828; --bg-soft: #0d1f33; --card: #10263d;
    --sky-100: #13304c; --sky-50: #0f2840; --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow-md: 0 8px 24px -8px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 16.5px; line-height: 1.65; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { color: var(--teal-500); }
:where(:root[data-theme="dark"]) a { color: var(--teal-400); }
@media (prefers-color-scheme: dark) { :where(:root:not([data-theme="light"])) a { color: var(--teal-400); } }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); font-weight: 800; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--orange-500); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: radial-gradient(1200px 600px at 10% 0%, #1b4b73 0%, transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #c9d6e4; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.section-dark .section-head p { color: #a9bccf; }
.section-dark .card, .section-dark .kpis div { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .12); box-shadow: none; }
.section-dark .card:hover { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .2); }
.section-dark .card p, .section-dark .kpis span { color: #a9bccf; }
.section-dark .kpis b { color: #fff; }
.section-dark .card-icon { color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 22%, transparent); border-color: color-mix(in srgb, var(--c) 40%, transparent); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font: 700 .78rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-500); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); }
.grad-text { background: linear-gradient(90deg, #ffd29c, #ff9f4a 40%, #7fd0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- icons (inline SVG injected by site.js) ---------- */
.ico { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--teal-600);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: 12px; font: 700 .98rem/1 var(--font-head);
  border: 2px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; white-space: nowrap;
  &:hover { transform: translateY(-2px); }
  &:active { transform: translateY(0); }
}
.btn-primary { background: linear-gradient(135deg, var(--orange-500), var(--orange-600)); color: #fff; box-shadow: 0 10px 24px -10px rgb(224 123 36 / .8); }
.btn-primary:hover { color: #fff; box-shadow: 0 16px 30px -12px rgb(224 123 36 / .9); }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { color: var(--ink); border-color: var(--teal-400); }
.btn-ghost-light { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .28); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgb(255 255 255 / .16); color: #fff; }
.btn-teal { background: var(--teal-600); color: #fff; }
.btn-teal:hover { background: var(--teal-500); color: #fff; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { padding: 9px 14px; font-size: .88rem; border-radius: 10px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px -16px rgb(15 23 42 / .35); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.22rem/1 var(--font-head); color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--teal-500), var(--navy-700)); display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgb(46 106 142 / .7); }
.brand-mark svg { width: 20px; height: 20px; }
.brand small { display: block; font: 600 .62rem/1 var(--font-body); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav > a, .nav-drop > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; font: 600 .95rem/1 var(--font-head); color: var(--text);
  background: none; border: 0; cursor: pointer;
}
.main-nav > a:hover, .nav-drop > button:hover, .main-nav > a[aria-current="page"], .nav-drop.active > button { color: var(--ink); background: var(--sky-50); }
.nav-drop { position: relative; }
.nav-drop > button .ico { width: 14px; height: 14px; transition: transform .2s; }
.nav-drop[data-open] > button .ico { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; width: min(760px, 92vw); padding: 18px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav-drop[data-open] .mega, .nav-drop:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
@media (hover: hover) { .nav-drop:hover .mega { opacity: 1; visibility: visible; transform: none; } }
.mega a { display: flex; gap: 14px; padding: 12px; border-radius: 12px; color: var(--text); }
.mega a:hover { background: var(--sky-50); color: var(--text); }
.mega .mi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--sky-100); color: var(--teal-600); }
.mega strong { display: block; font: 700 .95rem/1.2 var(--font-head); color: var(--ink); margin-bottom: 3px; }
.mega span { font-size: .84rem; color: var(--muted); line-height: 1.4; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--teal-400); }
.menu-toggle { display: none; }
.nav-mobile-cta { display: none; }
.site-header[data-menu-open] .nav-mobile-cta { display: grid; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 1080px) {
  .main-nav, .header-cta .btn-secondary { display: none; }
  .menu-toggle { display: grid; }
  .header-cta { margin-left: auto; }
  body:has(.site-header[data-menu-open]) { overflow: hidden; }
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .site-header[data-menu-open] { backdrop-filter: none; background: var(--bg); }
  .site-header[data-menu-open] .main-nav {
    display: flex; flex-direction: column; align-items: stretch; position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg); padding: 20px var(--gutter) 40px;
    overflow-y: auto; gap: 2px; margin: 0;
  }
  .site-header[data-menu-open] .main-nav > a, .site-header[data-menu-open] .nav-drop > button { font-size: 1.1rem; padding: 14px 10px; width: 100%; justify-content: space-between; }
  .site-header[data-menu-open] .mega { position: static; translate: none; width: 100%; box-shadow: none; border: 0; padding: 0 0 8px; grid-template-columns: 1fr; display: none; opacity: 1; visibility: visible; transform: none; }
  .site-header[data-menu-open] .nav-drop[data-open] .mega { display: grid; }
}
@media (max-width: 520px) { .header-cta .btn-primary { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #cfdbe8; padding: clamp(56px, 8vw, 110px) 0 0;
  background:
    radial-gradient(900px 500px at 85% 10%, rgb(90 167 209 / .35), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgb(224 123 36 / .22), transparent 60%),
    linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 45%, #1b4a70 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 20%, #000 40%, transparent 75%);
}
.hero h1 { color: #fff; }
.hero .lead { color: #b8c9da; max-width: 640px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: #d6e2ee; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12); padding: 7px 12px; border-radius: 999px; }
.hero-badges .ico { color: #7fd8b4; width: 16px; height: 16px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgb(255 255 255 / .08);
  border: 1px solid rgb(255 255 255 / .16); color: #e5eef7; font-size: .88rem; margin-bottom: 22px;
}
.pill b { background: var(--orange-500); color: #fff; font: 700 .72rem/1 var(--font-head); padding: 6px 10px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.hero-visual { position: relative; perspective: 1600px; }
.hero-full { position: relative; margin-top: clamp(48px, 7vw, 80px); }
.hero-full .browser { transform: none; }
.hero-full::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

/* browser frame */
.browser {
  border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgb(255 255 255 / .2);
  transform: rotateY(-8deg) rotateX(4deg); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}
.hero-visual:hover .browser { transform: rotateY(-2deg) rotateX(1deg); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #eef2f6; border-bottom: 1px solid #dde4ec; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #f26d5b; }
.browser-bar i:nth-child(2) { background: #f6be4f; }
.browser-bar i:nth-child(3) { background: #46c46d; }
.browser-bar span { margin-left: 12px; flex: 1; font: 500 .75rem/1 var(--font-mono); color: #6b7a89; background: #fff; border-radius: 6px; padding: 6px 10px; border: 1px solid #dde4ec; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser img { width: 100%; height: auto; }

.float-card {
  position: absolute; background: #fff; color: #0f2a44; border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-lg); font-size: .85rem; min-width: 190px;
  animation: floaty 6s ease-in-out infinite; border: 1px solid #e6edf3;
}
.float-card strong { display: block; font: 800 1.35rem/1.1 var(--font-head); }
.float-card small { color: #64748b; }
.float-card .tag { display: inline-flex; align-items: center; gap: 6px; font: 700 .7rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--mint-500); margin-bottom: 6px; }
.float-card.fc-1 { left: -34px; bottom: 34px; }
.float-card.fc-2 { right: -18px; top: -22px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .browser { transform: none; }
  .float-card.fc-1 { left: 8px; bottom: -24px; }
  .float-card.fc-2 { right: 8px; top: -18px; }
}

/* page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 80px); color: #c8d6e4;
  background: radial-gradient(800px 380px at 90% 0%, rgb(90 167 209 / .32), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-700));
}
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .4; background-image: radial-gradient(rgb(255 255 255 / .12) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000 60%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 900px; }
.page-hero .lead { color: #b3c5d7; max-width: 760px; }
.crumbs { display: flex; gap: 8px; font-size: .86rem; color: #8fa6bd; margin-bottom: 18px; }
.crumbs a { color: #b8cde0; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { padding: 8px 14px; border-radius: 999px; font-size: .88rem; color: #e3edf6; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .06); }
.jump a:hover { background: rgb(255 255 255 / .14); color: #fff; }

/* ---------- trust / capability strip ---------- */
.strip { padding: 26px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; color: var(--muted); font: 600 .92rem/1 var(--font-head); }
.strip-inner span { display: inline-flex; align-items: center; gap: 9px; }
.strip-inner .ico { color: var(--teal-600); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 26px; border-radius: var(--radius); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); text-align: center; }
.stat b { display: block; font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--font-head); color: #fff; margin-bottom: 8px; }
.stat span { font-size: .92rem; color: #a9bccf; }
.stats-light .stat { background: var(--card); border-color: var(--line); box-shadow: var(--shadow-sm); }
.stats-light .stat b { color: var(--ink); }
.stats-light .stat span { color: var(--muted); }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  container-type: inline-size; position: relative; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
a.card { color: var(--text); display: block; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--teal-400) 50%, var(--line)); }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font: 700 .9rem/1 var(--font-head); color: var(--teal-600); }
.card .more .ico { width: 16px; height: 16px; transition: translate .2s; }
.card:hover .more .ico { translate: 4px 0; }
.card-icon {
  --c: var(--teal-600);
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: var(--c);
  background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
}
.card-icon .ico { width: 24px; height: 24px; }
.c-orange { --c: var(--orange-500); } .c-mint { --c: var(--mint-500); } .c-rose { --c: var(--rose-500); } .c-violet { --c: var(--violet-500); }
.c-amber { --c: var(--amber-500); } .c-navy { --c: var(--navy-700); } .c-sky { --c: var(--teal-400); }
:root[data-theme="dark"] .c-navy { --c: #8fb7dc; }
.card ul.ticks { margin-top: 14px; }
@container (max-width: 300px) { .card .card-icon { width: 42px; height: 42px; } }

ul.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
ul.ticks li { position: relative; padding-left: 28px; font-size: .96rem; }
ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--mint-500) 16%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317a37a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
ul.ticks.two { grid-template-columns: repeat(2, 1fr); gap: 9px 22px; }
@media (max-width: 680px) { ul.ticks.two { grid-template-columns: 1fr; } }
.section-dark ul.ticks li { color: #c9d6e4; }

/* ---------- feature rows (text + screenshot) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(64px, 9vw, 120px); }
.feature-row.flip > :first-child { order: 2; }
.feature-row h2, .feature-row h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.feature-row p { color: var(--muted); }
@media (max-width: 920px) { .feature-row { grid-template-columns: 1fr; } .feature-row.flip > :first-child { order: 0; } }

.shot {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  cursor: zoom-in; isolation: isolate;
}
.shot img { width: 100%; height: auto; transition: transform .5s ease; }
.shot:hover img { transform: scale(1.015); }
.shot figcaption { position: absolute; left: 12px; bottom: 12px; padding: 7px 12px; border-radius: 10px; font: 600 .8rem/1 var(--font-head); background: rgb(11 31 51 / .82); color: #fff; backdrop-filter: blur(6px); }
.shot .zoom-hint { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgb(11 31 51 / .7); color: #fff; opacity: 0; transition: opacity .2s; }
.shot:hover .zoom-hint { opacity: 1; }
.shot-stack { position: relative; padding: 0 0 40px 40px; }
.shot-stack .shot.back { position: absolute; left: 0; bottom: 0; width: 62%; z-index: 2; box-shadow: var(--shadow-lg); border: 4px solid var(--card); }
@media (max-width: 680px) { .shot-stack { padding: 0; } .shot-stack .shot.back { position: relative; width: 100%; margin-top: 16px; border-width: 1px; } }

/* ---------- module tabs ---------- */
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.tab-list { display: grid; gap: 6px; position: sticky; top: calc(var(--header-h) + 20px); }
.tab-list button {
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid transparent; background: none;
  font: 600 .98rem/1.2 var(--font-head); color: var(--text); cursor: pointer; transition: background .2s, border-color .2s;
}
.tab-list button:hover { background: var(--card); border-color: var(--line); }
.tab-list button[aria-selected="true"] { background: var(--card); border-color: color-mix(in srgb, var(--teal-400) 60%, var(--line)); box-shadow: var(--shadow-sm); color: var(--ink); }
.tab-list button .card-icon { width: 36px; height: 36px; margin: 0; border-radius: 10px; }
.tab-list button .card-icon .ico { width: 18px; height: 18px; }
.tab-panel { display: none; animation: fadeUp .45s ease both; }
.tab-panel.active { display: block; }
.tab-panel h3 { font-size: 1.6rem; }
.tab-panel > p { color: var(--muted); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 920px) {
  .tabs { grid-template-columns: 1fr; }
  .tab-list { position: static; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .tab-list button { flex: none; scroll-snap-align: start; }
}

/* ---------- steps / timeline ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-500), var(--navy-700)); color: #fff; font: 800 1rem/1 var(--font-head); margin-bottom: 16px;
}
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.section-dark .step { background: rgb(255 255 255 / .05); border-color: rgb(255 255 255 / .1); }
.section-dark .step p { color: #a9bccf; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery .shot { box-shadow: var(--shadow-sm); }
.gallery .shot:hover { box-shadow: var(--shadow-md); }
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.gallery-filter button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: 600 .9rem/1 var(--font-head); cursor: pointer; }
.gallery-filter button[aria-pressed="true"] { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.gallery .shot[hidden] { display: none; }
@media (max-width: 600px) {
  #gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  #gallery-grid figcaption { font-size: .68rem; padding: 4px 8px; left: 6px; bottom: 6px; max-width: calc(100% - 12px); }
}

/* ---------- feature catalog (features page) ---------- */
.catalog { display: grid; gap: 22px; }
.catalog-group { display: grid; grid-template-columns: 280px 1fr; gap: 30px; padding: 32px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.catalog-group h3 { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; }
.catalog-group .card-icon { margin: 0; }
.catalog-group > div:first-child p { color: var(--muted); font-size: .95rem; }
.catalog-group dl { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
.catalog-group dt { font: 700 .98rem/1.3 var(--font-head); color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.catalog-group dt::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--orange-500); flex: none; translate: 0 -2px; }
.catalog-group dd { margin: 4px 0 0 15px; font-size: .92rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 900px) { .catalog-group { grid-template-columns: 1fr; padding: 24px; } .catalog-group dl { grid-template-columns: 1fr; } }

/* ---------- callouts, quotes ---------- */
.callout { display: flex; gap: 18px; padding: 22px 24px; border-radius: var(--radius); background: var(--sky-50); border: 1px solid color-mix(in srgb, var(--teal-400) 35%, var(--line)); }
.callout .card-icon { margin: 0; flex: none; }
.callout h4 { margin-bottom: 4px; }
.callout p { margin: 0; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.kpis div { padding: 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.kpis b { display: block; font: 800 1.4rem/1.1 var(--font-head); color: var(--ink); }
.kpis span { font-size: .84rem; color: var(--muted); }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font: 600 .8rem/1 var(--font-head); background: var(--sky-50); color: var(--teal-600); border: 1px solid color-mix(in srgb, var(--teal-400) 30%, var(--line)); }
:root[data-theme="dark"] .chip { color: var(--teal-400); }
.section-dark .chip { background: rgb(255 255 255 / .07); color: #d6e5f3; border-color: rgb(255 255 255 / .15); }

/* ---------- pricing ---------- */
.billing-toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin: 0 auto 40px; }
.billing-toggle button { padding: 10px 20px; border-radius: 999px; border: 0; background: none; font: 700 .92rem/1 var(--font-head); color: var(--muted); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--teal-600); color: #fff; }
.billing-toggle em { font-style: normal; color: var(--mint-500); margin-left: 6px; }
.billing-toggle button[aria-pressed="true"] em { color: #b8f1dc; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.plan.featured { border: 2px solid var(--teal-500); box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.plan .badge { position: absolute; top: -14px; left: 50%; translate: -50% 0; padding: 7px 14px; border-radius: 999px; background: linear-gradient(135deg, var(--orange-500), var(--orange-600)); color: #fff; font: 700 .76rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.plan h3 { font-size: 1.45rem; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: .94rem; min-height: 3.2em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.plan .price b { font: 800 3rem/1 var(--font-head); color: var(--ink); letter-spacing: -.03em; }
.plan .price span { color: var(--muted); }
.plan .billed { font-size: .86rem; color: var(--muted); margin-bottom: 22px; min-height: 1.3em; }
.plan ul.ticks { margin-bottom: 28px; flex: 1; }
.plan .btn { width: 100%; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } .plan.featured { transform: none; } }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--bg-soft); font: 700 .95rem/1.2 var(--font-head); color: var(--ink); }
.compare tbody tr:hover td { background: var(--sky-50); }
.compare .grp td { background: var(--bg-soft); font: 700 .78rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.compare .yes { color: var(--mint-500); font-weight: 700; }
.compare .no { color: var(--muted); opacity: .6; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 880px; margin-inline: auto; }
.faq details { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font: 700 1.02rem/1.4 var(--font-head); color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.6rem/1 var(--font-body); color: var(--teal-600); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details > div { padding: 0 24px 20px; color: var(--muted); }
.faq details[open] > div { animation: fadeUp .35s ease both; }

/* ---------- video cards ---------- */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
@media (max-width: 860px) { .videos { grid-template-columns: 1fr; } }
.video-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #0b1f33; overflow: hidden; }
.video-frame img.poster { width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: .55; filter: saturate(.9); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-overlay { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: #fff; text-align: center; padding: 20px; background: linear-gradient(180deg, rgb(11 31 51 / .2), rgb(11 31 51 / .75)); }
.play { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: rgb(255 255 255 / .16); border: 2px solid rgb(255 255 255 / .55); backdrop-filter: blur(8px); transition: transform .2s, background .2s; }
.video-card:hover .play { transform: scale(1.06); background: rgb(224 123 36 / .9); border-color: transparent; }
.play svg { width: 30px; height: 30px; fill: #fff; translate: 3px 0; }
.video-overlay .soon { font: 700 .78rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: rgb(0 0 0 / .35); border: 1px dashed rgb(255 255 255 / .5); }
.video-duration { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 8px; background: rgb(0 0 0 / .65); color: #fff; font: 600 .78rem/1 var(--font-mono); }
.video-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.video-body h3 { margin: 0; }
.video-body .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.video-body p { color: var(--muted); font-size: .96rem; margin: 6px 0 0; }
.video-body details { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.video-body summary { cursor: pointer; font: 700 .9rem/1 var(--font-head); color: var(--teal-600); }
.video-body ol { margin: 12px 0 0; padding-left: 1.2em; color: var(--muted); font-size: .93rem; display: grid; gap: 6px; }
.video-body .link-slot { margin-top: 14px; font: 500 .78rem/1.4 var(--font-mono); color: var(--muted); background: var(--bg-soft); border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); color: #d4e1ee;
  background: radial-gradient(600px 300px at 100% 0%, rgb(224 123 36 / .35), transparent 60%), linear-gradient(135deg, var(--navy-800), #1d5a86);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #b8cadb; margin: 0; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 32px; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #c9d6e4; box-shadow: var(--shadow-lg); }
.contact-card h3 { color: #fff; }
.contact-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgb(255 255 255 / .1); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-item .card-icon { margin: 0; --c: #7fd0ff; background: rgb(127 208 255 / .12); border-color: rgb(127 208 255 / .25); }
.contact-item b { display: block; color: #fff; font: 700 .82rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.contact-item a { color: #fff; font-size: 1.08rem; font-weight: 600; }
.contact-item a:hover { color: #ffcf9e; }
.form { padding: 32px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font: 700 .86rem/1 var(--font-head); color: var(--ink); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 400 1rem/1.4 var(--font-body);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal-500) 18%, transparent); }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--rose-500); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--teal-600); }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--mint-500) 12%, transparent); color: var(--ink); display: none; }
.form-status.show { display: block; }
.office { display: flex; flex-direction: column; }
.office .badge-soft { align-self: flex-start; margin-bottom: 14px; }
.office.hq { border-color: color-mix(in srgb, var(--teal-500) 55%, var(--line)); box-shadow: var(--shadow-md); }
.office.hq .badge-soft { background: color-mix(in srgb, var(--teal-500) 14%, transparent); color: var(--teal-600); }
.office address { font-style: normal; color: var(--muted); line-height: 1.6; margin: 2px 0 18px; }
.office-links { display: grid; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); }
.office-links a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; overflow-wrap: anywhere; }
.office-links .ico { width: 17px; height: 17px; flex: none; }
.contact-card .eyebrow { color: #ffcf9e; }
.map-card { margin-top: 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid rgb(255 255 255 / .15); }
.map-card iframe { width: 100%; height: 240px; border: 0; display: block; filter: grayscale(.2); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: #93a8bd; padding: 72px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #b5c6d7; font-size: .94rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.site-footer .brand small { color: #7f97ae; }
.footer-about { font-size: .94rem; max-width: 340px; }
.site-footer ul.footer-offices { gap: 6px; margin: 0 0 14px; max-width: 340px; }
.footer-offices li { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; padding-bottom: 6px; border-bottom: 1px solid rgb(255 255 255 / .07); }
.footer-offices b { color: #7f97ae; font: 700 .74rem/1.9 var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .86rem; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1500px); max-height: 94vh; overflow: visible; }
dialog.lightbox::backdrop { background: rgb(6 16 28 / .86); backdrop-filter: blur(4px); }
dialog.lightbox[open] { animation: fadeUp .3s ease both; }
dialog.lightbox img { max-height: 86vh; width: auto; border-radius: 12px; box-shadow: var(--shadow-lg); margin-inline: auto; }
dialog.lightbox p { text-align: center; color: #dbe6f1; margin: 14px 0 0; font: 600 .95rem/1.4 var(--font-head); }
dialog.lightbox .lb-close, dialog.lightbox .lb-nav { position: fixed; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgb(255 255 255 / .14); color: #fff; cursor: pointer; display: grid; place-items: center; }
dialog.lightbox .lb-close { top: 18px; right: 18px; }
dialog.lightbox .lb-prev { left: 18px; top: 50%; }
dialog.lightbox .lb-next { right: 18px; top: 50%; }
dialog.lightbox button:hover { background: rgb(255 255 255 / .26); }

/* ---------- misc ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--teal-600); color: #fff; box-shadow: var(--shadow-md); cursor: pointer; display: grid; place-items: center; opacity: 0; translate: 0 12px; pointer-events: none; transition: .25s; z-index: 90; }
.to-top.show { opacity: 1; translate: 0 0; pointer-events: auto; }
.divider { height: 1px; background: var(--line); margin: 56px 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: .9em; }
.badge-soft { display: inline-block; padding: 4px 10px; border-radius: 999px; font: 700 .72rem/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; background: color-mix(in srgb, var(--orange-500) 14%, transparent); color: var(--orange-600); }
.split-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.split-head h2 { margin: 0; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; } .reveal-delay-2 { transition-delay: .16s; } .reveal-delay-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .to-top, .site-footer, .cta-band { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
