/* ============================================================
   RiskTech — global styles
   ============================================================ */
:root {
  --bg: #020b1d;
  --ink: #f7fbff;
  --muted: #9fb4c6;
  --muted-2: #6f8798;
  --cyan: #01acdf;
  --cyan-2: #1bdfff;
  --navy: #001721;
  --slate: #26394b;
  --green: #32ce9e;
  --yellow: #ffcd00;
  --orange: #ff7200;
  --red: #f40000;
  --paper: #f5f9fc;
  --line: rgba(255,255,255,.12);
  --line-dark: rgba(0,23,33,.14);
  --shadow: 0 24px 80px rgba(0,0,0,.28);
  --radius: 26px;
  --radius-sm: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 12%, rgba(1,172,223,.20), transparent 34rem),
    radial-gradient(circle at 10% 20%, rgba(1,172,223,.07), transparent 30rem),
    linear-gradient(180deg, rgba(2,11,29,.2), rgba(2,11,29,.96));
  z-index: -2;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1rem; color: rgba(247,251,255,.78); }
img { max-width: 100%; display: block; }
h1,h2,h3 { line-height: 1.14; margin: 0 0 .9rem; letter-spacing: -.015em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: 100px 0; }
.section-pad.compact { padding: 42px 0 86px; }
.section-light { background: var(--paper); color: var(--navy); }
.section-light p { color: #4e6477; }
.dark-section { background: linear-gradient(135deg, #001721, #020b1d 66%, #06182b); }
.center { text-align: center; }
.center .wide { max-width: 62ch; margin-left: auto; margin-right: auto; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .76rem;
  font-weight: 700; color: var(--cyan-2); margin-bottom: .9rem;
}
.section-light .eyebrow { color: #0187b0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  padding: 14px 24px;
  background: rgba(2,11,29,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 20px; width: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: .93rem; }
.site-nav a { color: rgba(247,251,255,.75); font-weight: 500; }
.site-nav a:hover { color: #fff; }
.site-nav a.active { color: var(--cyan-2); }
.nav-cta {
  background: var(--cyan); color: #00202c !important; font-weight: 700;
  padding: 9px 18px; border-radius: 999px;
}
.nav-cta:hover { background: var(--cyan-2); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; transition: transform .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--cyan); color: #00202c; }
.btn.primary:hover { background: var(--cyan-2); }
.btn.secondary { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.section-light .btn.secondary { border-color: rgba(0,23,33,.3); color: var(--navy); }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding-top: 84px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-lead { font-size: 1.15rem; max-width: 54ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 1.6rem 0 1.9rem; }
.trust-row { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-row span {
  font-size: .8rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}

/* hero panel */
.hero-panel {
  background: linear-gradient(160deg, rgba(9,28,50,.92), rgba(2,15,31,.96));
  border: 1px solid rgba(37,214,255,.22); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
}
.panel-top { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.panel-pill { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--green); border: 1px solid rgba(50,206,158,.4); padding: 3px 10px; border-radius: 999px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 16px 0; }
.metric-grid article { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 10px; text-align: center; }
.metric-grid strong { display: block; font-size: 1.25rem; color: var(--cyan-2); }
.metric-grid span { font-size: .68rem; color: var(--muted); }
.event-list div { display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; padding: 10px 4px; border-top: 1px solid var(--line); align-items: center; }
.event-list p { margin: 0; font-size: .86rem; color: #e7f2fb; grid-column: 2; }
.event-list small { grid-column: 2; color: var(--muted-2); font-size: .72rem; }
.event-icon { width: 10px; height: 10px; border-radius: 50%; grid-row: 1 / span 2; }
.event-icon.cyan { background: var(--cyan-2); } .event-icon.green { background: var(--green); } .event-icon.yellow { background: var(--yellow); }

/* ---------- proof strip ---------- */
.proof-strip {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 18px;
}
.proof-strip div {
  background: rgba(255,255,255,.045); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 22px;
}
.proof-strip strong { display: block; font-size: 2rem; color: var(--cyan-2); margin-bottom: .3rem; }
.proof-strip span { color: var(--muted); font-size: .92rem; }

/* ---------- generic grids/cards ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-bottom: 44px; }
.split.reverse > :first-child { order: 2; }

.capability-grid, .value-cards, .sector-grid, .cards-3 { display: grid; gap: 18px; }
.capability-grid { grid-template-columns: repeat(4,1fr); }
.value-cards, .cards-3 { grid-template-columns: repeat(3,1fr); }
.sector-grid { grid-template-columns: repeat(3,1fr); margin-top: 42px; }

.cap-card, .value-card, .sector-grid article, .card {
  border-radius: var(--radius-sm); padding: 24px; border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
}
.section-light .cap-card, .section-light .value-card, .section-light .sector-grid article, .section-light .card {
  background: #fff; border-color: var(--line-dark); box-shadow: 0 10px 34px rgba(0,23,33,.06);
}
.cap-card span { font-size: .8rem; font-weight: 800; color: var(--cyan); letter-spacing: .1em; }
.cap-card h3 { margin-top: .5rem; }
.section-light .cap-card p, .section-light .value-card p, .section-light .sector-grid p { margin-bottom: 0; }

/* photo cards */
.photo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 42px; }
.photo-card { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: rgba(255,255,255,.04); display: flex; flex-direction: column; }
.photo-card img { height: 230px; object-fit: cover; width: 100%; }
.photo-card .pc-body { padding: 20px 22px 24px; }
.photo-card h3 { margin-bottom: .4rem; }
.photo-card p { margin: 0; font-size: .92rem; }
.section-light .photo-card { background: #fff; border-color: var(--line-dark); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 92px 0 64px; position: relative; overflow: hidden; }
.page-hero .hero-lead { font-size: 1.12rem; max-width: 62ch; }
.page-hero.with-photo { min-height: 380px; display: flex; align-items: flex-end; padding-bottom: 56px; }
.page-hero .bg {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  filter: brightness(.42) saturate(.9);
}
.page-hero .bg::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(2,11,29,.55), rgba(2,11,29,.92)); }

/* ---------- feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.feature-row:first-of-type { border-top: 0; }
.feature-row img { border-radius: var(--radius-sm); border: 1px solid var(--line); width: 100%; height: 340px; object-fit: cover; }
.feature-row.flip > :first-child { order: 2; }
.feature-row ul { margin: 0; padding-left: 1.2rem; color: rgba(247,251,255,.78); }
.feature-row li { margin-bottom: .45rem; }
.section-light .feature-row ul { color: #4e6477; }

/* ---------- process steps ---------- */
.process { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 42px; }
.process-step { background: #fff; border: 1px solid var(--line-dark); border-radius: var(--radius-sm); padding: 24px; box-shadow: 0 10px 34px rgba(0,23,33,.06); }
.process-step span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cyan); color: #00202c; font-weight: 800; margin-bottom: .8rem; }
.process-step p { margin-bottom: 0; }
.dark-section .process-step, .process.on-dark .process-step { background: rgba(255,255,255,.05); border-color: var(--line); box-shadow: none; }
.dark-section .process-step p { color: rgba(247,251,255,.75); }

/* ---------- insurance stack ---------- */
.insurance-grid, .security-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.insurance-stack { display: grid; gap: 16px; }
.ins-card { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; }
.ins-card.highlight { border-color: rgba(37,214,255,.45); background: rgba(1,172,223,.1); }
.ins-card p { margin-bottom: 0; font-size: .95rem; }
.security-list { display: grid; gap: 14px; }
.security-list div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 22px; background: rgba(255,255,255,.045); }
.security-list strong { display: block; margin-bottom: .25rem; }
.security-list span { color: var(--muted); font-size: .92rem; }

/* ---------- stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; margin-top: 42px; }
.stats-band div { text-align: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 10px; background: rgba(255,255,255,.045); }
.stats-band strong { display: block; font-size: 1.7rem; color: var(--cyan-2); }
.stats-band span { font-size: .8rem; color: var(--muted); }
.section-light .stats-band div { background: #fff; border-color: var(--line-dark); }
.section-light .stats-band span { color: #4e6477; }

/* ---------- case studies ---------- */
.case-hero-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.2rem; }
.case-hero-stats span { border: 1px solid rgba(37,214,255,.4); color: var(--cyan-2); font-weight: 700; font-size: .84rem; border-radius: 999px; padding: 7px 15px; }
blockquote {
  margin: 2rem 0 0; padding: 26px 30px; border-left: 3px solid var(--cyan);
  background: rgba(1,172,223,.08); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.05rem; color: #e7f2fb; font-style: italic;
}
blockquote footer { margin-top: .9rem; font-style: normal; font-size: .88rem; color: var(--muted); }
.section-light blockquote { background: rgba(1,172,223,.07); color: var(--navy); }
.section-light blockquote footer { color: #4e6477; }

/* ---------- offices ---------- */
.office-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 42px; }
.office-grid article { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; background: rgba(255,255,255,.045); }
.office-grid h3 { color: var(--cyan-2); margin-bottom: .3rem; }
.office-grid p { margin: 0; font-size: .92rem; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-card { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.contact-card h3 { color: var(--cyan-2); }
.contact-card a { color: var(--cyan-2); font-weight: 600; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { font-size: .84rem; font-weight: 600; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; background: rgba(255,255,255,.06); color: #fff;
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px;
  font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--cyan); border-color: transparent; }

/* ---------- CTA ---------- */
.final-cta .cta-card {
  background: linear-gradient(140deg, rgba(1,172,223,.16), rgba(2,15,31,.9));
  border: 1px solid rgba(37,214,255,.3); border-radius: var(--radius);
  padding: 64px 48px; text-align: center;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: #010817; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 18px; width: auto; margin-bottom: 1rem; }
.site-footer h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: .8rem; }
.site-footer p, .site-footer a { font-size: .92rem; color: rgba(247,251,255,.72); }
.site-footer nav a { display: block; margin-bottom: .5rem; }
.site-footer nav a:hover, .site-footer a:hover { color: var(--cyan-2); }
.legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted-2); }
.footer-tagline { color: var(--cyan-2) !important; font-weight: 600; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; } .delay-2 { transition-delay: .24s; } .delay-3 { transition-delay: .36s; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .split, .insurance-grid, .security-grid, .contact-grid, .feature-row { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.flip > :first-child { order: 0; }
  .capability-grid, .process, .stats-band { grid-template-columns: repeat(2,1fr); }
  .value-cards, .sector-grid, .photo-grid, .cards-3, .office-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 62px 0 auto 0; flex-direction: column; align-items: flex-start;
    background: rgba(2,11,29,.98); padding: 22px 26px 30px; gap: 18px;
    border-bottom: 1px solid var(--line); display: none;
  }
  .site-nav.open { display: flex; }
}
@media (max-width: 620px) {
  .capability-grid, .process, .value-cards, .sector-grid, .photo-grid, .cards-3, .office-grid,
  .proof-strip, .stats-band, .footer-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .section-pad { padding: 68px 0; }
}

/* ============================================================
   v2 additions — device frames, logo strips, modules, testimonials
   ============================================================ */

/* browser mockup frame */
.browser-frame {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: #0a1626; box-shadow: var(--shadow);
}
.browser-frame .bf-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: #0d1d31; border-bottom: 1px solid var(--line);
}
.browser-frame .bf-bar i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.browser-frame .bf-bar i:nth-child(1){ background:#ff5f57; } .browser-frame .bf-bar i:nth-child(2){ background:#febc2e; } .browser-frame .bf-bar i:nth-child(3){ background:#28c840; }
.browser-frame .bf-url {
  margin-left: 10px; flex: 1; max-width: 300px; font-size: .68rem; color: var(--muted-2);
  background: rgba(255,255,255,.06); border-radius: 6px; padding: 3px 12px; white-space: nowrap; overflow: hidden;
}
.browser-frame img { width: 100%; height: auto; }
.section-light .browser-frame { border-color: var(--line-dark); }

/* phone mockup frame */
.phone-frame {
  width: min(270px, 70vw); border-radius: 38px;
  border: 3px solid #22405e; background: #0a1626; padding: 10px; box-shadow: var(--shadow);
  position: relative; margin: 0 auto;
}
.phone-frame::before {
  content:""; position:absolute; top:12px; left:50%; transform:translateX(-50%);
  width: 86px; height: 16px; background:#0a1626; border-radius: 10px; z-index: 2;
  border: 1px solid #22405e;
}
.phone-frame img { border-radius: 26px; width: 100%; height: auto; }

/* hero composite: browser + overlapping phone */
.hero-shot { position: relative; }
.hero-shot .phone-frame {
  position: absolute; right: -8px; bottom: -34px; width: 158px; padding: 6px;
  border-radius: 26px; margin: 0;
}
.hero-shot .phone-frame::before { width: 52px; height: 10px; top: 8px; }
.hero-shot .phone-frame img { border-radius: 18px; }

/* customer logo strip */
.logo-strip { text-align: center; }
.logo-strip p { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.logo-row { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; align-items: center; margin-top: 18px; }
.logo-row img { width: 100%; height: 64px; object-fit: contain; border-radius: 10px; opacity: .85; }

/* module grid (product capabilities) */
.module-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 42px; }
.module-card {
  border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line);
  background: rgba(255,255,255,.045); display: flex; flex-direction: column;
}
.module-card img { width: 100%; height: 190px; object-fit: cover; }
.module-card .mc-body { padding: 18px 20px 22px; }
.module-card h3 { font-size: 1rem; margin-bottom: .35rem; }
.module-card p { margin: 0; font-size: .88rem; }
.section-light .module-card { background: #fff; border-color: var(--line-dark); box-shadow: 0 10px 34px rgba(0,23,33,.06); }

/* testimonial */
.testimonial {
  display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: start;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  background: rgba(255,255,255,.045);
}
.testimonial img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(37,214,255,.4); }
.testimonial .t-quote { font-size: 1.08rem; color: #e7f2fb; font-style: italic; margin-bottom: .8rem; }
.testimonial .t-who { font-size: .86rem; color: var(--muted); }
.section-light .testimonial { background: #fff; border-color: var(--line-dark); }
.section-light .testimonial .t-quote { color: var(--navy); }

/* badges */
.badge-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.badge-row img { width: 190px; height: 108px; object-fit: contain; border-radius: 14px; }

/* stat trio (light, SafetyCulture-style) */
.stat-trio { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 42px; text-align: center; }
.stat-trio div { padding: 28px 18px; border-radius: var(--radius-sm); }
.stat-trio strong { display: block; font-size: 2.4rem; font-weight: 800; color: var(--cyan); letter-spacing: -.02em; }
.section-light .stat-trio div { background: #fff; border: 1px solid var(--line-dark); box-shadow: 0 10px 34px rgba(0,23,33,.06); }
.stat-trio span { font-size: .92rem; color: var(--muted); }
.section-light .stat-trio span { color: #4e6477; }

@media (max-width: 980px) {
  .logo-row { grid-template-columns: repeat(3,1fr); }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .stat-trio { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .logo-row { grid-template-columns: repeat(2,1fr); }
  .module-grid { grid-template-columns: 1fr; }
  .hero-shot .phone-frame { width: 120px; }
  .testimonial { grid-template-columns: 1fr; }
}

/* hero composite image (transparent PNG) */
.hero-shot > img { width: 100%; height: auto; filter: drop-shadow(0 24px 60px rgba(0,0,0,.45)); }

/* contact form status messages */
.form-status { margin: 0; font-size: .92rem; display: none; padding: 12px 16px; border-radius: 10px; }
.form-status.ok { display: block; color: #bff3e0; background: rgba(50,206,158,.14); border: 1px solid rgba(50,206,158,.4); }
.form-status.err { display: block; color: #ffd7d7; background: rgba(244,0,0,.12); border: 1px solid rgba(244,0,0,.35); }

/* stronger stat colours on light backgrounds (contrast fix) */
.section-light .stats-band strong { color: #016f92; }
.section-light .stats-band span { color: #3f5568; }
.section-light .stat-trio strong { color: #016f92; }
