/* ============================================================
   NOVALUXE — Premium IT Brand · Light Theme with Doodles
   Warm cream palette · Soft shadows · Hand-drawn decorations
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Backgrounds */
  --bg-base:    #fefcf8;
  --bg-surface: #ffffff;
  --bg-muted:   #faf5ec;
  --bg-subtle:  #f2e9da;
  --bg-card:    #ffffff;

  /* Borders */
  --border:        #e8ddd0;
  --border-strong: #d0c0a8;
  --border-focus:  #7c3aed;

  /* Text */
  --text-primary:   #1c1408;
  --text-secondary: #5c4f3d;
  --text-muted:     #998878;
  --text-invert:    #ffffff;

  /* Brand accents */
  --accent-purple:  #7c3aed;
  --accent-violet:  #6d28d9;
  --accent-amber:   #d97706;
  --accent-sky:     #0284c7;
  --accent-emerald: #059669;
  --accent-rose:    #e11d48;

  /* Light accent tints */
  --tint-purple:  rgba(124,58,237,0.08);
  --tint-amber:   rgba(217,119,6,0.09);
  --tint-sky:     rgba(2,132,199,0.08);
  --tint-emerald: rgba(5,150,105,0.08);
  --tint-rose:    rgba(225,29,72,0.08);

  /* Shadows — warm toned */
  --shadow-xs:  0 1px 3px rgba(28,20,8,0.06), 0 1px 2px rgba(28,20,8,0.04);
  --shadow-sm:  0 2px 8px rgba(28,20,8,0.08), 0 1px 3px rgba(28,20,8,0.05);
  --shadow-md:  0 4px 20px rgba(28,20,8,0.1),  0 2px 8px rgba(28,20,8,0.06);
  --shadow-lg:  0 12px 40px rgba(28,20,8,0.12), 0 4px 12px rgba(28,20,8,0.06);
  --shadow-xl:  0 24px 64px rgba(28,20,8,0.14), 0 8px 24px rgba(28,20,8,0.08);

  /* Accent shadow */
  --shadow-accent: 0 4px 24px rgba(124,58,237,0.25);

  /* Typography */
  --font-display: 'Syne', 'Space Grotesk', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing */
  --section-py: clamp(5rem, 9vw, 8rem);
  --container:  1240px;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;

  /* Easing */
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);

  /* Fixed nav — hero padding + anchor scroll offset */
  --nav-offset: clamp(5.25rem, 5rem + 2vw, 6.5rem);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-offset);
}

/* ============================================================
   DOODLES ANIMATIONS — Hand-drawn decorative SVG elements
   ============================================================ */

/* Base doodle styles */
.doodle-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.doodle {
  position: absolute;
  pointer-events: none;
  user-select: none;
}
.doodle svg {
  display: block;
  filter: drop-shadow(0 2px 4px rgba(28,20,8,0.05));
}

/* Doodle animations */
@keyframes float-up {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.7; }
  50% { transform: translateY(-16px) rotate(3deg); opacity: 1; }
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.08); }
}
@keyframes bounce-in {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(4deg); }
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.anim-float { animation: float-up 5s ease-in-out infinite; }
.anim-float-slow { animation: float-up 7s ease-in-out infinite; }
.anim-spin { animation: spin-slow 12s linear infinite; }
.anim-spin-ccw { animation: spin-slow 10s linear infinite reverse; }
.anim-wiggle { animation: wiggle 4s ease-in-out infinite; }
.anim-bounce { animation: bounce-in 2.5s ease-in-out infinite; }
.anim-sway { animation: sway 3.5s ease-in-out infinite; }
.anim-pulse { animation: pulse-glow 3s ease-in-out infinite; }

/* Responsive: hide doodles on mobile */
@media (max-width: 768px) {
  .doodle-container { display: none; }
}

/* ============================================================
   RESET & BASE STYLES
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
h2 { font-size: clamp(1.875rem, 6vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

.display-xl { font-size: clamp(2.5rem, 8vw, 4rem); }
.display-lg { font-size: clamp(1.875rem, 6vw, 3.25rem); }
.display-md { font-size: clamp(1.5rem, 4vw, 2rem); }
.display-sm { font-size: 1.25rem; font-weight: 700; }

p { margin-bottom: 1rem; color: var(--text-secondary); }
a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: var(--accent-violet); }

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  position: relative;
  padding: var(--section-py) 0;
}
.section-header {
  margin-bottom: 3rem;
}
.label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-purple);
  margin-bottom: 1rem;
}
.text-gradient {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-blue {
  background: linear-gradient(135deg, var(--accent-sky), var(--accent-emerald));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Grid layouts */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
