/* NLGstudio UI v2 — phone cards + autoplay carousels */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --primary-color: #17175e;
  --primary-dark-color: #0d103f;
  --primary-hover-color: #285bb6;
  --secondary-color: #285bb6;
  --accent-cyan: #38bdf8;
  --base-color: #25283a;
  --muted-color: #697086;
  --light-gray: #f5f6fb;
  --line-color: #e3e6f0;
  --white: #ffffff;
  --black: #07080d;
  --success: #22c55e;
  --danger: #dc2626;

  --base-font: 'Inter', sans-serif;
  --title-font: 'Playfair Display', serif;
  --header-height: clamp(68px, 7vw, 80px);
  --container: 1180px;
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --shadow-sm: 0 8px 24px rgba(13, 16, 63, 0.08);
  --shadow-lg: 0 26px 70px rgba(13, 16, 63, 0.16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--white);
  color: var(--base-color);
  font-family: var(--base-font);
  font-size: clamp(0.96rem, 0.25vw + 0.9rem, 1.06rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: var(--primary-color); text-decoration: none; }
a, button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(56, 189, 248, 0.85); outline-offset: 4px; }
::selection { background: var(--primary-color); color: var(--white); }

.main-content-wrapper { flex: 1 0 auto; }
.container { max-width: var(--container); }

.sectionSpace {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto clamp(2.25rem, 6vw, 5rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: clamp(1.25rem, 4vw, 3rem);
}
.lightBg {
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.08), transparent 30%),
    var(--light-gray);
}
.innerPageSection { margin-top: 0; }

.xlTitle, .mdTitle, .smTitle, .xsTitle {
  margin: 0;
  font-family: var(--title-font);
  color: var(--primary-dark-color);
  overflow-wrap: anywhere;
}
.xlTitle { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: 1.03; }
.mdTitle { font-size: clamp(2.1rem, 4.8vw, 4rem); line-height: 1.08; }
.smTitle { font-size: clamp(1.4rem, 2.7vw, 2.2rem); line-height: 1.16; }
.xsTitle { font-family: var(--base-font); font-size: 1.1rem; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

.sectionHeading {
  max-width: 760px;
  margin: 0 auto clamp(1.75rem, 4vw, 3rem);
  text-align: center;
}
.sectionHeading p { margin: 0.8rem auto 0; color: var(--muted-color); }
.sectionEyebrow {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--primary-hover-color);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.sectionAction { display: flex; justify-content: center; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.emptyState { margin: 1rem auto; color: var(--muted-color); text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(13, 16, 63, 0.12); }
.btn-primary { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-hover-color); border-color: var(--primary-hover-color); color: var(--white); }
.btn-outline-primary { background: transparent; border-color: rgba(23, 23, 94, 0.45); color: var(--primary-color); }
.btn-outline-primary:hover, .btn-outline-primary:focus { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }

/* Header */
.headerCol {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(13, 16, 63, 0.94);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
  backdrop-filter: blur(16px);
}
.header-inner-container {
  width: min(calc(100% - 2rem), var(--container));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brandLogo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brandLogo img { width: 46px; height: 46px; object-fit: contain; border-radius: 12px; }
.siteTitle { color: var(--white); font-family: var(--title-font); font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 800; }
.headerRight { margin-left: auto; display: flex; align-items: center; }
.navCol .navList { display: flex; align-items: center; gap: 0.2rem; }
.navCol a {
  display: block;
  padding: 0.62rem 0.82rem;
  border-radius: 0.65rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 180ms ease, color 180ms ease;
}
.navCol a:hover, .navCol a:focus-visible { background: rgba(255,255,255,0.12); color: var(--white); }

.navToggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  cursor: pointer;
}
.navToggle span {
  position: absolute;
  left: 12px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 220ms ease, opacity 180ms ease, top 220ms ease;
}
.navToggle .bar1 { top: 15px; }
.navToggle .bar2 { top: 23px; }
.navToggle .bar3 { top: 31px; }
.navToggle.open .bar1 { top: 23px; transform: rotate(45deg); }
.navToggle.open .bar2 { opacity: 0; }
.navToggle.open .bar3 { top: 23px; transform: rotate(-45deg); }

.navCollapseCol {
  display: none;
  position: fixed;
  z-index: 990;
  top: var(--header-height);
  right: 0;
  width: min(88vw, 360px);
  height: calc(100dvh - var(--header-height));
  padding: 1rem;
  background: rgba(13,16,63,0.985);
  box-shadow: -20px 25px 50px rgba(0,0,0,0.22);
  transform: translateX(105%);
  transition: transform 240ms ease;
  overflow-y: auto;
}
.navCollapseCol.show-menu { transform: translateX(0); }
.navCollapseCol ul { display: grid; gap: 0.35rem; }
.navCollapseCol a { display: block; padding: 0.9rem 1rem; border-radius: 0.75rem; color: var(--white); font-weight: 600; }
.navCollapseCol a:hover { background: rgba(255,255,255,0.1); }

/* Page banner */
.page-banner {
  padding: calc(var(--header-height) + clamp(2.2rem, 5vw, 4rem)) 1rem clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(circle at 80% 20%, rgba(56,189,248,0.18), transparent 35%),
    linear-gradient(145deg, var(--primary-dark-color), var(--primary-color));
  color: var(--white);
}
.page-banner__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.25rem; }
.page-banner__titlewrap { grid-column: 2; text-align: center; }
.page-banner__title { margin: 0; color: var(--white); font-family: var(--title-font); font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1.05; }
.page-banner__desc { margin: 0.7rem auto 0; max-width: 650px; color: rgba(255,255,255,0.75); }
.page-banner__back { grid-column: 1; margin: 0; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.24); color: var(--white); white-space: nowrap; }
.page-banner__back:hover { background: var(--white); color: var(--primary-dark-color); }
.banner-subline { margin-top: 0.75rem; font-weight: 700; }

/* Homepage hero */
.splitHero { padding: calc(var(--header-height) + clamp(2rem, 6vw, 5rem)) 1rem clamp(2.5rem, 6vw, 5rem); }
.splitHero__card {
  overflow: hidden;
  padding: clamp(1.1rem, 3vw, 2rem);
  border: 1px solid var(--line-color);
  border-radius: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 12% 12%, rgba(56,189,248,0.11), transparent 30%),
    linear-gradient(140deg, #fff, #f7f8fd);
  box-shadow: var(--shadow-lg);
}
.splitHero__imageWrap {
  aspect-ratio: 1 / 1;
  max-width: 430px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: clamp(1.25rem, 4vw, 2.5rem);
  background: #eef0f7;
}
.splitHero__image { width: 100%; height: 100%; object-fit: cover; }
.splitHero__content { padding: clamp(0.5rem, 3vw, 2.5rem); }
.splitHero__title { margin: 0; color: var(--primary-dark-color); font-family: var(--title-font); font-size: clamp(2.2rem, 4.8vw, 4.5rem); line-height: 1.03; }
.splitHero__lead { margin: 1.25rem 0 0; max-width: 640px; color: var(--muted-color); font-size: clamp(1rem, 1.5vw, 1.2rem); }
.splitHero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }

/* Shared autoplay carousel, with horizontal-scroll fallback before JS initializes it */
.autoCarousel {
  --item-width: 300px;
  --track-height: 470px;
  --duration: 20s;
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.7rem 0;
  scrollbar-width: thin;
  mask-image: linear-gradient(to right, transparent, #000 5% 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5% 95%, transparent);
}
.autoCarousel__list { display: flex; gap: 1.15rem; width: max-content; min-width: 100%; padding: 0.2rem 5%; }
.autoCarousel__item { flex: 0 0 var(--item-width); display: flex; align-items: stretch; justify-content: center; transition: filter 300ms ease, opacity 300ms ease, transform 300ms ease; }
.autoCarousel.is-ready { overflow: hidden; }
.autoCarousel.is-ready .autoCarousel__list { position: relative; display: block; width: 100%; min-width: 0; height: var(--track-height); padding: 0; }
.autoCarousel.is-ready .autoCarousel__item {
  position: absolute;
  top: 0;
  left: 100%;
  width: var(--item-width);
  height: var(--track-height);
  animation: carouselRun var(--duration) linear infinite;
  animation-delay: var(--delay);
  will-change: left;
}
.autoCarousel:hover .autoCarousel__item,
.autoCarousel:focus-within .autoCarousel__item { animation-play-state: paused; }
.autoCarousel--focus:hover .autoCarousel__item { filter: saturate(0.55); opacity: 0.72; }
.autoCarousel--focus:hover .autoCarousel__item:hover,
.autoCarousel--focus .autoCarousel__item:focus-within { filter: none; opacity: 1; transform: translateY(-4px); }
.autoCarousel--devices { --item-width: 270px; --track-height: 468px; }
.autoCarousel--reviews { --item-width: 340px; --track-height: 300px; }
.autoCarousel--blogs { --item-width: 360px; --track-height: 330px; }
@keyframes carouselRun { from { left: 100%; } to { left: calc(var(--item-width) * -1.15); } }

/* Phone-style Games and Apps cards */
.deviceCard {
  position: relative;
  display: block;
  width: 250px;
  height: 450px;
  padding: 7px;
  border: 2px solid #292929;
  border-radius: 36px;
  background: #050505;
  color: var(--white);
  box-shadow: 4px 12px 32px rgba(0,0,0,0.26);
  isolation: isolate;
  transition: transform 260ms ease, box-shadow 260ms ease;
}
.deviceCard:hover, .deviceCard:focus-visible { color: var(--white); transform: translateY(-5px); box-shadow: 8px 18px 42px rgba(0,0,0,0.32); }
.deviceCard__screen {
  --device-a: #ff0038;
  --device-b: #c900a5;
  --device-c: #004ac2;
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 27px;
  background-image: linear-gradient(to right bottom, var(--device-a), #ff006e, var(--device-b), #5c35d1, var(--device-c), #020812);
  background-size: 220% 220%;
  background-position: 0 0;
  transition: background-position 650ms ease-out;
}
.autoCarousel__item:nth-child(3n+2) .deviceCard__screen { --device-a: #ff7a18; --device-b: #d4145a; --device-c: #5020a8; }
.autoCarousel__item:nth-child(3n+3) .deviceCard__screen { --device-a: #00c6ff; --device-b: #5b40d6; --device-c: #101853; }
.deviceCard:hover .deviceCard__screen,
.deviceCard:focus-visible .deviceCard__screen { background-position: 100% 100%; }
.deviceCard__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.32; transform: scale(1.03); transition: opacity 500ms ease, transform 650ms ease; }
.deviceCard:hover .deviceCard__art, .deviceCard:focus-visible .deviceCard__art { opacity: 0.2; transform: scale(1.1); }
.deviceCard__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.08), rgba(0,0,0,0.2) 42%, rgba(0,0,0,0.76)); }
.deviceCard__content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  padding: 3.5rem 1.25rem 1.6rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 500ms cubic-bezier(.2,.75,.25,1);
}
.deviceCard__eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.78; }
.deviceCard__title { margin-top: 0.35rem; font-family: var(--title-font); font-size: 1.75rem; font-weight: 800; line-height: 1.08; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.deviceCard__status { margin-top: 0.65rem; font-size: 0.73rem; opacity: 0.82; }
.deviceCard__hidden { display: block; max-height: 0; margin-top: 0; overflow: hidden; opacity: 0; transform: translateY(14px); transition: max-height 450ms ease, opacity 300ms ease, transform 420ms ease, margin 420ms ease; }
.deviceCard__description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; font-size: 0.83rem; line-height: 1.5; color: rgba(255,255,255,0.88); }
.deviceCard__action { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 1rem; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.deviceCard:hover .deviceCard__content, .deviceCard:focus-visible .deviceCard__content { transform: translateY(-16px); }
.deviceCard:hover .deviceCard__hidden, .deviceCard:focus-visible .deviceCard__hidden { max-height: 190px; margin-top: 1.1rem; opacity: 1; transform: translateY(0); }
.deviceCard__top { position: absolute; z-index: 4; top: -1px; left: 50%; width: 36%; height: 20px; transform: translateX(-50%); border-radius: 0 0 11px 11px; background: #050505; }
.deviceCard__speaker { position: absolute; top: 3px; left: 50%; width: 42%; height: 2px; transform: translateX(-50%); border-radius: 4px; background: #202020; }
.deviceCard__camera { position: absolute; top: 7px; left: 15%; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.07); }
.deviceCard__camera span { position: absolute; inset: 2px; border-radius: 50%; background: rgba(20,80,255,0.25); }
.deviceCard__side { position: absolute; z-index: -1; width: 3px; border-radius: 2px; background: linear-gradient(to right, #111, #5a5a5a); }
.deviceCard__side--right { right: -5px; top: 30%; height: 46px; }
.deviceCard__side--left-one, .deviceCard__side--left-two { left: -5px; height: 31px; transform: scaleX(-1); }
.deviceCard__side--left-one { top: 26%; }
.deviceCard__side--left-two { top: 36%; }

/* Testimonials */
.reviewCard {
  width: 100%;
  min-height: 270px;
  padding: 1.7rem;
  border: 1px solid #e6e8ef;
  border-radius: 1rem;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 20px 34px -24px rgba(5,5,5,0.35);
}
.reviewCard__header { display: flex; align-items: center; gap: 1rem; }
.reviewCard__avatar { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 50%; object-fit: cover; background: #dce6ff; box-shadow: 0 0 0 4px rgba(23,23,94,0.08); }
.reviewCard__meta { min-width: 0; }
.reviewCard__name { margin: 0; color: #374151; font-size: 1.05rem; font-weight: 700; }
.reviewCard__rating { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; margin-top: 0.35rem; }
.ratingStars { position: relative; display: inline-block; color: #d1d5db; font-size: 1.08rem; line-height: 1; letter-spacing: 0.08em; white-space: nowrap; }
.ratingStars::before, .ratingStars::after { content: '★★★★★'; }
.ratingStars::after { position: absolute; top: 0; left: 0; width: var(--rating-percent, 0%); max-width: 100%; overflow: hidden; color: var(--primary-hover-color); }
.reviewCard__message { display: -webkit-box; margin: 1.15rem 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 6; color: #6b7280; font-size: 0.92rem; line-height: 1.65; }

/* Blog cards */
.blogCard {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid #e7e8ee;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 8px 26px rgba(17,24,39,0.05);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.blogCard:hover { transform: translateY(-4px); box-shadow: 12px 18px 38px rgba(17,24,39,0.1); }
.blogCard__dateWrap { display: flex; padding: 0.6rem; background: #fafafa; }
.blogCard__date { display: flex; align-items: center; justify-content: space-between; gap: 0.85rem; writing-mode: vertical-lr; transform: rotate(180deg); color: #111827; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.blogCard__separator { width: 1px; flex: 1 1 auto; background: rgba(17,24,39,0.12); }
.blogCard__content { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; justify-content: space-between; }
.blogCard__info { flex: 1 1 auto; padding: 1.15rem; border-left: 1px solid rgba(17,24,39,0.08); }
.blogCard__author { color: var(--muted-color); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.blogCard__title { margin: 0.45rem 0 0; font-size: 1.12rem; line-height: 1.3; font-weight: 800; text-transform: uppercase; }
.blogCard__title a { color: #111827; }
.blogCard__title a:hover { color: var(--primary-hover-color); }
.blogCard__description { display: -webkit-box; margin: 0.65rem 0 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 5; color: #4b5563; font-size: 0.82rem; line-height: 1.55; }
.blogCard__action { display: block; padding: 0.78rem 1.1rem; background: var(--primary-color); color: var(--white); text-align: center; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; transition: background-color 160ms ease; }
.blogCard__action:hover { background: var(--primary-hover-color); color: var(--white); }

/* Legacy / detail cards */
.cardStyle1 { padding: clamp(1.4rem, 4vw, 2.4rem); border: 1px solid var(--line-color); border-radius: 1.5rem; background: var(--white); box-shadow: var(--shadow-sm); transition: transform 180ms ease, box-shadow 180ms ease; }
.cardStyle1:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cardStyle1 img { max-height: 220px; width: auto; margin-inline: auto; object-fit: contain; }
.keySkillCard { height: 100%; padding: 1.4rem; border: 1px solid var(--line-color); border-radius: 1rem; background: var(--white); text-align: center; }
.progress { background: #e8eaf1; border-radius: 999px; }
.progress-bar { background: var(--primary-color); }

/* Detail and long-form content */
.detail-img-container { display: flex; justify-content: center; align-items: center; }
.detail-img { width: auto; max-width: min(100%, 520px); max-height: 360px; object-fit: contain; border-radius: 1.2rem !important; box-shadow: var(--shadow-sm); }
.app-content, .blog-content, .policy-content { max-width: 850px; margin: 2rem auto 0; color: #3f4558; }
.app-content h2, .app-content h3, .blog-content h2, .blog-content h3, .policy-content h2, .policy-content h3 { margin-top: 1.8em; color: var(--primary-dark-color); font-family: var(--title-font); line-height: 1.2; }
.app-content img, .blog-content img, .policy-content img { margin: 1.5rem auto; border-radius: 1rem; }
.app-content ul, .blog-content ul, .policy-content ul { padding-left: 1.2rem; list-style: disc; }
.privacy-policy { padding-top: clamp(2rem,5vw,4rem) !important; padding-bottom: clamp(3rem,6vw,5rem) !important; }

/* Forms */
.form-container { max-width: 760px; margin: 0 auto 4rem; padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px solid var(--line-color); border-radius: 1.5rem; background: var(--white); box-shadow: var(--shadow-sm); }
#contactForm input[type='text'], #contactForm input[type='email'], #contactForm textarea,
.pf-input, .newsletter_card__form input {
  width: 100%;
  border: 1px solid #d8dce8;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--base-color);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
#contactForm input[type='text'], #contactForm input[type='email'], #contactForm textarea, .pf-input { padding: 0.78rem 0.9rem; }
#contactForm input:focus, #contactForm textarea:focus, .pf-input:focus, .newsletter_card__form input:focus { border-color: var(--primary-hover-color); outline: 0; box-shadow: 0 0 0 4px rgba(40,91,182,0.12); }
.form-label, .pf-field label { display: block; margin-bottom: 0.4rem; color: var(--primary-dark-color); font-size: 0.86rem; font-weight: 700; }

.pf-wrapper { max-width: 760px; margin: 0 auto; }
.pf-card { padding: clamp(1.4rem,4vw,2.6rem); border: 1px solid var(--line-color); border-radius: 1.5rem; background: var(--white); box-shadow: var(--shadow-sm); }
.pf-title { margin: 0; color: var(--primary-dark-color); font-family: var(--title-font); font-size: clamp(1.8rem,3vw,2.6rem); }
.pf-intro { margin: 0.5rem 0 1.5rem; color: var(--muted-color); }
.pf-field { margin-bottom: 1rem; }
.pf-textarea { min-height: 130px; resize: vertical; }
.pf-submit { width: 100%; }
.pf-messages { margin-bottom: 1rem; }
.pf-message { padding: 0.8rem 1rem; border-radius: 0.75rem; font-size: 0.9rem; }
.pf-message-success { background: #ecfdf3; color: #166534; }
.pf-message-error { background: #fef2f2; color: #991b1b; }

.newsletter_card { max-width: 700px; padding: clamp(1.5rem,5vw,3rem); border-radius: 1.5rem; background: var(--white); box-shadow: var(--shadow-sm); text-align: center; }
.newsletter_card__title { display: block; margin: 0; color: var(--primary-dark-color); font-family: var(--title-font); font-size: clamp(2rem,4vw,3.2rem); font-weight: 800; }
.newsletter_card__subtitle { margin: 0.5rem 0 1.4rem; color: var(--muted-color); }
.newsletter_card__form { display: flex; gap: 0.65rem; }
.newsletter_card__form input { min-width: 0; flex: 1 1 auto; padding: 0.8rem 1rem; }
.newsletter_sign-up { flex: 0 0 auto; }

/* Overlays */
.fsOverlay { position: fixed; inset: 0; z-index: 1500; display: none; place-items: center; padding: 1rem; background: rgba(7,8,13,0.68); backdrop-filter: blur(8px); }
.fsOverlay.is-open { display: grid; }
.fsOverlay__panel { width: min(100%, 500px); padding: clamp(1.4rem,5vw,2.4rem); border-radius: 1.4rem; background: var(--white); box-shadow: 0 30px 80px rgba(0,0,0,0.28); text-align: center; }
.fsOverlay__title { margin: 0; color: var(--primary-dark-color); font-family: var(--title-font); font-size: 2rem; }
.fsOverlay__text { margin: 0.7rem 0 1.4rem; color: var(--muted-color); }
.fsOverlay__msg { margin: 0.4rem 0; padding: 0.7rem; border-radius: 0.7rem; }
.fsOverlay__msg.is-success { background: #ecfdf3; color: #166534; }
.fsOverlay__msg.is-error { background: #fef2f2; color: #991b1b; }
.fsOverlay__msg.is-info { background: #eff6ff; color: #1e40af; }
body.has-overlay { overflow: hidden; }

/* Cookie banner and modal */
.cookie-bar { position: fixed; z-index: 1300; right: 1rem; bottom: 1rem; left: 1rem; }
.cookie-bar__inner { width: min(100%, 980px); margin: 0 auto; display: flex; align-items: center; gap: 1.25rem; padding: 1.1rem 1.25rem; border: 1px solid rgba(255,255,255,0.16); border-radius: 1rem; background: rgba(13,16,63,0.96); color: var(--white); box-shadow: 0 20px 60px rgba(0,0,0,0.28); backdrop-filter: blur(12px); }
.cookie-bar__content { flex: 1 1 auto; }
.cookie-bar__title { font-weight: 800; }
.cookie-bar__text { margin-top: 0.15rem; color: rgba(255,255,255,0.78); font-size: 0.82rem; }
.cookie-bar__link { color: #a8dcff; text-decoration: underline; }
.cookie-bar__actions { display: flex; flex: 0 0 auto; gap: 0.5rem; }
.cookie-bar__btn { min-height: 40px; padding: 0.55rem 0.9rem; font-size: 0.8rem; }
.cookie-bar .btn-outline-primary { border-color: rgba(255,255,255,0.4); color: var(--white); }
.cookie-modal-overlay { position: fixed; inset: 0; z-index: 1390; background: rgba(7,8,13,0.62); backdrop-filter: blur(6px); }
.cookie-modal { position: fixed; z-index: 1400; top: 50%; left: 50%; width: min(calc(100% - 2rem), 620px); max-height: calc(100dvh - 2rem); overflow-y: auto; transform: translate(-50%,-50%); border-radius: 1.25rem; background: var(--white); box-shadow: 0 30px 90px rgba(0,0,0,0.3); }
.cookie-modal__header, .cookie-modal__body, .cookie-modal__actions { padding: 1.25rem; }
.cookie-modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line-color); }
.cookie-modal__title { color: var(--primary-dark-color); font-family: var(--title-font); font-size: 1.6rem; font-weight: 800; }
.cookie-modal__subtitle { margin-top: 0.2rem; color: var(--muted-color); font-size: 0.82rem; }
.cookie-modal__close { width: 40px; height: 40px; flex: 0 0 auto; border: 0; border-radius: 50%; background: var(--light-gray); color: var(--primary-dark-color); cursor: pointer; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line-color); }
.cookie-row:last-child { border-bottom: 0; }
.cookie-row__name { font-weight: 700; }
.cookie-row__desc { margin-top: 0.2rem; color: var(--muted-color); font-size: 0.78rem; }
.cookie-modal__actions { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border-top: 1px solid var(--line-color); }
.cookie-modal__actionsRight { display: flex; gap: 0.5rem; }
.switch { position: relative; width: 48px; height: 26px; flex: 0 0 auto; }
.switch input { width: 0; height: 0; opacity: 0; }
.switch .slider { position: absolute; inset: 0; border-radius: 999px; background: #cbd0dc; cursor: pointer; transition: background-color 180ms ease; }
.switch .slider::before { content: ''; position: absolute; width: 20px; height: 20px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.18); transition: transform 180ms ease; }
.switch input:checked + .slider { background: var(--primary-hover-color); }
.switch input:checked + .slider::before { transform: translateX(22px); }
.switch input:disabled + .slider { opacity: 0.7; cursor: not-allowed; }

/* Footer */
.footerCol { margin-top: auto; padding: clamp(2.5rem,5vw,4rem) 1rem 1.5rem; background: var(--primary-dark-color); color: var(--white); text-align: center; }
.share { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; }
.share-btn { --brand: #fff; position: relative; display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgba(255,255,255,0.14); border-radius: 50%; background: rgba(255,255,255,0.08); transition: transform 180ms ease, background-color 180ms ease; }
.share-btn:hover { transform: translateY(-4px); background: var(--brand); }
.icon-img { width: 22px !important; height: 22px !important; object-fit: contain; }
.tooltip { position: absolute; bottom: calc(100% + 10px); left: 50%; display: flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.6rem; border-radius: 0.65rem; background: #fff; color: #111827; opacity: 0; pointer-events: none; transform: translate(-50%, 7px); transition: opacity 160ms ease, transform 160ms ease; box-shadow: var(--shadow-sm); white-space: nowrap; }
.share-btn:hover .tooltip, .share-btn:focus-visible .tooltip { opacity: 1; transform: translate(-50%,0); }
.tooltip-card { display: block; width: 24px; height: 24px; overflow: hidden; border-radius: 50%; }
.avatar-img { width: 100% !important; height: 100% !important; object-fit: cover; }
.username { font-size: 0.72rem; font-weight: 700; }
.copyrightCol { color: rgba(255,255,255,0.68); font-size: 0.78rem; }
.copyrightCol p { margin: 0.35rem 0; }
.copyrightCol a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal br { display: none; }
.footer-legal a + a::before { content: ' · '; color: rgba(255,255,255,0.35); text-decoration: none; }

.paginationWrap { width: min(calc(100% - 2rem), var(--container)); margin: -1rem auto 4rem; }
.page-link { color: var(--primary-color); }
.page-item.active .page-link { background: var(--primary-color); border-color: var(--primary-color); }

@media (max-width: 992px) {
  .navCol { display: none; }
  .navToggle, .navCollapseCol { display: block; }
  .page-banner__inner { grid-template-columns: 1fr; }
  .page-banner__back, .page-banner__titlewrap { grid-column: 1; }
  .page-banner__back { justify-self: start; }
  .page-banner__titlewrap { text-align: left; }
  .splitHero__content { text-align: center; }
  .splitHero__lead { margin-inline: auto; }
  .splitHero__actions { justify-content: center; }
}

@media (max-width: 700px) {
  .sectionSpace { width: min(calc(100% - 1rem), var(--container)); padding: 1.5rem 0.85rem; border-radius: 1.25rem; }
  .header-inner-container { width: calc(100% - 1rem); }
  .siteTitle { font-size: 1.18rem; }
  .brandLogo img { width: 42px; height: 42px; }
  .splitHero { padding-inline: 0.5rem; }
  .splitHero__card { padding: 0.8rem; }
  .splitHero__actions .btn { width: 100%; }
  .autoCarousel { mask-image: linear-gradient(to right, transparent, #000 2% 98%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 2% 98%, transparent); }
  .autoCarousel--devices { --item-width: 252px; --track-height: 442px; }
  .deviceCard { width: 232px; height: 425px; }
  .autoCarousel--reviews { --item-width: min(310px, 86vw); --track-height: 315px; }
  .autoCarousel--blogs { --item-width: min(330px, 88vw); --track-height: 342px; }
  .newsletter_card__form { flex-direction: column; }
  .newsletter_sign-up { width: 100%; }
  .cookie-bar { right: 0.5rem; bottom: 0.5rem; left: 0.5rem; }
  .cookie-bar__inner { align-items: stretch; flex-direction: column; }
  .cookie-bar__actions, .cookie-modal__actions, .cookie-modal__actionsRight { width: 100%; flex-direction: column; }
  .cookie-bar__actions .btn, .cookie-modal__actions .btn { width: 100%; }
  .reviewCard { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .autoCarousel { mask-image: none; -webkit-mask-image: none; }
}

/* ========================================================================== 
   NLGstudio UI v3 — responsive scale + accessible marquee carousels
   These rules intentionally override the v2 sizing/animation model above.
   ========================================================================== */

:root {
  --header-height: clamp(72px, 5.4vw, 88px);
  --container: 1480px;
  --page-gutter: clamp(0.75rem, 2.5vw, 2.75rem);
  --section-gap: clamp(2rem, 4.5vw, 4.75rem);
}

html {
  min-width: 0;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  font-size: clamp(1rem, 0.22vw + 0.96rem, 1.12rem);
}

.main-content-wrapper,
.container,
.sectionSpace,
.splitHero__card,
.splitHero__row,
.splitHero__content,
.autoCarousel,
.autoCarousel__list,
.autoCarousel__item {
  min-width: 0;
}

.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container));
  max-width: var(--container) !important;
  margin-inline: auto;
  padding-inline: 0;
}

.sectionSpace {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container));
  margin: 0 auto var(--section-gap);
  padding: clamp(2.2rem, 3.7vw, 4.5rem) clamp(1.25rem, 3.7vw, 4.5rem);
  border-radius: clamp(1.5rem, 2.5vw, 2.75rem);
}

.sectionHeading {
  max-width: 900px;
  margin-bottom: clamp(1.6rem, 3vw, 2.8rem);
}

.sectionHeading p {
  max-width: 760px;
  font-size: clamp(0.98rem, 0.35vw + 0.93rem, 1.12rem);
  line-height: 1.65;
}

.xlTitle { font-size: clamp(2.65rem, 5.4vw, 5.4rem); }
.mdTitle { font-size: clamp(2.25rem, 4.1vw, 4.3rem); }
.smTitle { font-size: clamp(1.55rem, 2.2vw, 2.45rem); }

.btn {
  min-height: 48px;
  padding: 0.78rem 1.45rem;
}

/* Larger, better balanced desktop header */
.header-inner-container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container));
  gap: clamp(0.7rem, 1.5vw, 1.25rem);
}

.brandLogo img {
  width: clamp(44px, 3.4vw, 54px);
  height: clamp(44px, 3.4vw, 54px);
}

.siteTitle {
  font-size: clamp(1.32rem, 1.65vw, 1.9rem);
}

.navCol .navList { gap: clamp(0.12rem, 0.4vw, 0.38rem); }
.navCol a {
  padding: 0.68rem clamp(0.7rem, 0.75vw, 1rem);
  font-size: clamp(0.9rem, 0.25vw + 0.87rem, 1rem);
}

/* Homepage hero now uses more of the viewport without becoming oversized. */
.splitHero {
  padding: calc(var(--header-height) + clamp(1.75rem, 4vw, 4.25rem)) var(--page-gutter) clamp(2rem, 4vw, 4rem);
}

.splitHero__container {
  width: min(100%, var(--container));
}

.splitHero__card {
  padding: clamp(1rem, 2vw, 2.15rem);
  border-radius: clamp(1.5rem, 2.4vw, 2.75rem);
}

.splitHero__row {
  --bs-gutter-x: clamp(1.5rem, 3vw, 3.5rem);
  --bs-gutter-y: clamp(1.5rem, 3vw, 3rem);
}

.splitHero__imageWrap {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  padding: clamp(0.75rem, 1.5vw, 1.25rem);
  border: 1px solid rgba(23, 23, 94, 0.06);
}

.splitHero__image {
  object-fit: contain;
  border-radius: clamp(0.8rem, 1.5vw, 1.35rem);
}

.splitHero__content {
  padding: clamp(0.4rem, 2.4vw, 2.5rem) clamp(0rem, 1.7vw, 1.6rem);
}

.splitHero__title {
  max-width: 900px;
  font-size: clamp(2.4rem, 4.25vw, 4.85rem);
  line-height: 1.02;
  text-wrap: balance;
}

.splitHero__lead {
  max-width: 760px;
  font-size: clamp(1rem, 0.45vw + 0.95rem, 1.22rem);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Carousel v3
   Desktop/laptop: one seamless transform marquee with even spacing.
   Mobile/zoomed layouts: native horizontal scroll + scroll snap.
   One-item carousels are centered rather than faking repeated copies.
   -------------------------------------------------------------------------- */
.autoCarousel {
  --item-width: 360px;
  --carousel-gap: clamp(1rem, 1.55vw, 1.65rem);
  --loop-distance: 0px;
  --duration: 24s;
  width: 100%;
  overflow: hidden;
  padding: clamp(0.7rem, 1.2vw, 1.1rem) 0 clamp(1.1rem, 1.8vw, 1.65rem);
  scrollbar-gutter: stable;
  mask-image: linear-gradient(to right, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3.5%, #000 96.5%, transparent 100%);
}

.autoCarousel__list,
.autoCarousel.is-ready .autoCarousel__list {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: var(--carousel-gap);
  width: max-content;
  min-width: 100%;
  height: auto;
  padding: 0 clamp(0.35rem, 1vw, 0.85rem);
  transform: translate3d(0, 0, 0);
}

.autoCarousel__item,
.autoCarousel.is-ready .autoCarousel__item {
  position: relative;
  inset: auto;
  left: auto;
  top: auto;
  width: var(--item-width);
  height: auto;
  flex: 0 0 var(--item-width);
  animation: none;
  animation-delay: 0s;
  will-change: auto;
}

.autoCarousel.is-marquee .autoCarousel__list {
  animation: carouselMarquee var(--duration) linear infinite;
  will-change: transform;
}

.autoCarousel.is-marquee:hover .autoCarousel__list,
.autoCarousel.is-marquee:focus-within .autoCarousel__list {
  animation-play-state: paused;
}

.autoCarousel--focus:hover .autoCarousel__item {
  filter: saturate(0.72);
  opacity: 0.76;
  transform: scale(0.985);
}

.autoCarousel--focus:hover .autoCarousel__item:hover,
.autoCarousel--focus .autoCarousel__item:focus-within {
  filter: none;
  opacity: 1;
  transform: translateY(-6px) scale(1);
}

.autoCarousel.is-static {
  mask-image: none;
  -webkit-mask-image: none;
}

.autoCarousel.is-static .autoCarousel__list {
  width: 100%;
  justify-content: center;
  padding-inline: 0;
}

.autoCarousel.is-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-inline: max(0.15rem, env(safe-area-inset-left));
  padding-bottom: 1rem;
  scroll-padding-inline: 0.35rem;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  mask-image: none;
  -webkit-mask-image: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(23, 23, 94, 0.28) transparent;
}

.autoCarousel.is-scroll .autoCarousel__list {
  min-width: max-content;
  padding-inline: 0.35rem;
}

.autoCarousel.is-scroll .autoCarousel__item {
  scroll-snap-align: center;
  scroll-snap-stop: normal;
}

.autoCarousel.is-scroll::-webkit-scrollbar { height: 7px; }
.autoCarousel.is-scroll::-webkit-scrollbar-track { background: transparent; }
.autoCarousel.is-scroll::-webkit-scrollbar-thumb { background: rgba(23, 23, 94, 0.25); border-radius: 999px; }

.autoCarousel--devices {
  --item-width: clamp(280px, 19vw, 315px);
  --track-height: auto;
}

.autoCarousel--reviews {
  --item-width: clamp(360px, 27vw, 430px);
  --track-height: auto;
}

.autoCarousel--blogs {
  --item-width: clamp(390px, 29vw, 460px);
  --track-height: auto;
}

@keyframes carouselMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(0px - var(--loop-distance)), 0, 0); }
}

/* Device cards scale with the carousel rather than being hard-coded smaller. */
.deviceCard {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 9;
  max-height: 560px;
  padding: 7px;
  border-radius: clamp(30px, 2.5vw, 40px);
}

.deviceCard__screen {
  border-radius: calc(clamp(30px, 2.5vw, 40px) - 9px);
}

.deviceCard__content {
  padding: clamp(3.3rem, 5vw, 4.1rem) clamp(1.05rem, 1.5vw, 1.45rem) clamp(1.45rem, 2vw, 1.9rem);
}

.deviceCard__eyebrow { font-size: clamp(0.65rem, 0.14vw + 0.62rem, 0.75rem); }
.deviceCard__title { font-size: clamp(1.65rem, 1.35vw, 2rem); }
.deviceCard__status { font-size: clamp(0.72rem, 0.11vw + 0.69rem, 0.8rem); }
.deviceCard__description { font-size: clamp(0.8rem, 0.12vw + 0.77rem, 0.89rem); }

/* Review/blog cards now fill their carousel cells and maintain consistent heights. */
.reviewCard {
  height: 100%;
  min-height: 300px;
  padding: clamp(1.45rem, 1.8vw, 1.9rem);
  border-radius: 1.25rem;
}

.reviewCard__avatar {
  width: clamp(58px, 4vw, 72px);
  height: clamp(58px, 4vw, 72px);
  flex-basis: clamp(58px, 4vw, 72px);
}

.reviewCard__name { font-size: clamp(1rem, 0.24vw + 0.96rem, 1.15rem); }
.reviewCard__message { font-size: clamp(0.9rem, 0.18vw + 0.86rem, 1rem); }

.blogCard {
  height: 100%;
  min-height: 330px;
  border-radius: 0.8rem;
}

.blogCard__info { padding: clamp(1.15rem, 1.6vw, 1.5rem); }
.blogCard__title { font-size: clamp(1.08rem, 0.38vw + 1.01rem, 1.28rem); }
.blogCard__description { font-size: clamp(0.82rem, 0.18vw + 0.79rem, 0.93rem); }
.blogCard__action { padding: 0.9rem 1.25rem; }

/* Keep long content comfortable on the larger site shell. */
.app-content,
.blog-content,
.policy-content {
  max-width: 980px;
}

.newsletter_card { max-width: 820px; }

/* Cookie notice: compact enough to remain usable at strong browser zoom. */
.cookie-bar {
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  left: max(0.75rem, env(safe-area-inset-left));
}

.cookie-bar__inner {
  width: min(100%, 1120px);
  max-height: min(72dvh, 460px);
  overflow-y: auto;
  padding: clamp(0.85rem, 1.4vw, 1.15rem) clamp(0.9rem, 1.5vw, 1.3rem);
}

.cookie-bar__text {
  font-size: clamp(0.78rem, 0.18vw + 0.75rem, 0.9rem);
  line-height: 1.55;
}

.cookie-bar__btn {
  min-height: 42px;
  padding: 0.58rem 0.9rem;
  white-space: nowrap;
}

/* Tablet / browser-zoom breakpoint. */
@media (max-width: 992px) {
  :root { --page-gutter: clamp(0.75rem, 2.4vw, 1.5rem); }

  .splitHero__imageWrap { max-width: 440px; }
  .splitHero__content { padding-inline: clamp(0.2rem, 2vw, 1rem); }
  .splitHero__title { max-width: 760px; margin-inline: auto; }

  .page-banner__inner { width: 100%; }
}

@media (max-width: 820px) {
  :root {
    --header-height: 72px;
    --page-gutter: clamp(0.55rem, 2vw, 0.9rem);
    --section-gap: clamp(1.5rem, 5vw, 2.5rem);
  }

  body { line-height: 1.62; }

  .sectionSpace {
    width: calc(100% - (var(--page-gutter) * 2));
    padding: clamp(1.45rem, 5vw, 2.3rem) clamp(0.9rem, 3.5vw, 1.5rem);
    border-radius: clamp(1.15rem, 4vw, 1.75rem);
  }

  .sectionHeading {
    margin-bottom: 1.4rem;
  }

  .sectionHeading p {
    margin-top: 0.6rem;
    font-size: 0.98rem;
  }

  .mdTitle { font-size: clamp(2.15rem, 9.5vw, 3.15rem); }

  .splitHero {
    padding: calc(var(--header-height) + 0.85rem) var(--page-gutter) 1.5rem;
  }

  .splitHero__card {
    padding: clamp(0.75rem, 3vw, 1.15rem);
  }

  .splitHero__imageWrap {
    max-width: 390px;
    aspect-ratio: 4 / 3;
    padding: clamp(0.65rem, 3vw, 1rem);
  }

  .splitHero__content {
    padding: 0.55rem 0.3rem 0.5rem;
  }

  .splitHero__title {
    font-size: clamp(2rem, 10vw, 3.25rem);
    line-height: 1.04;
  }

  .splitHero__lead {
    margin-top: 0.9rem;
    font-size: 1rem;
    line-height: 1.62;
  }

  .splitHero__actions {
    gap: 0.65rem;
    margin-top: 1.2rem;
  }

  .splitHero__actions .btn {
    flex: 1 1 180px;
    width: auto;
  }

  .autoCarousel {
    margin-inline: calc(clamp(0.9rem, 3.5vw, 1.5rem) * -1);
    width: calc(100% + (clamp(0.9rem, 3.5vw, 1.5rem) * 2));
    padding-inline: clamp(0.55rem, 2.5vw, 1rem);
  }

  .autoCarousel--devices { --item-width: min(78vw, 300px); }
  .autoCarousel--reviews { --item-width: min(86vw, 390px); }
  .autoCarousel--blogs { --item-width: min(88vw, 410px); }

  .deviceCard {
    max-height: none;
    border-radius: 32px;
  }

  .deviceCard__screen { border-radius: 24px; }

  /* Touch users should not need hover to discover the card's information. */
  .deviceCard__content {
    align-items: flex-start;
    justify-content: flex-end;
    padding: 3.2rem 1.15rem 1.35rem;
    text-align: left;
    transform: none !important;
  }

  .deviceCard__title { font-size: clamp(1.45rem, 6.5vw, 1.8rem); }

  .deviceCard__hidden {
    max-height: 150px;
    margin-top: 0.8rem;
    opacity: 1;
    transform: none;
  }

  .deviceCard__description {
    -webkit-line-clamp: 3;
  }

  .reviewCard {
    min-height: 270px;
    padding: clamp(1.15rem, 4vw, 1.45rem);
  }

  .blogCard { min-height: 310px; }

  .cookie-bar__inner {
    gap: 0.75rem;
  }

  .cookie-bar__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    gap: 0.5rem;
  }

  .cookie-bar__actions .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .cookie-modal__actions,
  .cookie-modal__actionsRight {
    width: 100%;
  }
}

@media (max-width: 560px) {
  :root { --page-gutter: 0.5rem; }

  .header-inner-container {
    width: calc(100% - 1rem);
  }

  .brandLogo img {
    width: 40px;
    height: 40px;
  }

  .siteTitle {
    font-size: clamp(1.02rem, 5.5vw, 1.25rem);
  }

  .navToggle {
    width: 44px;
    height: 44px;
  }

  .navToggle span { left: 10px; }

  .sectionSpace {
    padding: 1.35rem 0.8rem;
    border-radius: 1rem;
  }

  .sectionEyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.11em;
  }

  .mdTitle { font-size: clamp(2rem, 11vw, 2.8rem); }

  .splitHero__card { border-radius: 1.15rem; }
  .splitHero__imageWrap { aspect-ratio: 16 / 10; border-radius: 1rem; }
  .splitHero__title { font-size: clamp(1.9rem, 10.5vw, 2.7rem); }

  .splitHero__actions {
    flex-direction: column;
  }

  .splitHero__actions .btn {
    width: 100%;
    flex-basis: auto;
  }

  .autoCarousel {
    margin-inline: -0.8rem;
    width: calc(100% + 1.6rem);
    padding-inline: 0.55rem;
  }

  .autoCarousel--devices { --item-width: min(82vw, 286px); }
  .autoCarousel--reviews { --item-width: min(88vw, 350px); }
  .autoCarousel--blogs { --item-width: min(90vw, 370px); }

  .reviewCard__header {
    align-items: flex-start;
  }

  .reviewCard__rating {
    gap: 0.35rem;
  }

  .blogCard__dateWrap { padding: 0.45rem; }
  .blogCard__info { padding: 1rem; }

  .newsletter_card {
    padding: 1.3rem 0.9rem;
    border-radius: 1rem;
  }

  .cookie-bar {
    right: 0.4rem;
    bottom: max(0.4rem, env(safe-area-inset-bottom));
    left: 0.4rem;
  }

  .cookie-bar__inner {
    max-height: min(68dvh, 390px);
    gap: 0.65rem;
    padding: 0.75rem;
    border-radius: 0.85rem;
  }

  .cookie-bar__title { font-size: 0.9rem; }
  .cookie-bar__text { font-size: 0.77rem; line-height: 1.42; }
  .cookie-bar__btn { min-height: 40px; padding: 0.5rem 0.62rem; font-size: 0.76rem; }

  .cookie-modal {
    width: calc(100% - 0.8rem);
    max-height: calc(100dvh - 0.8rem);
    border-radius: 1rem;
  }

  .cookie-modal__header,
  .cookie-modal__body,
  .cookie-modal__actions {
    padding: 0.9rem;
  }

  .cookie-row {
    align-items: flex-start;
    gap: 0.65rem;
  }

  .cookie-modal__actions {
    flex-direction: column;
  }

  .cookie-modal__actionsRight {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .siteTitle { font-size: 1rem; }
  .brandLogo img { width: 36px; height: 36px; }

  .sectionSpace { padding-inline: 0.65rem; }

  .autoCarousel {
    margin-inline: -0.65rem;
    width: calc(100% + 1.3rem);
    padding-inline: 0.45rem;
  }

  .autoCarousel--devices { --item-width: min(85vw, 270px); }
  .autoCarousel--reviews { --item-width: min(91vw, 320px); }
  .autoCarousel--blogs { --item-width: min(92vw, 330px); }

  .deviceCard__content { padding-inline: 0.95rem; }
  .deviceCard__description { font-size: 0.78rem; }

  .reviewCard__header {
    gap: 0.75rem;
  }

  .reviewCard__avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .ratingStars { font-size: 0.94rem; }

  .cookie-bar__actions {
    grid-template-columns: 1fr;
  }

  .cookie-modal__actionsRight {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .autoCarousel.is-marquee .autoCarousel__list {
    animation: none !important;
  }
}

/* ========================================================================== 
   NLGstudio UI v4 — wider desktop composition + cleaner carousel framing
   ========================================================================== */

:root {
  /* Use much more of modern 1440–1920px displays while preserving a gutter. */
  --container: 1720px;
  --page-gutter: clamp(0.75rem, 1.35vw, 1.5rem);
}

/* The larger shell should feel expansive, not padded back down to v3 width. */
.sectionSpace {
  padding-inline: clamp(1.5rem, 2.8vw, 3.25rem);
}

.sectionHeading {
  max-width: 1040px;
}

.sectionHeading p {
  max-width: 900px;
}

/* Hero and header share the same wider visual grid. */
.splitHero__container,
.header-inner-container,
.container,
.paginationWrap {
  max-width: var(--container) !important;
}

.splitHero__imageWrap {
  max-width: 590px;
}

.splitHero__title {
  max-width: 1020px;
}

.splitHero__lead {
  max-width: 860px;
}

/* Cleaner desktop carousel: more width, softer fades, larger cards. */
.autoCarousel {
  --carousel-gap: clamp(1.15rem, 1.35vw, 1.55rem);
  padding-top: 0.75rem;
  padding-bottom: 1.4rem;
  mask-image: linear-gradient(to right, transparent 0, #000 1.4%, #000 98.6%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 1.4%, #000 98.6%, transparent 100%);
}

.autoCarousel__list,
.autoCarousel.is-ready .autoCarousel__list {
  padding-inline: clamp(0.55rem, 0.85vw, 0.9rem);
}

.autoCarousel--devices {
  --item-width: clamp(300px, 18.5vw, 340px);
}

.autoCarousel--reviews {
  --item-width: clamp(390px, 25vw, 455px);
}

.autoCarousel--blogs {
  --item-width: clamp(420px, 27vw, 500px);
}

/* Testimonial cards are shorter and cleaner now that the numeric score is gone. */
.reviewCard {
  min-height: 270px;
  padding: clamp(1.5rem, 1.7vw, 1.9rem);
}

.reviewCard__rating {
  margin-top: 0.22rem;
}

.ratingStars {
  font-size: clamp(1rem, 0.25vw + 0.96rem, 1.16rem);
  letter-spacing: 0.08em;
}

.reviewCard__message {
  margin-top: 1.2rem;
}

/* Wide screens get a little more vertical breathing room without huge empty gaps. */
@media (min-width: 1400px) {
  .sectionSpace {
    margin-bottom: clamp(2.25rem, 3.5vw, 4rem);
  }

  .showcaseSection {
    padding-top: clamp(2.6rem, 3.2vw, 3.8rem);
    padding-bottom: clamp(2.8rem, 3.5vw, 4rem);
  }
}

/* Keep the v3 tablet/mobile behavior intact, but avoid oversized desktop values
   leaking into zoomed/mobile layouts. */
@media (max-width: 992px) {
  :root {
    --page-gutter: clamp(0.65rem, 2.2vw, 1.25rem);
  }

  .sectionSpace {
    padding-inline: clamp(1rem, 3.6vw, 1.8rem);
  }

  .splitHero__imageWrap {
    max-width: 460px;
  }
}

@media (max-width: 820px) {
  .autoCarousel {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .autoCarousel--devices { --item-width: min(80vw, 306px); }
  .autoCarousel--reviews { --item-width: min(88vw, 400px); }
  .autoCarousel--blogs { --item-width: min(90vw, 420px); }

  .reviewCard {
    min-height: 245px;
  }
}

@media (max-width: 560px) {
  .autoCarousel--devices { --item-width: min(84vw, 292px); }
  .autoCarousel--reviews { --item-width: min(90vw, 360px); }
  .autoCarousel--blogs { --item-width: min(92vw, 380px); }
}

/* ========================================================================== 
   NLGstudio UI v5 — compact inner-page banner
   The homepage hero is intentionally unchanged. These overrides only affect
   the page-banner used by Games, Apps, Blogs, About, Contact and detail pages.
   ========================================================================== */

.page-banner {
  /* Header offset + a compact amount of breathing room. */
  padding: calc(var(--header-height) + clamp(0.8rem, 1.35vw, 1.35rem))
           var(--page-gutter)
           clamp(1.15rem, 1.8vw, 1.65rem);
}

.page-banner__inner {
  min-height: clamp(86px, 7.2vw, 118px);
  gap: clamp(0.75rem, 1.2vw, 1.15rem);
}

.page-banner__title {
  font-size: clamp(2.45rem, 4.2vw, 4rem);
  line-height: 0.98;
}

.page-banner__desc {
  margin-top: 0.45rem;
  font-size: clamp(0.95rem, 0.35vw + 0.9rem, 1.08rem);
  line-height: 1.45;
}

.page-banner__back {
  min-height: 42px;
  padding: 0.58rem 1rem;
  font-size: 0.92rem;
}

@media (max-width: 992px) {
  .page-banner {
    padding-top: calc(var(--header-height) + 0.8rem);
    padding-bottom: 1.1rem;
  }

  .page-banner__inner {
    min-height: 0;
    gap: 0.75rem;
  }

  .page-banner__title {
    font-size: clamp(2.2rem, 7.5vw, 3.35rem);
  }
}

@media (max-width: 560px) {
  .page-banner {
    padding-top: calc(var(--header-height) + 0.65rem);
    padding-bottom: 0.95rem;
  }

  .page-banner__inner {
    gap: 0.6rem;
  }

  .page-banner__back {
    min-height: 38px;
    padding: 0.48rem 0.8rem;
    font-size: 0.84rem;
  }

  .page-banner__title {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  .page-banner__desc {
    margin-top: 0.3rem;
    font-size: 0.92rem;
  }
}

/* ========================================================================== 
   NLGstudio UI v7 — complete roster/detail/responsive build
   ========================================================================== */

/* Games and Apps listing pages intentionally do not use the autoplay carousel.
   Every product stays visible in a responsive roster/grid. */
.catalogSection {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container));
  margin: 0 auto clamp(2.5rem, 4vw, 4.5rem);
  padding: calc(var(--header-height) + clamp(2.25rem, 3.6vw, 4rem))
           clamp(1.25rem, 3vw, 3.5rem)
           clamp(2.5rem, 4vw, 4.5rem);
  border: 1px solid rgba(13, 16, 63, 0.08);
  border-radius: clamp(1.5rem, 3vw, 2.75rem);
  background:
    radial-gradient(circle at 8% 4%, rgba(56,189,248,0.10), transparent 24%),
    radial-gradient(circle at 96% 10%, rgba(99,102,241,0.09), transparent 26%),
    linear-gradient(180deg, #fbfcff 0%, #f6f8fd 100%);
  box-shadow: 0 18px 55px rgba(13,16,63,0.07);
}

.catalogIntro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1500px;
  margin: 0 auto clamp(2.5rem, 4vw, 4rem);
  padding-bottom: clamp(1.35rem, 2vw, 2rem);
  border-bottom: 1px solid rgba(13,16,63,0.10);
}

.catalogIntro > div:first-child { max-width: 860px; }

.catalogTitle {
  margin: 0;
  color: var(--primary-dark-color);
  font-family: var(--title-font);
  font-size: clamp(3rem, 5.2vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.catalogLead {
  max-width: 760px;
  margin: 0.85rem 0 0;
  color: var(--muted-color);
  font-size: clamp(1rem, 0.4vw + 0.92rem, 1.18rem);
  line-height: 1.65;
}

.catalogCount {
  flex: 0 0 auto;
  display: grid;
  min-width: 124px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(23,23,94,0.10);
  border-radius: 1.1rem;
  background: rgba(255,255,255,0.84);
  text-align: center;
  box-shadow: 0 10px 30px rgba(13,16,63,0.06);
}

.catalogCount strong {
  color: var(--primary-dark-color);
  font-family: var(--title-font);
  font-size: 2rem;
  line-height: 1;
}

.catalogCount span {
  margin-top: 0.3rem;
  color: var(--muted-color);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projectRoster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 300px));
  justify-content: center;
  align-items: start;
  gap: clamp(2rem, 3vw, 3.5rem) clamp(1.5rem, 2.5vw, 2.75rem);
  max-width: 1500px;
  margin: 0 auto;
}

.projectRoster__item {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.projectRoster .deviceCard {
  width: min(100%, 292px);
  max-height: none;
  aspect-ratio: 5 / 9;
  box-shadow: 0 20px 46px rgba(7,8,13,0.20);
}

.projectRoster__item:nth-child(3n+2) .deviceCard__screen {
  --device-a: #ff7a18;
  --device-b: #d4145a;
  --device-c: #5020a8;
}

.projectRoster__item:nth-child(3n+3) .deviceCard__screen {
  --device-a: #00c6ff;
  --device-b: #5b40d6;
  --device-c: #101853;
}

.projectRoster .deviceCard:hover,
.projectRoster .deviceCard:focus-visible {
  transform: translateY(-9px) scale(1.012);
  box-shadow: 0 28px 58px rgba(7,8,13,0.27);
}

.emptyState--catalog {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  border: 1px dashed rgba(23,23,94,0.20);
  border-radius: 1.25rem;
  background: rgba(255,255,255,0.75);
  text-align: center;
}

.catalogFeedbackSection,
.detailFeedbackSection {
  margin-top: 0;
}

/* Product detail pages: compact two-column product presentation instead of a
   tall centered image with large unused whitespace. */
.productDetail {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container));
  margin: 0 auto clamp(2.5rem, 4vw, 4.5rem);
  padding: calc(var(--header-height) + clamp(1.8rem, 3vw, 3rem))
           clamp(1.25rem, 3vw, 3.5rem)
           clamp(2.5rem, 4vw, 4rem);
}

.productDetail__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1500px;
  margin: 0 auto 1.25rem;
}

.productDetail__back {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(23,23,94,0.15);
  border-radius: 999px;
  background: #fff;
  color: var(--primary-dark-color);
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(13,16,63,0.05);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.productDetail__back:hover {
  color: var(--primary-dark-color);
  transform: translateY(-2px);
  border-color: rgba(23,23,94,0.32);
  box-shadow: 0 12px 28px rgba(13,16,63,0.09);
}

.productDetail__type {
  color: var(--muted-color);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.productDetail__grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 6.25rem);
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  border: 1px solid rgba(13,16,63,0.08);
  border-radius: clamp(1.5rem, 3vw, 2.8rem);
  background:
    radial-gradient(circle at 12% 10%, rgba(56,189,248,0.10), transparent 29%),
    linear-gradient(145deg, #f8faff 0%, #ffffff 72%);
  box-shadow: 0 24px 72px rgba(13,16,63,0.09);
}

.productDetail__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.productDetail__imageFrame {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.25rem, 2.5vw, 2.4rem);
  border: 1px solid rgba(13,16,63,0.08);
  border-radius: clamp(1.4rem, 2.7vw, 2.6rem);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.98), rgba(239,243,252,0.98));
  box-shadow:
    0 26px 60px rgba(13,16,63,0.13),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.productDetail__imageFrame::after {
  content: '';
  position: absolute;
  inset: auto 12% -10% 12%;
  height: 22%;
  border-radius: 50%;
  background: rgba(13,16,63,0.13);
  filter: blur(34px);
  pointer-events: none;
}

.productDetail__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: clamp(0.9rem, 1.8vw, 1.6rem);
}

.productDetail__copy {
  min-width: 0;
  padding: clamp(0.25rem, 1vw, 1rem) clamp(0rem, 1vw, 0.75rem);
}

.productDetail__title {
  max-width: 840px;
  margin: 0;
  color: var(--primary-dark-color);
  font-family: var(--title-font);
  font-size: clamp(3rem, 5vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.productDetail__statusRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.productStatus {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.36rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.productStatus.is-upcoming {
  background: #fff4d6;
  color: #8a5c00;
}

.productStatus.is-released {
  background: #e7f8ed;
  color: #166534;
}

.productDetail__date {
  color: var(--muted-color);
  font-size: 0.93rem;
  font-weight: 600;
}

.productDetail__lead {
  max-width: 760px;
  margin: 1.45rem 0 0;
  color: #555d72;
  font-size: clamp(1.05rem, 0.42vw + 0.96rem, 1.28rem);
  line-height: 1.75;
}

.productDetail__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 640px;
  margin-top: 1.65rem;
}

.productDetail__fact {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(13,16,63,0.08);
  border-radius: 1rem;
  background: rgba(255,255,255,0.72);
}

.productDetail__factLabel {
  display: block;
  margin-bottom: 0.22rem;
  color: var(--muted-color);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.productDetail__fact strong {
  color: var(--primary-dark-color);
  font-size: 0.98rem;
}

.productDetail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.65rem;
}

.productDetail__body {
  max-width: 1100px;
  margin: clamp(2rem, 4vw, 4rem) auto 0;
  padding: clamp(1.3rem, 2.5vw, 2.4rem);
  border: 1px solid rgba(13,16,63,0.08);
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 14px 42px rgba(13,16,63,0.06);
}

/* On static roster pages, touch devices cannot hover. Keep the hidden details
   available without forcing a second tap just to learn what the card is. */
@media (hover: none), (pointer: coarse) {
  .projectRoster .deviceCard__content {
    transform: translateY(-10px);
  }

  .projectRoster .deviceCard__hidden {
    max-height: 190px;
    margin-top: 1rem;
    opacity: 1;
    transform: translateY(0);
  }

  .projectRoster .deviceCard__art {
    opacity: 0.22;
  }
}

@media (max-width: 1180px) {
  .productDetail__grid {
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .projectRoster {
    grid-template-columns: repeat(auto-fit, minmax(240px, 280px));
  }
}

@media (max-width: 900px) {
  .catalogSection {
    padding-top: calc(var(--header-height) + 1.8rem);
  }

  .catalogIntro {
    align-items: flex-start;
  }

  .productDetail {
    padding-top: calc(var(--header-height) + 1.4rem);
  }

  .productDetail__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .productDetail__imageFrame {
    width: min(100%, 520px);
  }

  .productDetail__copy {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }

  .productDetail__statusRow,
  .productDetail__actions {
    justify-content: center;
  }

  .productDetail__facts {
    margin-inline: auto;
    text-align: left;
  }

  .productDetail__lead {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .catalogSection {
    width: min(calc(100% - 0.9rem), var(--container));
    margin-bottom: 1.5rem;
    padding: calc(var(--header-height) + 1.25rem) 0.85rem 1.5rem;
    border-radius: 1.35rem;
  }

  .catalogIntro {
    display: block;
    margin-bottom: 1.8rem;
    text-align: center;
  }

  .catalogLead {
    margin-inline: auto;
  }

  .catalogCount {
    width: max-content;
    min-width: 105px;
    margin: 1rem auto 0;
    padding: 0.75rem 1rem;
  }

  .catalogCount strong { font-size: 1.7rem; }

  .projectRoster {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
  }

  .projectRoster .deviceCard {
    width: min(82vw, 290px);
  }

  .productDetail {
    width: min(calc(100% - 0.9rem), var(--container));
    margin-bottom: 1.5rem;
    padding: calc(var(--header-height) + 1rem) 0.2rem 1rem;
  }

  .productDetail__topbar {
    padding-inline: 0.3rem;
    margin-bottom: 0.8rem;
  }

  .productDetail__type { display: none; }

  .productDetail__grid {
    padding: 0.85rem;
    border-radius: 1.35rem;
    gap: 1.5rem;
  }

  .productDetail__imageFrame {
    padding: 0.9rem;
    border-radius: 1.2rem;
  }

  .productDetail__copy {
    padding: 0.2rem 0.35rem 0.55rem;
  }

  .productDetail__title {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
  }

  .productDetail__facts {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .productDetail__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .productDetail__actions .btn {
    width: 100%;
  }

  .productDetail__body {
    margin-top: 1.4rem;
    padding: 1rem;
    border-radius: 1.15rem;
  }
}

@media (max-width: 380px) {
  .catalogTitle { font-size: 2.65rem; }
  .projectRoster .deviceCard { width: min(86vw, 270px); }
  .productDetail__back { min-height: 38px; padding: 0.45rem 0.7rem; font-size: 0.8rem; }
}

/* ========================================================================== 
   NLGstudio UI v7 — final integration overrides
   ========================================================================== */

/* Games/apps listing and product detail pages use one strong header rather
   than a large page banner followed by a duplicate title. */
.catalogSection {
  padding-top: calc(var(--header-height) + clamp(1.2rem, 2vw, 1.9rem));
  padding-inline: clamp(1rem, 2.2vw, 2.6rem);
}

.catalogIntro {
  max-width: 1600px;
  margin-bottom: clamp(2rem, 3vw, 3rem);
}

.catalogTitle {
  font-size: clamp(3rem, 5.5vw, 5.7rem);
  line-height: 0.98;
}

.projectRoster {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  max-width: 1600px;
  gap: clamp(2rem, 3vw, 3.5rem);
}

.projectRoster__item {
  min-height: 100%;
  align-items: flex-start;
}

.projectRoster .deviceCard {
  width: min(100%, 310px);
}

.productDetail {
  max-width: none;
  padding-top: calc(var(--header-height) + clamp(1rem, 1.6vw, 1.5rem));
  padding-inline: clamp(0.9rem, 2vw, 2rem);
}

.productDetail__topbar,
.productDetail__grid {
  max-width: 1600px;
}

.productDetail__grid {
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2.25rem, 4vw, 5rem);
  padding: clamp(1.25rem, 2.2vw, 2.2rem);
}

.productDetail__imageFrame {
  width: min(100%, 600px);
}

.productDetail__title {
  font-size: clamp(3rem, 5.2vw, 6rem);
}

/* Testimonials intentionally use stars only: no visible numeric score. */
.reviewCard__score { display: none !important; }
.reviewCard__rating { gap: 0; }

/* Home carousels get a slightly larger visual runway on wide screens. */
@media (min-width: 1200px) {
  .autoCarousel--devices { --item-width: clamp(305px, 18vw, 350px); }
  .autoCarousel--reviews { --item-width: clamp(400px, 24vw, 470px); }
  .autoCarousel--blogs { --item-width: clamp(430px, 26vw, 515px); }
}

@media (max-width: 900px) {
  .catalogSection {
    padding-top: calc(var(--header-height) + 1.1rem);
  }

  .catalogIntro {
    display: block;
    text-align: center;
  }

  .catalogLead { margin-inline: auto; }
  .catalogCount { width: max-content; margin: 1rem auto 0; }

  .productDetail {
    padding-top: calc(var(--header-height) + 0.85rem);
  }

  .productDetail__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .catalogSection {
    width: calc(100% - 0.7rem);
    padding: calc(var(--header-height) + 0.8rem) 0.7rem 1.2rem;
  }

  .catalogTitle {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .projectRoster {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .projectRoster .deviceCard {
    width: min(86vw, 292px);
  }

  .productDetail {
    width: calc(100% - 0.55rem);
    padding-top: calc(var(--header-height) + 0.65rem);
  }

  .productDetail__topbar {
    padding-inline: 0.15rem;
  }

  .productDetail__grid {
    padding: 0.7rem;
  }

  .productDetail__title {
    font-size: clamp(2.45rem, 14vw, 3.8rem);
  }
}

/* ========================================================================== 
   NLGstudio UI v8 — compact inner-page mastheads + exact deployment package
   ========================================================================== */

/* The fixed navigation is ~68–80px tall. Inner-page banners should only add
   a small masthead below it, not another hero-sized block. */
.page-banner {
  padding: calc(var(--header-height) + clamp(0.42rem, 0.7vw, 0.7rem))
           var(--page-gutter)
           clamp(0.62rem, 0.9vw, 0.9rem);
}

.page-banner__inner {
  min-height: clamp(68px, 5.4vw, 84px);
  gap: clamp(0.6rem, 1vw, 0.95rem);
}

.page-banner__title {
  font-size: clamp(2.25rem, 3.35vw, 3.55rem);
  line-height: 0.98;
}

.page-banner__desc {
  margin-top: 0.28rem;
  font-size: clamp(0.86rem, 0.3vw + 0.82rem, 0.98rem);
  line-height: 1.3;
}

.page-banner__back {
  min-height: 36px;
  padding: 0.42rem 0.78rem;
  font-size: 0.82rem;
}

/* Games/Apps get the most compact version. */
.page-banner--catalog {
  padding-bottom: clamp(0.48rem, 0.7vw, 0.7rem);
}

.page-banner--catalog .page-banner__inner {
  min-height: clamp(58px, 4.7vw, 72px);
}

.page-banner--catalog .page-banner__title {
  font-size: clamp(2.15rem, 3vw, 3.25rem);
}

.page-banner--catalog .page-banner__desc {
  margin-top: 0.22rem;
  font-size: clamp(0.82rem, 0.24vw + 0.8rem, 0.94rem);
}

/* The catalog itself no longer needs to reserve another header-height because
   the compact banner above it already clears the fixed navigation. */
.page-banner--catalog + .main-content-wrapper .catalogSection {
  padding-top: clamp(2rem, 3.4vw, 3.4rem);
}

/* Keep the roster spacious and clearly separate from the masthead. */
.page-banner--catalog + .main-content-wrapper .catalogIntro {
  margin-bottom: clamp(1.8rem, 2.7vw, 2.8rem);
}

@media (max-width: 992px) {
  .page-banner {
    padding-top: calc(var(--header-height) + 0.42rem);
    padding-bottom: 0.62rem;
  }

  .page-banner__inner {
    min-height: 0;
    grid-template-columns: auto 1fr;
    align-items: center;
  }

  .page-banner__back {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .page-banner__titlewrap {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }

  .page-banner__title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }

  .page-banner__desc {
    max-width: 420px;
    margin-left: auto;
  }

  .page-banner--catalog + .main-content-wrapper .catalogSection {
    padding-top: clamp(1.55rem, 5vw, 2.35rem);
  }
}

@media (max-width: 620px) {
  .page-banner {
    padding: calc(var(--header-height) + 0.32rem) 0.65rem 0.55rem;
  }

  .page-banner__inner {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
  }

  .page-banner__back {
    min-height: 34px;
    padding: 0.36rem 0.58rem;
    font-size: 0.75rem;
  }

  .page-banner__title {
    font-size: clamp(1.7rem, 9.8vw, 2.35rem);
  }

  .page-banner__desc {
    margin-top: 0.1rem;
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .page-banner--catalog + .main-content-wrapper .catalogSection {
    padding-top: 1.35rem;
  }
}

@media (max-width: 420px) {
  .page-banner__desc {
    display: none;
  }

  .page-banner__title {
    font-size: clamp(1.65rem, 10vw, 2rem);
  }
}

/* ========================================================================== 
   NLGstudio UI v9 — ultra-compact Games / Apps masthead
   ========================================================================== */
/*
   The catalog masthead is intentionally only a slim contextual strip below
   the fixed navigation.  The full Games/Apps heading still lives in the
   catalog section, so this area should never read like a second hero.
*/
.page-banner--catalog {
  padding: var(--header-height) var(--page-gutter) 0;
}

.page-banner--catalog .page-banner__inner {
  min-height: 74px;
  height: 74px;
  gap: 0.75rem;
}

.page-banner--catalog .page-banner__titlewrap {
  align-self: center;
}

.page-banner--catalog .page-banner__title {
  font-size: clamp(1.9rem, 2.45vw, 2.75rem);
  line-height: 0.95;
}

.page-banner--catalog .page-banner__desc {
  margin-top: 0.16rem;
  font-size: clamp(0.72rem, 0.2vw + 0.7rem, 0.84rem);
  line-height: 1.18;
}

.page-banner--catalog .page-banner__back {
  min-height: 32px;
  padding: 0.3rem 0.62rem;
  border-radius: 999px;
  font-size: 0.74rem;
  line-height: 1;
}

/* Pull the roster closer to the compact contextual masthead. */
.page-banner--catalog + .main-content-wrapper .catalogSection {
  padding-top: clamp(1.35rem, 2.2vw, 2.1rem);
}

.page-banner--catalog + .main-content-wrapper .catalogIntro {
  margin-bottom: clamp(1.45rem, 2vw, 2.15rem);
}

@media (max-width: 992px) {
  .page-banner--catalog {
    padding: var(--header-height) var(--page-gutter) 0;
  }

  .page-banner--catalog .page-banner__inner {
    min-height: 68px;
    height: 68px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
  }

  .page-banner--catalog .page-banner__titlewrap {
    text-align: right;
  }

  .page-banner--catalog .page-banner__title {
    font-size: clamp(1.7rem, 5.5vw, 2.3rem);
  }

  .page-banner--catalog .page-banner__desc {
    margin-top: 0.08rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 620px) {
  .page-banner--catalog {
    padding: var(--header-height) 0.65rem 0;
  }

  .page-banner--catalog .page-banner__inner {
    min-height: 58px;
    height: 58px;
    gap: 0.45rem;
  }

  .page-banner--catalog .page-banner__back {
    min-height: 30px;
    padding: 0.28rem 0.5rem;
    font-size: 0.68rem;
  }

  .page-banner--catalog .page-banner__title {
    font-size: clamp(1.45rem, 8vw, 1.9rem);
  }

  .page-banner--catalog .page-banner__desc {
    display: none;
  }

  .page-banner--catalog + .main-content-wrapper .catalogSection {
    padding-top: 1.05rem;
  }
}

@media (max-width: 390px) {
  .page-banner--catalog .page-banner__inner {
    min-height: 54px;
    height: 54px;
  }

  .page-banner--catalog .page-banner__back {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .page-banner--catalog .page-banner__title {
    font-size: 1.42rem;
  }
}

/* ========================================================================== 
   Catalog listing header — white detail-style top bar
   ========================================================================== */
/* Games and Apps listing pages intentionally use the same restrained top-bar
   language as product detail pages. The fixed navy navigation remains the only
   dark band; catalog navigation itself sits on the white page. */
.catalogPageTop {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container));
  margin: 0 auto clamp(1.9rem, 3vw, 2.8rem);
  padding: calc(var(--header-height) + clamp(1.05rem, 1.8vw, 1.55rem))
           clamp(1.25rem, 3vw, 3.5rem)
           0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
}

.catalogPageTop__back {
  flex: 0 0 auto;
}

.catalogPageTop__type {
  margin-left: auto;
  text-align: right;
}

/* The top bar already clears the fixed navigation, so the roster card should
   begin with normal internal padding rather than reserving another header. */
.catalogPageTop + .catalogSection {
  padding-top: clamp(2.4rem, 3.6vw, 3.8rem);
  margin-top: 0;
}

/* Give the introduction room to breathe and make its alignment intentional. */
.catalogPageTop + .catalogSection .catalogIntro {
  align-items: center;
  margin-bottom: clamp(2.4rem, 3.5vw, 3.8rem);
  padding-bottom: clamp(1.6rem, 2.3vw, 2.25rem);
}

.catalogPageTop + .catalogSection .catalogLead {
  max-width: 820px;
}

/* The old blue catalog masthead is no longer used by Games/Apps. Keep this
   defensive rule in case an older cached template still emits that class. */
.page-banner--catalog {
  display: none !important;
}
.page-banner--catalog + .main-content-wrapper .catalogSection {
  padding-top: clamp(2.4rem, 3.6vw, 3.8rem);
}

@media (max-width: 820px) {
  .catalogPageTop {
    margin-bottom: clamp(1.4rem, 4vw, 2rem);
    padding: calc(var(--header-height) + 0.9rem)
             clamp(0.9rem, 4vw, 1.4rem)
             0;
  }

  .catalogPageTop + .catalogSection {
    padding-top: clamp(1.8rem, 5vw, 2.5rem);
  }

  .catalogPageTop + .catalogSection .catalogIntro {
    align-items: flex-start;
    margin-bottom: clamp(1.9rem, 5vw, 2.7rem);
  }
}

@media (max-width: 560px) {
  .catalogPageTop {
    margin-bottom: 1.25rem;
    padding-top: calc(var(--header-height) + 0.72rem);
    padding-inline: 0.7rem;
  }

  .catalogPageTop__type {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .catalogPageTop__back {
    min-height: 36px;
    padding: 0.42rem 0.7rem;
    font-size: 0.78rem;
  }

  .catalogPageTop + .catalogSection {
    padding-top: 1.55rem;
  }

  .catalogPageTop + .catalogSection .catalogIntro {
    margin-bottom: 1.75rem;
    padding-bottom: 1.35rem;
  }
}

/* ========================================================================== 
   Unified inner-page top bar
   ========================================================================== */
/* Blogs, About, Contact, legal/confirmation pages and blog details use the
   same white compact navigation treatment as Games/Apps and product details. */
.pageTopbar {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container));
  margin: 0 auto clamp(1.65rem, 2.5vw, 2.4rem);
  padding: calc(var(--header-height) + clamp(1rem, 1.6vw, 1.5rem))
           clamp(0.9rem, 2vw, 2rem)
           0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: transparent;
}

.pageTopbar__back {
  flex: 0 0 auto;
}

.pageTopbar__type {
  margin-left: auto;
  text-align: right;
}

/* The old blue page banner is intentionally retired. This also protects
   against an older cached template emitting the former markup. */
.page-banner {
  background: transparent !important;
  min-height: 0 !important;
  padding: 0 !important;
}

/* Keep the first content section visually separated from the compact top bar
   without recreating the oversized masthead that was removed. */
.pageTopbar + .main-content-wrapper > .innerPageSection:first-child,
.pageTopbar + .main-content-wrapper > article.innerPageSection:first-child {
  padding-top: clamp(2rem, 3vw, 3.25rem);
}

/* Make all three inner-page navigation patterns feel like one component. */
.catalogPageTop {
  margin-bottom: clamp(1.65rem, 2.5vw, 2.4rem);
  padding-top: calc(var(--header-height) + clamp(1rem, 1.6vw, 1.5rem));
  padding-inline: clamp(0.9rem, 2vw, 2rem);
}

.productDetail__topbar {
  margin-bottom: clamp(1.25rem, 2vw, 1.8rem);
}

@media (max-width: 820px) {
  .pageTopbar,
  .catalogPageTop {
    margin-bottom: 1.4rem;
    padding-top: calc(var(--header-height) + 0.85rem);
    padding-inline: clamp(0.75rem, 4vw, 1.25rem);
  }

  .pageTopbar + .main-content-wrapper > .innerPageSection:first-child,
  .pageTopbar + .main-content-wrapper > article.innerPageSection:first-child {
    padding-top: 1.8rem;
  }
}

@media (max-width: 560px) {
  .pageTopbar,
  .catalogPageTop {
    margin-bottom: 1.1rem;
    padding-top: calc(var(--header-height) + 0.65rem);
    padding-inline: 0.65rem;
  }

  .pageTopbar__type,
  .catalogPageTop__type,
  .productDetail__type {
    font-size: 0.66rem;
    letter-spacing: 0.1em;
  }

  .pageTopbar__back,
  .catalogPageTop__back,
  .productDetail__back {
    min-height: 36px;
    padding: 0.42rem 0.7rem;
    font-size: 0.78rem;
  }

  .pageTopbar + .main-content-wrapper > .innerPageSection:first-child,
  .pageTopbar + .main-content-wrapper > article.innerPageSection:first-child {
    padding-top: 1.45rem;
  }
}

/* ========================================================================== 
   NLGstudio UI v12 — polished inner pages
   About, Contact, Journal, article, legal and confirmation pages now share
   the same light-blue surface language as the product/catalog experience.
   ========================================================================== */

:root {
  --surface-blue: #f5f9ff;
  --surface-blue-strong: #edf6ff;
  --surface-border: rgba(13, 16, 63, 0.08);
  --surface-shadow: 0 22px 68px rgba(13, 16, 63, 0.08);
}

/* Keep the compact white inner-page navigation and create a deliberate gap
   before the first content panel. */
.pageTopbar {
  margin-bottom: clamp(1.45rem, 2.25vw, 2.1rem);
}

.innerSurface,
.legalSurface,
.blogArticlePage,
.confirmationSurface {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container));
  margin: 0 auto clamp(2.75rem, 4.5vw, 5rem);
}

.innerSurface,
.legalSurface__header,
.blogArticleHero,
.confirmationSurface {
  border: 1px solid var(--surface-border);
  background:
    radial-gradient(circle at 8% 4%, rgba(56, 189, 248, 0.12), transparent 27%),
    radial-gradient(circle at 95% 6%, rgba(99, 102, 241, 0.08), transparent 30%),
    linear-gradient(145deg, #f8fbff 0%, #f7f9ff 58%, #ffffff 100%);
  box-shadow: var(--surface-shadow);
}

.innerSurface {
  padding: clamp(2rem, 4vw, 4.25rem) clamp(1.25rem, 3.3vw, 4rem);
  border-radius: clamp(1.5rem, 2.8vw, 2.8rem);
}

.innerSurfaceTitle {
  max-width: 940px;
  margin: 0;
  color: var(--primary-dark-color);
  font-family: var(--title-font);
  font-size: clamp(2.75rem, 5vw, 5.8rem);
  line-height: 0.99;
  letter-spacing: -0.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.innerSurfaceLead {
  max-width: 790px;
  margin: 1rem 0 0;
  color: var(--muted-color);
  font-size: clamp(1rem, 0.4vw + 0.94rem, 1.2rem);
  line-height: 1.72;
}

.innerSurfaceActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: clamp(1.5rem, 2.5vw, 2.25rem);
}

/* About ------------------------------------------------------------------ */
.aboutStudioGrid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 6rem);
  max-width: 1500px;
  margin: 0 auto;
}

.aboutStudioVisual {
  position: relative;
  min-width: 0;
}

.aboutStudioImageFrame {
  width: min(100%, 560px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.25rem, 2.6vw, 2.6rem);
  border: 1px solid rgba(13, 16, 63, 0.08);
  border-radius: clamp(1.5rem, 2.7vw, 2.6rem);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 58px rgba(13, 16, 63, 0.11);
}

.aboutStudioImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1.25rem;
}

.aboutStudioBadge {
  position: absolute;
  right: clamp(-0.5rem, -1vw, -1.25rem);
  bottom: clamp(1rem, 2vw, 2rem);
  min-width: 170px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(13, 16, 63, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(13, 16, 63, 0.12);
  backdrop-filter: blur(12px);
}

.aboutStudioBadge span,
.contactInfoCard__label {
  display: block;
  color: var(--muted-color);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.aboutStudioBadge strong {
  display: block;
  margin-top: 0.28rem;
  color: var(--primary-dark-color);
  font-size: 1rem;
}

.aboutStudioCopy { min-width: 0; }

.aboutFeatureGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.4vw, 1.2rem);
  margin-top: clamp(1.8rem, 3vw, 2.75rem);
}

.aboutFeatureCard,
.contactInfoCard {
  min-width: 0;
  padding: clamp(1rem, 1.7vw, 1.4rem);
  border: 1px solid rgba(13, 16, 63, 0.08);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 28px rgba(13, 16, 63, 0.04);
}

.aboutFeatureCard__number {
  display: inline-flex;
  margin-bottom: 0.8rem;
  color: var(--primary-hover-color);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.aboutFeatureCard h2 {
  margin: 0;
  color: var(--primary-dark-color);
  font-size: 1rem;
  font-weight: 800;
}

.aboutFeatureCard p,
.contactInfoCard p {
  margin: 0.55rem 0 0;
  color: var(--muted-color);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Contact ---------------------------------------------------------------- */
.contactStudioGrid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.78fr);
  align-items: start;
  gap: clamp(2.5rem, 5vw, 6rem);
  max-width: 1450px;
  margin: 0 auto;
}

.contactStudioIntro {
  padding-block: clamp(0.25rem, 1vw, 1rem);
}

.contactInfoGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: clamp(1.75rem, 3vw, 2.6rem);
}

.contactInfoCard strong {
  display: block;
  margin-top: 0.42rem;
  color: var(--primary-dark-color);
  font-size: 1rem;
}

.contactFormCard {
  padding: clamp(1.2rem, 2.3vw, 2rem);
  border: 1px solid rgba(13, 16, 63, 0.08);
  border-radius: clamp(1.25rem, 2vw, 1.8rem);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 52px rgba(13, 16, 63, 0.09);
}

.contactFormCard__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(13, 16, 63, 0.08);
}

.contactFormCard__heading span {
  color: var(--muted-color);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contactFormCard__heading strong {
  color: var(--primary-dark-color);
  font-size: 1.05rem;
}

.contactFormModern {
  display: grid;
  gap: 1rem;
}

.contactField { min-width: 0; }
.contactField .form-label {
  margin-bottom: 0.38rem;
  color: var(--primary-dark-color);
  font-size: 0.82rem;
  font-weight: 750;
}

.contactFormModern input,
.contactFormModern textarea,
.contactFormModern select {
  width: 100%;
  min-height: 48px;
  padding: 0.78rem 0.9rem;
  border: 1px solid rgba(13, 16, 63, 0.13);
  border-radius: 0.9rem;
  background: #fbfcff;
  color: var(--base-color);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.contactFormModern textarea {
  min-height: 170px;
  resize: vertical;
}

.contactFormModern input:focus,
.contactFormModern textarea:focus,
.contactFormModern select:focus {
  border-color: rgba(40, 91, 182, 0.55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

/* Journal / blog listing ------------------------------------------------- */
.innerSurface--journal {
  overflow: hidden;
}

.journalIntro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1500px;
  margin: 0 auto clamp(2rem, 3.5vw, 3.25rem);
  padding-bottom: clamp(1.35rem, 2vw, 1.9rem);
  border-bottom: 1px solid rgba(13, 16, 63, 0.09);
}

.journalIntro > div:first-child { max-width: 920px; }

.journalCount {
  flex: 0 0 auto;
  display: grid;
  min-width: 112px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(13, 16, 63, 0.08);
  border-radius: 1.05rem;
  background: rgba(255,255,255,0.86);
  text-align: center;
  box-shadow: 0 10px 28px rgba(13,16,63,0.05);
}

.journalCount strong {
  color: var(--primary-dark-color);
  font-family: var(--title-font);
  font-size: 1.85rem;
  line-height: 1;
}

.journalCount span {
  margin-top: 0.28rem;
  color: var(--muted-color);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.journalCarouselFrame {
  max-width: 1540px;
  margin: 0 auto;
  padding: clamp(0.8rem, 1.5vw, 1.2rem) 0 0.2rem;
  border-radius: 1.5rem;
  background: rgba(255,255,255,0.28);
}

.innerSurface--journal .autoCarousel {
  margin-inline: calc(clamp(0.25rem, 0.8vw, 0.65rem) * -1);
}

.innerSurface--journal .blogCard {
  border-color: rgba(13, 16, 63, 0.08);
  box-shadow: 0 14px 36px rgba(13, 16, 63, 0.07);
}

.emptyState--surface {
  padding: 2rem;
  border: 1px dashed rgba(13,16,63,0.16);
  border-radius: 1.2rem;
  background: rgba(255,255,255,0.72);
}

.paginationWrap--surface {
  margin-top: -1.25rem;
  margin-bottom: 4rem;
}

/* Blog detail ------------------------------------------------------------ */
.blogArticlePage {
  display: grid;
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}

.blogArticleHero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: clamp(2.25rem, 5vw, 5.5rem);
  padding: clamp(2rem, 4vw, 4.25rem);
  border-radius: clamp(1.5rem, 2.8vw, 2.8rem);
}

.blogArticleTitle {
  max-width: 900px;
  margin: 0;
  color: var(--primary-dark-color);
  font-family: var(--title-font);
  font-size: clamp(2.8rem, 5.2vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.blogArticleLead {
  max-width: 760px;
  margin: 1rem 0 0;
  color: var(--muted-color);
  font-size: clamp(1rem, 0.4vw + 0.95rem, 1.2rem);
  line-height: 1.72;
}

.blogArticleHero__visual {
  display: flex;
  justify-content: center;
}

.blogArticleImageFrame {
  width: min(100%, 520px);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(13,16,63,0.08);
  border-radius: clamp(1.25rem, 2vw, 2rem);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 22px 54px rgba(13,16,63,0.10);
}

.blogArticleImage {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1rem;
}

.blogArticleBody {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 3.25rem);
  border: 1px solid rgba(13,16,63,0.08);
  border-radius: clamp(1.25rem, 2vw, 1.8rem);
  background: #fff;
  box-shadow: 0 14px 42px rgba(13,16,63,0.06);
}

.blogArticleBody .blog-content {
  max-width: 880px;
  margin: 0 auto;
  color: #40475a;
  font-size: clamp(1rem, 0.2vw + 0.97rem, 1.08rem);
  line-height: 1.82;
}

/* Legal ------------------------------------------------------------------ */
.legalSurface {
  display: grid;
  gap: clamp(1.25rem, 2vw, 1.8rem);
}

.legalSurface__header {
  padding: clamp(2rem, 4vw, 4rem);
  border-radius: clamp(1.5rem, 2.8vw, 2.7rem);
}

.legalSurface__body {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 3.25rem);
  border: 1px solid rgba(13,16,63,0.08);
  border-radius: clamp(1.25rem, 2vw, 1.8rem);
  background: #fff;
  box-shadow: 0 14px 42px rgba(13,16,63,0.06);
}

.legalSurface__body .policy-content {
  max-width: 900px;
  margin: 0 auto;
  color: #40475a;
  line-height: 1.8;
}

.legalSurface__actions {
  max-width: 900px;
  margin: 2rem auto 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(13,16,63,0.08);
}

/* Confirmation ----------------------------------------------------------- */
.confirmationSurface {
  max-width: 980px;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.5rem, 4vw, 4rem);
  border-radius: clamp(1.5rem, 2.8vw, 2.8rem);
  text-align: center;
}

.confirmationSurface .innerSurfaceTitle,
.confirmationSurface .innerSurfaceLead {
  margin-inline: auto;
}

.confirmationSurface .btn {
  margin-top: 1.75rem;
}

.confirmationSurface__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: #e7f8ed;
  color: #16803d;
  font-size: 1.65rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(22, 128, 61, 0.10);
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .aboutStudioGrid,
  .contactStudioGrid,
  .blogArticleHero {
    grid-template-columns: 1fr;
  }

  .aboutStudioVisual {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .aboutStudioCopy,
  .contactStudioIntro {
    max-width: 900px;
  }

  .contactFormCard {
    max-width: 820px;
  }

  .blogArticleHero__copy {
    max-width: 980px;
  }

  .blogArticleHero__visual {
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  .innerSurface,
  .legalSurface__header,
  .blogArticleHero,
  .confirmationSurface {
    padding: clamp(1.45rem, 5vw, 2.2rem);
  }

  .innerSurfaceTitle,
  .blogArticleTitle {
    font-size: clamp(2.35rem, 10vw, 4rem);
  }

  .aboutFeatureGrid {
    grid-template-columns: 1fr;
  }

  .contactInfoGrid {
    grid-template-columns: 1fr;
  }

  .journalIntro {
    align-items: flex-start;
  }

  .aboutStudioBadge {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

@media (max-width: 620px) {
  .pageTopbar {
    margin-bottom: 1rem;
  }

  .innerSurface,
  .legalSurface,
  .blogArticlePage,
  .confirmationSurface {
    width: min(calc(100% - 1rem), var(--container));
    margin-bottom: 2.5rem;
  }

  .innerSurface,
  .legalSurface__header,
  .blogArticleHero,
  .confirmationSurface {
    border-radius: 1.25rem;
  }

  .innerSurfaceTitle,
  .blogArticleTitle {
    font-size: clamp(2.15rem, 12vw, 3.15rem);
    line-height: 1.02;
  }

  .innerSurfaceLead,
  .blogArticleLead {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .aboutStudioImageFrame {
    padding: 1rem;
    border-radius: 1.25rem;
  }

  .aboutStudioBadge {
    position: static;
    width: 100%;
    margin-top: 0.75rem;
  }

  .innerSurfaceActions,
  .productDetail__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .innerSurfaceActions .btn,
  .confirmationSurface .btn {
    width: 100%;
  }

  .journalIntro {
    display: grid;
    gap: 1.2rem;
  }

  .journalCount {
    width: 100%;
    grid-template-columns: auto auto;
    align-items: baseline;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.85rem 1rem;
  }

  .journalCount span { margin-top: 0; }

  .contactFormCard,
  .blogArticleBody,
  .legalSurface__body {
    padding: 1.1rem;
    border-radius: 1.1rem;
  }

  .contactFormCard__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .blogArticleImageFrame {
    aspect-ratio: 1 / 1;
  }
}


/* ========================================================================== 
   NLGstudio UI v13 — unified light-blue design system
   One surface palette, one button language, and consistent component colors.
   ========================================================================== */
:root {
  --surface-blue: #eef7ff;
  --surface-blue-strong: #e4f1ff;
  --surface-card: #f7fbff;
  --surface-card-hover: #edf6ff;
  --surface-border: rgba(13, 16, 63, 0.10);
  --surface-border-strong: rgba(23, 23, 94, 0.18);
  --surface-shadow: 0 22px 64px rgba(13, 16, 63, 0.075);
  --surface-shadow-card: 0 12px 34px rgba(13, 16, 63, 0.065);
  --secondary-color: var(--primary-hover-color);
}

/* Homepage: use one continuous light-blue canvas rather than alternating
   white/light sections. Individual panels remain slightly differentiated. */
.homePage {
  min-height: 100%;
  padding-bottom: clamp(0.5rem, 1vw, 1rem);
  background:
    radial-gradient(circle at 12% 4%, rgba(56, 189, 248, 0.10), transparent 22%),
    linear-gradient(180deg, #f3f9ff 0%, var(--surface-blue) 45%, #f5faff 100%);
}
.homePage .splitHero {
  background: transparent;
}
.homePage .splitHero__card,
.homePage .showcaseSection,
.homePage .newsletter-section {
  border: 1px solid var(--surface-border);
  background:
    radial-gradient(circle at 9% 3%, rgba(56, 189, 248, 0.09), transparent 28%),
    linear-gradient(145deg, var(--surface-blue-strong), #f5faff 62%, var(--surface-card));
  box-shadow: var(--surface-shadow);
}
.homePage .showcaseSection,
.homePage .newsletter-section {
  overflow: hidden;
}
.homePage .reviewCard,
.homePage .newsletter_card {
  background: var(--surface-card);
  border-color: var(--surface-border);
  box-shadow: var(--surface-shadow-card);
}
.homePage .splitHero__imageWrap {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
}

/* Shared light surface language across inner pages and reusable panels. */
.innerSurface,
.catalogSection,
.productDetail__grid,
.legalSurface__header,
.blogArticleHero,
.confirmationSurface {
  border-color: var(--surface-border);
  background:
    radial-gradient(circle at 8% 4%, rgba(56, 189, 248, 0.11), transparent 27%),
    radial-gradient(circle at 95% 6%, rgba(99, 102, 241, 0.055), transparent 30%),
    linear-gradient(145deg, var(--surface-blue-strong) 0%, #f4f9ff 58%, var(--surface-card) 100%);
  box-shadow: var(--surface-shadow);
}

.aboutFeatureCard,
.contactInfoCard,
.contactFormCard,
.productDetail__fact,
.blogArticleBody,
.legalSurface__body,
.pf-card,
.newsletter_card,
.reviewCard,
.cardStyle1,
.keySkillCard,
.form-container,
.journalCount,
.blogArticleImageFrame,
.aboutStudioImageFrame {
  border-color: var(--surface-border);
  background: var(--surface-card);
  box-shadow: var(--surface-shadow-card);
}

/* Blog cards now use the same blue family instead of white + yellow. */
.blogCard {
  border-color: var(--surface-border);
  background: linear-gradient(145deg, var(--surface-card) 0%, var(--surface-blue-strong) 100%);
  box-shadow: var(--surface-shadow-card);
}
.blogCard:hover {
  border-color: var(--surface-border-strong);
  background: linear-gradient(145deg, #fbfdff 0%, var(--surface-card-hover) 100%);
  box-shadow: 0 18px 44px rgba(13, 16, 63, 0.10);
}
.blogCard__dateWrap {
  background: rgba(228, 241, 255, 0.92);
}
.blogCard__date,
.blogCard__title a {
  color: var(--primary-dark-color);
}
.blogCard__separator,
.blogCard__info {
  border-color: var(--surface-border);
}
.blogCard__description {
  color: var(--muted-color);
}
.blogCard__action {
  background: var(--primary-color);
  color: var(--white);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}
.blogCard__action:hover,
.blogCard__action:focus-visible {
  background: var(--primary-hover-color);
  color: var(--white);
}

/* Every back button uses the same interaction as the standard outline buttons
   such as “View all posts”. */
.productDetail__back,
.pageTopbar__back,
.catalogPageTop__back,
.page-banner__back {
  min-height: 46px;
  padding: 0.72rem 1.35rem;
  border: 1px solid rgba(23, 23, 94, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--primary-color);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.productDetail__back:hover,
.productDetail__back:focus,
.pageTopbar__back:hover,
.pageTopbar__back:focus,
.catalogPageTop__back:hover,
.catalogPageTop__back:focus,
.page-banner__back:hover,
.page-banner__back:focus {
  transform: translateY(-2px);
  border-color: var(--primary-color);
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(13, 16, 63, 0.12);
}

/* Consistent inputs and subtle cards. */
.contactFormModern input,
.contactFormModern textarea,
.contactFormModern select,
.pf-input {
  border-color: var(--surface-border-strong);
  background: var(--surface-card);
}
.contactFormModern input:focus,
.contactFormModern textarea:focus,
.contactFormModern select:focus,
.pf-input:focus {
  border-color: rgba(40, 91, 182, 0.55);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}

/* Keep the site’s accent hierarchy intentionally small: navy for primary
   actions, blue for interaction/eyebrows, pale blue for surfaces. */
.sectionEyebrow,
.aboutFeatureCard__number {
  color: var(--primary-hover-color);
}

.ratingStars::after {
  color: var(--primary-hover-color);
}

/* Mobile back buttons retain the exact same visual language at a compact size. */
@media (max-width: 560px) {
  .productDetail__back,
  .pageTopbar__back,
  .catalogPageTop__back,
  .page-banner__back {
    min-height: 38px;
    padding: 0.5rem 0.82rem;
    font-size: 0.8rem;
  }

  .homePage .showcaseSection,
  .homePage .newsletter-section {
    border-radius: 1.25rem;
  }
}

/* ========================================================================== 
   NLGstudio UI v14 — one page background everywhere
   The entire public site now shares the exact same pale-blue canvas.
   Individual cards/panels remain slightly lighter for hierarchy.
   ========================================================================== */
:root {
  --page-background: #eef7ff;
}

html,
body {
  background: var(--page-background);
}

/* Let the global page canvas show through on every route. */
.main-content-wrapper,
.homePage,
.pageTopbar,
.catalogPageTop,
.productDetail,
.blogArticlePage,
.legalSurface,
.confirmationSurface {
  background-color: transparent;
}

/* The homepage previously had its own page-level gradient. Use the same
   canvas as every inner page so navigation between routes feels seamless. */
.homePage {
  background-image: none;
}

/* Retired/legacy page banners should never introduce a different canvas. */
.page-banner,
.page-banner--catalog {
  background: transparent !important;
}

/* Keep section hierarchy without changing the page background itself. */
.lightBg {
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.07), transparent 30%),
    rgba(247, 251, 255, 0.72);
}

/* Ensure the space around all large content surfaces uses the same canvas. */
.catalogSection,
.innerSurface,
.productDetail__grid,
.legalSurface__header,
.blogArticleHero,
.confirmationSurface,
.homePage .splitHero__card,
.homePage .showcaseSection,
.homePage .newsletter-section {
  background-color: var(--surface-card);
}
