/* ---------------------------
   Acel Lab (Startline-style)
   Pure CSS, no frameworks
---------------------------- */

:root {
  /* Base Colors */
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 18px 60px rgba(2, 6, 23, 0.1);
  --shadow-soft: 0 10px 35px rgba(2, 6, 23, 0.08);

  /* Primary Brand Colors */
  --blue: #2962ff;
  --blue-700: #1f4be0;
  --blue-100: rgba(41, 98, 255, 0.1);

  /* Product-Specific Colors */
  --startline-red: #f07171;
  --playground-blue: #3f6cff;
  --bash-green: #66d18f;

  /* Layout */
  --radius: 18px;
  --radius-lg: 22px;
  --container: 1120px;

  /* Responsive Breakpoints */
  --breakpoint-md: 980px;
  --breakpoint-sm: 520px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

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

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

/* ---------------------------
   Accessibility helpers
---------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn:focus-visible,
.nav__links a:focus-visible,
.nav__dropbtn:focus-visible,
.video-cta:focus-visible,
.product-hover__cta:focus-visible,
.waitlist-ribbon__btn:focus-visible {
  outline: 3px solid rgba(41, 98, 255, 0.65);
  outline-offset: 3px;
}

/* ---------------------------
   Buttons
---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 650;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
  user-select: none;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 12px 30px rgba(41, 98, 255, 0.25);
}
.btn--primary:hover {
  background: var(--blue-700);
}

.btn--ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: rgba(41, 98, 255, 0.35);
  background: rgba(41, 98, 255, 0.06);
}

.btn--sm {
  padding: 10px 14px;
  font-size: 0.95rem;
}

.btn--invert {
  background: white;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn--ghost-on-blue {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: white;
}
.btn--ghost-on-blue:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

/* ---------------------------
   Waitlist Top Ribbon
---------------------------- */
.waitlist-ribbon {
  position: sticky; /* or static */
  top: 0;
  z-index: 10000;
  background-color: #2962ff;
}

.waitlist-ribbon__content {
  max-width: 1200px;
  margin: auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.waitlist-ribbon__badge {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.waitlist-ribbon__text {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.waitlist-ribbon__btn {
  background: white;
  color: #2962ff;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}
.waitlist-ribbon__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 520px) {
  .waitlist-ribbon__content {
    text-align: center;
  }
}

.top-stack {
  position: sticky;
  top: 0;
  z-index: 10000; /* higher than everything else */
}

.site-header {
  position: sticky;
  top: var(--ribbon-h);
  z-index: 9999;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav {
  height: 74px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}
.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background:
    radial-gradient(
      circle at 30% 30%,
      rgba(255, 255, 255, 0.65),
      transparent 60%
    ),
    linear-gradient(135deg, var(--blue), #4f7dff);
  box-shadow: 0 10px 25px rgba(41, 98, 255, 0.22);
}
.brand__text {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav__links {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: rgba(15, 23, 42, 0.78);
  font-weight: 650;
}
.nav__links > a,
.nav__dropbtn {
  padding: 10px 10px;
  border-radius: 999px;
}
.nav__links a:hover,
.nav__dropbtn:hover {
  background: rgba(41, 98, 255, 0.06);
  color: var(--text);
}

.nav__cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

/* Mobile menu (CSS-only) */
.nav__toggle {
  display: none;
}
.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(15, 23, 42, 0.75);
  border-radius: 2px;
}

/* ---------------------------
   Nav dropdown (Products)
---------------------------- */
.nav__dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Trigger */
.nav__dropbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

.nav__chev {
  font-size: 0.9rem;
  opacity: 0.75;
  transform: translateY(-1px);
}

/* Dropdown menu */
.nav__dropmenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px;
  margin-top: 0px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.14);
  display: none;
  z-index: 9999;
}

/* hover bridge removes gap flicker */
.nav__dropmenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.nav__dropmenu a {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.78);
}
.nav__dropmenu a:hover {
  background: rgba(41, 98, 255, 0.08);
  color: rgba(15, 23, 42, 0.9);
}

.nav__dropdown:hover .nav__dropmenu,
.nav__dropdown:focus-within .nav__dropmenu {
  display: block;
}

/* ---------------------------
   Hero
---------------------------- */
.hero {
  padding: 0%;
  margin: auto;
}

@media (max-width: 1100px) {
  .hero {
    margin-top: 3%;
  }
}

@media (max-width: 980px) {
  .hero {
    margin-top: 0;
    padding: 42px 0 24px;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 750;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.subhead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

.hero__actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.hero__visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

/* =========================
   Interactive Video CTA (hero)
========================= */
.video-cta {
  position: relative;
  display: block;
  width: min(520px, 100%);
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(41, 98, 255, 0.35);
  box-shadow:
    0 24px 60px rgba(41, 98, 255, 0.18),
    0 12px 36px rgba(2, 6, 23, 0.1);
  cursor: pointer;
  isolation: isolate;
}

@media (max-width: 520px) {
  .video-cta {
    border-radius: 18px;
    aspect-ratio: 16 / 11;
  }
}

.video-cta__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 500ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

.video-cta__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.15),
    rgba(15, 23, 42, 0.55)
  );
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
  z-index: 2;
}

.video-cta__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2962ff, #4f7dff);
  color: white;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  box-shadow: 0 16px 40px rgba(41, 98, 255, 0.45);
  transform: translateY(8px);
  transition:
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 300ms ease;
}

