:root {
  --bg: #0b0f14;
  --bg2: #0f1620;
  --card: #121b26;
  --text: #eef2f6;
  --muted: #a8b3c2;
  --line: rgba(255, 255, 255, 0.1);
  --accent: #7c5cff;
  --accent2: #22c55e;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 16px;
}

* {
  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: radial-gradient(
      1200px 800px at 20% -10%,
      rgba(124, 92, 255, 0.3),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at 90% 10%,
      rgba(34, 197, 94, 0.18),
      transparent 55%
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}
.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.announcement {
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.announcement p {
  margin: 0;
  padding: 10px 0;
  text-align: center;
  color: var(--muted);
}
.announcement a {
  color: var(--text);
  text-decoration: underline;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 20, 0.65);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 20px;
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.9),
    rgba(34, 197, 94, 0.75)
  );
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.18);
}
.brand-name {
  font-size: 16px;
}
.logo-lockup {
  height: 40px;
  width: auto;
  display: block;
}
.logo-mark {
  height: 32px;
  width: 32px;
  display: block;
}
.header .logo-lockup {
  filter: drop-shadow(0 6px 20px rgba(124, 92, 255, 0.25));
}
@media (max-width: 760px) {
  .logo-lockup {
    height: 34px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav a {
  color: var(--muted);
  font-size: 14px;
}
.nav a:hover {
  color: var(--text);
}

/* Desktop nav: hide the mobile panel header + close button */
.nav-panel-head,
.nav-close {
  display: none;
}

/* Desktop nav: make panel wrapper transparent (so links lay out normally) */
.nav-panel {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  margin: 4px auto;
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.2s ease, border-color 0.2s ease,
    opacity 0.2s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 1),
    rgba(124, 92, 255, 0.75)
  );
  border-color: rgba(124, 92, 255, 0.35);
  box-shadow: 0 20px 60px rgba(124, 92, 255, 0.18);
}
.btn-primary:hover {
  opacity: 0.95;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}
.btn-sm {
  padding: 10px 14px;
  font-size: 13px;
}

/* Hero */
.hero {
  padding: 54px 0 28px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: start;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 10px 0 12px;
}
.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
}
.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  max-width: 58ch;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-badges {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.badge {
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.badge strong {
  display: block;
  font-size: 14px;
}
.badge span {
  color: var(--muted);
  font-size: 12px;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}
.hero-img {
  height: 220px;
  display: block;
  overflow: hidden;
  background: linear-gradient(
      135deg,
      rgba(124, 92, 255, 0.35),
      rgba(34, 197, 94, 0.18)
    ),
    radial-gradient(
      800px 400px at 50% 30%,
      rgba(255, 255, 255, 0.1),
      transparent 60%
    ),
    rgba(255, 255, 255, 0.02);
}
.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-card-body {
  padding: 16px;
}
.hero-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.pill {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.12);
  color: #d7ffe7;
}
.muted {
  color: var(--muted);
}
.checklist {
  margin: 12px 0 14px;
  padding-left: 18px;
  color: var(--muted);
}
.checklist li {
  margin: 6px 0;
}

/* Trust */
.trust {
  padding: 12px 0 24px;
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.trust-logos {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(238, 242, 246, 0.75);
  font-size: 13px;
}
.trust-logos span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

/* Sections */
.section {
  padding: 54px 0;
}
.section.alt {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0)
  );
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  margin-bottom: 18px;
}
.section-head h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.5vw, 32px);
}
.section-head p {
  margin: 0;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.12s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 92, 255, 0.35);
}
.card.featured {
  outline: 2px solid rgba(124, 92, 255, 0.35);
}

/* Pod images (replaces placeholder gradients) */
.card-img {
  height: 160px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 14px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.price {
  color: rgba(238, 242, 246, 0.85);
  font-weight: 700;
  font-size: 13px;
}
.spec {
  margin: 12px 0 14px;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
}
.spec li {
  margin: 6px 0;
}
.spec strong {
  color: rgba(238, 242, 246, 0.85);
  font-weight: 600;
}

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.feature {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.feature p {
  margin: 0;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}
.g {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  min-height: 140px;
}
.g1 {
  grid-column: span 7;
  min-height: 220px;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.25),
    rgba(255, 255, 255, 0.06)
  );
}
.g2 {
  grid-column: span 5;
  min-height: 220px;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.15),
    rgba(255, 255, 255, 0.06)
  );
}
.g3 {
  grid-column: span 4;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    rgba(124, 92, 255, 0.18)
  );
}
.g4 {
  grid-column: span 4;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06),
    rgba(34, 197, 94, 0.12)
  );
}
.g5 {
  grid-column: span 4;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.16),
    rgba(34, 197, 94, 0.1)
  );
}

