/* ARIMEX - site stylesheet */

:root {
  --bg: #0b0b0f;
  --bg-alt: #131318;
  --bg-elevated: #1a1a21;
  --card: #16161c;
  --cyan: #22e0ea;
  --cyan-soft: #1bc4d1;
  --success: #2bd678;
  --text: #f3f4f6;
  --text-dim: #b6b8c0;
  --text-faint: #82848d;
  --border: #24242c;
  --radius: 18px;
  --radius-sm: 12px;
  --max-w: 1200px;
  --font: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --shadow-md: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 15, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(9, 9, 13, 0.97);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.3s ease;
}

.site-header.scrolled .header-inner {
  padding: 11px 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.brand svg { flex-shrink: 0; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.main-nav a {
  position: relative;
  font-size: 15px;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.main-nav a:hover,
.main-nav a.active {
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-cyan {
  background: var(--cyan);
  color: #04191c;
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 224, 234, 0.25), 0 0 26px rgba(34, 224, 234, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(34, 224, 234, 0.18);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 26px;
  cursor: pointer;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 0;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 10%, rgba(34,224,234,0.08), transparent 60%),
    var(--bg);
}

/* ---------- Hero 3D brain (centered, full-hero backdrop) ---------- */

.hero-brain {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.hero-brain.is-ready { opacity: 1; }

.hero-brain canvas { display: block; width: 100%; height: 100%; }

.hero-brain-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-brain-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  padding: 5px 12px;
  border: 1px solid rgba(34, 224, 234, 0.16);
  border-radius: 999px;
  background: rgba(34, 224, 234, 0.05);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-brain-label.show { opacity: 1; transform: translateY(0); }

.hero-brain-label .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}

@media (max-width: 900px) {
  .hero-brain-labels { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-brain { display: none; }
}

.hero .wrap { position: relative; z-index: 1; width: 100%; }

/* ---------- Section divider lines ---------- */

section + section { position: relative; }

section + section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 70%;
  max-width: 900px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 224, 234, 0.3), transparent);
  pointer-events: none;
}

/* ---------- Page load fade-in ---------- */

body { opacity: 0; transition: opacity 0.5s ease; }
body.page-loaded { opacity: 1; }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--cyan), #7fe9f0);
  width: 0%; z-index: 10000;
  box-shadow: 0 0 8px rgba(34,224,234,0.5);
}

/* ---------- Scroll reveal animation ---------- */

[data-reveal] {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(24px);
  transition: opacity 0.8s ease, filter 0.8s ease, transform 0.8s ease;
}

[data-reveal].in-view {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

[data-reveal-group] > * {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(20px);
  transition: opacity 0.7s ease, filter 0.7s ease, transform 0.7s ease;
}

[data-reveal-group].in-view > * {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

[data-reveal-group].in-view > *:nth-child(1) { transition-delay: 0.05s; }
[data-reveal-group].in-view > *:nth-child(2) { transition-delay: 0.15s; }
[data-reveal-group].in-view > *:nth-child(3) { transition-delay: 0.25s; }
[data-reveal-group].in-view > *:nth-child(4) { transition-delay: 0.35s; }
[data-reveal-group].in-view > *:nth-child(5) { transition-delay: 0.45s; }
[data-reveal-group].in-view > *:nth-child(6) { transition-delay: 0.55s; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-group] > * {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: none !important;
    transition: none !important;
  }
}

.eyebrow {
  color: var(--cyan);
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 auto 24px;
  max-width: 900px;
  position: relative;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 40px;
  color: var(--text-dim);
  font-size: 18px;
  position: relative;
}

/* ---------- Sections ---------- */

section { padding: 90px 0; }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-head h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  margin: 0 0 18px;
}

.section-head p {
  color: var(--text-dim);
  font-size: 17px;
}

/* ---------- Solutions grid ---------- */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}

.solution-card {
  padding: 40px 32px 60px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: transform .15s ease-out;
  will-change: transform;
}

.solution-card:nth-child(3n) { border-right: none; }

.solution-num {
  color: var(--cyan);
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 18px;
}

.solution-card h3 {
  font-size: 22px;
  margin: 0 0 14px;
}

.solution-card p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
}

/* ---------- Services split ---------- */

.services-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.services-split h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  margin: 0 0 36px;
}

.service-item { margin-bottom: 28px; }

.service-item h4 {
  font-size: 18px;
  margin: 0 0 6px;
}

.service-item p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
}

.services-visual {
  border-radius: 24px;
  padding: 3px;
  background: linear-gradient(160deg, rgba(34,224,234,0.5), rgba(34,224,234,0) 60%);
}