.video-cta__hint {
  margin-top: 14px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 650;
}

.video-cta__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(41, 98, 255, 0.45),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 400ms ease;
  z-index: 1;
  pointer-events: none;
}

.video-cta:hover .video-cta__video {
  transform: scale(1.08);
  filter: blur(2px) brightness(0.75);
}
.video-cta:hover .video-cta__overlay {
  opacity: 1;
  transform: scale(1);
}
.video-cta:hover .video-cta__button {
  transform: translateY(0);
  box-shadow: 0 20px 55px rgba(41, 98, 255, 0.6);
}
.video-cta:hover .video-cta__glow {
  opacity: 1;
}

/* ---------------------------
   Sections
---------------------------- */
.section {
  padding: 1% 0;
}
.section--tight {
  padding: 42px 0 64px;
}

.section__head {
  margin-bottom: 22px;
  max-width: 160ch;
}
.section__head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
  letter-spacing: -0.03em;
  text-align: center;
}
.section__head p {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

/* ---------------------------
   Product List (3 cards)
---------------------------- */
.product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 768px) {
  .product-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.product {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(2, 6, 23, 0.01);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.05);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
  position: relative;
  overflow: hidden;
}

.product:hover {
  transform: translateY(-2px);
}

.product__label {
  display: inline-flex;
  font-weight: 750;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.88rem;
  border: 1px solid rgba(41, 98, 255, 0.2);
  background: rgba(41, 98, 255, 0.1);
  color: rgba(41, 98, 255, 0.95);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.product h3 {
  margin: 10px 0 8px;
  letter-spacing: -0.02em;
}
.product p {
  margin: 0 0 14px;
  color: var(--muted);
}

.product__logo {
  width: 45%;
  height: auto;
  display: block;
  margin: 10px 0 10px;
  object-fit: contain;
}

/* label color variants */
.product__label--startline {
  border-color: rgba(240, 113, 113, 0.25);
  background: rgba(240, 113, 113, 0.1);
  color: rgba(240, 113, 113, 0.95);
}
.product__label--playground {
  border-color: rgba(63, 108, 255, 0.22);
  background: rgba(63, 108, 255, 0.1);
  color: rgba(63, 108, 255, 0.95);
}
.product__label--bash {
  border-color: rgba(102, 209, 143, 0.22);
  background: rgba(102, 209, 143, 0.1);
  color: rgba(102, 209, 143, 0.95);
}

/* card hover color */
.product--startline:hover {
  border-color: rgba(240, 113, 113, 0.75);
  background: rgba(240, 113, 113, 0.06);
  box-shadow:
    0 18px 40px rgba(240, 113, 113, 0.12),
    0 12px 34px rgba(2, 6, 23, 0.07);
}
.product--playground:hover {
  border-color: rgba(63, 108, 255, 0.75);
  background: rgba(63, 108, 255, 0.06);
  box-shadow:
    0 18px 40px rgba(63, 108, 255, 0.12),
    0 12px 34px rgba(2, 6, 23, 0.07);
}
.product--bash:hover {
  border-color: rgba(102, 209, 143, 0.78);
  background: rgba(102, 209, 143, 0.06);
  box-shadow:
    0 18px 40px rgba(102, 209, 143, 0.12),
    0 12px 34px rgba(2, 6, 23, 0.07);
}

/* =========================
   Product Overlays (FINAL)
   Startline: full-card video overlay + centered CTA
   Bash/Playground: join waitlist overlay button
========================= */
.product-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 220ms ease,
    transform 220ms ease;
  transform: translateY(6px);
  z-index: 10;
}