/* Force 3 equal columns for the products section */
.products-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
}

/* Card component */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover {
  border-color: var(--border-focus);
  box-shadow: var(--shadow-md);
}
.card:hover::before {
  opacity: 1;
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent-purple);
  color: white;
  box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}
.btn--primary:hover {
  background: var(--accent-violet);
  color: var(--text-invert);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}
.btn--secondary {
  background: transparent;
  color: var(--accent-purple);
  border: 2px solid var(--accent-purple);
}
.btn--secondary:hover {
  background: var(--tint-purple);
  border-color: var(--accent-violet);
  color: var(--accent-violet);
}
.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}
/* Small button — used in nav CTA */
.btn--sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}
/* Ghost button — used in nav CTA */
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  background: var(--tint-purple);
}

/* ============================================================
   NAVIGATION — Sticky header + Mega-menu
   ============================================================ */

/* ── Base nav bar ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  /* Allow mega-menu to overflow below */
  overflow: visible;
}
.nav.nav--scrolled {
  background: rgba(254, 252, 248, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-xs);
}

/* ── Inner content row ── */
.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  padding: 0 1.5rem;
  /* max-width: var(--container); */
  margin: 0 auto;
  position: relative; /* anchor for mega-menu */
}

/* ── Logo ── */
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav__logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--accent-purple), var(--accent-violet));
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(124,58,237,0.25);
}
.nav__logo-text span { color: var(--accent-purple); }

/* ── Desktop link list ── */
.nav__links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
.nav__item {
  display: flex;
  align-items: center;
  height: 100%;
  position: static; /* mega-menu positions relative to nav-content */
}
/* Plain links */
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0 0.8rem;
  height: 100%;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s ease;
  font-family: var(--font-body);
}
.nav--active {
  color: var(--accent-purple) !important;
  font-weight: 600;
}
.nav__link:hover,
.nav__item--has-dropdown:hover > .nav__link,
.nav__item--has-dropdown.is-open > .nav__link,
.nav__item--has-dropdown:hover > a.nav__link,
.nav__item--has-dropdown.is-open > a.nav__link {
  color: var(--accent-purple);
}
/* When nav link is split (text-only), reduce right padding */
.nav__item--has-dropdown > a.nav__link {
  padding-right: 0;
}
/* Chevron on dropdown trigger */
.nav__chevron {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.nav__item--has-dropdown.is-open .nav__chevron {
  transform: rotate(180deg);
}
/* Split chevron button (when nav text link + chevron are separate elements) */
.nav__chevron-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 0 0.6rem 0 0.1rem;
  height: 100%;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.nav__item--has-dropdown:hover > .nav__chevron-btn,
.nav__item--has-dropdown.is-open > .nav__chevron-btn {
  color: var(--accent-purple);
}

/* ── CTA buttons ── */
.nav__cta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

/* ── Search button ──────────────────────────────────── */
.nav__search-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.nav__search-btn:hover { background: var(--bg-muted); color: var(--accent-purple); }

/* ── Standard dropdown (Services, Solutions, etc.) ──── */
.nav__item--has-std-dropdown {
  position: relative;
}
.std-dropdown {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  min-width: 220px;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  white-space: nowrap;
}
.std-dropdown--wide {
  min-width: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.nav__item--has-std-dropdown.is-open .std-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
/* Keep on-screen if it would overflow right edge */
.nav__item--has-std-dropdown:last-of-type .std-dropdown,
.std-dropdown--right {
  left: auto;
  right: 0;
  transform: translateY(-8px);
}
.nav__item--has-std-dropdown:last-of-type.is-open .std-dropdown,
.nav__item--has-std-dropdown.is-open .std-dropdown--right {
  transform: translateY(0);
}

.std-drop__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
.std-drop__item:hover { background: var(--bg-muted); }
.std-drop__item:hover .std-drop__title { color: var(--accent-purple); }

.std-drop__icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.std-drop__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  transition: color 0.15s;
}
.std-drop__desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.4;
  white-space: normal;
}
.std-drop__divider {
  height: 1px;
  background: var(--border);
  margin: 0.375rem 0.875rem;
  grid-column: 1 / -1;
}
.std-drop__section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0.875rem 0.25rem;
  grid-column: 1 / -1;
}
.std-drop__footer {
  grid-column: 1 / -1;
  padding: 0.625rem 0.875rem 0.375rem;
  border-top: 1px solid var(--border);
  margin-top: 0.25rem;
}
.std-drop__footer a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-purple);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.std-drop__footer a:hover { text-decoration: underline; }