.services-visual-inner {
  background: radial-gradient(circle at 50% 40%, #0f2a2c, #0a0c10 70%);
  border-radius: 22px;
  aspect-ratio: 4/3.2;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Ticker ---------- */

.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  background: var(--bg-alt);
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: scroll-left 22s linear infinite;
  width: max-content;
}

.ticker span {
  color: var(--cyan);
  font-weight: 800;
  font-size: clamp(22px, 3.4vw, 34px);
  padding-right: 28px;
}

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

/* ---------- Transformation ---------- */

.transform-section { text-align: center; background: var(--bg-alt); }

/* ---------- Testimonials ---------- */

.testimonial-carousel {
  overflow: hidden;
  position: relative;
}
.testimonial-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: testimonial-scroll 32s linear infinite;
}
.testimonial-carousel:hover .testimonial-track {
  animation-play-state: paused;
}
@keyframes testimonial-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-track { animation: none; }
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  width: 340px;
  flex-shrink: 0;
}

.testimonial-card p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0 0 20px;
}

.testimonial-name {
  font-weight: 700;
  font-size: 15px;
}

.testimonial-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; background: #22e0ea;
  color: #04141a; font-weight: 700; font-size: 12px; margin-right: 8px; vertical-align: middle;
}

/* ---------- Email CTA ---------- */

.email-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  background: var(--bg-alt);
}

.email-cta h2 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  margin: 0;
  max-width: 700px;
}

.email-cta a.highlight {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
}

/* ---------- Process timeline ---------- */

.process-timeline {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.process-step {
  position: relative;
  padding-bottom: 60px;
}

.process-step:last-child { padding-bottom: 0; }

.process-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan);
  margin: 0 auto 22px;
  box-shadow: 0 0 0 6px rgba(34,224,234,0.12);
}

.process-line {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% - 14px);
  background: linear-gradient(var(--cyan), transparent);
  z-index: -1;
}

.process-step:last-child .process-line { display: none; }

.process-step h3 {
  font-size: 22px;
  margin: 0 0 14px;
}

.process-step p {
  color: var(--text-dim);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-copy {
  color: var(--text-faint);
  font-size: 14px;
  text-align: right;
}

/* ---------- Generic page hero (About / Contact / Portfolio / Demos) ---------- */

.page-hero {
  padding: 70px 0 20px;
}

.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  margin: 0 0 16px;
}

.page-hero p {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 640px;
}

/* ---------- About page ---------- */

.about-body {
  max-width: 780px;
}

.about-body p {
  color: var(--text-dim);
  font-size: 16px;
  margin-bottom: 22px;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.about-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}

.about-list li:first-child { border-top: 1px solid var(--border); }

.about-list b { color: var(--cyan); }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}

.contact-info-line {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 16px;
}

.contact-info-line a {
  color: var(--cyan);
  text-decoration: underline;
}

.get-in-touch h2 {
  font-size: 26px;
  margin-bottom: 26px;
}

.demo-link {
  display: inline-block;
  margin-top: 20px;
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  font-size: 15px;
}

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--text-dim);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
}

.field textarea { resize: vertical; min-height: 100px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.reply-note {
  color: var(--text-faint);
  font-size: 14px;
  text-align: center;
  margin-top: 18px;
}

/* ---------- Demos page ---------- */

.demo-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 90px;
}

.demo-block:nth-child(even) .demo-visual { order: -1; }

.demo-block h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 20px;
}

.demo-block ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
}

.demo-block ul li {
  color: var(--text-dim);
  font-size: 15px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.demo-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.demo-visual .badge {
  position: absolute;
  bottom: 18px;
  right: 18px;
  background: var(--cyan);
  color: #04191c;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 999px;
}

.coming-soon {
  text-align: center;
  padding: 60px 0;
}

.coming-soon h3 {
  font-size: 26px;
  margin-bottom: 14px;
}

.coming-soon p {
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 30px;
}

/* ---------- Bots showcase (home page) ---------- */

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

.bot-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .15s ease-out;
  will-change: transform;
}

.bot-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  background: var(--bg-alt);
  position: relative;
}

.bot-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bot-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #0f2a2c, #0a0c10 70%);
}

.bot-badge-live {
  position: absolute;
  top: 12px; right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7cffb2;
  background: rgba(43, 214, 120, 0.12);
  border: 1px solid rgba(43, 214, 120, 0.3);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.bot-badge-live .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2bd678; box-shadow: 0 0 8px #2bd678;
  animation: pulse-dot 1.6s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.bot-card h4 {
  font-size: 18px;
  margin: 0 0 8px;
}

.bot-card p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 14px;
}