.product:hover .product-hover,
.product:focus-within .product-hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* fade underlying content when overlay shows */
.product:hover > :not(.product-hover),
.product:focus-within > :not(.product-hover) {
  opacity: 0;
  transition: opacity 180ms ease;
}

/* Startline full-card video */
.product--startline .product-hover--video {
  background: transparent;
}

.product--startline .product-hover__video {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.product--startline .product-hover__vid {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition:
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 320ms ease;
}

.product--startline:hover .product-hover__vid,
.product--startline:focus-within .product-hover__vid {
  transform: scale(1);
  filter: saturate(1.05) contrast(1.05) brightness(0.92);
}

/* readability gradient */
.product--startline .product-hover__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.1),
    rgba(15, 23, 42, 0.6)
  );
}

/* centered CTA */
.product--startline .product-hover__actions {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}

/* Bash/Playground button overlay */
.product-hover--button {
  display: grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.06),
    rgba(15, 23, 42, 0.5)
  );
}

.product-hover__cta {
  width: min(360px, 90%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2962ff, #4f7dff);
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-decoration: none;
  box-shadow: 0 18px 55px rgba(41, 98, 255, 0.4);
  transform: translateY(6px);
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
  border-color: #2962ff;
}

.product:hover .product-hover__cta,
.product:focus-within .product-hover__cta {
  transform: translateY(0);
  box-shadow: 0 22px 70px rgba(41, 98, 255, 0.55);
}

.product-hover__arrow {
  transition: transform 180ms ease;
}
.product:hover .product-hover__arrow,
.product:focus-within .product-hover__arrow {
  transform: translateX(4px);
}

/* ambient glow by product */
.product--bash .product-hover--button::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(102, 209, 143, 0.35),
    transparent 60%
  );
  opacity: 0.95;
  pointer-events: none;
}
.product--playground .product-hover--button::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(63, 108, 255, 0.35),
    transparent 60%
  );
  opacity: 0.95;
  pointer-events: none;
}

/* ---------------------------
   Solutions + stats
---------------------------- */
.solutions {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}
.solutions__left h2 {
  margin: 0 0 10px;
  letter-spacing: -0.03em;
}
.solutions__left p {
  margin: 0 0 16px;
  color: var(--muted);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(15, 23, 42, 0.82);
  font-weight: 600;
}
.check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: rgba(41, 98, 255, 0.14);
  border: 1px solid rgba(41, 98, 255, 0.25);
  margin-top: 2px;
  box-shadow: 0 10px 20px rgba(41, 98, 255, 0.1);
  position: relative;
}
.check::after {
  content: "";
  position: absolute;
  inset: 4px 6px 6px 4px;
  border-right: 2px solid rgba(41, 98, 255, 0.95);
  border-bottom: 2px solid rgba(41, 98, 255, 0.95);
  transform: rotate(35deg);
}

