/* ============================================================
   Kubrik ERP — Option C: Minimal Creative
   Clean, warm, editorial-style design
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Palette */
  --bg: #FAFAF8;
  --bg-dark: #1a1a2e;
  --accent: #FF6B35;
  --accent-hover: #e85d2c;
  --text-heading: #1a1a2e;
  --text-body: #4a4a5a;
  --text-muted: #8a8a9a;
  --card-bg: #ffffff;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --border: #eaeaea;

  /* Module colors */
  --color-core: #3366FF;
  --color-plat: #9933FF;
  --color-wms: #00B368;
  --color-oms: #FF8C00;
  --color-crm: #FF3355;
  --color-acc: #009688;
  --color-ecom: #6633CC;
  --color-cms: #E91E90;
  --color-hr: #2196F3;
  --color-pos: #0E7490;
  --color-pos-hover: #0a5566;
  --color-cop: #7C3AED;
  --color-cop-hover: #5B21B6;
  --color-platform: #1E3A8A;
  --color-platform-hover: #172554;
  --color-platform-accent: #F59E0B;

  /* Typography */
  --font: 'DM Sans', sans-serif;
  --tracking-tight: -0.02em;

  /* Layout */
  --max-w: 1140px;
  --gutter: 24px;
}

/* --- Reset --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-body);
  background: var(--bg);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

table {
  border-collapse: collapse;
}

/* --- Utility --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.section-number {
  position: absolute;
  top: -20px;
  left: var(--gutter);
  font-size: 120px;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  opacity: 0.06;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.section-header {
  margin-bottom: 64px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 19px;
  color: var(--text-muted);
  font-weight: 400;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   1. Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.nav.nav--scrolled {
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 40px;
  width: auto;
  /* The Platform PNG is designed for dark backgrounds (white wordmark).
     Flip lightness while preserving hues on light pages.
     Dark pages (e.g. body[data-page="copilot"]) override this to `none`. */
  filter: invert(1) hue-rotate(180deg);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--text-heading);
}

.nav__cta {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  padding: 10px 24px;
  border-radius: 50px;
  transition: background 0.2s ease;
}

.nav__cta:hover {
  background: var(--accent-hover);
}


/* ============================================================
   2. Hero
   ============================================================ */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(51, 102, 255, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(0, 179, 104, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.hero__container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(255, 107, 53, 0.08);
  border: 1px solid rgba(255, 107, 53, 0.15);
  margin-bottom: 32px;
}

.hero__badge-icon {
  font-size: 16px;
}

.hero__headline {
  font-size: 76px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  line-height: 1.02;
  margin-bottom: 48px;
}

/* Marquee */
.marquee {
  overflow: hidden;
  margin-bottom: 40px;
  padding: 8px 0;
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.marquee__content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  padding-right: 16px;
}

.marquee__pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--pill-color, var(--text-heading));
  background: color-mix(in srgb, var(--pill-color, var(--text-heading)) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--pill-color, var(--text-heading)) 18%, transparent);
}

