/* ==========================================================================
   Nzura Natural-Ratio Device Mockups & Realbyte-Inspired Showcase System
   - PC / Laptop screen: exact 16:10 (1920x1200) — never squashed or stretched
   - Mobile phone screen: exact 19.5:9 (1080x2340) — slim portrait, never stretched
   - Focus rings strictly use var(--accent) / var(--accent-soft), never --ink
   ========================================================================== */

:root {
  --mku-bezel: #151924;
  --mku-bezel-edge: rgba(255, 255, 255, 0.14);
  --mku-chassis-top: #e4e8f0;
  --mku-chassis-bot: #bfc7d6;
  --mku-shadow: 0 28px 64px -18px rgba(12, 23, 48, 0.24), 0 8px 22px -6px rgba(12, 23, 48, 0.12);
  --mku-phone-shadow: 0 26px 56px -14px rgba(12, 23, 48, 0.34), 0 6px 18px -4px rgba(12, 23, 48, 0.18);
  --mku-accent: var(--accent, #195afe);
  --mku-accent-soft: rgba(25, 90, 254, 0.12);
}

/* ── Laptop / PC Frame (16:10 natural aspect ratio) ──────────────────────── */
.nz-laptop {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.nz-laptop-lid {
  position: relative;
  background: linear-gradient(165deg, #222836 0%, #111520 100%);
  border-radius: 16px 16px 6px 6px;
  padding: 12px 12px 14px;
  box-shadow: var(--mku-shadow), inset 0 0 0 1px var(--mku-bezel-edge);
}

.nz-laptop-cam {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2f384d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  margin: 0 auto 7px;
}

.nz-laptop-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 7px;
  overflow: hidden;
  background: #0f1420;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.28);
}

.nz-laptop-screen img,
.nz-laptop-screen picture,
.nz-laptop-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nz-laptop-base {
  position: relative;
  height: 14px;
  width: 106%;
  margin-left: -3%;
  background: linear-gradient(180deg, var(--mku-chassis-top) 0%, var(--mku-chassis-bot) 100%);
  border-radius: 2px 2px 14px 14px;
  box-shadow: 0 14px 28px -12px rgba(12, 23, 48, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.nz-laptop-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14%;
  height: 5px;
  border-radius: 0 0 6px 6px;
  background: #9aa4b8;
}

/* ── Slim Portrait Phone Frame (19.5:9 = 1080/2340 natural aspect ratio) ─── */
.nz-phone {
  position: relative;
  width: 100%;
  max-width: 248px;
  background: linear-gradient(160deg, #272e3f 0%, #121621 55%, #1c2231 100%);
  border-radius: 34px;
  padding: 8px;
  box-shadow: var(--mku-phone-shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.nz-phone-island {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 14px;
  border-radius: 999px;
  background: #0d1018;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.nz-phone-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 1080 / 2340;
  border-radius: 26px;
  overflow: hidden;
  background: #0f1420;
}

.nz-phone-screen img,
.nz-phone-screen picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Bundled PC + Companion Phone Stage ─────────────────────────────────── */
.nz-bundle {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding-right: 9%;
  padding-bottom: 24px;
}

.nz-bundle--left {
  padding-right: 0;
  padding-left: 9%;
}

.nz-bundle-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 25.5%;
  min-width: 150px;
  max-width: 242px;
  z-index: 4;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nz-bundle--left .nz-bundle-phone {
  right: auto;
  left: 0;
}

.nz-bundle:hover .nz-bundle-phone {
  transform: translateY(-6px);
}

/* Compact bundle for split 2-column feature rows */
.nz-bundle--compact {
  max-width: 680px;
  padding-right: 11%;
  padding-bottom: 18px;
}

.nz-bundle--compact.nz-bundle--left {
  padding-right: 0;
  padding-left: 11%;
}

.nz-bundle--compact .nz-laptop-lid {
  padding: 9px 9px 10px;
  border-radius: 13px 13px 5px 5px;
}

.nz-bundle--compact .nz-laptop-cam {
  width: 5px;
  height: 5px;
  margin-bottom: 5px;
}

.nz-bundle--compact .nz-laptop-base {
  height: 10px;
}

.nz-bundle--compact .nz-bundle-phone {
  width: 27%;
  min-width: 116px;
  max-width: 184px;
}

.nz-bundle--compact .nz-phone {
  border-radius: 26px;
  padding: 6px;
}

.nz-bundle--compact .nz-phone-screen {
  border-radius: 20px;
}

.nz-bundle--compact .nz-phone-island {
  width: 42px;
  height: 10px;
  top: 10px;
}

/* ── Realbyte-Inspired Multi-Phone Spread (3 slim 19.5:9 phones) ────────── */
.rb-phone-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: end;
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 0;
}

.rb-phone-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.rb-phone-slot--center {
  transform: translateY(-14px);
}

.rb-phone-caption {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475572;
  text-align: center;
}

/* ── Hero Video Mockup Slot (ready for direct video URL drop-in) ────────── */
.nz-video-overlay[hidden] {
  display: none !important;
}

.nz-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, rgba(12, 23, 48, 0) 62%, rgba(12, 23, 48, 0.54) 100%);
  pointer-events: none;
}

/* ── Realbyte-Inspired Airy Light Hero Override for .mod-hero ───────────── */
.mod-hero.rb-hero-light {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
  color: #0c1730;
}

.mod-hero.rb-hero-light .breadcrumb,
.mod-hero.rb-hero-light .breadcrumb a,
.mod-hero.rb-hero-light .breadcrumb-sep {
  color: #64748b;
}

.mod-hero.rb-hero-light .breadcrumb a:hover {
  color: var(--mku-accent);
}

.mod-hero.rb-hero-light h1 {
  color: #0c1730;
}

.mod-hero.rb-hero-light .mod-tagline {
  color: #475572;
}

.mod-hero.rb-hero-light .btn-hp-ghost {
  color: #0c1730;
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
}

.mod-hero.rb-hero-light .btn-hp-ghost:hover {
  border-color: var(--mku-accent);
  color: var(--mku-accent);
  background: #f8faff;
}

.nz-video-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(12, 23, 48, 0.82);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.nz-video-pill:hover {
  transform: translateY(-1px);
  background: var(--mku-accent);
}

.nz-video-pill:focus-visible {
  outline: 2px solid var(--mku-accent);
  outline-offset: 2px;
}

.nz-video-play-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #0c1730;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  padding-left: 2px;
}

/* ── Realbyte-Inspired Light/Dark Switch & Accessible Tablist ───────────── */
.rb-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.rb-tablist {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: inline proximity;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line, #e4e8f0);
}

.rb-tablist::-webkit-scrollbar {
  display: none;
}

.rb-tab {
  position: relative;
  flex: none;
  scroll-snap-align: start;
  appearance: none;
  border: 0;
  background: transparent;
  color: #475572;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1rem;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.rb-tab:hover {
  color: #0c1730;
  background: rgba(25, 90, 254, 0.05);
}

.rb-tab:focus-visible {
  outline: 2px solid var(--mku-accent);
  outline-offset: -2px;
}

.rb-tab[aria-selected="true"] {
  color: var(--mku-accent);
}

.rb-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  border-block-end: 3px solid var(--mku-accent);
  border-radius: 3px 3px 0 0;
}

.rb-theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 4px;
  border-radius: 999px;
  background: #eef2fa;
  border: 1px solid #d9e1f0;
}