.stats-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: white;
  box-shadow: var(--shadow);
  padding: 18px;
  overflow: hidden;
  min-height: 240px;
}
.stats-card__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.stat {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(2, 6, 23, 0.02);
}
.stat__value {
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 1.6rem;
}
.stat__label {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
}
.stats-card__orb {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background:
    radial-gradient(
      circle at 35% 35%,
      rgba(41, 98, 255, 0.35),
      transparent 58%
    ),
    radial-gradient(circle at 60% 60%, rgba(41, 98, 255, 0.18), transparent 60%);
  opacity: 0.95;
}

/* ---------------------------
   Dark testimonial section
---------------------------- */
.section--dark {
  padding: 70px 0;
  background: #0b1220;
  color: #e8eefc;
}
.testimonial {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 18px;
  align-items: center;
}
.testimonial__avatar {
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
}
.avatar {
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background:
    radial-gradient(
      circle at 35% 35%,
      rgba(255, 255, 255, 0.2),
      transparent 60%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.12),
      rgba(255, 255, 255, 0.05)
    );
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.avatar__accent {
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(41, 98, 255, 0.45),
    transparent 55%
  );
  opacity: 0.9;
}
.testimonial__quote {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.testimonial__by {
  margin-top: 14px;
  display: grid;
  gap: 2px;
}
.testimonial__name {
  font-weight: 900;
  letter-spacing: -0.02em;
}
.testimonial__role {
  color: rgba(232, 238, 252, 0.75);
  font-weight: 650;
}
.testimonial__logos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.logo-pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(232, 238, 252, 0.82);
  font-weight: 750;
}

/* ---------------------------
   CTA band
---------------------------- */
.cta-band {
  background: var(--blue);
  color: white;
  padding: 54px 0;
}

@media (max-width: 520px) {
  .cta-band {
    padding: 40px 0;
  }
  .cta-band h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }
  .cta-band p {
    font-size: 0.9rem;
  }
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}
.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}
.cta-band__actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------------------------
   Footer
---------------------------- */
.site-footer {
  padding: 3% 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
}
.footer__bottom {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(15, 23, 42, 0.62);
  font-weight: 650;
}

/* ---------------------------
   Trait Blocks
---------------------------- */
.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

@media (max-width: 768px) {
  .trait-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.trait-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.trait-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 98, 255, 0.25);
  box-shadow: 0 18px 45px rgba(41, 98, 255, 0.15);
}

.trait-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.trait-icon--search {
  background: linear-gradient(135deg, #ff6b6b, #ff8787);
  color: #fff;
}
.trait-icon--ai {
  background: linear-gradient(135deg, #5f7cff, #7b91ff);
  color: #fff;
}
.trait-icon--workspace {
  background: linear-gradient(135deg, #3ccf91, #6be3b0);
  color: #fff;
}
.trait-icon--pipeline {
  background: linear-gradient(135deg, #6c63ff, #8b85ff);
  color: #fff;
}

.trait-card h4 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}
.trait-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(15, 23, 42, 0.65);
}

/* ---------------------------
   Waitlist Modal Overlay
---------------------------- */
.waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
}
.waitlist-modal.is-open {
  display: block;
}

.waitlist-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.65);
  backdrop-filter: blur(8px);
}