.marquee__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero__sub {
  font-size: 19px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero__cta {
  display: inline-block;
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border-radius: 50px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.hero__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__cta-secondary {
  display: inline-block;
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-heading);
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hero__cta-secondary:hover {
  border-color: var(--text-heading);
  transform: translateY(-1px);
}

.hero__note {
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero__note-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__note-icon {
  font-size: 16px;
  color: var(--color-wms);
}


/* ============================================================
   2b. Stats Bar
   ============================================================ */
.stats {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.stats__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
}

.stats__item {
  text-align: center;
}

.stats__number {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 4px;
}

.stats__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stats__divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}


/* ============================================================
   2c. Tech Stack Strip
   ============================================================ */
.tech-stack {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.tech-stack .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tech-stack__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0;
}

.tech-stack__items {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tech-stack__item {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  padding: 6px 16px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
}

.tech-stack__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}


/* ============================================================
   3. Modules
   ============================================================ */
.modules {
  padding: 120px 0;
}

.module {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}

.module--even {
  direction: ltr; /* Reset for layout */
}

.module__content {
  direction: ltr;
}

.module__visual {
  display: flex;
  direction: ltr;
}

.module--odd .module__visual {
  justify-content: flex-end;
}

.module--even .module__visual {
  justify-content: flex-start;
}

.module__bar {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.module__name {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  margin-bottom: 12px;
}

.module__code {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.module__desc {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 20px;
}

.module__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.module__tag {
  display: inline-block;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  background: #f2f2f0;
  border-radius: 50px;
}

.module__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s ease;
}

.module__link:hover {
  color: var(--accent-hover);
}

/* Module visual card */
.module__card {
  width: 280px;
  height: 200px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.module__card-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--module-color);
}

.module__icon {
  font-size: 48px;
  color: var(--module-color);
  opacity: 0.7;
}

.module__divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}


/* ============================================================
   4. How It Works (Horizontal Cards)
   ============================================================ */
.how-it-works {
  padding: 120px 0;
  background: #f5f5f3;
}

.steps-h {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.steps-h__card {
  flex: 1;
  max-width: 340px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.steps-h__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.steps-h__number {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.25;
}

.steps-h__icon {
  display: block;
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 20px;
}

.steps-h__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  margin-bottom: 12px;
}

.steps-h__desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
}

.steps-h__connector {
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.steps-h__arrow {
  font-size: 24px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* Keep old .steps/.step classes for module detail pages */
.steps {
  position: relative;
  padding-left: 80px;
  max-width: 640px;
}

.steps__line {
  position: absolute;
  left: 28px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--border);
}

.step {
  padding: 32px 0;
  position: relative;
}

.step:not(:last-child) {
  margin-bottom: 16px;
}

.step__number {
  position: absolute;
  left: -80px;
  top: 32px;
  width: 56px;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: var(--tracking-tight);
  text-align: center;
}

.step__title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  margin-bottom: 8px;
}

.step__desc {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.8;
}


/* ============================================================
   5. Pricing
   ============================================================ */
.pricing {
  padding: 120px 0;
}

.pricing-table-wrap {
  margin-bottom: 48px;
}

.pricing-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card-bg);
}

.pricing-table {
  width: 100%;
  min-width: 720px;
  font-size: 15px;
}

.pricing-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.pricing-table__feature-col {
  text-align: left;
  font-weight: 500;
  color: var(--text-heading);
  background: var(--card-bg);
  min-width: 220px;
}

.pricing-table__plan-col {
  background: var(--card-bg);
  padding: 24px 20px;
  min-width: 160px;
}

.pricing-table__plan-col--featured {
  background: #FFF8F5;
}

.pricing-table__plan-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.pricing-table__plan-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.pricing-table__plan-price span {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-table__plan-cta {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 50px;
  transition: background 0.2s ease, color 0.2s ease;
}

.pricing-table__plan-cta--primary {
  background: var(--accent);
  color: #fff;
}

.pricing-table__plan-cta--primary:hover {
  background: var(--accent-hover);
}

.pricing-table__plan-cta--outline {
  border: 1px solid var(--border);
  color: var(--text-heading);
}

.pricing-table__plan-cta--outline:hover {
  border-color: var(--text-heading);
}

.pricing-table__group-row td {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: #f9f9f7;
  text-align: left;
  padding: 10px 20px;
}

.pricing-table tbody tr:not(.pricing-table__group-row) td:first-child {
  text-align: left;
  color: var(--text-body);
}

.pricing-table tbody tr:not(.pricing-table__group-row):hover {
  background: #fafaf8;
}

/* Featured column highlight on data rows */
.pricing-table tbody tr:not(.pricing-table__group-row) td:nth-child(3) {
  background: #FFF8F5;
}

.check {
  color: var(--accent);
  font-weight: 700;
}

.dash {
  color: var(--text-muted);
}

.pricing-table__scroll-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-table__scroll-hint .material-icons-outlined {
  font-size: 18px;
}

.pricing-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pricing-ctas__btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 50px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pricing-ctas__btn--primary {
  background: var(--accent);
  color: #fff;
}

.pricing-ctas__btn--primary:hover {
  background: var(--accent-hover);
}

.pricing-ctas__btn--outline {
  border: 1px solid var(--border);
  color: var(--text-heading);
}

.pricing-ctas__btn--outline:hover {
  border-color: var(--text-heading);
}


/* ============================================================
   6. Download
   ============================================================ */
.download {
  padding: 120px 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.download-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.download-card--featured {
  border: 2px solid var(--accent);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.1);
}

.download-card__badge {
  display: inline-block;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 50px;
  margin-bottom: 16px;
}

.download-card__badge--free {
  background: rgba(0, 179, 104, 0.1);
  color: var(--color-wms);
}

.download-card__badge--popular {
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent);
}

