:root {
  --bg: #070a12;
  --bg-2: #0d1220;
  --surface: #111827;
  --surface-2: #151e2f;
  --surface-3: #0b101c;
  --text: #f8fafc;
  --muted: #aab4c3;
  --soft: #dbe6f3;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --blue: #1d7cff;
  --blue-2: #38bdf8;
  --orange: #ff7a1a;
  --gold: #ffbd45;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(29, 124, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 90% 10%, rgba(255, 122, 26, 0.13), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

p,
h1,
h2,
h3 {
  margin: 0;
  overflow-wrap: break-word;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-weight: 850;
  padding: 10px 14px;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(7, 10, 18, 0.74);
  backdrop-filter: blur(18px);
  transition: background 200ms ease, border-color 200ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line-strong);
  background: rgba(7, 10, 18, 0.92);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  padding: 4px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand-text strong {
  font-size: 1rem;
  line-height: 1;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.74rem;
}

.nav-links,
.nav-actions,
.lang-switcher {
  display: flex;
  align-items: center;
}

.nav-links {
  justify-content: center;
  gap: 4px;
}

.nav-links a,
.lang-link {
  border-radius: 8px;
  color: rgba(248, 250, 252, 0.76);
  font-size: 0.9rem;
  font-weight: 760;
  padding: 9px 11px;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.lang-link:hover,
.lang-link:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.nav-actions {
  gap: 10px;
}

.lang-switcher {
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.05);
}

.lang-link {
  min-width: 34px;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: center;
  cursor: pointer;
  padding: 6px 7px;
}

.lang-link.active {
  background: var(--text);
  color: #070a12;
}

.nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(29, 124, 255, 0.52);
  border-radius: 8px;
  background: rgba(29, 124, 255, 0.14);
  color: #d9ebff;
  font-size: 0.88rem;
  font-weight: 850;
  padding: 8px 12px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 92svh;
  display: grid;
  align-items: center;
  padding: 134px 0 58px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 10, 18, 0.98) 0%, rgba(7, 10, 18, 0.8) 45%, rgba(7, 10, 18, 0.52) 100%),
    url("/assets/apps/last-bunker-og.webp") center right / cover;
  filter: saturate(0.9) contrast(1.04);
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 10, 18, 0.25) 46%, rgba(7, 10, 18, 0.78) 100%),
    radial-gradient(circle at 82% 42%, rgba(29, 124, 255, 0.25), transparent 22rem),
    radial-gradient(circle at 68% 18%, rgba(255, 122, 26, 0.17), transparent 18rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.68fr);
  align-items: center;
  gap: 54px;
}

.hero-copy {
  min-width: 0;
  max-width: 760px;
}

.eyebrow,
.kicker {
  color: #8ec5ff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin-top: 16px;
  font-size: clamp(2.85rem, 6.1vw, 5.15rem);
  line-height: 0.98;
  font-weight: 950;
}

.hero-lead {
  max-width: 680px;
  margin-top: 22px;
  color: rgba(248, 250, 252, 0.86);
  font-size: 1.18rem;
}

.hero-actions,
.cta-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  max-width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.98rem;
  font-weight: 900;
  padding: 13px 18px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #125de0);
  color: white;
  box-shadow: 0 18px 48px rgba(29, 124, 255, 0.3);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  color: rgba(248, 250, 252, 0.76);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-proof span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 10px;
}

.showcase {
  position: relative;
  min-width: 0;
  justify-self: end;
  width: min(100%, 430px);
}

.showcase-main {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(29, 124, 255, 0.1), transparent 36%),
    rgba(17, 24, 39, 0.82);
  box-shadow: var(--shadow);
}

.showcase-main img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 13;
  object-fit: cover;
  object-position: center top;
}

.showcase-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.showcase-caption strong,
.mini-product strong,
.product-card h3,
.service-card h3,
.principle-card h3 {
  color: var(--text);
}

.showcase-caption span,
.mini-product span,
.product-meta,
.case-list,
.footer-note {
  color: var(--muted);
}

.mini-product-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mini-product {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 18, 32, 0.8);
  padding: 10px;
}

.mini-product img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.mini-product em,
.status-pill {
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  color: #bdefff;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 850;
  padding: 6px 9px;
}

.section {
  padding: 92px 0;
}