.waitlist-card {
  position: relative;
  max-width: 420px;
  width: calc(100% - 32px);
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border-radius: 22px;
  padding: 28px;
  box-shadow:
    0 40px 100px rgba(2, 6, 23, 0.35),
    0 20px 60px rgba(41, 98, 255, 0.25);
  animation: waitlistIn 420ms cubic-bezier(0.22, 1, 0.36, 1);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@keyframes waitlistIn {
  from {
    opacity: 0;
    transform: translateY(-56%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

.waitlist-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.8rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: rgba(15, 23, 42, 0.6);
  border-radius: 50%;
  transition:
    background 150ms ease,
    color 150ms ease;
  -webkit-tap-highlight-color: transparent;
  z-index: 10;
}

.waitlist-close:hover,
.waitlist-close:active {
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.9);
}

@media (max-width: 520px) {
  .waitlist-close {
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    font-size: 1.6rem;
  }
}

.waitlist-badge {
  display: inline-block;
  background: rgba(41, 98, 255, 0.12);
  color: #2962ff;
  border: 1px solid rgba(41, 98, 255, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 12px;
}

.waitlist-card h3 {
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.waitlist-card p {
  margin: 0 0 18px;
  color: #475569;
  font-size: 0.95rem;
}

.waitlist-form {
  display: grid;
  gap: 12px;
}
.waitlist-form input {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

.waitlist-form input:focus {
  outline: none;
  border-color: #2962ff;
  box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.1);
}

@media (max-width: 520px) {
  .waitlist-form input {
    padding: 12px 14px;
    font-size: 16px; /* Prevents iOS zoom on focus */
    border-radius: 10px;
  }
}
.waitlist-footnote {
  margin-top: 12px;
  font-size: 0.85rem;
  color: rgba(15, 23, 42, 0.55);
  text-align: center;
}

/* ---------------------------
   Responsive
---------------------------- */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__visual {
    min-height: 360px;
  }

  .product-list {
    grid-template-columns: 1fr;
  }
  .solutions {
    grid-template-columns: 1fr;
  }
  .testimonial {
    grid-template-columns: 1fr;
  }

  .nav {
    grid-template-columns: 1fr auto auto;
  }
  .nav__burger {
    display: inline-flex;
  }

  .nav__links {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 140ms ease,
      transform 140ms ease;
  }

  .nav__links > a,
  .nav__dropbtn {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .nav__toggle:checked ~ .nav__links {
    opacity: 1;
    transform: translateY(0px);
    pointer-events: auto;
  }

  /* dropdown in mobile: show menu inline */
  .nav__dropdown {
    display: block;
  }
  .nav__dropmenu {
    position: static;
    display: block;
    margin-top: 6px;
    box-shadow: none;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.02);
  }
  .nav__dropmenu::before {
    display: none;
  }
  .nav__dropmenu a {
    padding: 12px 12px;
  }
}

@media (max-width: 520px) {
  .nav__cta {
    display: none;
  }
  .trait-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.cta-center {
  text-align: center;
  margin: 0;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2962ff, #4f7dff);
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(41, 98, 255, 0.35);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
  border-color: #2962ff;
}

.cta-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 60px rgba(41, 98, 255, 0.45);
}

.cta-arrow {
  transition: transform 160ms ease;
}

.cta-pill:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-sub {
  margin-top: 10px;
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.6);
}

/* =========================
   Footer (matches your HTML)
========================= */

/* top footer layout */
.footer {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  align-items: start;
}

/* Brand block */
.footer__brand {
  display: grid;
  gap: 12px;
}

.footer__logo {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer__name {
  font-weight: 900;
  letter-spacing: -0.03em;
}

.footer__tag {
  color: rgba(15, 23, 42, 0.62);
  font-weight: 650;
  font-size: 0.95rem;
}

.footer__desc {
  margin: 6px 0 0;
  color: rgba(15, 23, 42, 0.65);
  font-weight: 650;
  max-width: 62ch;
  line-height: 1.55;
}

/* Right-side meta pills */
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: start;
}

.footer__col {
  display: grid;
  justify-items: end; /* aligns pills to the right like premium SaaS */
}

.footer__meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(2, 6, 23, 0.02);
  color: rgba(15, 23, 42, 0.74);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.footer__fine {
  color: rgba(15, 23, 42, 0.52);
}

/* Responsive */
@media (max-width: 980px) {
  .footer {
    grid-template-columns: 1fr;
  }
  .footer__cols {
    grid-template-columns: 1fr;
  }
  .footer__col {
    justify-items: start; /* pills left align on mobile */
  }
}

.footer__meta-pill {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}
.footer__meta-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(41, 98, 255, 0.25);
  background: rgba(41, 98, 255, 0.06);
}

/* =========================   Contact Pages — shared components========================= */
/* =========================
   CONTACT PAGE
========================= */

.contact-page {
  padding: 0% 20% 5% 20%;
  background: #ffffff;
  color: #171b23;
  max-width: 1200px;
  margin: 0 auto;
}

/* HERO */
.contact-hero {
  max-width: 720px;
  margin-bottom: 4rem;
}

.contact-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-hero p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4a4f5e;
}