.download-card__badge--enterprise {
  background: rgba(51, 102, 255, 0.1);
  color: var(--color-core);
}

.download-card__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  margin-bottom: 8px;
}

.download-card__desc {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.download-card__code {
  background: #f5f5f5;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.download-card__code code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  font-size: 13px;
  color: var(--text-heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-card__copy {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--text-muted);
  transition: color 0.2s ease, background 0.2s ease;
}

.download-card__copy:hover {
  color: var(--text-heading);
  background: rgba(0, 0, 0, 0.05);
}

.download-card__copy .material-icons-outlined {
  font-size: 18px;
}

.download-card__copy.copied {
  color: var(--accent);
}

.download-card__size {
  font-size: 13px;
  color: var(--text-muted);
}

.download-footer {
  text-align: center;
}

.download-footer__prereq {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.download-footer__link {
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  transition: color 0.2s ease;
}

.download-footer__link:hover {
  color: var(--accent-hover);
}


/* ============================================================
   7. CTA Banner
   ============================================================ */
.cta-banner {
  padding: 120px 0;
  background: var(--bg-dark);
}

.cta-banner__inner {
  text-align: center;
}

.cta-banner__title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: #fff;
  margin-bottom: 16px;
}

.cta-banner__sub {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
}

.cta-banner__btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border-radius: 50px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta-banner__btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}


/* ============================================================
   8. Footer
   ============================================================ */
.footer {
  padding: 80px 0 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1.05fr 1.1fr 1fr 1fr 1.05fr 0.95fr 0.95fr;
  gap: 28px;
  margin-bottom: 64px;
}

.footer__col--brand {
  grid-column: span 1;
}

.footer__logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer__logo-img {
  height: 36px;
  width: auto;
  /* Same as nav__logo-img: flip lightness on light backgrounds. */
  filter: invert(1) hue-rotate(180deg);
}

.footer__tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 260px;
}

.footer__heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.footer__list li {
  margin-bottom: 10px;
}

.footer__list a {
  font-size: 15px;
  color: var(--text-body);
  transition: color 0.2s ease;
}

.footer__list a:hover {
  color: var(--text-heading);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer__copy {
  font-size: 14px;
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.footer__social a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer__social a:hover {
  color: var(--text-heading);
}

.footer__social-sep {
  color: var(--text-muted);
}


/* ============================================================
   5b. Kubrik Cloud
   ============================================================ */
.cloud {
  padding: 120px 0;
  background: #f5f5f3;
}

.cloud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.cloud-feature {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cloud-feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cloud-feature__icon {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.cloud-feature__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.cloud-feature__desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
}

.cloud-cta {
  text-align: center;
}

.cloud-cta__box {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: var(--card-bg);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 32px 48px;
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.1);
}

.cloud-cta__content {
  text-align: left;
}

.cloud-cta__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.cloud-cta__desc {
  font-size: 15px;
  color: var(--text-muted);
}

.cloud-cta__btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border-radius: 50px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cloud-cta__btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}


/* ============================================================
   6b. Partner Program
   ============================================================ */
.partners {
  padding: 120px 0;
  background: #f5f5f3;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.partner-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 40px 32px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.partner-card__icon {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}

.partner-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.partner-card__desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
}

.partners-benefits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.partners-benefits__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--card-bg);
  border-radius: 50px;
  box-shadow: var(--card-shadow);
}

.partners-benefits__icon {
  font-size: 20px;
  color: var(--accent);
}

.partners-benefits__text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-heading);
}

.partners-cta {
  text-align: center;
}

.partners-cta__btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border-radius: 50px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.partners-cta__btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}


/* ============================================================
   Pricing Plan Note
   ============================================================ */
.pricing-table__plan-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}


