* {
  box-sizing: border-box;
}

:root {
  --bg: #0a1020;
  --bg-soft: #121a31;
  --panel: rgba(16, 24, 46, 0.9);
  --panel-2: rgba(21, 31, 58, 0.92);
  --line: rgba(39, 54, 88, 0.72);
  --line-soft: rgba(39, 54, 88, 0.42);
  --text: #e8eefb;
  --muted: #9cb0d4;
  --accent: #4aa6ff;
  --accent-soft: rgba(74, 166, 255, 0.16);
  --shadow: 0 24px 60px rgba(4, 7, 16, 0.44);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(900px 380px at 12% -8%, #21335e 0%, transparent 70%),
    radial-gradient(700px 260px at 90% 0%, #1a2c53 0%, transparent 75%),
    linear-gradient(180deg, var(--bg) 0%, #070c1a 80%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── Layout ─── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 96px 0;
  position: relative;
  scroll-margin-top: 72px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(74, 166, 255, 0.32);
  background: var(--accent-soft);
  color: #c8e2ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
}

h3 {
  font-size: 18px;
  font-weight: 700;
}

figure {
  margin: 0;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.lead {
  font-size: 18px;
  max-width: 60ch;
}

/* ─── Nav ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px) saturate(1.2);
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.85), rgba(7, 12, 24, 0.55));
  border-bottom: 1px solid var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1160px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 18px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #4aa6ff 0%, #1c7ee2 100%);
  box-shadow: 0 6px 18px rgba(74, 166, 255, 0.4);
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
}

/* ─── Hero ─── */
.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero h1 {
  background: linear-gradient(180deg, #ffffff 30%, #9bb6e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 8px auto 24px;
  max-width: 28ch;
  font-size: clamp(20px, 2.4vw, 28px);
  color: #d5e2fb;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.hero-copy {
  max-width: 56ch;
  margin: 0 auto 40px;
  font-size: 17px;
  color: var(--muted);
}

.hero-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(180deg, #4aa6ff 0%, #1c7ee2 100%);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(74, 166, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(12, 18, 34, 0.55);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(74, 166, 255, 0.45);
}

/* ─── Mockup ─── */
.mockup {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 13, 25, 0.72);
}

.mockup-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.mockup-body {
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-columns: 200px 1fr;
  background:
    radial-gradient(700px 320px at 70% 20%, rgba(74, 166, 255, 0.08) 0%, transparent 70%),
    linear-gradient(180deg, rgba(10, 16, 30, 0.6), rgba(7, 12, 24, 0.85));
}

.mockup-body--real {
  aspect-ratio: auto;
  display: block;
  grid-template-columns: none;
  background: none;
}

.mockup-body--real img {
  display: block;
  width: 100%;
  height: auto;
}

.mockup-side {
  border-right: 1px solid var(--line-soft);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mockup-side .pill {
  height: 10px;
  border-radius: 6px;
  background: rgba(74, 166, 255, 0.14);
}

.mockup-side .pill.dim {
  background: rgba(74, 166, 255, 0.06);
}

.mockup-main {
  padding: 28px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(60px, auto);
}

.mockup-card {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(12, 20, 38, 0.7);
  padding: 14px;
}

.mockup-card.span-3 {
  grid-column: span 3;
  min-height: 130px;
}

.mockup-card .bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(74, 166, 255, 0.18);
  margin-top: 8px;
  width: 60%;
}

.mockup-card .bar.short {
  width: 35%;
  background: rgba(74, 166, 255, 0.1);
}

/* ─── Sections ─── */
.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

/* ─── Feature cards ─── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 25, 49, 0.78), rgba(10, 16, 29, 0.65));
  transition: border-color 160ms ease, transform 160ms ease;
}

.feature:hover {
  border-color: rgba(74, 166, 255, 0.4);
  transform: translateY(-2px);
}

.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(74, 166, 255, 0.14);
  border: 1px solid rgba(74, 166, 255, 0.32);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #c8e2ff;
  font-weight: 800;
  font-size: 14px;
}

.feature p {
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* ─── Trust ─── */
.trust-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
  align-items: start;
}

.trust-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trust-visual {
  position: sticky;
  top: 88px;
}

@media (max-width: 860px) {
  .trust-layout {
    grid-template-columns: 1fr;
  }

  .trust-visual {
    position: static;
  }
}

.trust-item {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 20, 38, 0.5);
}

.trust-dot {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
  box-shadow: 0 0 0 4px rgba(74, 166, 255, 0.14);
}

.trust-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.trust-item span {
  font-size: 13px;
  color: var(--muted);
}

/* ─── Page header (gallery) ─── */
.page-head {
  text-align: center;
  padding: 96px 0 56px;
}

.page-head h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  background: linear-gradient(180deg, #ffffff 30%, #9bb6e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-head p {
  max-width: 56ch;
  margin: 0 auto;
  font-size: 17px;
}

/* ─── Gallery grid ─── */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 980px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}

.gallery-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}

