/* ==========================================================================
   Bana Systems — landing page
   ========================================================================== */

:root {
  --background: #f9fafb;
  --foreground: #14171b;
  --primary: #8a010d;
  --primary-hover: #6f010a;
  --primary-foreground: #f9fafb;
  --muted-foreground: #676c72;
  --charcoal: #1c1e21;
  --concrete: #d6d4d0;
  --steel: #688ea7;
  --border: #d6d9dd;

  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 80rem;      /* 1280px */
  --gutter: 2rem;
  --section-y: 8rem;  /* 128px */
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

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

/* Shared layout ----------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 56rem; }

.section { padding-block: var(--section-y); }
.section-light { background: var(--background); }
.section-dark { background: var(--charcoal); }
.section-concrete { background: rgba(214, 212, 208, 0.6); }

/* Typography -------------------------------------------------------------- */

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.eyebrow-primary { color: var(--primary); }
.eyebrow-light { color: rgba(255, 255, 255, 0.75); }
.eyebrow-muted-light { color: rgba(255, 255, 255, 0.5); }

.section-title {
  margin-top: 1rem;
  max-width: 44rem;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--charcoal);
}
.section-title-light { color: #fff; }
.section-title-narrow { max-width: 38rem; }

/* Buttons ----------------------------------------------------------------- */

.cta-primary,
.cta-ghost,
.cta-invert,
.cta-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.22s, background-color 0.22s, color 0.22s;
}

.cta-primary { background: var(--primary); color: var(--primary-foreground); }
.cta-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

.cta-ghost { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); }
.cta-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px #fff;
}

.cta-invert { background: #fff; color: var(--primary); }
.cta-invert:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); }

.cta-outline { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
.cta-outline:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px #fff; }

/* Header ------------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: rgba(28, 30, 33, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 0.25s;
}
.site-header.is-scrolled { background: rgba(28, 30, 33, 0.94); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 0.75rem var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: #fff;
  white-space: nowrap;
}
.brand-light { font-weight: 500; color: rgba(255, 255, 255, 0.82); }
.brand-mark { width: 1.75rem; height: 1.75rem; flex-shrink: 0; }
.brand-mark rect { fill: var(--primary); }
.brand-mark circle { fill: #fff; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}
.nav-links a:hover { color: #fff; }

.nav-cta { padding: 0.55rem 1.1rem; font-size: 0.82rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(28, 30, 33, 0.97);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  padding: 0.9rem var(--gutter);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mobile-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--charcoal) 0%,
    rgba(28, 30, 33, 0.62) 45%,
    rgba(28, 30, 33, 0.25) 100%
  );
}

.ken-burns {
  animation: ken-burns 26s ease-in-out infinite alternate;
  transform-origin: 60% 45%;
}
@keyframes ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 8rem var(--gutter) 4rem;
}

.hero-title {
  margin-top: 1.25rem;
  max-width: 20ch;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-lede {
  margin-top: 1.75rem;
  max-width: 40rem;
  border-left: 3px solid var(--primary);
  padding-left: 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  width: 100%;
  padding-block: 1.5rem;
  padding-inline: max(var(--gutter), (100% - var(--wrap)) / 2 + var(--gutter));
  background: rgba(12, 13, 15, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.strip-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}
.strip-body {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

/* How it works ------------------------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem 2.5rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.step-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--primary);
}
.steps h3 {
  margin-top: 0.875rem;
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--charcoal);
}
.steps p {
  margin-top: 0.625rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* Split sections (Platform, White-label) ---------------------------------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 5rem;
  align-items: start;
}
.split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5rem; }

.split-media {
  margin-top: 2.5rem;
  width: 100%;
  height: 18rem;
  object-fit: cover;
  border-radius: 4px;
}

.service-list li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.service-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.service-num {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.4);
}
.service-list h3 {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #fff;
}
.service-list p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

.why-list { margin-top: 2.5rem; }
.why-list > div { padding-block: 1.5rem; border-top: 1px solid var(--border); }
.why-list > div:first-child { border-top: 0; padding-top: 0; }
.why-list dt {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--charcoal);
}
.why-list dd {
  margin-top: 0.4rem;
  max-width: 30rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* White-label illustration ------------------------------------------------ */

.wl-figure { align-self: center; }
.wl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }

