/* =========================================================
   NIS BEA — styles
   Fonts: Cabinet Grotesk (headings) + Satoshi (text), both from Fontshare.
   Fonts always come from Fontshare or Google Fonts. No code/mono fonts.
   Colours: --accent is the brand colour (dark blue).
   ========================================================= */
:root {
  --bg: #090b12;
  --bg-2: #11141f;
  --text: #f1f0f6;
  --muted: #a3a1b3;
  --faint: #6c6a7c;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --accent: #4f7dff;
  --accent-2: #9db6ff;
  --accent-ink: #050c24;

  --display: "Cabinet Grotesk", "Satoshi", sans-serif;
  --body: "Satoshi", sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --wrap: 1200px;
}


/* ---------- basics ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); overflow-x: clip; transition: background-color .4s; }
body {
  background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;   /* clip (not hidden) keeps the sticky nav working */
  transition: background-color .4s;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(32px, 3.8vw, 52px); }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }
.lead { font-size: 19px; color: var(--muted); max-width: 54ch; }
.accent { color: var(--accent-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; font-weight: 500; font-size: 16px; border: 1px solid transparent;
  transition: background .25s, border-color .25s, color .25s;
}
.btn-solid { background: var(--accent); color: var(--accent-ink); }
.btn-solid:hover { background: var(--accent-2); }
.btn-ghost { border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { padding: 9px 18px; font-size: 15px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.scrolled, .nav.open { background: var(--bg); border-color: var(--line); }
.nav-in { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; display: flex; align-items: center; gap: 10px; }
.mark { width: 28px; height: 28px; flex: none; }
.mark-tile { fill: var(--accent); transition: fill .4s; }
.mark-play { fill: var(--accent-ink); }
.links { display: flex; gap: 30px; font-size: 15px; color: var(--muted); }
.links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }


.menu-btn { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn i:first-child { top: 16px; } .menu-btn i:last-child { top: 23px; }
.nav.open .menu-btn i:first-child { top: 19.5px; transform: rotate(45deg); }
.nav.open .menu-btn i:last-child { top: 19.5px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 80px; min-height: calc(100svh - 72px); }
.who { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 15px; }
.who b { color: var(--text); font-weight: 600; }
.me { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; filter: grayscale(1); }
.headline { font-size: clamp(46px, 6vw, 88px); line-height: .98; margin: 26px 0 24px; max-width: 13ch; }
.headline em { font-style: normal; color: var(--accent-2); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.proof { display: flex; flex-wrap: wrap; gap: 6px 26px; margin-top: 32px; color: var(--muted); font-size: 15px; }
.proof b { color: var(--text); font-weight: 600; margin-right: 4px; }

/* gentle entrance */
.in { animation: up .9s var(--ease) both; }
.in-2 { animation-delay: .12s; } .in-3 { animation-delay: .24s; }
@keyframes up { from { opacity: 0; transform: translateY(12px); } }

/* ---------- swipe deck ---------- */
.deck-area { position: relative; display: flex; justify-content: center; }   /* no clipping here: the page (html/body) already prevents sideways scroll */
.deck { position: relative; width: var(--deck-w, min(300px, 64vw)); aspect-ratio: 9 / 18.6; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; }
.phone {
  position: absolute; inset: 0; border-radius: 40px; padding: 9px; background: #1d1b26;
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.08);
  transition: transform .6s var(--ease), opacity .6s var(--ease); will-change: transform, opacity; cursor: pointer;
}
/* phones behind are darkened with an overlay (cheap to animate, no filter on video) */
.phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #000; opacity: var(--dim, 0); transition: opacity .6s var(--ease); pointer-events: none; z-index: 6; }
.phone.dragging { transition: none; cursor: grabbing; }
.phone.peek:hover::after { opacity: .25; }
.phone.flying { transition: transform .45s cubic-bezier(.4, 0, .9, .6), opacity .45s ease; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #000; }
.phone video, .phone img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.phone.is-45 video { position: relative; z-index: 1; object-fit: contain; }
.phone .fill { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(26px) brightness(.5); }
.phone.is-static .screen { background: #f3efe6; display: grid; place-items: center; }
.phone.is-static img { height: auto; object-fit: contain; }
.notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; background: #1d1b26; border-radius: 0 0 14px 14px; z-index: 3; }
.play-hint { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; pointer-events: none; transition: opacity .3s; }
.play-hint span { width: 60px; height: 60px; border-radius: 50%; background: rgba(0,0,0,.45); display: grid; place-items: center; }
.play-hint span::after { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.phone.playing .play-hint { opacity: 0; }
.mute { position: absolute; right: 12px; bottom: 14px; z-index: 4; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.phone.front .mute { opacity: 1; }
.badge { position: absolute; left: 12px; top: 38px; z-index: 4; font-size: 11px; font-weight: 500; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; opacity: 0; transition: opacity .3s; }
.phone.front .badge { opacity: 1; }

/* native shown as a Facebook ad (Inter from Google Fonts, close to the phone UI) */
.phone.is-native .screen { background: #fff; display: flex; align-items: center; }
.fb { width: 100%; color: #1c1e21; font: 400 12.5px/1.35 "Inter", sans-serif; }
.fb-head { display: flex; align-items: center; gap: 8px; padding: 0 12px 8px; }
.fb-avatar { width: 30px; height: 30px; border-radius: 50%; background: #1c1e21; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.fb-head b { display: block; font-size: 12.5px; font-weight: 600; }
.fb-head small { display: flex; align-items: center; gap: 3px; color: #65676b; font-size: 11px; }
.fb-dots { margin-left: auto; color: #65676b; font-weight: 700; letter-spacing: 1px; }
.fb-copy { padding: 0 12px 9px; }
.fb-copy span { color: #65676b; font-weight: 600; }
.fb img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.fb-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #f0f2f5; padding: 9px 12px; }
.fb-link b { font-size: 13px; font-weight: 700; }
.fb-cta { flex: none; background: #e4e6eb; border-radius: 6px; padding: 6px 10px; font-weight: 600; font-size: 11.5px; }
.fb-actions { display: flex; justify-content: space-around; padding: 8px 6px 0; margin: 6px 12px 0; color: #65676b; font-weight: 600; font-size: 11.5px; border-top: 1px solid #e4e6eb; }

/* result chips that pop on every swipe */
.pop {
  position: absolute; z-index: 30; pointer-events: none; white-space: nowrap;
  font-size: 13px; color: var(--muted); line-height: 1.25; padding: 10px 14px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.pop b { display: block; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--text); }
.pop.show { opacity: 1; transform: none; }
/* chips hang off the phone's edges, so they stay in view at every screen width */
.pop-a { left: -38px; top: 20%; }
.pop-b { right: -38px; top: 60%; }

/* ---------- numbers + formats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 30px 20px 30px 0; display: flex; align-items: baseline; gap: 14px; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat .n { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 3.4vw, 48px); letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .n i { font-style: normal; color: var(--accent-2); }
.stat p { color: var(--muted); font-size: 15px; line-height: 1.4; }

.marquee { overflow: hidden; padding: 26px 0; border-bottom: 1px solid var(--line); }
.track { display: flex; gap: 56px; width: max-content; padding-right: 56px; animation: scroll 60s linear infinite; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; color: var(--faint); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sections: title left, content right ---------- */
.section { padding-top: 96px; }
.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.split .lead { margin-top: 18px; }

.points { border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.points p { color: var(--muted); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(var(--text), var(--text)) center / 14px 1.5px no-repeat, linear-gradient(var(--text), var(--text)) center / 1.5px 14px no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; max-width: 60ch; }

/* ---------- contact ---------- */
.contact { padding-top: 96px; padding-bottom: 64px; }
.contact-in { border-top: 1px solid var(--line); padding-top: 44px; }
.contact h2 { font-size: clamp(28px, 3.4vw, 44px); max-width: 22ch; }
.contact .lead { margin-top: 10px; font-size: 17px; }
/* compact, equal-style boxes in a wrapping row; each takes the width its text needs */
.contact-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cbox {
  flex: 1 1 auto; min-width: 150px; display: flex; flex-direction: column; gap: 3px; text-align: left;
  padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; transition: border-color .25s, background .25s;
}
.cbox small { color: var(--muted); font-size: 12.5px; }
.cbox b { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.cbox:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
/* phones: slim one-line rows (name left, handle right) */
@media (max-width: 600px) {
  .contact-grid { gap: 8px; }
  .cbox { flex-basis: 100%; flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; }
  .cbox small { font-size: 13px; flex: none; }
  .cbox b { text-align: right; }
}

.footer { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }

/* ---------- CV viewer ---------- */
.cv-modal { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.72); display: flex; align-items: flex-start; justify-content: center; padding: 24px 16px; overflow-y: auto; }
.cv-modal[hidden] { display: none; }
.cv-sheet { width: min(820px, 100%); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; }
.cv-bar { position: sticky; top: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.cv-bar b { margin-right: auto; font-weight: 600; }
.cv-close { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 15px; }
.cv-sheet img { width: 100%; height: auto; background: #fff; }

/* ---------- scroll fade + toast ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; animation: none; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); opacity: 0; z-index: 120; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-size: 14px; transition: all .35s var(--ease); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- tablet + phone ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; gap: 56px; }
  .menu-btn { display: block; }
  .links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px 20px 16px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .links a { padding: 14px 0; font-size: 20px; font-family: var(--display); font-weight: 700; color: var(--text); border-bottom: 1px solid var(--line); }
  .links a:last-child { border-bottom: 0; }
  .nav.open .links { opacity: 1; transform: none; pointer-events: auto; }
  .split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .hero-cta { gap: 8px; }
  .hero-cta .btn { padding: 12px 15px; font-size: 15px; }
  .phone { box-shadow: 0 24px 40px -24px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.08); }
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-in { height: 64px; }
  .nav-cta { display: none; }
  .section { padding-top: 72px; }
  .points li { grid-template-columns: 1fr; gap: 6px; }
  .stat { flex-direction: column; gap: 8px; }
  .stat + .stat { padding-left: 16px; }
  .pop { font-size: 12px; padding: 8px 11px; }
  .pop b { font-size: 16px; }
  .pop-a { left: -18px; }
  .pop-b { right: -18px; }
  .contact { padding-top: 88px; }
}
/* phone on its side: text and phone side by side, phone sized to the screen height */
@media (orientation: landscape) and (max-height: 520px) {
  .hero { grid-template-columns: 1.15fr .85fr; gap: 28px; min-height: 0; padding-top: 16px; padding-bottom: 40px; }
  .headline { font-size: clamp(34px, 5vw, 48px); margin: 14px 0 12px; }
  .hero .lead { font-size: 15px; }
  .hero-cta { margin-top: 18px; } .proof { margin-top: 16px; }
  :root { --deck-w: clamp(140px, calc((100svh - 96px) * 0.484), 260px); }
}
/* big monitors: a little more room and slightly bigger phones */
@media (min-width: 1600px) {
  :root { --wrap: 1340px; --deck-w: 330px; }
  .headline { font-size: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