/* CONTENT GRID */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
}

/* INFO */
.contact-info h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  margin-bottom: 1.2rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.contact-info a {
  color: #2962ff;
  text-decoration: none;
  font-weight: 500;
}

.contact-note {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #6b7280;
}

/* FORM */
.contact-form-wrapper h2 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  color: #374151;
}

.form-group input,
.form-group textarea {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
  font-size: 0.95rem;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2962ff;
}

/* BUTTON */
.btn-primary {
  align-self: flex-start;
  margin-top: 1rem;
  background: #2962ff;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 520px) {
  .contact-content {
    gap: 2rem;
  }
  .contact-hero h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
  .contact-form-wrapper h2,
  .contact-info h2 {
    font-size: 1.2rem;
  }
}

/* =========================
   MOBILE RESPONSIVE PATCH
   Paste at VERY END of style.css
========================= */

/* Helpful: prevent accidental horizontal scroll */
html,
body {
  overflow-x: hidden;
}

/* Make media responsive by default */
img,
video {
  max-width: 100%;
  height: auto;
}

/* ---- 1) Tablet / small laptop ---- */
@media (max-width: 1100px) {
  .container {
    width: min(var(--container), calc(100% - 32px));
  }

  .brand {
    min-width: 0; /* avoid forcing navbar overflow */
  }

  .hero {
    margin-top: 0;
    padding-top: 42px;
  }

  .product__logo {
    width: 60%;
  }
}

/* ---- 2) Tablet / Mobile ---- */
@media (max-width: 980px) {
  /* Header / nav */
  .nav {
    height: 66px;
  }

  .nav__links {
    top: 66px; /* match nav height on mobile */
  }

  /* Make dropdown look like a section list on mobile */
  .nav__dropbtn {
    justify-content: space-between;
    width: 100%;
  }

  .nav__dropmenu a {
    font-weight: 750;
  }

  /* Hero */
  .hero__visual {
    min-height: auto;
  }

  .video-cta {
    border-radius: 18px;
  }

  /* Products / grids */
  .product-list {
    gap: 14px;
  }

  .product {
    padding: 16px;
  }

  /* On touch devices, "hover" overlays are unreliable.
       Make overlay CTAs always available on mobile. */
  .product-hover {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  /* Don’t fade base content on mobile (keeps text readable) */
  .product:hover > :not(.product-hover),
  .product:focus-within > :not(.product-hover) {
    opacity: 1;
  }

  /* Startline full-card video overlay: on mobile, keep video subtle and CTA visible */
  .product--startline .product-hover__video::after {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.05),
      rgba(15, 23, 42, 0.35)
    );
  }

  .product--startline .product-hover__actions {
    place-items: end center;
    padding: 14px;
  }

  /* Solutions / stats */
  .stats-card {
    min-height: 0;
  }

  /* CTA band */
  .cta-band {
    padding: 44px 0;
  }
}