.section.alt {
  background: var(--bg-2);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.left {
  max-width: 540px;
  margin: 0;
  text-align: left;
}

.section-heading h2,
.contact-panel h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
}

.section-heading p,
.contact-panel p,
.studio-copy p,
.product-card p,
.service-card p,
.principle-card p {
  color: var(--muted);
}

.section-heading p,
.contact-panel p,
.studio-copy p {
  margin-top: 14px;
  font-size: 1.06rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.proof-item {
  min-width: 0;
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  background: rgba(17, 24, 39, 0.92);
}

.proof-item strong {
  font-size: 1.62rem;
  line-height: 1;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.products-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 16px;
}

.product-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.9);
  box-shadow: var(--shadow);
}

.product-card.featured {
  display: grid;
  grid-template-rows: auto 1fr;
}

.product-media {
  min-height: 300px;
  background: #050914;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.025);
}

.product-card:hover,
.service-card:hover,
.principle-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.product-body {
  min-width: 0;
  display: grid;
  align-content: start;
  padding: 28px;
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.product-type {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.product-card h3 {
  font-size: 1.9rem;
  line-height: 1.05;
}

.product-card p {
  margin-top: 14px;
}

.product-side {
  display: grid;
  gap: 16px;
}

.compact-product {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  min-width: 0;
}

.compact-product .product-icon {
  width: 82px;
  height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.nexus-card {
  grid-template-columns: 1fr;
}

.nexus-card .product-icon {
  width: 100%;
  height: 300px;
  aspect-ratio: auto;
  border-radius: 0;
  border: 0;
  object-fit: cover;
  transition: transform 420ms ease;
}

.nexus-card:hover .product-icon {
  transform: scale(1.025);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
}

.tag-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(248, 250, 252, 0.78);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 7px 10px;
}

.text-link {
  width: fit-content;
  margin-top: 24px;
  color: #9dccff;
  font-weight: 950;
  border-bottom: 1px solid rgba(157, 204, 255, 0.45);
}

.text-link:hover,
.text-link:focus-visible {
  border-color: #9dccff;
}

.product-actions .text-link {
  align-self: center;
  margin-top: 0;
}

.studio-layout {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 54px;
  align-items: start;
}

.studio-copy {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(29, 124, 255, 0.12), rgba(255, 122, 26, 0.08)),
    rgba(17, 24, 39, 0.86);
  padding: 30px;
}

.service-grid,
.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-card,
.principle-card {
  min-width: 0;
  min-height: 184px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.86);
  padding: 26px;
}

.service-card:nth-child(1),
.principle-card:nth-child(1) {
  border-top-color: var(--blue);
}

.service-card:nth-child(2),
.principle-card:nth-child(2) {
  border-top-color: var(--orange);
}

.service-card:nth-child(3),
.principle-card:nth-child(3) {
  border-top-color: var(--blue-2);
}

.service-card:nth-child(4),
.principle-card:nth-child(4) {
  border-top-color: var(--gold);
}

.service-card p,
.principle-card p {
  margin-top: 12px;
}

.case-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.case-media {
  min-height: 390px;
  background: #050914;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-body {
  min-width: 0;
  display: grid;
  align-content: center;
  background: rgba(17, 24, 39, 0.94);
  padding: 34px;
}

.case-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.case-list li {
  border-left: 2px solid rgba(29, 124, 255, 0.7);
  padding-left: 12px;
}

.contact-section {
  padding: 96px 0;
  background: #090d18;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(29, 124, 255, 0.17), rgba(255, 122, 26, 0.12)),
    var(--surface);
  padding: 38px;
  box-shadow: var(--shadow);
}

.contact-panel > div {
  min-width: 0;
  max-width: 740px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0;
  background: #070a12;
  color: rgba(248, 250, 252, 0.72);
}

.product-hero {
  position: relative;
  overflow: hidden;
  padding: 142px 0 80px;
  background:
    radial-gradient(circle at 18% 0%, rgba(29, 124, 255, 0.22), transparent 32rem),
    radial-gradient(circle at 86% 8%, rgba(255, 122, 26, 0.13), transparent 26rem),
    #070a12;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(330px, 0.72fr);
  gap: 54px;
  align-items: center;
}

.product-hero h1 {
  margin-top: 14px;
  font-size: clamp(2.7rem, 5.6vw, 5rem);
  line-height: 0.98;
}

