/* ==========================================================
   Bora Class — design system
   Colours come from the application itself:
   blue #006eb8 · navy #082e49 · orange #ffb432 / #f39315
   Orange is reserved for the primary action; blue for links and icons.
   ========================================================== */
:root {
  --blue: #006eb8;
  --blue-600: #005d9c;
  --blue-50: #eef6fc;
  --blue-100: #d9eaf6;
  --navy: #082e49;
  --navy-950: #051d2f;
  --orange: #ffb432;
  --orange-600: #f39315;
  --orange-50: #fff5e3;
  --ink: #1b2f3d;
  --muted: #5b6b77;
  --line: #e4e9ee;
  --paper: #f6f8fa;
  --white: #fff;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(8, 46, 73, .08);
  --shadow: 0 1px 2px rgba(8, 46, 73, .06), 0 12px 32px -12px rgba(8, 46, 73, .18);
  --shadow-lg: 0 2px 4px rgba(8, 46, 73, .05), 0 40px 80px -32px rgba(8, 46, 73, .35);

  --container: 1120px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 68px;
  --font: Arial, Helvetica, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 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);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--navy); text-wrap: balance; }
h2 { font-size: clamp(28px, 3.3vw, 40px); line-height: 1.15; letter-spacing: -.022em; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.005em; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.ic { width: 20px; height: 20px; flex: none; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 9vw, 128px); }
.section-tint { background: var(--paper); }
.section-dark { background: var(--navy); color: #c9d8e3; }
.section-dark h2 { color: var(--white); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 12px; font-weight: 700; line-height: 1.4;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow.light { color: var(--orange); }
.hl { color: var(--orange); }
.hl-blue { color: var(--blue); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { text-align: center; max-width: 720px; margin-inline: auto; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.section-head.split .section-lead { max-width: 400px; margin: 0; }
.section-lead { font-size: 18px; line-height: 1.55; color: var(--muted); margin: 16px 0 0; }
.section-dark .section-lead { color: #a9bdcc; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 10px 18px;
  font-size: 15px; font-weight: 700; line-height: 1.2;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.btn:hover .ic { transform: translateX(2px); }
.btn-lg { min-height: 48px; padding: 13px 22px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--orange); color: var(--navy); box-shadow: inset 0 -1px 0 rgba(8, 46, 73, .14), var(--shadow-sm); }
.btn-primary:hover { background: #ffa91a; }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .14), var(--shadow-sm); }
.btn-blue:hover { background: var(--blue-600); }
.btn-ghost, .btn-outline { background: var(--white); color: var(--navy); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover, .btn-outline:hover { border-color: #c5d0d9; background: var(--paper); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); }
.link-arrow .ic { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.link-arrow:hover { color: var(--blue-600); }
.link-arrow:hover .ic { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); }
.brand-mark { width: 44px; height: 26px; color: var(--navy); }
.brand-text { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.brand-text b { color: var(--orange-600); }
.brand-text small { display: block; margin-top: 4px; font-size: 11px; font-weight: 400; font-style: italic; letter-spacing: 0; color: var(--muted); }
.brand.light { color: var(--white); }
.brand.light .brand-mark { color: var(--white); }
.brand.light small { color: #8fa6b7; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a:not(.btn) { padding: 8px 12px; font-size: 14.5px; color: var(--muted); border-radius: 8px; transition: color .15s, background-color .15s; }
.nav a:not(.btn):hover { color: var(--navy); background: var(--paper); }
.nav a[aria-current] { color: var(--navy); font-weight: 700; }
.nav-cta { display: none; }
.menu-toggle { display: none; border: 0; background: none; padding: 8px; margin-left: auto; color: var(--navy); border-radius: 8px; }
.menu-toggle .ic { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 50% -8%, var(--blue-100), transparent 68%),
    linear-gradient(180deg, var(--paper), var(--white) 70%);
}
.hero::before {
  /* faint hexagon grid echoing the logo */
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0 56 16v32L28 64 0 48V16zM28 64v33M0 16-28 0M56 16 84 0' fill='none' stroke='%23006eb8' stroke-opacity='.16' stroke-width='1'/%3E%3C/svg%3E");
  mask-image: radial-gradient(60% 55% at 50% 0%, #000, transparent);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 0%, #000, transparent);
}
.hero-grid { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); }
.hero-copy { max-width: 800px; margin-inline: auto; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 10px; margin-bottom: 24px;
  font-size: 13px; font-weight: 700; color: var(--navy);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange-600); }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -.035em; }
.hero-lead { max-width: 620px; margin: 22px auto 32px; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-download { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-size: 14.5px; color: var(--muted); text-align: left; }
.hero-download .ic { width: 16px; height: 16px; color: var(--blue); }
.hero-download b { color: var(--blue); text-decoration: underline; text-decoration-color: rgba(0, 110, 184, .35); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.hero-download small { font-size: 13px; white-space: nowrap; }
.hero-download:hover b { text-decoration-color: currentColor; }

.hero-visual { position: relative; max-width: 1040px; margin: clamp(40px, 6vw, 72px) auto 0; }
.frame {
  display: block; width: 100%; padding: 0; text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.frame-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; background: var(--paper); border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3dbe2; }
.frame-bar > span { margin-left: 10px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame-bar em { font-style: normal; }

/* ---------- Capability strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--white); }
.strip-list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; padding-block: 22px; }
.strip-list li { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 700; color: var(--navy); }
.strip-list .ic { width: 18px; height: 18px; color: var(--blue); }

/* ---------- Value columns ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); }
.card { padding-top: 28px; border-top: 1px solid var(--line); }
.card h3 { margin: 20px 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: var(--blue-50); color: var(--blue); }
.card-icon .ic { width: 22px; height: 22px; }
.card-icon.orange { background: var(--orange-50); color: var(--orange-600); }
.card-icon.sm { width: 40px; height: 40px; border-radius: 10px; }
.card-icon.sm .ic { width: 20px; height: 20px; }

/* ---------- Segmented controls (roles, screens, mobile shots) ---------- */
.tabs, .seg, .shots {
  display: inline-flex; gap: 2px; padding: 4px; max-width: 100%;
  background: #e9eef2; border-radius: 12px;
}
.tabs button, .seg button, .shots button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 36px; padding: 7px 16px; border: 0; border-radius: 9px; background: transparent;
  font-size: 14.5px; font-weight: 700; color: var(--muted); white-space: nowrap;
  transition: background-color .15s, color .15s, box-shadow .15s;
}
.tabs button:hover, .shots button:hover { color: var(--navy); }
.tabs button[aria-selected="true"], .shots button.is-active { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm), 0 2px 6px -2px rgba(8, 46, 73, .16); }
.tabs .ic { width: 17px; height: 17px; }
.tabs { margin-bottom: 28px; }
.seg { display: flex; width: max-content; margin: 0 auto 28px; background: rgba(255, 255, 255, .08); }
.seg button { color: #a9bdcc; }
.seg button:hover { color: var(--white); }
.seg button.is-active { background: var(--white); color: var(--navy); }

/* ---------- Role panel ---------- */
.role-panel {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(16px, 2.4vw, 24px); padding-right: clamp(16px, 4vw, 48px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.role-panel:focus-visible { outline-offset: 4px; }
.role-media { border-radius: var(--radius); overflow: hidden; background: var(--blue-50); aspect-ratio: 16 / 10.5; border: 1px solid var(--line); }
.role-media img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: opacity .25s; }
.role-media img.fading { opacity: 0; }
.role-copy h3 { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.2; letter-spacing: -.02em; margin-bottom: 12px; }
.role-copy > p:not(.eyebrow) { color: var(--muted); }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 22px 0 28px; }
.checklist.single { grid-template-columns: 1fr; }
.checklist li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.45; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 17px; height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006eb8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Product tour ---------- */
.frame-lg { max-width: 1040px; margin-inline: auto; cursor: zoom-in; border-color: rgba(255, 255, 255, .14); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6); transition: box-shadow .2s; }
.frame-lg img { transition: opacity .25s; }
.frame-lg img.fading { opacity: 0; }
.frame-lg .expand { width: 15px; height: 15px; }
.frame-lg:hover { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6), 0 0 0 4px rgba(255, 255, 255, .14); }
.demo-note { text-align: center; font-size: 13.5px; color: #8fa6b7; margin: 18px 0 0; }

/* ---------- Mobile ---------- */
.mobile { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.mobile-copy h2 { margin-bottom: 16px; }
.mobile-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.feature-rows { margin: 28px 0 32px; border-bottom: 1px solid var(--line); }
.feature-rows li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.feature-rows b { display: block; color: var(--navy); }
.feature-rows li > span:last-child { color: var(--muted); font-size: 15px; line-height: 1.45; }
.mobile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.mobile-copy > p.mobile-note { margin: 16px 0 0; font-size: 13.5px; }

.mobile-visual { position: relative; display: grid; justify-items: center; }
.phone-glow { position: absolute; z-index: 0; top: 8%; width: min(440px, 100%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--blue-100), transparent 68%); }
.phone {
  position: relative; z-index: 1; width: 280px;
  border: 9px solid var(--navy); border-radius: 40px;
  box-shadow: var(--shadow-lg);
}
.phone-shot { overflow: hidden; background: var(--white); }
.phone-shot img { display: block; width: 100%; height: auto; aspect-ratio: 576 / 1280; border-radius: 31px; transition: opacity .2s; }
.phone-shot img.fading { opacity: 0; }
.shots { position: relative; z-index: 1; flex-wrap: wrap; justify-content: center; margin-top: 28px; }
.shots button { padding-inline: 12px; font-size: 14px; }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: center; }
.story-media img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 5 / 4; object-fit: cover; box-shadow: var(--shadow); }
.story-copy h2 { margin-bottom: 18px; }
.story-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 48px); }
.step { padding-top: 24px; border-top: 2px solid var(--navy); }
.step-num { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--blue); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact { padding-top: 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: clamp(32px, 6vw, 80px); align-items: center;
  padding: clamp(28px, 5vw, 64px);
  color: #c9d8e3;
  background: radial-gradient(700px 380px at 100% 0%, rgba(0, 110, 184, .55), transparent 70%), var(--navy);
  border-radius: clamp(18px, 2.4vw, 28px);
}
.contact h2 { color: var(--white); margin-bottom: 18px; }
.contact-copy > p:not(.eyebrow) { font-size: 17px; max-width: 460px; }
.contact-phones { display: grid; justify-items: start; gap: 2px; margin-top: 24px; }
.contact-phones a { display: inline-flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 17px; font-weight: 700; color: var(--white); transition: color .15s; }
.contact-phones a:hover { color: var(--orange); }
.contact-phones .ic { width: 18px; height: 18px; color: var(--orange); }
.contact-card { padding: clamp(24px, 3.4vw, 36px); background: var(--white); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.contact-card .eyebrow { margin-bottom: 10px; }
.contact-card h3 { font-size: 24px; letter-spacing: -.02em; margin-bottom: 10px; }
.contact-card > p:not(.eyebrow) { color: var(--muted); margin-bottom: 22px; font-size: 15.5px; }
.contact-card .btn + .btn { margin-top: 10px; }
.brochure {
  display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line); font-weight: 700; color: var(--navy); font-size: 15px; line-height: 1.35;
}
.brochure small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.brochure span { flex: 1; }
.brochure .ic { color: var(--blue); }
.brochure .ic:last-child { transition: transform .2s var(--ease); }
.brochure:hover .ic:last-child { transform: translateX(3px); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #8fa6b7; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 40px; }
.footer-brand p { margin-top: 16px; max-width: 280px; }
.footer-title { color: var(--white); font-weight: 700; margin-bottom: 12px; }
.footer-grid > div:not(.footer-brand) a { display: block; padding: 4px 0; transition: color .15s; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding-block: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Lightbox ---------- */
dialog { width: min(96vw, 1600px); max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius); background: var(--white); overflow: auto; }
dialog::backdrop { background: rgba(5, 29, 47, .8); backdrop-filter: blur(4px); }
.lightbox-close { position: sticky; top: 10px; float: right; margin: 10px 10px -50px 0; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--navy); color: var(--white); }

/* ---------- Reveal on scroll (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .header-cta { display: none; }
  .nav a:not(.btn) { padding: 8px 10px; }
  .strip-list { justify-content: center; }
}

@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    display: none; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px var(--gutter) 20px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 32px -24px rgba(8, 46, 73, .3);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px; font-size: 16px; color: var(--ink); }
  .nav-cta { display: inline-flex; margin-top: 10px; }

  .story, .mobile, .contact-grid, .role-panel { grid-template-columns: 1fr; }
  .role-panel { padding-right: clamp(16px, 2.4vw, 24px); }
  .section-head.split { display: block; }
  .section-head.split .section-lead { margin-top: 16px; max-width: none; }
  .cards-3, .steps { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .brand-text { font-size: 19px; }
  .brand-mark { width: 38px; height: 22px; }
  .hero-actions .btn { width: 100%; }
  .hero-download { align-items: flex-start; }
  .hero-download .ic { margin-top: 3px; }
  .frame-bar { height: 26px; }
  .strip-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
  .strip-list li { font-size: 13.5px; }
  .tabs, .seg { display: flex; width: 100%; }
  .tabs button, .seg button { flex: 1; padding-inline: 6px; font-size: 13.5px; }
  .tabs .ic { display: none; }
  .checklist { grid-template-columns: 1fr; }
  .phone { width: 250px; }
  .mobile-actions .btn { width: 100%; }
  .contact-phones a { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