/* ---- 3) Small Mobile ---- */
@media (max-width: 520px) {
  /* Typography tightening */
  body {
    line-height: 1.5;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    line-height: 1.1;
  }

  .subhead {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Buttons fit */
  .btn {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .btn--sm {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  /* CTA pill should not overflow */
  .cta-pill {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 14px 20px;
  }

  /* Product logo sizing */
  .product__logo {
    width: 70%;
  }

  /* Trait cards spacing */
  .trait-grid {
    gap: 14px;
  }
  .trait-card {
    padding: 18px 16px;
  }

  /* Footer */
  .footer__desc {
    max-width: 100%;
    font-size: 0.9rem;
  }

  /* CTA Band */
  .cta-band__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 20px;
  }
  .cta-band__actions {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
  }
  .cta-band__actions .btn {
    width: 100%;
  }

  /* Ribbon */
  .waitlist-ribbon__content {
    padding: 10px 12px;
    gap: 10px;
    font-size: 0.85rem;
  }
  .waitlist-ribbon__text {
    flex: 1;
    text-align: center;
  }
  .waitlist-ribbon__btn {
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  /* Waitlist Modal Mobile Improvements */
  .waitlist-card {
    width: calc(100% - 32px);
    max-width: calc(100vw - 32px);
    padding: 24px 20px;
    border-radius: 20px;
    max-height: calc(100vh - 32px);
    margin: 0 16px;
  }

  .waitlist-card h3 {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    line-height: 1.3;
    margin-bottom: 10px;
  }

  .waitlist-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
  }

  .waitlist-form {
    gap: 12px;
  }

  .waitlist-form input {
    padding: 12px 14px;
    font-size: 16px; /* Prevents iOS zoom on focus */
    border-radius: 10px;
  }

  .waitlist-form button {
    padding: 14px 18px;
    font-size: 0.95rem;
    margin-top: 4px;
  }

  .waitlist-footnote {
    font-size: 0.8rem;
    margin-top: 12px;
  }
}

/* ---- 5) Improve tap behavior for iOS notch / safe-area (optional but good) ---- */
@supports (padding: max(0px)) {
  .waitlist-ribbon__content {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }

  .container {
    padding-left: max(0px, env(safe-area-inset-left));
    padding-right: max(0px, env(safe-area-inset-right));
  }
}

/* =========================
   HEADER REBUILD (Desktop + Mobile)
========================= */

.header {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Desktop nav */
.desktop-nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.desktop-nav__link {
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 750;
  color: rgba(15, 23, 42, 0.78);
}
.desktop-nav__link:hover {
  background: rgba(41, 98, 255, 0.06);
  color: var(--text);
}

.desktop-nav__cta {
  margin-left: 6px;
}

/* Mobile toggle hidden on desktop */
.mobile-toggle,
.mobile-burger,
.mobile-menu {
  display: none;
}

/* =========================
   Mobile Header
========================= */
@media (max-width: 980px) {
  /* Hide desktop nav */
  .desktop-nav {
    display: none;
  }

  /* Show burger */
  .mobile-burger {
    display: inline-flex;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.06);
  }

  .mobile-burger span {
    width: 22px;
    height: 2px;
    background: rgba(15, 23, 42, 0.85);
    border-radius: 999px;
    transition:
      transform 180ms ease,
      opacity 180ms ease,
      background 180ms ease;
  }

  /* Burger -> X animation */
  .mobile-toggle:checked + .mobile-burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-toggle:checked + .mobile-burger span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle:checked + .mobile-burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .mobile-toggle:checked + .mobile-burger span {
    background: var(--blue);
  }

  /* Mobile menu panel */
  .mobile-menu {
    display: block;
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 160ms ease,
      transform 160ms ease;
    z-index: 99999;
  }

  /* Open menu */
  #mobile-nav-toggle:checked ~ .mobile-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu__inner {
    padding: 20px 16px 24px;
    display: grid;
    gap: 10px;
    background: white;
    min-height: 100%;
  }

  .mobile-link {
    padding: 16px 16px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 1rem;
    color: rgba(15, 23, 42, 0.9);
    background: rgba(2, 6, 23, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.08);
    transition:
      background 150ms ease,
      border-color 150ms ease;
    display: block;
    text-align: left;
  }

  .mobile-link:hover,
  .mobile-link:active {
    background: rgba(41, 98, 255, 0.08);
    border-color: rgba(41, 98, 255, 0.25);
    color: var(--text);
  }

  /* Dropdown */
  .mobile-dropdown {
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition: background 150ms ease;
  }

  .mobile-dropdown[open] {
    background: rgba(41, 98, 255, 0.04);
    border-color: rgba(41, 98, 255, 0.2);
  }

  .mobile-dropdown summary {
    padding: 16px 16px;
    cursor: pointer;
    font-weight: 900;
    font-size: 1rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: rgba(15, 23, 42, 0.9);
    transition: color 150ms ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-dropdown summary::-webkit-details-marker {
    display: none;
  }

  .mobile-dropdown summary:active {
    color: var(--blue);
  }

  .mobile-dropdown__chev {
    transition: transform 200ms ease;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.6);
  }

  .mobile-dropdown[open] .mobile-dropdown__chev {
    transform: rotate(180deg);
    color: var(--blue);
  }

  .mobile-dropdown__items {
    padding: 0 16px 12px;
    display: grid;
    gap: 8px;
    margin-top: 4px;
  }

  .mobile-dropdown__items a {
    padding: 14px 16px;
    border-radius: 12px;
    font-weight: 750;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.78);
    transition:
      background 150ms ease,
      color 150ms ease;
    display: block;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-dropdown__items a:hover,
  .mobile-dropdown__items a:active {
    background: rgba(41, 98, 255, 0.1);
    color: var(--text);
  }

  /* Actions */
  .mobile-actions {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: grid;
    gap: 12px;
  }

  .mobile-actions__btn {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    font-size: 1rem;
  }
}

/* Extra-small phones */
@media (max-width: 520px) {
  .header {
    height: 66px;
  }

  .mobile-menu {
    top: 100%;
  }

  .mobile-menu__inner {
    padding: 18px 14px 20px;
    gap: 8px;
  }

  .mobile-link,
  .mobile-dropdown summary {
    padding: 14px 14px;
    font-size: 0.95rem;
  }

  .mobile-dropdown__items {
    padding: 0 14px 10px;
    gap: 6px;
  }

  .mobile-dropdown__items a {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .mobile-actions {
    margin-top: 10px;
    padding-top: 10px;
  }

  .mobile-actions__btn {
    padding: 12px 16px;
    font-size: 0.95rem;
  }

  .brand__logo {
    width: 140px;
    height: auto;
  }
}

/* =========================
   DROPDOWN + MOBILE MENU FIX (put at END)
========================= */

/* --- Desktop dropdown: ensure proper positioning --- */
.desktop-nav .nav__dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.desktop-nav .nav__dropmenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.14);
  display: none;
  z-index: 9999;
}