/* Testimonials */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.quote {
  margin: 0;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.quote blockquote {
  margin: 0 0 10px;
  font-size: 15px;
  color: rgba(238, 242, 246, 0.92);
}
.quote figcaption {
  color: var(--muted);
  font-size: 13px;
}

/* FAQ */
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  margin: 10px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
}
.faq p {
  margin: 10px 0 0;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.contact-cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mini-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.form {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}
label {
  display: block;
  font-size: 13px;
  color: rgba(238, 242, 246, 0.92);
}
input,
select,
textarea {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 15, 20, 0.55);
  color: var(--text);
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(124, 92, 255, 0.55);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tiny {
  font-size: 12px;
}

/* =======================
   Footer (final)
======================= */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
  padding: 16px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.footer-inner > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer .logo-lockup {
  height: 30px;
  width: auto;
  display: block;
  opacity: 0.95;
}
.footer-links {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.footer-links a:hover {
  color: var(--text);
}

/* =======================
   Specs pages
======================= */
.page-hero {
  padding: 44px 0 18px;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}
.breadcrumbs a {
  color: rgba(238, 242, 246, 0.85);
  text-decoration: underline;
}
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
}
.kicker {
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 70ch;
}
.specs-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  padding: 18px 0 54px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  padding: 14px;
}
.panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
}
.panel h3 {
  margin: 16px 0 8px;
  font-size: 15px;
  color: rgba(238, 242, 246, 0.92);
}
.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.table td {
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
  color: rgba(238, 242, 246, 0.9);
  font-size: 13px;
}
.table tr:last-child td {
  border-bottom: none;
}
.table td:first-child {
  width: 36%;
  color: var(--muted);
}
.callout {
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  color: rgba(238, 242, 246, 0.92);
}
.callout strong {
  display: block;
  margin-bottom: 6px;
}
.spec-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.spec-list li {
  margin: 6px 0;
}
.diagram {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 14px;
  background: rgba(0, 0, 0, 0.12);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  color: rgba(238, 242, 246, 0.92);
  white-space: pre;
  overflow: auto;
}
.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.related .mini {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
}
.related .mini p {
  margin: 6px 0 0;
}

/* Specs page hero image */
.spec-hero {
  margin-top: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.spec-hero img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Responsive */
@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .trust-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .testimonials {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: repeat(6, 1fr);
  }
  .g1 {
    grid-column: span 6;
  }
  .g2 {
    grid-column: span 6;
  }
  .g3,
  .g4,
  .g5 {
    grid-column: span 6;
  }
  .specs-layout {
    grid-template-columns: 1fr;
  }
  .related {
    grid-template-columns: 1fr;
  }
  .spec-hero img {
    height: 220px;
  }
}

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

  /* Mobile nav overlay */
  .nav.open {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;

    /* keep announcement + header visible */
    top: calc(64px + 42px); /* header + announcement */

    /* take the rest of the viewport */
    height: calc(100dvh - (64px + 42px));
    padding: 0;
    gap: 0;
    border: 0;
    background: transparent;
    z-index: 2000;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Full-screen backdrop (more opaque, easier to read) */
  .nav.open::before {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: calc(64px + 42px);
    height: calc(100dvh - (64px + 42px));
    background: linear-gradient(
      180deg,
      rgba(11, 15, 20, 0.98),
      rgba(11, 15, 20, 0.96)
    );
    backdrop-filter: blur(6px);
  }

  /* Ensure the nav content sits above the backdrop */
  .nav.open > * {
    position: relative;
    z-index: 1;
  }

  /* Menu rows (full-width within a nice centered column) */
  .nav.open a {
    width: min(520px, 92vw);
    margin: 0 auto 10px;
    padding: 14px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);

    /* optional polish: higher contrast row */
    background: rgba(255, 255, 255, 0.06);

    color: rgba(238, 242, 246, 0.92);
    text-align: left;
  }

  .nav.open a:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text);
  }

  /* Space the first link away from the top a bit */
  .nav.open a:first-child {
    margin-top: 16px;
  }

  /* CTA styling: keep it bold and unmistakable */
  .nav.open a.btn {
    justify-content: center;
    text-align: center;
    margin-top: 6px;

    /* optional polish: reinforce primary */
    background: linear-gradient(
      135deg,
      rgba(124, 92, 255, 1),
      rgba(124, 92, 255, 0.85)
    );
    border-color: rgba(124, 92, 255, 0.35);
  }

  .nav-toggle {
    display: block;
  }

  .nav-panel {
    display: block; /* becomes the sheet content */
  }

  .nav-panel-head,
  .nav-close {
    display: flex; /* show on mobile */
  }

  .nav-close {
    display: grid; /* the button uses grid centering */
  }

  .row {
    grid-template-columns: 1fr;
  }
  .hero-badges {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-links {
    align-items: flex-start;
  }
}

/* =========================================
   CONTAIN BACKGROUND GRADIENTS (no spill)
========================================= */

