/* =========================================================
   AIYWAH — PRODUCT ECOSYSTEM
   Sidebar + tab list + media panel, mirroring the
   "Why Choose Digit Us?" pattern (css/about/about-us.css).
   ========================================================= */

.nl {
  --nl-panel: #eef0fa;
  --nl-surface: #f4f5fb;
  --nl-ink: #1c1e2b;
  --nl-muted: #6b7080;
  --nl-accent: #1e72d1;

  padding: clamp(28px, 3.6vw, 52px) 0 clamp(36px, 5vw, 72px);

  background: #ffffff;
  font-family: "Inter", sans-serif;
  color: var(--nl-ink);
}

/* ---------- Card ---------- */

.nl-card {
  max-width: 1160px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 430px 1fr;

  background: var(--nl-panel);
  border-radius: 10px;
  overflow: hidden;

  box-shadow: 0 10px 40px rgba(30, 34, 60, 0.08);
}

/* ---------- Sidebar ---------- */

.nl-sidebar {
  display: flex;
  flex-direction: column;

  padding: 36px 34px;
}

.nl-eyebrow {
  display: block;
  margin-bottom: 10px;

  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  color: var(--nl-accent);
}

.nl-title {
  margin: 0 0 24px;

  font-family: "Geist", "Inter", sans-serif;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.6px;

  color: var(--nl-ink);
}

/* ---------- Tabs ---------- */

.nl-tabs {
  display: flex;
  flex-direction: column;
}

.nl-tab {
  position: relative;

  padding: 18px 18px;

  font-family: "Inter", sans-serif;
  font-size: 1.02rem;
  font-weight: 500;

  color: var(--nl-muted);
  background: transparent;
  border: none;
  border-left: 3px solid transparent;

  text-align: left;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.nl-tab:hover {
  background: rgba(255, 255, 255, 0.5);
}

.nl-tab.is-active {
  background: #ffffff;
  color: var(--nl-ink);
  border-left-color: var(--nl-accent);
}

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

/* ---------- Content ---------- */

.nl-content {
  display: flex;
  flex-direction: column;
  background: var(--nl-surface);
}

.nl-media {
  width: 100%;
  aspect-ratio: 16 / 8.4;

  background-size: cover;
  background-position: center;

  transition: opacity 0.25s ease;
}

.nl-media.is-swapping {
  opacity: 0.35;
}

.nl-panel {
  flex: 1;

  background: #ffffff;
  padding: 26px 32px 30px;
}

.nl-heading {
  margin: 0 0 10px;

  font-family: "Geist", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.3px;

  color: var(--nl-ink);
}

.nl-text {
  margin: 0 0 20px;
  max-width: 620px;

  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.65;

  color: #4a4a55;
}

/* ---------- Animated logo, bottom left inside the card ---------- */
/* The logo gently floats with a soft breathing glow; hovering speeds
   it up. All motion is disabled for users who prefer reduced motion
   (see the keyframes + media query at the bottom of this file). */

.nl-logo-anim {
  width: fit-content;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 26px;

  display: block;
  line-height: 0;

  -webkit-user-select: none;
  user-select: none;

  animation: nl-logo-float 3.6s ease-in-out infinite;
  transform-origin: center;
}

.nl-logo-anim img {
  display: block;

  width: clamp(128px, 11vw, 160px);
  height: auto;

  filter: drop-shadow(0 6px 16px rgba(30, 114, 209, 0.22));

  animation: nl-logo-glow 3.6s ease-in-out infinite;
}

/* Hover: speed the float up and deepen the glow */
.nl-logo-anim:hover {
  animation-duration: 1.5s;
}

.nl-logo-anim:hover img {
  filter: drop-shadow(0 8px 22px rgba(30, 114, 209, 0.42));
}

.nl-logo-anim:focus-visible {
  outline: 2px solid var(--nl-accent);
  outline-offset: 4px;
  border-radius: 6px;
}

/* ---------- Logo animation keyframes ---------- */

@keyframes nl-logo-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-6px) scale(1.02);
  }
}

@keyframes nl-logo-glow {
  0%,
  100% {
    filter: drop-shadow(0 6px 16px rgba(30, 114, 209, 0.22));
  }

  50% {
    filter: drop-shadow(0 10px 26px rgba(30, 114, 209, 0.42));
  }
}

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

@media (max-width: 900px) {
  .nl-card {
    grid-template-columns: 1fr;
  }

  .nl-sidebar {
    padding: 28px 22px;
  }

  .nl-title {
    margin-bottom: 20px;
  }

  .nl-tab {
    padding: 15px 15px;
    font-size: 0.98rem;
  }

  .nl-panel {
    padding: 22px 20px 26px;
  }

  .nl-logo-anim {
    margin-bottom: 14px;
  }

  .nl-logo-anim img {
    width: clamp(112px, 24vw, 140px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nl-tab,
  .nl-media {
    transition: none;
  }

  .nl-logo-anim,
  .nl-logo-anim img {
    animation: none;
  }

  .nl-logo-anim img {
    filter: drop-shadow(0 6px 14px rgba(30, 114, 209, 0.18));
  }
}