/* show on hover/focus */
.desktop-nav .nav__dropdown:hover .nav__dropmenu,
.desktop-nav .nav__dropdown:focus-within .nav__dropmenu {
  display: block;
}

/* --- Mobile menu: open panel when checkbox checked --- */
@media (max-width: 980px) {
  /* hide desktop nav on mobile */
  .desktop-nav {
    display: none !important;
  }

  /* show burger on mobile */
  .mobile-burger {
    display: inline-flex !important;
  }

  /* Mobile menu positioning is handled above in the main mobile menu section */

  /* IMPORTANT: this selector must match your HTML structure */
  #mobile-nav-toggle:checked ~ .mobile-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Mobile dropdown details */
  .mobile-dropdown {
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  .mobile-dropdown summary {
    padding: 14px 14px;
    cursor: pointer;
    font-weight: 900;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-dropdown summary::-webkit-details-marker {
    display: none;
  }

  .mobile-dropdown[open] summary {
    background: rgba(41, 98, 255, 0.08);
  }

  .mobile-dropdown__items {
    padding: 10px 12px 12px;
    display: grid;
    gap: 6px;
  }

  .mobile-dropdown__items a {
    padding: 12px 12px;
    border-radius: 12px;
    font-weight: 750;
  }

  .mobile-dropdown__items a:hover {
    background: rgba(41, 98, 255, 0.08);
  }
}