/* ============================================================
   CTA Banner Buttons (dual)
   ============================================================ */
.cta-banner__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-banner__btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cta-banner__btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}


/* ============================================================
   Responsive
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .hero__headline {
    font-size: 56px;
  }

  .section-title {
    font-size: 40px;
  }

  .section-number {
    font-size: 90px;
  }

  .module {
    gap: 40px;
  }

  .module__card {
    width: 220px;
    height: 160px;
  }

  .steps-h__card {
    padding: 32px 24px;
  }

  .steps-h__number {
    font-size: 40px;
  }

  .cta-banner__title {
    font-size: 40px;
  }

  .download-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .stats__grid {
    gap: 32px;
  }

  .stats__number {
    font-size: 32px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer__col--brand {
    grid-column: span 2;
  }

  .cloud-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cloud-cta__box {
    flex-direction: column;
    text-align: center;
    padding: 32px;
  }

  .cloud-cta__content {
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --gutter: 20px;
  }

  .hero {
    padding: 100px 0 80px;
  }

  .hero__headline {
    font-size: 40px;
    letter-spacing: -0.02em;
  }

  .hero__headline br {
    display: none;
  }

  .hero__sub {
    font-size: 17px;
  }

  .hero__sub br {
    display: none;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__cta,
  .hero__cta-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 14px 32px;
    font-size: 15px;
  }

  .hero__note {
    flex-direction: column;
    gap: 8px;
  }

  .hero__badge {
    font-size: 13px;
    padding: 6px 16px;
  }

  /* Stats */
  .stats {
    padding: 32px 0;
  }

  .stats__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .stats__divider {
    display: none;
  }

  .stats__number {
    font-size: 28px;
  }

  .stats__label {
    font-size: 12px;
  }

  /* Tech stack */
  .tech-stack .container {
    flex-direction: column;
    gap: 12px;
  }

  .tech-stack__items {
    justify-content: center;
  }

  .tech-stack__dot {
    display: none;
  }

  .section-number {
    font-size: 72px;
  }

  .section-title {
    font-size: 32px;
  }

  .section-subtitle {
    font-size: 17px;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .modules,
  .how-it-works,
  .pricing,
  .download {
    padding: 80px 0;
  }

  /* Steps horizontal → vertical on mobile */
  .steps-h {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .steps-h__card {
    max-width: 100%;
  }

  .steps-h__connector {
    padding: 8px 0;
  }

  .steps-h__arrow {
    transform: rotate(90deg);
  }

  /* Nav mobile: scrollable strip */
  .nav__inner {
    height: 60px;
  }

  .nav__links {
    gap: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-shrink: 1;
    min-width: 0;
  }

  .nav__links::-webkit-scrollbar {
    display: none;
  }

  .nav__link {
    font-size: 14px;
    white-space: nowrap;
  }

  .nav__cta {
    font-size: 14px;
    padding: 8px 18px;
    white-space: nowrap;
  }

  /* Modules stack */
  .module {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }

  /* On mobile, always show content first, then visual */
  .module--even {
    direction: ltr;
  }

  .module--even .module__visual {
    order: 2;
  }

  .module--even .module__content {
    order: 1;
  }

  .module--odd .module__visual {
    justify-content: flex-start;
  }

  .module__card {
    width: 100%;
    max-width: 320px;
    height: 160px;
  }

  /* Steps */
  .steps {
    padding-left: 60px;
  }

  .steps__line {
    left: 18px;
  }

  .step__number {
    left: -60px;
    width: 40px;
    font-size: 22px;
  }

  .step__title {
    font-size: 20px;
  }

  /* Pricing table scroll hint */
  .pricing-table__scroll-hint {
    display: flex;
  }

  /* Download grid */
  .download-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .download-card__code code {
    font-size: 11px;
  }

  /* CTA Banner */
  .cta-banner {
    padding: 80px 0;
  }

  .cta-banner__title {
    font-size: 32px;
  }

  .cta-banner__sub {
    font-size: 17px;
  }

  /* Footer */
  .footer {
    padding: 60px 0 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 48px;
  }

  .footer__col--brand {
    grid-column: span 1;
  }

  .footer__tagline {
    max-width: 100%;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Pricing CTA buttons */
  .pricing-ctas {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }

  .pricing-ctas__btn {
    text-align: center;
  }

  /* Cloud */
  .cloud {
    padding: 80px 0;
  }

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

  .cloud-cta__box {
    flex-direction: column;
    gap: 20px;
    padding: 24px;
  }

  /* Partners */
  .partners {
    padding: 80px 0;
  }

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

  .partners-benefits {
    flex-direction: column;
    align-items: stretch;
  }

  .partners-benefits__item {
    justify-content: center;
  }

  /* CTA Banner buttons */
  .cta-banner__buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-banner__btn--outline {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}


/* ============================================================
   Module Detail Pages
   ============================================================ */

/* Module Hero */
.module-hero {
  padding: 120px 0 80px;
  border-bottom: 1px solid var(--border);
}

.module-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.module-hero__breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.module-hero__breadcrumb a:hover {
  color: var(--accent);
}

.module-hero__breadcrumb-sep {
  font-size: 12px;
}

.module-hero__bar {
  width: 56px;
  height: 5px;
  border-radius: 3px;
  margin-bottom: 24px;
}

.module-hero__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 24px;
  font-size: 32px;
}

.module-hero__title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 8px;
}

.module-hero__code {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  margin-bottom: 20px;
}

.module-hero__desc {
  font-size: 20px;
  color: var(--text-body);
  line-height: 1.7;
  max-width: 680px;
}

.module-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.module-hero__tag {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 50px;
}

/* Module Content Sections */
.module-section {
  padding: 96px 0;
}

.module-section:nth-child(even) {
  background: #f5f5f3;
}

.module-section__title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  margin-bottom: 16px;
}