/* ── Product badge in mega menu ─────────────────────── */
.nav-badge {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 99px;
  margin-left: 0.35rem;
  vertical-align: middle;
  line-height: 1.6;
}
.nav-badge--popular    { background: rgba(217,119,6,0.15);  color: #92400e; }
.nav-badge--featured   { background: rgba(124,58,237,0.15); color: #6d28d9; }
.nav-badge--new        { background: rgba(5,150,105,0.15);  color: #065f46; }
.nav-badge--enterprise { background: rgba(2,132,199,0.15);  color: #0369a1; }

/* ── Hamburger (hidden on desktop) ── */
.nav__hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 2.25rem;
  height: 2.25rem;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-primary);
  transition: border-color 0.25s, color 0.25s, background 0.25s;
  padding: 0;
  flex-shrink: 0;
}
.nav__hamburger:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  background: var(--tint-purple);
}
/* Three-line → X morph animation */
.ham-line {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.23,1,0.32,1), opacity 0.2s ease, width 0.25s ease;
  transform-origin: center;
}
.nav__hamburger.active .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__hamburger.active .ham-line:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav__hamburger.active .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ══════════════════════════════════════════════════════════════
   MEGA MENU — Products dropdown
   Positioned absolute relative to .nav-content
══════════════════════════════════════════════════════════════ */

.mega-menu {
  /* Position relative to .nav-content (position:relative) */
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;

  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 1.5rem;

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 1100;
}

/* Visible state — triggered by JS adding .is-open to parent .nav__item */
.nav__item--has-dropdown.is-open .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Mega menu header ── */
.mega-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.mega-menu__title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mega-menu__see-all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-purple);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.2s;
}
.mega-menu__see-all:hover { gap: 0.45rem; }

/* ── Category sections ── */
.mega-menu__categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.mega-menu__cat-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
  padding-bottom: 0.375rem;
  border-bottom: 1px solid var(--bg-subtle);
}
.mega-menu__cat-items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* ── Product card in mega menu ── */
.mega-prod {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}
.mega-prod:hover {
  background: var(--bg-muted);
  box-shadow: var(--shadow-xs);
}
.mega-prod__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.mega-prod__body { flex: 1; min-width: 0; }
.mega-prod__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mega-prod__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 0.125rem;
}
.mega-prod__tag {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 99px;
  margin-top: 0.25rem;
  white-space: nowrap;
}

/* Icon color variants */
.mega-prod__icon--green  { background: rgba(5,150,105,0.12); }
.mega-prod__icon--blue   { background: rgba(2,132,199,0.12); }
.mega-prod__icon--purple { background: rgba(124,58,237,0.12); }
.mega-prod__icon--amber  { background: rgba(217,119,6,0.12); }
.mega-prod__icon--indigo { background: rgba(79,70,229,0.12); }
.mega-prod__icon--teal   { background: rgba(20,184,166,0.12); }
.mega-prod__icon--rose   { background: rgba(244,63,94,0.12); }
.mega-prod__icon--sky    { background: rgba(14,165,233,0.12); }
.mega-prod__icon--violet { background: rgba(139,92,246,0.12); }
.mega-prod__icon--cyan   { background: rgba(6,182,212,0.12); }
.mega-prod__icon--orange { background: rgba(249,115,22,0.12); }