.wl-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  border-top: 3px solid var(--wl-accent);
  box-shadow: 0 12px 30px rgba(28, 30, 33, 0.08);
}
.wl-card-a { --wl-accent: #8a010d; }
.wl-card-b { --wl-accent: #688ea7; }

.wl-head { display: flex; align-items: center; gap: 0.625rem; }
.wl-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--wl-accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 800;
}
.wl-name { font-size: 0.875rem; font-weight: 700; color: var(--charcoal); }

.wl-body { display: grid; gap: 0.5rem; margin-block: 1.25rem; }
.wl-line { display: block; width: 80%; height: 0.5rem; border-radius: 2px; background: var(--concrete); }
.wl-line-wide { width: 100%; }
.wl-line-short { width: 55%; }

.wl-button {
  align-self: flex-start;
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
  background: var(--wl-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.wl-figure figcaption {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

/* Product showcase -------------------------------------------------------- */

.platform-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: start;
}

.map-frame {
  position: relative;
  aspect-ratio: 1400 / 1000;
  overflow: hidden;
  border-radius: 4px;
  background: var(--charcoal);
}
.map-frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.map-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }

.facet-fill polygon { fill: rgba(104, 142, 167, 0.28); }
.facet-edge polygon { fill: none; stroke: #c3d4e0; stroke-width: 3; }
.facet-edge line { stroke: #c3d4e0; stroke-width: 3; }
.facet-ridge { stroke: var(--primary); stroke-width: 5; }
.facet-vertex circle { fill: #fff; stroke: var(--primary); stroke-width: 3; }

.map-frame figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(28, 30, 33, 0.85);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.stat-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.stat-value {
  display: block;
  margin-top: 0.15rem;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}

.report-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.report-title { font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.015em; color: var(--charcoal); }
.report-tag {
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: rgba(138, 1, 13, 0.1);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}

.report-rows { margin-top: 1rem; }
.report-rows > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.report-rows dt { color: var(--muted-foreground); }
.report-rows dd { font-weight: 700; color: var(--charcoal); }

.estimate-box {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border-radius: 4px;
  background: var(--charcoal);
}
.estimate-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.estimate-value {
  margin-top: 0.4rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
}
.estimate-value span {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.showcase-note {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

/* Plans ------------------------------------------------------------------- */

.plan-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  border-top: 3px solid var(--primary);
}
.plan h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--charcoal);
}
.plan-model {
  margin-top: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.plan-body {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
}

.plan-note {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
}
.plan-note a { font-weight: 700; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Final CTA --------------------------------------------------------------- */

.final-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.final-media { position: absolute; inset: 0; z-index: -1; }
.final-media img { width: 100%; height: 100%; object-fit: cover; }
.final-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(111, 1, 10, 0.95), rgba(28, 30, 33, 0.92));
}

.final-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.028em;
  color: #fff;
}
.final-lede {
  max-width: 40rem;
  margin: 1.25rem auto 0;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}
.final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* Footer ------------------------------------------------------------------ */

.site-footer { padding-block: 4rem 2.5rem; background: var(--charcoal); color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand { font-size: 1.25rem; }
.footer-blurb {
  margin-top: 1rem;
  max-width: 22rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}
.footer-heading {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.footer-links { margin-top: 1rem; display: grid; gap: 0.5rem; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

.footer-rule {
  margin-top: 3rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-legal {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1180px) {
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --section-y: 6rem; }
  .platform-grid { grid-template-columns: minmax(0, 1fr); }
  .split,
  .split-even { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 2rem; }
  .hero-strip { gap: 1.25rem; }
  .strip-body { font-size: 0.8rem; }
}

@media (max-width: 768px) {
  :root { --gutter: 1.25rem; --section-y: 4.5rem; }
  .nav-links,
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { min-height: 92vh; }
  .hero-inner { padding-top: 7rem; padding-bottom: 3rem; }
  .hero-strip { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .steps { margin-top: 2.5rem; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .plan-grid,
  .wl-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .cta-primary,
  .hero-actions .cta-ghost,
  .final-actions .cta-invert,
  .final-actions .cta-outline { flex: 1 1 100%; }
  .map-frame figcaption { gap: 1rem; padding: 0.6rem 1rem; }
  .report-card { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ken-burns { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