.rb-theme-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #475572;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.rb-theme-btn:focus-visible {
  outline: 2px solid var(--mku-accent);
  outline-offset: 2px;
}

.rb-theme-btn[aria-pressed="true"] {
  background: #ffffff;
  color: #0c1730;
  box-shadow: 0 2px 8px rgba(12, 23, 48, 0.1);
}

/* Panels share a single grid cell so hidden="until-found" adds zero gap */
.rb-panels {
  display: grid;
}

.rb-panel {
  grid-area: 1 / 1;
}

.rb-panel-inner {
  padding-top: 0.75rem;
}

.rb-panel-caption {
  max-width: 720px;
  margin: 1.25rem auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: #475572;
  line-height: 1.55;
}

/* ── Realbyte Editorial Feature Row (Always shows visual on mobile!) ────── */
.rb-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}

.rb-feature-row--rev {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
}

.rb-feature-row--rev .rb-feature-copy {
  order: 2;
}

.rb-feature-row--rev .rb-feature-media {
  order: 1;
}

.rb-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.34rem 0.75rem;
  border-radius: 999px;
  background: rgba(25, 90, 254, 0.09);
  color: var(--mku-accent);
  margin-bottom: 0.9rem;
}

.rb-feature-copy h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #0c1730;
  margin: 0 0 0.85rem;
}