/* Tag color variants */
.tag--green  { background: rgba(5,150,105,0.1);  color: #065f46; }
.tag--blue   { background: rgba(2,132,199,0.1);  color: #0369a1; }
.tag--purple { background: rgba(124,58,237,0.1); color: #6d28d9; }
.tag--amber  { background: rgba(217,119,6,0.1);  color: #92400e; }
.tag--indigo { background: rgba(79,70,229,0.1);  color: #3730a3; }
.tag--teal   { background: rgba(20,184,166,0.1); color: #0f766e; }
.tag--rose   { background: rgba(244,63,94,0.1);  color: #be123c; }
.tag--sky    { background: rgba(14,165,233,0.1); color: #0369a1; }

/* ══════════════════════════════════════════════════════════════
   MOBILE NAVIGATION
══════════════════════════════════════════════════════════════ */

.nav__mobile {
  position: fixed;
  inset: 0;
  top: 4rem; /* matches nav-content height */
  background: var(--bg-base);
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  z-index: 999;
  overflow-y: auto;
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
  visibility: hidden;
  -webkit-overflow-scrolling: touch;
}
.nav__mobile.open {
  opacity: 1;
  transform: translateX(0);
  visibility: visible;
}

/* Mobile close button */
.nav__mobile-close {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  align-self: flex-end;
  transition: color 0.2s;
}
.nav__mobile-close:hover { color: var(--accent-purple); }

/* Mobile plain links */
.nav__mobile-link {
  display: block;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s;
}
.nav__mobile-link:hover { color: var(--accent-purple); }

/* Mobile accordion — Products toggle */
.nav__mobile-accordion {
  border-bottom: 1px solid var(--border);
}
.nav__mobile-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.875rem 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
}
.nav__mobile-accordion-trigger:hover { color: var(--accent-purple); }
.nav__mobile-accordion-trigger svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.nav__mobile-accordion.is-open .nav__mobile-accordion-trigger svg {
  transform: rotate(180deg);
}
.nav__mobile-accordion-trigger.active { color: var(--accent-purple); }

/* Mobile accordion panel */
.nav__mobile-panel {
  display: none;
  padding: 0.25rem 0 0.75rem 0.75rem;
}
.nav__mobile-accordion.is-open .nav__mobile-panel {
  display: block;
}

/* Mobile product list */
.nav__mobile-prod {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.5rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
}
.nav__mobile-prod:hover { background: var(--bg-muted); }
.nav__mobile-prod__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 0.4rem;
  flex-shrink: 0;
}
.nav__mobile-prod__name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}
.nav__mobile-prod__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Mobile CTA strip */
.nav__mobile-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nav__mobile-cta .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-offset);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: blob 8s infinite;
}
.hero__blob--1 {
  width: 600px;
  height: 600px;
  background: var(--accent-purple);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}
.hero__blob--2 {
  width: 500px;
  height: 500px;
  background: var(--accent-amber);
  bottom: -150px;
  left: 10%;
  animation-delay: 2s;
}
.hero__blob--3 {
  width: 400px;
  height: 400px;
  background: var(--accent-sky);
  top: 50%;
  right: 5%;
  animation-delay: 4s;
}
@keyframes blob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero__dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(124,58,237,0.08) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  /* margin-top: calc(-1 * var(--nav-offset)); */
}
.hero__title {
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 500px;
}
.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--tint-purple);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.feature-chip svg {
  width: 16px;
  height: 16px;
  color: var(--accent-purple);
}
.hero__actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}
.hero__trust-avatars {
  display: flex;
  gap: -0.75rem;
}
.hero__trust-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  border: 2px solid white;
  margin-left: -12px;
}
.hero__trust-avatar:first-child {
  margin-left: 0;
}
.hero__trust strong {
  color: var(--text-primary);
}

/* Hero visual card */
.hero__visual {
  position: relative;
}
.hero__visual-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  animation: float-up 5s ease-in-out infinite;
}

/* ============================================================
   STATS BAR
   ============================================================ */

.stats-bar {
  position: relative;
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
  margin: 4rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item {
  position: relative;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--accent-purple);
  margin-bottom: 0.5rem;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.service-card__icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  transition: all 0.3s;
}
.icon--purple { background: linear-gradient(135deg, var(--accent-purple), var(--accent-violet)); }
.icon--amber { background: linear-gradient(135deg, var(--accent-amber), #ea580c); }
.icon--sky { background: linear-gradient(135deg, var(--accent-sky), #0369a1); }
.icon--emerald { background: linear-gradient(135deg, var(--accent-emerald), #047857); }
.icon--rose { background: linear-gradient(135deg, var(--accent-rose), #be123c); }

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.service-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  flex-grow: 1;
}
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-purple);
  font-weight: 600;
  transition: gap 0.3s;
}
.service-card__link:hover {
  gap: 0.75rem;
}

/* ============================================================
   WHY CARDS
   ============================================================ */

.why-card {
  text-align: center;
}
.why-card__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}
.why-card h3 {
  margin-bottom: 0.75rem;
}
.why-card p {
  font-size: 0.95rem;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-card__img {
  width: calc(100% + 4rem);
  height: 200px;
  background: var(--bg-muted);
  overflow: hidden;
  margin: -2rem -2rem 1.5rem -2rem;
}
.product-card__img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(2,132,199,0.1));
}
.product-card__name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.product-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.product-card__price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-purple);
  margin-bottom: 1.5rem;
}
.product-card__cta {
  display: inline-block;
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */

.process__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}
.process__step {
  position: relative;
  text-align: center;
}
.process__num {
  width: 60px;
  height: 60px;
  background: var(--tint-purple);
  border: 2px solid var(--accent-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-purple);
  margin: 0 auto 1rem;
}
.process__title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.process__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================================
   BLOG CARDS
   ============================================================ */

.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.blog-card__img {
  width: calc(100% + 4rem);
  height: 200px;
  background: var(--bg-muted);
  overflow: hidden;
  margin: -2rem -2rem 1.5rem -2rem;
}
.blog-card__img-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-card__category {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-purple);
  margin-bottom: 0.75rem;
}
.blog-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.blog-card__meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}
.blog-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-purple);
  font-weight: 600;
  transition: gap 0.3s;
}
.blog-card__read-more:hover {
  gap: 0.75rem;
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  position: relative;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-violet));
  color: white;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
  margin: 4rem 0;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}
