:root {
  --bg: #030b1f;
  --bg-soft: #0b1738;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.16);
  --text: #e2e8f0;
  --muted: #9fb3d9;
  --title: #f8fafc;
  --primary: #0f4ba8;
  --primary-2: #1ca8f2;
  --primary-3: #1f2f7a;
  --accent: #53c5ff;
  --container: 1160px;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --card: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --text: #334155;
  --muted: #64748b;
  --title: #0f172a;
  --primary: #0f4ba8;
  --primary-2: #1ca8f2;
  --primary-3: #1f2f7a;
  --accent: #0284c7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(28, 168, 242, 0.22), transparent 32%),
    radial-gradient(circle at 88% 20%, rgba(15, 75, 168, 0.2), transparent 28%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.custom-cursor-enabled,
body.custom-cursor-enabled a,
body.custom-cursor-enabled button,
body.custom-cursor-enabled input,
body.custom-cursor-enabled textarea,
body.custom-cursor-enabled select,
body.custom-cursor-enabled label,
body.custom-cursor-enabled [role="button"] {
  cursor: none !important;
}

[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(28, 168, 242, 0.08), transparent 32%),
    radial-gradient(circle at 88% 20%, rgba(15, 75, 168, 0.05), transparent 28%),
    var(--bg);
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: 5.5rem 0;
}

.section-dark {
  background: rgba(2, 6, 23, 0.7);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}

#steps.section-dark {
  border-top: none;
  border-bottom: none;
}

[data-theme="light"] .section-dark {
  background: var(--bg-soft);
}

.section-soft {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.2));
}

[data-theme="light"] .section-soft {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.8), rgba(241, 245, 249, 0.4));
}

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0e4baf 100%);
  color: #ffffff;
}

.cta-card {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.18);
}

.cta-title {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin: 0 auto 1.5rem;
  text-align: center;
}

.cta-text {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn-primary {
  background: #ffffff;
  color: var(--primary);
  border: none;
  font-weight: 700;
  padding: 0.8rem 2rem;
}

.cta-btn-secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

[data-theme="light"] .cta-section {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 55%, #eff6ff 100%);
  color: var(--title);
}

[data-theme="light"] .cta-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 75, 168, 0.12);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .cta-title {
  color: var(--title);
}

[data-theme="light"] .cta-text {
  color: var(--text);
}

[data-theme="light"] .cta-btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 75, 168, 0.2);
}

[data-theme="light"] .cta-btn-secondary {
  border-color: rgba(15, 75, 168, 0.28);
  color: var(--primary);
  background: rgba(255, 255, 255, 0.45);
}

[data-theme="light"] .cta-btn-secondary:hover {
  background: rgba(15, 75, 168, 0.08);
  border-color: rgba(15, 75, 168, 0.45);
}

.eyebrow {
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

#news .eyebrow,
#client .eyebrow,
#product .eyebrow,
#why-us .eyebrow,
#steps .eyebrow,
#service .eyebrow,
#hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  color: #1d4ed8;
  background: #ffffff;
  letter-spacing: 0.09em;
}

#news .eyebrow::before,
#client .eyebrow::before,
#product .eyebrow::before,
#why-us .eyebrow::before,
#steps .eyebrow::before,
#service .eyebrow::before,
#hero .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d4ed8;
}

[data-theme="light"] #news .eyebrow,
[data-theme="light"] #client .eyebrow,
[data-theme="light"] #product .eyebrow,
[data-theme="light"] #why-us .eyebrow,
[data-theme="light"] #steps .eyebrow,
[data-theme="light"] #service .eyebrow,
[data-theme="light"] #hero .eyebrow {
  background: #ffffff;
}

#client .eyebrow,
#product .eyebrow,
#why-us .eyebrow,
#steps .eyebrow,
#service .eyebrow {
  width: fit-content;
  margin-inline: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--title);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 15ch;
}

h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  max-width: 24ch;
}

.lead {
  color: var(--muted);
  margin-top: 1rem;
  max-width: 56ch;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head-inline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}

.section-head-inline .section-head-main h2 {
  margin-bottom: 0;
}