.module-section__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 640px;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feature-card__icon {
  font-size: 28px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.feature-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
}

/* Submodule Grid (for ACC and ECOM) */
.submodule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.submodule-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: var(--card-shadow);
  border-left: 4px solid var(--submodule-color, var(--accent));
  transition: transform 0.2s ease;
}

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

.submodule-card__name {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.submodule-card__code {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.submodule-card__desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
}

/* Integration Flows */
.flow-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 800px;
}

.flow-item {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: var(--card-shadow);
}

.flow-item__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.flow-item__steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.flow-item__step {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 50px;
  background: #f2f2f0;
  color: var(--text-body);
}

.flow-item__arrow {
  color: var(--text-muted);
  font-size: 14px;
}

/* Module CTA */
.module-cta {
  padding: 96px 0;
  text-align: center;
}

.module-cta__title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
  margin-bottom: 16px;
}

.module-cta__desc {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.module-cta__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.module-cta__btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 50px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.module-cta__btn--primary {
  background: var(--accent);
  color: #fff;
}

.module-cta__btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.module-cta__btn--outline {
  border: 1px solid var(--border);
  color: var(--text-heading);
}

.module-cta__btn--outline:hover {
  border-color: var(--text-heading);
}

/* Other Modules Links */
.other-modules {
  padding: 96px 0;
  background: #f5f5f3;
}

.other-modules__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.other-modules__card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.other-modules__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.other-modules__card-icon {
  font-size: 28px;
  margin-bottom: 10px;
  opacity: 0.7;
}

.other-modules__card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-heading);
}

/* Module Page Responsive */
@media (max-width: 1024px) {
  .module-hero__title {
    font-size: 44px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .other-modules__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .module-hero {
    padding: 80px 0 60px;
  }

  .module-hero__title {
    font-size: 36px;
  }

  .module-hero__desc {
    font-size: 17px;
  }

  .module-section {
    padding: 64px 0;
  }

  .module-section__title {
    font-size: 28px;
  }

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

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

  .other-modules__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .module-cta__title {
    font-size: 28px;
  }

  .module-cta__buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 300px;
    margin: 0 auto;
  }

  .module-cta__btn {
    text-align: center;
  }

  .flow-item__steps {
    flex-direction: column;
    align-items: flex-start;
  }

  .flow-item__arrow {
    transform: rotate(90deg);
    align-self: center;
  }
}

/* ============================================================
   Language Switcher
   ============================================================ */
.lang-switcher {
  position: relative;
  margin-left: 8px;
}

.lang-switcher__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  background: transparent;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}