.bot-card a {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.bot-card a:hover { text-decoration: underline; }

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

/* ---------- Animations ---------- */

.word-anim {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  animation: word-in 0.7s ease forwards;
}

@keyframes word-in {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ---------- Stats strip + tech stack ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-box { padding: 20px 10px; }
.stat-num { font-size: clamp(24px, 4vw, 38px); font-weight: 800; color: #22e0ea; }
.stat-label { color: var(--text-dim); font-size: 13px; margin-top: 6px; }
.tech-stack-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tech-chip { border: 1px solid rgba(34,224,234,0.35); border-radius: 20px; padding: 6px 16px; font-size: 13px; color: var(--text-dim); }
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- Custom cursor ring + spotlight ---- */
.cursor-ring {
  position: fixed; top: 0; left: 0; width: 28px; height: 28px;
  border: 1.5px solid #22e0ea; border-radius: 50%;
  pointer-events: none; z-index: 9999; transition: width .2s, height .2s, opacity .2s;
  mix-blend-mode: difference;
}
.cursor-ring-active { width: 44px; height: 44px; background: rgba(34,224,234,0.15); }
.cursor-spotlight {
  position: fixed; inset: 0; pointer-events: none; z-index: 1;
}


/* ---- Rotating dial/wheel ---- */
.rotating-dial { animation: dial-spin 14s linear infinite; transform-origin: center; }
@keyframes dial-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

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

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .solutions-grid { grid-template-columns: 1fr; }
  .solution-card { border-right: none !important; }
  .services-split,
  .contact-grid,
  .demo-block {
    grid-template-columns: 1fr;
  }
  .demo-block:nth-child(even) .demo-visual { order: 0; }
  .field-row { grid-template-columns: 1fr; }
  .email-cta { text-align: center; justify-content: center; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 24px 32px;
    gap: 18px;
  }
}

/* ---------- Pricing hint (homepage teaser) ---------- */

.pricing-hint-section {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 70px 24px;
}

.pricing-hint-section .eyebrow {
  display: block;
  margin-bottom: 14px;
}

.pricing-hint-section p {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 17px;
  color: var(--text-dim);
}

.pricing-hint-link {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pricing-hint-link:hover { color: var(--text); }

/* ---------- Feature checklists (Products page, etc.) ---------- */

.pricing-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.pricing-features li {
  color: var(--text-dim);
  font-size: 14px;
  padding: 7px 0 7px 26px;
  position: relative;
}

.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

.pricing-cta {
  text-align: center;
  width: 100%;
}

/* ---------- Nav dropdown ("Platform" group) ---------- */

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown summary {
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  color: var(--text);
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.nav-dropdown summary::-webkit-details-marker { display: none; }

.nav-dropdown summary:hover,
.nav-dropdown[open] summary { opacity: 1; }

.nav-dropdown-caret { transition: transform 0.2s ease; flex-shrink: 0; }

.nav-dropdown[open] .nav-dropdown-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  min-width: 230px;
  box-shadow: var(--shadow-md);
  z-index: 200;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0.9;
}

.nav-dropdown-menu a:hover { background: var(--bg-alt); opacity: 1; }

/* ---------- Product detail cards (Products page) ---------- */

.product-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  margin-bottom: 28px;
}

.product-detail-card h2 { font-size: 30px; margin: 12px 0 14px; }

.product-lead {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 22px;
  max-width: 720px;
}

/* ---------- Services catalog (Services page) ---------- */

.service-category { margin-bottom: 54px; }

.service-category-heading {
  font-size: 22px;
  color: var(--cyan);
  margin: 0 0 22px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.services-grid .service-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  margin-bottom: 0;
}

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

/* ---------- Blog ---------- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: transform .15s ease-out;
}

.blog-card .blog-tag {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.blog-card h3 { font-size: 20px; margin: 0 0 10px; }

.blog-card p { color: var(--text-dim); font-size: 14px; flex: 1; margin: 0; }

.blog-card .blog-meta { color: var(--text-faint); font-size: 12px; margin-top: 18px; }

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

.blog-post-body { max-width: 760px; margin: 0 auto; }

.blog-post-body h2 { font-size: 26px; margin: 36px 0 16px; }
.blog-post-body h3 { font-size: 20px; margin: 28px 0 12px; }
.blog-post-body p { color: var(--text-dim); font-size: 16px; margin-bottom: 18px; }
.blog-post-body ul { color: var(--text-dim); font-size: 16px; padding-left: 22px; margin-bottom: 18px; }

.blog-post-meta { color: var(--text-faint); font-size: 14px; margin-bottom: 12px; }

/* ---------- Redirect / retired-page stub ---------- */

.redirect-stub {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.redirect-stub p { color: var(--text-dim); margin: 14px 0 26px; }

@media (max-width: 900px) {
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: 8px;
    margin-top: 8px;
  }
}