.service-badges {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.service-badges .badge {
  margin-top: 0;
  margin-bottom: 0;
}

.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  backdrop-filter: blur(14px);
  background: rgba(3, 7, 18, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="light"] .navbar-wrap {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: min-height 0.3s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.navbar .brand-logo {
  width: clamp(72px, 8vw, 104px);
  height: auto;
  object-fit: contain;
  margin-block: -14px;
  transform-origin: left center;
  transition: width 0.3s ease, margin 0.3s ease, transform 0.3s ease;
  padding: 0 1rem;
}

.navbar-wrap.scrolled {
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.14);
}

.navbar-wrap.scrolled .navbar {
  min-height: 74px;
}

.navbar-wrap.scrolled .navbar .brand-logo {
  width: clamp(58px, 6vw, 80px);
  margin-block: -6px;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-title {
  font-size: 0.95rem;
  color: var(--title);
  font-weight: 700;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.brand-text {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

.nav-container {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  gap: 2rem;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0 auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-menu a {
  color: var(--text);
  font-size: 0.95rem;
}

.nav-menu a:hover {
  color: var(--accent);
}

.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: background 0.3s ease, color 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(148, 163, 184, 0.15);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  background: transparent;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

.hero {
  padding: 6.5rem 0 5.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.2rem;
  align-items: center;
}

.hero-desc {
  color: var(--muted);
  margin-top: 1.2rem;
  max-width: 60ch;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.78rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(28, 168, 242, 0.4);
  opacity: 0.95;
}

[data-theme="light"] .btn {
  color: #ffffff;
}

.btn-sm {
  padding: 0.58rem 0.95rem;
  border-radius: 10px;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.45);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.btn-outline:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

[data-theme="light"] .btn-outline {
  border-color: var(--primary);
  color: var(--primary);
}

[data-theme="light"] .btn-outline:hover {
  background: rgba(15, 75, 168, 0.08);
  border-color: var(--primary-2);
}

.metrics-section {
  padding: 3rem 0;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  border: 1px solid var(--card-border);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.4rem;
  min-height: 120px;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  border-color: rgba(83, 197, 255, 0.4);
  background: rgba(15, 23, 42, 0.85);
}

[data-theme="light"] .metric-card {
  background: var(--card);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .metric-card:hover {
  background: #ffffff;
  border-color: rgba(2, 132, 199, 0.3);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.12);
}

.metric-card h3,
.metric-card p {
  margin: 0;
  line-height: 1;
}

.metric-card h3 {
  font-size: 1.75rem;
  color: var(--accent);
}

.metric-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28, 168, 242, 0.25) 0%, transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

.hero-image {
  position: relative;
  z-index: 1;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--card-border);
  background: var(--card);
  border-radius: 16px;
  padding: 1.2rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(83, 197, 255, 0.55);
}

.card p {
  color: var(--muted);
  margin-top: 0.45rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: 1.5rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.icon-box {
  width: 48px;
  height: 48px;
  background: rgba(83, 197, 255, 0.1);
  border: 1px solid rgba(83, 197, 255, 0.3);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.step-number {
  position: absolute;
  top: -10px;
  right: 5px;
  left: auto;
  font-size: 7rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  opacity: 0.08;
  font-family: "Plus Jakarta Sans", sans-serif;
  z-index: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-align: right;
  display: block !important;
  width: auto !important;
  height: auto !important;
  background: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.service-card:hover .step-number {
  opacity: 0.15;
  transform: scale(1.05);
}

[data-theme="light"] .step-number {
  color: var(--primary-2);
  opacity: 0.06;
}

[data-theme="light"] .service-card:hover .step-number {
  opacity: 0.12;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  background: rgba(202, 138, 4, 0.15);
  color: #facc15;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.service-card h3 {
  margin-bottom: -0.5rem;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.timeline article {
  border: 1px solid var(--card-border);
  background:
    radial-gradient(circle at right bottom, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0) 42%),
    rgba(15, 23, 42, 0.7);
  border-radius: 16px;
  padding: 1.2rem;
  transition: background 0.3s ease;
}

[data-theme="light"] .timeline article {
  background:
    radial-gradient(circle at right bottom, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 40%),
    var(--card);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.timeline span {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
}

.timeline h3 {
  margin-top: 0.45rem;
}

.timeline p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2rem;
  align-items: start;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-grid .product-card {
  position: relative;
  overflow: hidden;
}

.product-grid .product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.94) 72%, rgba(2, 6, 23, 0.55) 88%, rgba(2, 6, 23, 0.14) 100%),
    url("../images/news/blog-1.jpg");
  background-size: cover;
  background-position: right center;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .product-grid .product-card::before {
  background-image:
    linear-gradient(to right, rgba(248, 250, 252, 0.96) 0%, rgba(248, 250, 252, 0.94) 72%, rgba(248, 250, 252, 0.62) 88%, rgba(248, 250, 252, 0.25) 100%),
    url("../images/news/blog-1.jpg");
  opacity: 1;
}

.product-grid .product-card:nth-child(2)::before {
  background-image:
    linear-gradient(to right, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.94) 72%, rgba(2, 6, 23, 0.55) 88%, rgba(2, 6, 23, 0.14) 100%),
    url("../images/news/blog-2.jpg");
}

.product-grid .product-card:nth-child(3)::before {
  background-image:
    linear-gradient(to right, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.94) 72%, rgba(2, 6, 23, 0.55) 88%, rgba(2, 6, 23, 0.14) 100%),
    url("../images/news/blog-3.jpg");
}

[data-theme="light"] .product-grid .product-card:nth-child(2)::before {
  background-image:
    linear-gradient(to right, rgba(248, 250, 252, 0.96) 0%, rgba(248, 250, 252, 0.94) 72%, rgba(248, 250, 252, 0.62) 88%, rgba(248, 250, 252, 0.25) 100%),
    url("../images/news/blog-2.jpg");
}

[data-theme="light"] .product-grid .product-card:nth-child(3)::before {
  background-image:
    linear-gradient(to right, rgba(248, 250, 252, 0.96) 0%, rgba(248, 250, 252, 0.94) 72%, rgba(248, 250, 252, 0.62) 88%, rgba(248, 250, 252, 0.25) 100%),
    url("../images/news/blog-3.jpg");
}

.product-grid .product-card > * {
  position: relative;
  z-index: 1;
}

.product-icon {
  width: 56px;
  height: 56px;
  background: rgba(83, 197, 255, 0.1);
  color: var(--accent);
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.product-card:hover .product-icon {
  transform: translateY(-5px);
  background: rgba(83, 197, 255, 0.2);
}

.product-card h3 {
  margin-bottom: 0.5rem;
}

.product-card a,
.news-card a {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

.logo-marquee-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Fading edges */
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-marquee {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 4rem;
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translates by exactly half of the width since we duplicated the content */
    transform: translateX(calc(-50% - 2rem));
  }
}

.logo-marquee img {
  height: auto;
  max-height: 60px;
  filter: none;
  opacity: 0.9;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-marquee img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.news-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--card-border);
  transition: transform 0.4s ease;
}

.news-card:hover .news-thumbnail {
  transform: scale(1.05);
}

.news-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: inherit;
  position: relative;
  z-index: 2;
}

.news-card .meta {
  margin-top: 0;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

.footer {
  border-top: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(6, 16, 43, 0.94), rgba(4, 11, 31, 0.98));
  padding-top: 3rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

[data-theme="light"] .footer {
  background: #0f172a; /* Slate-900: Solid, clean dark blue/gray */
  color: #e2e8f0;
}

[data-theme="light"] .footer .brand-title,
[data-theme="light"] .footer h4 {
  color: #f8fafc;
}

[data-theme="light"] .footer .footer-desc,
[data-theme="light"] .footer .copyright p {
  color: #94a3b8;
}

[data-theme="light"] .footer ul {
  color: #e2e8f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.2fr;
  gap: 3rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer .brand-logo {
  width: 64px;
  height: auto;
  margin-block: 0;
  object-fit: contain;
}

.footer-desc {
  color: var(--muted);
  max-width: 48ch;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social a {
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.footer h4 {
  margin-bottom: 0.85rem;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--text);
}

.footer ul a:hover {
  color: var(--accent);
}

.copyright {
  border-top: 1px solid var(--card-border);
  margin-top: 1.6rem;
  padding: 1rem 0 1.8rem;
  text-align: center;
}

.copyright p {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .hero-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

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

  .card-grid.three,
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  .timeline-item {
    flex: 0 0 100%;
  }
  .slider-btn {
    display: none !important;
  }
  .article-title {
    font-size: 2rem;
  }

  .section-head-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .navbar {
    min-height: 84px;
  }

  .navbar .brand-logo {
    width: clamp(60px, 18vw, 84px);
    margin-block: -10px;
  }

  .navbar-wrap.scrolled .navbar {
    min-height: 74px;
  }

  .navbar-wrap.scrolled .navbar .brand-logo {
    width: clamp(52px, 15vw, 72px);
    margin-block: -4px;
  }

  .nav-container {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 90px;
    background: #0b1222;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

  [data-theme="light"] .nav-container {
    background: #ffffff;
    border-color: rgba(0,0,0,0.1);
  }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin: 0;
  }

  .nav-actions {
    flex-direction: column;
    width: 100%;
  }

  .nav-actions .btn {
    width: 100%;
    text-align: center;
  }

  .nav-container.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .card-grid.two,
  .card-grid.three,
  .timeline,
  .footer-grid,
  .metrics-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.6rem;
  }
}

/* Floating Actions */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 99;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

.float-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.wa-btn {
  background-color: #25d366; /* WhatsApp Green */
  text-decoration: none;
}

.wa-btn:hover {
  background-color: #1ebe57;
}

.top-btn {
  background-color: var(--primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

.top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.top-btn:hover {
  background-color: var(--primary-2);
}

[data-theme="light"] .float-btn {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .float-btn:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Eyebrow Pill Component */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #fff;
  color: #1261DB;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.eyebrow-pill::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background-color: #1261DB;
  border-radius: 50%;
}

/* Page Header Component */
.page-header {
  padding: 8rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--surface-color) 0%, var(--background-color) 100%);
}
.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* EKG Mouse Cursor */
#ekg-cursor {
  position: fixed;
  display: block;
  pointer-events: none;
  z-index: 9999999;
  opacity: 1;
  transition: opacity 0.3s;
  transform: translate(18px, 6px);
}
#ekg-cursor > svg {
  display: block;
  overflow: visible;
}
.ekg-line {
  fill: none;
  stroke: #00d2ff; 
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 65;
  stroke-dashoffset: 65;
  animation: ekg-pulse 1.2s infinite linear;
  filter: drop-shadow(0 0 4px rgba(0, 210, 255, 0.8));
}
@keyframes ekg-pulse {
  0% { stroke-dashoffset: 65; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -65; }
}

/* Product Specific Styles */
.product-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  padding: 4rem 0;
}
.sidebar-filter {
  background-color: var(--surface-color);
  padding: 2rem;
  border-radius: var(--radius-lg);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.filter-group {
  margin-bottom: 2rem;
}
.filter-group:last-child {
  margin-bottom: 0;
}
.filter-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}
.filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.filter-item {
  margin-bottom: 0.75rem;
}
.filter-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}
.filter-label:hover {
  color: var(--text-color);
}
.filter-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.product-item-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.product-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  border-radius: 20px;
}
.product-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}
.product-info {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-category {
  font-size: 0.85rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.product-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
.product-action:hover {
  color: var(--primary-color);
}

/* Product Detail Specific Styles */
.breadcrumb {
  padding: 2rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.breadcrumb a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: var(--primary-color);
}
.breadcrumb span {
  margin: 0 0.5rem;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
}
.product-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.product-gallery {
  background-color: #fff;
  border-radius: 20px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.product-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  transition: opacity 0.2s ease-in-out;
}
.product-gallery-thumbnails-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}
.thumb-nav-btn {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.thumb-nav-btn:hover {
  background: var(--primary-color);
  color: #fff;
}
.product-gallery-thumbnails {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex-grow: 1;
  padding: 0.25rem;
}
.product-gallery-thumbnails::-webkit-scrollbar {
  display: none;
}
.thumbnail-item {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 2px solid transparent;
  background-color: #fff;
  padding: 0.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.thumbnail-item.active {
  border-color: var(--primary-color);
}
.thumbnail-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.product-badge-large {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
}

.product-info-wrap {
  display: flex;
  flex-direction: column;
}
.product-info-wrap .product-category {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.product-info-wrap .product-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.product-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.spec-box {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.spec-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}
.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.spec-item {
  display: flex;
  padding: 0.5rem 0;
}
.spec-label {
  width: 40%;
  font-weight: 600;
  color: var(--text-secondary);
}
.spec-value {
  width: 60%;
  font-weight: 500;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

/* News Layout Styles */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.news-card {
  background-color: var(--surface-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.news-thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.news-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.news-content .meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.news-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
}
.news-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-content a {
  margin-top: auto;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.news-content a:hover {
  text-decoration: underline;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 4rem;
}
.pagination .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--surface-color);
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.pagination .page-link:hover, .pagination .page-link.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* Article Detail Styles */
.article-container {
  width: 100%;
  max-width: 100%;
  padding: 4rem 0;
}
.article-header-wrapper {
  padding: 0 1.5rem;
}
.article-image {
  width: 100%;
  height: auto;
  max-height: 60vh;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.article-content-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.article-header {
  margin-bottom: 2rem;
  max-width: 100%;
}
.article-meta {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

.article-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
}
.article-content p {
  margin-bottom: 1.5rem;
}
.article-content h2, .article-content h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}
.article-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1.25rem;
}

/* Related News Section */
.related-news {
  background-color: var(--surface-color);
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
}

/* Success Story Timeline Styles */
#timeline-slider {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  position: relative;
  z-index: 1;
  padding-bottom: 2rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
#timeline-slider::-webkit-scrollbar {
  display: none;
}
.slider-btn {
  display: flex;
}
.timeline-item {
  flex: 0 0 calc(100% / 3);
  min-width: 300px;
  padding: 0 1.5rem;
  scroll-snap-align: start;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (max-width: 992px) {
  .timeline-item {
    flex: 0 0 50%;
  }
  .product-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-filter {
    position: static;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .product-info-wrap .product-title {
    font-size: 2rem;
  }
}
@media (max-width: 576px) {
  .product-actions {
    flex-direction: column;
  }
  .spec-item {
    flex-direction: column;
    gap: 0.25rem;
  }
  .spec-label, .spec-value {
    width: 100%;
  }
}

/* ==========================================================================
   Typography
   ========================================================================== */