.cta-banner__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.cta-banner__heading {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.cta-banner__desc {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}
.cta-banner__actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-banner .btn--primary {
  background: white;
  color: var(--accent-purple);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.cta-banner .btn--primary:hover {
  background: rgba(255,255,255,0.95);
  transform: translateY(-2px);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */

.contact {
  position: relative;
}
.contact__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}
.contact__item {
  display: flex;
  gap: 1rem;
}
.contact__item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 1.25rem;
}
.contact__item-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.contact__item-value {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Form styles */
.form-group {
  margin-bottom: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1.125rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: all 0.3s;
  background: var(--bg-surface);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent-purple);
  box-shadow: 0 0 0 3px var(--tint-purple);
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
}
.form-submit {
  background: var(--accent-purple);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  max-width: 300px;
}
.form-submit:hover {
  background: var(--accent-violet);
  color: var(--text-invert);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(124,58,237,0.3);
}

.form-success {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.form-success[hidden] {
  display: none !important;
}
.form-success__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}
.form-success__text {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}
.form-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  background: var(--tint-rose);
  color: var(--accent-rose);
  font-size: 0.9rem;
  display: none;
}
.form-error.is-visible {
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--text-primary);
  color: white;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer__content {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  margin-bottom: 3rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .footer__content {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }
}
@media (max-width: 640px) {
  .footer__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .footer__content {
    grid-template-columns: 1fr;
  }
}
.footer__section h4 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: white;
}
.footer__link {
  display: block;
  margin-bottom: 0.75rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  transition: color 0.3s;
}
.footer__link:hover {
  color: white;
}
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* ============================================================
   SCROLL ANIMATIONS (via data-aos attribute)
   ============================================================ */

[data-aos] {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { display: none; }
  .contact__items { grid-template-columns: 1fr; }
}

/* Mega menu: collapse to 2 cols on medium screens */
@media (max-width: 1400px) {
  .mega-menu__categories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1280px) {
  .nav__link { padding: 0 0.6rem; font-size: 0.875rem; }
  .std-dropdown--wide { min-width: 400px; }
}
@media (max-width: 1140px) {
  .nav__link { padding: 0 0.45rem; font-size: 0.8125rem; }
  .nav__cta .btn--book-demo { display: none; }
}

@media (max-width: 1024px) {
  :root {
    --nav-offset: 4rem;
  }
  html { font-size: 14px; }
  /* Hide desktop nav elements */
  .nav__links,
  .nav__cta { display: none !important; }
  /* Show hamburger */
  .nav__hamburger { display: flex; }
  /* Hero adjustments */
  .hero {
    padding-top: var(--nav-offset);
    min-height: auto;
    padding-bottom: 3rem;
  }
  .hero__inner { margin-top: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner__actions { flex-direction: column; }
  .cta-banner .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  :root { --nav-offset: 4rem; }
  .container { padding: 0 1rem; }
  .grid-3, .grid-2, .products-grid-3 { grid-template-columns: 1fr; gap: 1.5rem; }
  h1, .display-xl { font-size: 1.75rem; }
  h2, .display-lg { font-size: 1.5rem; }
  .hero__inner { margin-top: 0.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .feature-chips { flex-direction: column; }
  .feature-chip { justify-content: center; }
}