.gallery-card:hover {
  border-color: rgba(74, 166, 255, 0.4);
  transform: translateY(-2px);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(8, 13, 25, 0.6);
}

.gallery-card figcaption {
  padding: 14px 18px 18px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.gallery-card figcaption strong {
  display: block;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

/* ─── Core Capabilities ─── */
.capabilities {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cap-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section-head + .cap-row {
  padding-top: 0;
}

.cap-row:last-of-type {
  border-bottom: none;
}

.cap-row.reverse {
  direction: rtl;
}

.cap-row.reverse > * {
  direction: ltr;
}

.cap-row.no-image {
  grid-template-columns: 1fr;
  max-width: 680px;
  margin: 0 auto;
  text-align: left;
}

.cap-row.no-image:last-of-type {
  border-bottom: none;
}

.cap-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cap-number {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
}

.cap-text h3 {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cap-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
  max-width: 48ch;
}

.cap-images {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cap-image {
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 20px 52px rgba(4, 7, 16, 0.48);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  transition: border-color 160ms ease, transform 200ms ease;
}

.cap-image:hover {
  border-color: rgba(74, 166, 255, 0.38);
  transform: translateY(-2px);
}

.cap-image img {
  display: block;
  width: 100%;
  height: auto;
}

.cap-caption {
  padding: 10px 14px 12px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  border-top: 1px solid var(--line-soft);
  opacity: 0.9;
}

.cap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.cap-chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 20, 38, 0.5);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}


@media (max-width: 860px) {
  .cap-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cap-row.reverse {
    direction: ltr;
  }

  .cap-image {
    order: -1;
  }

  .cap-text p {
    max-width: 100%;
  }
}

/* ─── Lightbox ─── */
#lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 7, 16, 0.92);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 32px;
}

#lb.open {
  display: flex;
}

#lb-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 32px 80px rgba(4, 7, 16, 0.7);
  display: block;
}

#lb-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(16, 25, 49, 0.9);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

#lb-close:hover {
  border-color: rgba(74, 166, 255, 0.5);
  background: rgba(30, 45, 80, 0.95);
}

/* ─── Footer ─── */
footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

footer .brand {
  justify-content: center;
  margin-bottom: 10px;
  font-size: 15px;
}

/* ─── Mobile refinements ─── */
@media (max-width: 600px) {
  .container {
    padding: 0 18px;
  }

  section {
    padding: 56px 0;
    scroll-margin-top: 64px;
  }

  .hero {
    padding: 72px 0 48px;
  }

  .hero-cta-row {
    margin-bottom: 40px;
  }

  .section-head {
    margin-bottom: 36px;
  }

  h2 {
    font-size: clamp(26px, 6vw, 36px);
  }

  .hero-sub {
    font-size: clamp(18px, 4.5vw, 24px);
  }

  .hero-copy {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .lead {
    font-size: 16px;
  }

  .mockup {
    border-radius: 14px;
  }

  .mockup-bar {
    padding: 8px 12px;
  }

  .mockup-bar span {
    width: 8px;
    height: 8px;
  }

  .cap-row {
    padding: 36px 0;
    gap: 20px;
  }

  .cap-text h3 {
    font-size: 22px;
  }

  .cap-text p {
    font-size: 14px;
  }

  .cap-row.no-image {
    max-width: 100%;
  }

  .trust-layout {
    gap: 28px;
  }

  .trust-item {
    padding: 14px 16px;
  }

  .page-head {
    padding: 64px 0 36px;
  }

  .page-head h1 {
    font-size: clamp(32px, 8vw, 48px);
  }

  .gallery {
    gap: 16px;
  }

  #lb {
    padding: 16px;
  }

  #lb-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .nav-inner {
    padding: 14px 18px;
  }

  .btn {
    padding: 12px 18px;
    font-size: 14px;
  }
}