.lang-switcher__btn:hover {
  border-color: var(--text-muted);
  background: rgba(0, 0, 0, 0.02);
}

.lang-switcher__code {
  letter-spacing: 0.03em;
}

.lang-switcher__arrow {
  font-size: 10px;
  line-height: 1;
  transition: transform 0.2s;
}

.lang-switcher--open .lang-switcher__arrow {
  transform: rotate(180deg);
}

.lang-switcher__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 170px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1000;
  padding: 4px;
}

.lang-switcher--open .lang-switcher__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-switcher__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-body);
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s;
}

.lang-switcher__option:hover {
  background: rgba(0, 0, 0, 0.04);
}

.lang-switcher__option--active {
  color: var(--accent);
  font-weight: 500;
}

.lang-switcher__option-code {
  font-weight: 600;
  font-size: 13px;
  min-width: 26px;
  letter-spacing: 0.03em;
}

.lang-switcher__option-name {
  flex: 1;
}

@media (max-width: 768px) {
  .lang-switcher {
    margin-left: 4px;
  }

  .lang-switcher__btn {
    padding: 5px 8px;
    font-size: 13px;
  }

  .lang-switcher__dropdown {
    right: -8px;
    min-width: 156px;
  }
}

/* ============================================================
   Mobile hamburger nav
   ============================================================ */

/* Hamburger button — hidden on desktop, shown <768px */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
  margin-left: 8px;
}
.nav__toggle:hover {
  background: var(--bg);
}
.nav__toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.15s ease;
}
.nav--open .nav__toggle-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav--open .nav__toggle-line:nth-child(2) {
  opacity: 0;
}
.nav--open .nav__toggle-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Universal mobile-overflow guard — never let any single rogue element
   force a horizontal scrollbar on the document. */
html, body {
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .nav__toggle {
    display: inline-flex;
    align-items: center;
  }

  /* Collapse links into an overlay panel under the nav bar. Reset the
     mobile-strip behaviour from the earlier breakpoint. */
  .nav__inner {
    position: relative;
  }

  .nav__links {
    position: fixed;
    top: 60px; /* matches .nav__inner mobile height */
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 60px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  }

  .nav--open .nav__links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }

  .nav__link,
  .nav__dropdown-trigger {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 14px 4px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    white-space: normal;
  }
  .nav__link:last-of-type {
    border-bottom: none;
  }

  /* Products dropdown becomes an inline expanding section */
  .nav__dropdown {
    width: 100%;
  }
  .nav__dropdown-trigger {
    justify-content: space-between;
  }
  .nav__dropdown-trigger .material-icons-outlined {
    transition: transform 0.2s ease;
  }
  .nav__dropdown--open .nav__dropdown-trigger .material-icons-outlined {
    transform: rotate(180deg);
  }
  .nav__dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    background: var(--bg);
    border-radius: 10px;
    padding: 0;
    margin: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.2s ease;
  }
  /* Always show on tap; the JS toggles --open on small viewports */
  .nav__dropdown--open .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
    max-height: 400px;
    padding: 8px;
    margin: 8px 0 12px;
  }
  /* Defeat the desktop hover behaviour on touch */
  .nav__dropdown:hover .nav__dropdown-menu {
    opacity: inherit;
    visibility: inherit;
  }
  .nav__dropdown:not(.nav__dropdown--open):hover .nav__dropdown-menu {
    opacity: 0;
    visibility: hidden;
  }

  .nav__cta {
    align-self: stretch;
    text-align: center;
    margin-top: 10px;
    padding: 14px 24px;
    font-size: 15px;
    border-radius: 12px;
  }

  /* Language switcher inside the open mobile menu */
  .nav--open .lang-switcher {
    width: 100%;
    margin-top: 16px;
  }

  /* Lock background scroll while menu is open */
  body.nav-locked {
    overflow: hidden;
  }
}

/* ============================================================
   Mobile overflow fixes — page-specific
   ============================================================ */
@media (max-width: 768px) {
  /* K-POS landing-page terminal mockup: the -1.2deg rotate pushes
     edges past the viewport at 375px. Drop the rotation on mobile. */
  .pos-terminal {
    transform: none !important;
  }
}