/* 1) Stop the global gradient from being behind everything */
body {
  background: var(--bg);
}

/* 2) Give major blocks an explicit solid base so nothing leaks through */
.header,
.section,
.page-hero,
.trust,
.footer {
  background-color: transparent;
}

/* Most of your "cards-on-dark" sections should sit on a solid surface */
.section,
.page-hero,
.trust {
  background-color: var(--bg);
}

/* Your alt sections can keep their subtle treatment, but on a solid base */
.section.alt {
  background-color: var(--bg2);
}

/* Footer should always be solid */
.footer {
  background-color: rgba(0, 0, 0, 0.15);
}

/* 3) Re-introduce the gradient only where you want it (hero + contact) */
.hero,
.section.contact {
  position: relative;
  isolation: isolate; /* keeps pseudo-element blending contained */
}

.hero::before,
.section.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  /* your original body gradient, now contained */
  background: radial-gradient(
      1200px 800px at 20% -10%,
      rgba(124, 92, 255, 0.3),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at 90% 10%,
      rgba(34, 197, 94, 0.18),
      transparent 55%
    );
}

/* Optional: soften section edges so the contained gradient looks intentional */
.hero::after,
.section.contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(11, 15, 20, 0),
    rgba(11, 15, 20, 0.55) 70%,
    rgba(11, 15, 20, 1)
  );
  opacity: 0.35;
}

/* =======================
   Mobile nav (full-screen sheet)
======================= */
@media (max-width: 760px) {
  /* Hide desktop nav by default */
  .nav {
    display: none;
  }

  /* Overlay container */
  .nav.open {
    display: block; /* becomes overlay when open */
    position: fixed;
    inset: 0;
    z-index: 2000;
  }

  /* Backdrop */
  .nav.open::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 20, 0.92);
    backdrop-filter: blur(10px);
  }

  /* The actual menu panel */
  .nav.open {
    /* create a top sheet */
  }
  .nav.open .nav-panel {
    position: relative;
    z-index: 1;
    width: min(520px, 92vw);
    margin: 86px auto 0; /* clears announcement/header nicely */
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 22, 32, 0.92);
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.65);
  }

  /* Header row inside panel (title + close button) */
  .nav.open .nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 6px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
  }

  .nav.open .nav-panel-title {
    font-weight: 700;
    font-size: 14px;
    color: rgba(238, 242, 246, 0.92);
    letter-spacing: 0.02em;
  }

  .nav-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    display: grid;
    place-items: center;
    cursor: pointer;
  }

  /* Menu links become full-width tappable rows */
  .nav.open a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 14px;
    margin: 10px 0;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(238, 242, 246, 0.92);
    font-size: 15px;
  }

  .nav.open a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
  }

  /* CTA stays primary but still full width */
  .nav.open a.btn {
    justify-content: center;
    text-align: center;
    margin-top: 12px;
  }

  /* Slide-in animation */
  .nav.open .nav-panel {
    transform: translateY(-12px);
    opacity: 0;
    animation: navDrop 160ms ease-out forwards;
  }

  @keyframes navDrop {
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* Scroll lock when menu open (JS adds this) */
  body.no-scroll {
    overflow: hidden;
    touch-action: none;
  }

  .nav-toggle {
    display: block;
  }
}

/* =======================
   Concept floor plans
======================= */
.floorplan {
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  padding: 14px;
}

.floorplan svg {
  width: 100%;
  height: auto;
}

/* Lines */
.floorplan rect,
.floorplan circle,
.floorplan path,
.floorplan line {
  fill: none;
  stroke: rgba(238, 242, 246, 0.85);
  stroke-width: 2;
}

/* Furniture blocks */
.floorplan .furniture {
  fill: rgba(124, 92, 255, 0.12);
  stroke: rgba(124, 92, 255, 0.8);
}

/* Window */
.floorplan .window {
  fill: rgba(34, 197, 94, 0.25);
  stroke: rgba(34, 197, 94, 0.8);
}

/* Door arc */
.floorplan .door {
  stroke-dasharray: 4 3;
}

/* Labels */
.floorplan text {
  fill: rgba(238, 242, 246, 0.75);
  font-size: 11px;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
}

/* =======================
   Gallery (real images)
======================= */
.gallery .g {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.gallery .g picture,
.gallery .g img {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery .g img {
  object-fit: cover;
}

/* Remove old gradient styling so it doesn't interfere */
.g1,
.g2,
.g3,
.g4,
.g5 {
  background: rgba(255, 255, 255, 0.02) !important;
}

/* =======================
   Contact cards overflow fix (mobile)
======================= */

/* Ensure grid cells can actually shrink */
.contact-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Allow long strings to wrap instead of overflowing */
.mini-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-card span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Mobile: stack Email + Phone */
@media (max-width: 760px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}
