/* NexBroker landing page — a Logic Systems product.
   Colors: NexBroker navy/blue (product logo) + Logic Systems cyan (company logo). Font: Inter (as logicsystems.co.mz). */

:root {
  --navy: #0d1b3e;
  --navy-2: #13275a;
  --blue: #1d6fe0;
  --blue-2: #2b8cf0;
  --cyan: #00b6ea;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 12px 32px rgb(15 23 42 / 0.10);
  --container: 1180px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 3.9vw, 3.05rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }

/* Material Symbols */
.ms {
  font-family: "Material Symbols Rounded";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  display: inline-block;
  white-space: nowrap;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  vertical-align: middle;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform 120ms, box-shadow 120ms, background 120ms;
  text-decoration: none !important; cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); box-shadow: 0 6px 18px rgb(29 111 224 / 0.3); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-light { color: var(--navy); background: #fff; }
.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / 0.4); }
.btn-outline-light:hover { background: rgb(255 255 255 / 0.08); }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / 0.86); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color 160ms;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--text); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav a.btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle .ms { font-size: 28px; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative; overflow: hidden; padding: 64px 0 72px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgb(0 182 234 / 0.16), transparent 60%),
    radial-gradient(700px 420px at -10% 20%, rgb(29 111 224 / 0.10), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 13px; font-weight: 600; color: var(--navy);
}
.eyebrow img { height: 20px; width: auto; }
.grad { background: linear-gradient(90deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--text); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; font-size: 14px; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: 6px; }
.hero-points .ms { color: var(--cyan); font-size: 18px; font-variation-settings: "FILL" 1; }

.hero-visual { position: relative; padding-bottom: 60px; }
.frame { margin: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; border: 1px solid var(--line); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.frame-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.frame-main { transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.frame-float {
  position: absolute; width: 50%; right: -3%; bottom: -10px;
  transform: perspective(1600px) rotateY(-6deg); border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgb(13 27 62 / 0.25);
}

/* ---------------------------------------------------------------- Facts */
.facts { background: var(--navy); color: #cbd5e1; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 34px 20px; }
.facts strong {
  display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(90deg, #fff, #9be7ff); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.facts span { font-size: 14px; }

/* ---------------------------------------------------------------- Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.kicker { display: inline-block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color 150ms, box-shadow 150ms, transform 150ms; }
.feature:hover { border-color: rgb(29 111 224 / 0.35); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .icon {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px;
  font-size: 24px; color: var(--blue); background: linear-gradient(135deg, rgb(29 111 224 / 0.12), rgb(0 182 234 / 0.14));
}
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------------------------------------------------------------- Showcase */
.showcase { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; margin-bottom: 88px; }
.showcase:last-child { margin-bottom: 0; }
.showcase.reverse .showcase-copy { order: 2; }
.tag { display: inline-block; padding: 4px 10px; margin-bottom: 14px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--blue); background: rgb(29 111 224 / 0.1); }
.showcase h3 { font-size: 1.6rem; font-weight: 800; }
.showcase p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 8px; color: var(--text); }
.checks li::before {
  content: "check_circle"; font-family: "Material Symbols Rounded"; font-variation-settings: "FILL" 1;
  position: absolute; left: 0; top: 1px; font-size: 19px; color: var(--cyan);
}
.shot {
  position: relative; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  box-shadow: var(--shadow); overflow: hidden; cursor: zoom-in;
}
.shot img { transition: transform 300ms; }
.shot:hover img { transform: scale(1.02); }
.shot .zoom {
  position: absolute; right: 12px; bottom: 12px; padding: 8px; border-radius: 10px;
  color: #fff; background: rgb(13 27 62 / 0.75); opacity: 0; transition: opacity 150ms;
}
.shot:hover .zoom, .shot:focus-visible .zoom { opacity: 1; }

/* ---------------------------------------------------------------- Lines */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; margin: 0 auto; padding: 0; max-width: 900px; }
.chips li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; font-weight: 600; color: var(--navy); background: #fff; }
.note { margin-top: 24px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- Security */
.section-dark { background: linear-gradient(160deg, var(--navy), var(--navy-2)); color: #cbd5e1; }
.section-head.light h2 { color: #fff; }
.section-head.light .kicker { color: #7dd3fc; }
.security { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.security > div { padding: 24px; border: 1px solid rgb(255 255 255 / 0.1); border-radius: var(--radius); background: rgb(255 255 255 / 0.04); }
.security .ms { font-size: 28px; color: var(--cyan); margin-bottom: 14px; }
.security h3 { color: #fff; }
.security p { font-size: 15px; margin: 0; }

/* ---------------------------------------------------------------- Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { position: relative; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.steps .num {
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 50%;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan));
}
.steps p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------------------------------------------------------------- About */
.about-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.about-grid img { width: 250px; }
.about p { color: var(--muted); }
.link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }

/* ---------------------------------------------------------------- FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0;
  font-weight: 600; color: var(--ink); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--blue); transition: transform 150ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* ---------------------------------------------------------------- CTA */
.cta {
  padding: 72px 0; color: #e0f2fe;
  background: radial-gradient(800px 300px at 90% 0%, rgb(0 182 234 / 0.35), transparent 60%), linear-gradient(135deg, var(--navy), #0b3a8c);
}
.cta-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { margin: 0; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------------------------------------------------------------- Footer */
.site-footer { padding: 56px 0 24px; background: #0a1430; color: #94a3b8; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { height: 32px; width: auto; margin-bottom: 14px; background: #fff; padding: 6px 10px; border-radius: 8px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.site-footer li .ms { font-size: 18px; color: var(--cyan); }
.site-footer a { color: #cbd5e1; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.08); font-size: 13px; }

/* ---------------------------------------------------------------- Lightbox */
.lightbox { padding: 0; border: 0; border-radius: 12px; max-width: 94vw; max-height: 92vh; background: #fff; box-shadow: 0 20px 60px rgb(0 0 0 / 0.4); }
.lightbox::backdrop { background: rgb(10 20 48 / 0.8); }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 36px; height: 36px;
  border: 0; border-radius: 50%; color: #fff; background: rgb(13 27 62 / 0.8); cursor: pointer;
}

/* ---------------------------------------------------------------- Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .feature, .shot img { transition: none; }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 760px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .security, .steps { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: 28px; margin-bottom: 64px; }
  .showcase.reverse .showcase-copy { order: 0; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgb(15 23 42 / 0.08);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 12px; border-bottom: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 48px; }
  .section { padding: 64px 0; }
  .features, .security, .steps, .facts-grid { grid-template-columns: 1fr; }
  .frame-main, .frame-float { transform: none; }
  .frame-float { display: none; }
  .hero-visual { padding-bottom: 0; }
  .btn { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
}
.shot-dialog { max-width: 620px; justify-self: center; }