.product-hero p {
  color: rgba(248, 250, 252, 0.86);
}

.product-lead {
  max-width: 690px;
  margin-top: 20px;
  font-size: 1.16rem;
}

.product-visual {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.9);
  box-shadow: var(--shadow);
}

.product-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.product-visual.wide-visual img {
  aspect-ratio: 3 / 2;
  object-position: center;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
}

.product-fact {
  min-width: 0;
  background: rgba(17, 24, 39, 0.92);
  padding: 18px;
}

.product-fact strong {
  display: block;
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.product-fact span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1fr);
  gap: 18px;
}

.detail-panel,
.media-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.88);
  padding: 28px;
  box-shadow: var(--shadow);
}

.media-panel {
  overflow: hidden;
  padding: 0;
}

.media-panel img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center top;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.detail-list li {
  border-left: 2px solid rgba(29, 124, 255, 0.7);
  color: var(--muted);
  padding-left: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 28px;
  align-items: start;
  font-size: 0.94rem;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-grid a,
.footer-links a {
  color: rgba(248, 250, 252, 0.86);
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible,
.hero .reveal {
  opacity: 1;
  transform: translateY(0);
}

.hero .reveal {
  transition: none;
}

:focus-visible {
  outline: 2px solid var(--blue-2);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .wrap {
    width: min(760px, calc(100% - 28px));
  }

  .nav {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 142px 0 64px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(7, 10, 18, 0.92) 0%, rgba(7, 10, 18, 0.98) 58%, var(--bg) 100%),
      radial-gradient(circle at 18% 12%, rgba(29, 124, 255, 0.18), transparent 20rem),
      radial-gradient(circle at 86% 22%, rgba(255, 122, 26, 0.12), transparent 18rem);
    filter: none;
    transform: none;
  }

  .hero::after {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(7, 10, 18, 0.18) 70%, rgba(7, 10, 18, 0.58) 100%);
  }

  .hero-grid,
  .product-hero-grid,
  .products-grid,
  .studio-layout,
  .case-card,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .showcase-main img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 18%;
  }

  .showcase {
    justify-self: start;
    width: min(100%, 380px);
  }

  .proof-grid,
  .product-facts,
  .service-grid,
  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section,
  .contact-section {
    padding: 72px 0;
  }

  .section-heading,
  .section-heading.left {
    max-width: 100%;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(420px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .brand-text small {
    display: none;
  }

  .nav {
    gap: 8px;
  }

  .nav-links a {
    font-size: 0.82rem;
    padding: 7px 8px;
  }

  .lang-switcher {
    padding: 2px;
  }

  .lang-link {
    min-width: 32px;
    font-size: 0.8rem;
    padding: 6px;
  }

  .hero {
    padding: 138px 0 52px;
  }

  .hero-copy,
  .showcase {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 8.45vw, 2.32rem);
    line-height: 1.02;
  }

  .hero-lead {
    font-size: 1.04rem;
  }

  .product-hero {
    padding: 132px 0 56px;
  }

  .product-hero h1 {
    font-size: clamp(1.9rem, 8.2vw, 2.28rem);
    line-height: 1.04;
  }

  .product-lead {
    font-size: 1rem;
  }

  .hero-copy,
  .showcase,
  .product-hero-grid > * {
    width: 100%;
    min-width: 0;
    max-width: min(100%, 310px);
  }

  .hero-copy,
  .showcase {
    justify-self: start;
  }

  .hero-actions,
  .cta-actions,
  .product-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .proof-grid,
  .product-facts,
  .service-grid,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .proof-item,
  .product-fact,
  .product-body,
  .service-card,
  .principle-card,
  .studio-copy,
  .case-body,
  .detail-panel,
  .contact-panel {
    padding: 22px;
  }

  .product-media {
    min-height: 220px;
  }

  .nexus-card .product-icon {
    height: 220px;
  }

  .compact-product:not(.nexus-card) {
    grid-template-columns: 64px 1fr;
  }

  .compact-product:not(.nexus-card) .product-icon {
    width: 64px;
    height: 64px;
  }

  .mini-product {
    grid-template-columns: 44px 1fr;
  }

  .mini-product em {
    grid-column: 2;
    width: fit-content;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