.rb-feature-copy h2 em {
  font-style: normal;
  color: var(--mku-accent);
}

.rb-feature-copy > p {
  font-size: 1rem;
  line-height: 1.62;
  color: #475572;
  margin: 0 0 1.25rem;
}

/* ── Agentic AI Showcase Band ───────────────────────────────────────────── */
.nz-ai-band {
  background: radial-gradient(1100px 520px at 15% -10%, rgba(25, 90, 254, 0.24), transparent 60%),
              radial-gradient(900px 460px at 90% 110%, rgba(16, 185, 129, 0.16), transparent 60%),
              #0b1224;
  color: #f4f7ff;
  padding: clamp(3.5rem, 6vw, 5.5rem) 1.5rem;
}

.nz-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
}

.nz-ai-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nz-ai-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, 0.48);
}

.nz-ai-card h3 {
  font-size: 1.05rem;
  margin: 0.75rem 0 0.45rem;
  color: #ffffff;
}

.nz-ai-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #c2cde4;
  margin: 0;
}

.nz-ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.28);
}

.nz-ai-prompts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2rem;
}

.nz-ai-prompt-chip {
  font-size: 0.82rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e6eefc;
}

/* ── Platform Pills (Realbyte-style multi-platform trust strip) ─────────── */
.rb-platform-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.rb-platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #dbe2ef;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(12, 23, 48, 0.04);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.rb-platform-chip:hover {
  border-color: var(--mku-accent);
  transform: translateY(-1px);
}

/* ── FAQ Accordion (SEO FAQPage) ────────────────────────────────────────── */
.rb-faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 0.85rem;
}

.rb-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
}

.rb-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 0.98rem;
  color: #0c1730;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rb-faq-item summary::-webkit-details-marker {
  display: none;
}

.rb-faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--mku-accent);
  flex: none;
}

.rb-faq-item[open] summary::after {
  content: "−";
}

.rb-faq-item summary:focus-visible {
  outline: 2px solid var(--mku-accent);
  outline-offset: 4px;
  border-radius: 6px;
}

.rb-faq-item p {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #475572;
}

/* ── Responsive Breakpoints (NEVER hide mockups on mobile!) ─────────────── */
@media (max-width: 960px) {
  .rb-feature-row,
  .rb-feature-row--rev {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .rb-feature-row--rev .rb-feature-copy,
  .rb-feature-row--rev .rb-feature-media {
    order: initial;
  }

  .nz-ai-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nz-bundle,
  .nz-bundle--left,
  .nz-bundle--compact,
  .nz-bundle--compact.nz-bundle--left {
    padding-left: 0;
    padding-right: 7%;
    padding-bottom: 18px;
  }

  .nz-bundle-phone,
  .nz-bundle--left .nz-bundle-phone,
  .nz-bundle--compact .nz-bundle-phone {
    left: auto;
    right: 0;
    width: 31%;
    min-width: 96px;
  }

  .nz-laptop-lid {
    padding: 7px 7px 9px;
    border-radius: 11px 11px 4px 4px;
  }

  .nz-laptop-base {
    height: 9px;
  }

  .nz-phone {
    border-radius: 20px;
    padding: 5px;
  }

  .nz-phone-screen {
    border-radius: 16px;
  }

  .nz-phone-island {
    width: 32px;
    height: 8px;
    top: 8px;
  }

  .rb-phone-trio {
    grid-template-columns: 1fr;
    max-width: 270px;
    gap: 1.75rem;
  }

  .rb-phone-slot--center {
    transform: none;
  }

  .rb-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nz-bundle-phone,
  .nz-ai-card,
  .rb-platform-chip,
  .nz-video-pill {
    transition: none;
  }
}
