/* =========================================================
   N.ishu Digital Solutions — Frontend Stylesheet
   Dark, glassmorphic "AI SaaS" design system.
========================================================= */
:root {
  --primary: #6c5cff;
  --primary-dark: #4f3fe0;
  --secondary: #00d4ff;
  --dark: #05070d;
  --dark-2: #0b0e1a;
  --bg: #05070d;
  --bg-alt: #090c16;
  --surface: rgba(255, 255, 255, .045);
  --surface-solid: #10131f;
  --border: rgba(255, 255, 255, .09);
  --text: #f5f6fb;
  --gray: #9aa3b8;
  --light: rgba(255, 255, 255, .045);
  --white: #ffffff;
  --header-bg: rgba(5, 7, 13, .75);
  --radius: 20px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --glow: 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 60px rgba(108, 92, 255, .15);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

/* ===== Light Mode ===== */
:root[data-theme="light"] {
  --dark-2: #eef1f7;
  --bg: #f7f8fc;
  --bg-alt: #eef0f8;
  --surface: rgba(15, 20, 40, .04);
  --surface-solid: #ffffff;
  --border: rgba(15, 20, 40, .09);
  --text: #12131c;
  --gray: #545b70;
  --light: rgba(15, 20, 40, .04);
  --header-bg: rgba(255, 255, 255, .82);
  --shadow: 0 20px 50px rgba(20, 25, 50, .10);
  --glow: 0 0 0 1px rgba(20, 25, 50, .05), 0 20px 50px rgba(108, 92, 255, .16);
}

:root[data-theme="light"] body::before {
  opacity: .6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray);
  line-height: 1.7;
  background: var(--bg);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 0%, rgba(108, 92, 255, .16), transparent 45%),
    radial-gradient(circle at 90% 20%, rgba(0, 212, 255, .12), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(108, 92, 255, .10), transparent 40%);
  pointer-events: none;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: .25s;
}

ul {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -.01em;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 12.5px;
  margin-bottom: 14px;
  padding: 7px 16px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
}

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

.section-desc {
  color: var(--gray);
  max-width: 700px;
  font-size: 16px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: .3s;
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 10px 34px rgba(108, 92, 255, .4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 44px rgba(108, 92, 255, .55);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(108, 92, 255, .12);
}

/* ===== Topbar ===== */
.topbar {
  background: var(--dark-2);
  color: var(--gray);
  font-size: 13px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

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

.topbar-left span,
.topbar-right a {
  margin-right: 18px;
  color: var(--gray);
}

.topbar-left i,
.topbar-right i {
  color: var(--primary);
  margin-right: 6px;
}

.topbar-social a {
  margin: 0 0 0 12px;
  display: inline-flex;
  width: 26px;
  height: 26px;
  background: var(--surface);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.topbar-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* ===== Header / Nav ===== */
.site-header {
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: auto;
  max-width: 220px;
  object-fit: contain;
  border-radius: 10px;
}

.brand-text strong {
  display: block;
  font-size: 19px;
  color: var(--text);
}

.brand-text small {
  font-size: 12px;
  color: var(--gray);
}

.main-nav>ul {
  display: flex;
  gap: 6px;
  align-items: center;
}

.main-nav>ul>li {
  position: relative;
}

.main-nav>ul>li>a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  border-radius: 8px;
}

.main-nav>ul>li>a:hover {
  color: var(--primary);
}

.main-nav .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--surface-solid);
  min-width: 240px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: .25s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.main-nav li.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav .dropdown li {
  width: 100%;
}

.main-nav .dropdown li a {
  padding: 10px 14px;
  display: block;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--text);
}

.main-nav .dropdown li a:hover {
  background: var(--surface);
  color: var(--primary);
}

.nav-cta {
  white-space: nowrap;
}

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

/* ===== Reusable Carousel ===== */
.carousel {
  position: relative;
  margin-top: 50px;
}

.carousel-track {
  display: flex !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 22px;
  padding: 4px 4px 14px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track>* {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  z-index: 5;
  font-size: 16px;
  transition: .2s;
}

.carousel-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.carousel-btn.prev {
  left: -14px;
}

.carousel-btn.next {
  right: -14px;
}

@media(max-width:640px) {
  .carousel-btn {
    display: none;
  }
}

/* ===== Marquee Ticker ===== */
.marquee-band {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 0 20px;
}

@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media(prefers-reduced-motion:reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: radial-gradient(circle at 20% 20%, rgba(108, 92, 255, .25), transparent 45%), radial-gradient(circle at 85% 10%, rgba(0, 212, 255, .18), transparent 40%), var(--dark);
  color: #fff;
  padding: 130px 0 100px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  top: -160px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(108, 92, 255, .35), transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  color: var(--primary);
  padding: 9px 20px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 50px;
  color: #fff;
  margin-bottom: 18px;
  letter-spacing: -.02em;
}

.hero h1 .accent {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: #aab0c8;
  font-size: 16.5px;
  margin-bottom: 30px;
  max-width: 560px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 9px 18px;
  border-radius: 30px;
  font-size: 13px;
  color: #dfe2f5;
}

.hero-media {
  position: relative;
}

.hero-media img {
  border-radius: 24px;
  box-shadow: var(--glow);
  border: 1px solid var(--border);
}

.hero-slider {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--glow);
  border: 1px solid var(--border);
  aspect-ratio: 4/3;
  position: relative;
  background: var(--surface-solid);
}

.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slider img.active {
  opacity: 1;
}

.hero-stat-badge {
  position: absolute;
  bottom: -25px;
  left: -25px;
  background: var(--surface-solid);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.hero-stat-badge strong {
  font-size: 26px;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

/* ===== Engaging Section ===== */
.engaging {
  padding: 100px 0;
}

.engaging-has-bg {
  color: #fff;
}

.engaging-has-bg .section-tag {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.engaging-has-bg .section-title,
.engaging-has-bg h2,
.engaging-has-bg h3 {
  color: #fff;
}

.engaging-has-bg p,
.engaging-has-bg .engaging-content p {
  color: #dfe2f0;
}

.engaging-has-bg .feature-list li {
  color: #fff;
}

.engaging-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.engaging-media {
  position: relative;
}

.engaging-media img {
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--glow);
}

.ceo-card {
  position: absolute;
  bottom: -30px;
  right: -20px;
  background: var(--surface-solid);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  padding: 20px 24px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-width: 220px;
}

.ceo-card strong {
  display: block;
  font-size: 16px;
  color: var(--text);
}

.ceo-card span {
  font-size: 13px;
  color: var(--gray);
}

.ceo-card .ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--pct, 95)*1%), rgba(255, 255, 255, .08) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  font-weight: 700;
  font-size: 13px;
}

.ceo-card .ring span.inner {
  background: var(--surface-solid);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.feature-list {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.feature-list li i {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex: none;
}

/* ===== Services ===== */
.services {
  background: var(--bg-alt);
}

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

.service-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  transition: .3s;
  border: 1px solid var(--border);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.service-num {
  font-size: 36px;
  font-weight: 800;
  color: rgba(255, 255, 255, .08);
  margin-bottom: 6px;
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text);
}

.service-card p {
  color: var(--gray);
  font-size: 14.5px;
  margin-bottom: 16px;
}

.service-card a {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.service-card a i {
  margin-left: 4px;
  transition: .25s;
}

.service-card a:hover i {
  margin-left: 8px;
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 50px;
}

.project-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--primary), var(--dark));
  border: 1px solid var(--border);
}

.carousel-track .project-card {
  width: 270px;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 7, 13, .94), rgba(5, 7, 13, .15));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: .3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay span {
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.project-overlay h4 {
  color: #fff;
  font-size: 16px;
  margin-top: 4px;
}

/* ===== Why Choose Us ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 50px;
}

.why-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  padding: 32px 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: .3s;
}

.why-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.why-card i {
  font-size: 26px;
  color: var(--primary);
  background: rgba(108, 92, 255, .14);
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.why-card h4 {
  font-size: 17px;
  margin-bottom: 8px;
  color: var(--text);
}

.why-card p {
  color: var(--gray);
  font-size: 14.5px;
}

/* ===== Web Apps ===== */
.webapps {
  background: var(--bg-alt);
}

.webapps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.webapp-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 18px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: .3s;
}

.carousel-track .webapp-card {
  width: 240px;
}

.webapp-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.webapp-card img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 auto 16px;
}

.webapp-card h5 {
  font-size: 14.5px;
  margin-bottom: 10px;
  color: var(--text);
}

.webapp-card a {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 700;
}

/* ===== Partners ===== */
.partners-track {
  display: flex;
  gap: 50px;
  align-items: center;
  overflow: hidden;
  margin-top: 40px;
}

.partners-track img {
  height: 46px;
  object-fit: contain;
  filter: grayscale(1) brightness(2);
  opacity: .55;
  transition: .3s;
}

.partners-track img:hover {
  filter: none;
  opacity: 1;
}

.carousel-track.partners-track {
  overflow-x: auto;
}

.carousel-track.partners-track img {
  flex: 0 0 auto;
  width: 150px;
}

.partners-marquee {
  overflow: hidden;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partners-marquee-track {
  display: inline-flex;
  gap: 60px;
  align-items: center;
  animation: marquee-scroll 32s linear infinite;
}

.partners-marquee-track img {
  height: 100px;
  width: auto;
  flex: 0 0 auto;
  object-fit: contain;
  filter: grayscale(1) brightness(2);
  opacity: .55;
  transition: .3s;
}

.partners-marquee-track img:hover {
  filter: none;
  opacity: 1;
}

.partners-marquee:hover .partners-marquee-track {
  animation-play-state: paused;
}

@media(prefers-reduced-motion:reduce) {
  .partners-marquee-track {
    animation: none;
    flex-wrap: wrap;
  }
}

/* ===== Testimonials ===== */
.testimonials {
  background: var(--dark-2);
  color: var(--text);
}

.testimonials .section-desc {
  color: var(--gray);
}

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

.testi-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.carousel-track .testi-card {
  width: 360px;
}

.testi-card .stars {
  color: #ffb400;
  margin-bottom: 14px;
  font-size: 14px;
}

.testi-card p {
  color: var(--gray);
  font-size: 14.5px;
  margin-bottom: 20px;
}

.testi-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testi-user img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary);
}

.testi-user strong {
  display: block;
  font-size: 14.5px;
  color: var(--text);
}

.testi-user span {
  font-size: 12.5px;
  color: var(--gray);
}

/* ===== Blog ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 50px;
}

.blog-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: .3s;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
}

.blog-thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), var(--dark));
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-date {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  padding: 8px 12px;
  line-height: 1.1;
}

.blog-date strong {
  display: block;
  font-size: 18px;
  color: var(--primary);
}

.blog-date span {
  font-size: 11px;
  color: var(--gray);
}

.blog-body {
  padding: 24px;
}

.blog-cat {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-body h3 {
  font-size: 17px;
  margin: 10px 0;
  color: var(--text);
}

.blog-body h3 a:hover {
  color: var(--primary);
}

.blog-body p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 14px;
}

.blog-body a.read-more {
  color: var(--primary);
  font-weight: 700;
  font-size: 13.5px;
}

/* ===== CTA Band ===== */
.cta-band {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 70px 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255, 255, 255, .9);
  margin-bottom: 26px;
}

.cta-band .btn-outline {
  border-color: rgba(255, 255, 255, .6);
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.cta-band .btn-outline:hover {
  background: #fff;
  color: var(--primary-dark);
}

/* ===== Page Banner (inner pages) ===== */
.page-banner {
  background: radial-gradient(circle at 20% 20%, rgba(108, 92, 255, .22), transparent 45%), var(--dark);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  color: #fff;
  font-size: 38px;
}

.page-banner .breadcrumb {
  margin-top: 12px;
  color: #aab0c8;
  font-size: 14px;
}

.page-banner .breadcrumb a {
  color: var(--primary);
}

/* ===== About page mission/vision ===== */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.mv-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  padding: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
}

.mv-card h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.mv-card p {
  color: var(--gray);
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  margin-top: 50px;
}

.contact-info-card {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-info-card h3 {
  color: var(--text);
  margin-bottom: 20px;
}

.contact-info-card li {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
  align-items: flex-start;
}

.contact-info-card li i {
  background: rgba(108, 92, 255, .18);
  color: var(--primary);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.contact-info-card li strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}

.contact-info-card li span,
.contact-info-card li a {
  color: var(--gray);
  font-size: 14px;
}

.contact-form {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, .07);
}

.form-note {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
}

.form-note.success {
  background: rgba(30, 190, 110, .12);
  color: #4ce0a0;
}

.form-note.error {
  background: rgba(255, 90, 90, .12);
  color: #ff8f8f;
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  filter: invert(92%) hue-rotate(180deg) contrast(90%);
}

:root[data-theme="light"] .map-embed {
  filter: none;
}

.map-embed iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--dark-2);
  color: var(--gray);
  border-top: 1px solid var(--border);
}

.footer-top {
  padding: 70px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-logo {
  height: 50px;
  margin-bottom: 16px;
  object-fit: contain;
}

.footer-col h4 {
  color: var(--text);
  margin-bottom: 20px;
  font-size: 17px;
}

.footer-col p {
  font-size: 14px;
  color: var(--gray);
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--gray);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--gray);
}

.footer-contact i {
  color: var(--primary);
  margin-top: 3px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.newsletter-form {
  display: flex;
  border-radius: 50px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px;
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 16px;
  color: var(--text);
  font-size: 13px;
}

.newsletter-form input::placeholder {
  color: var(--gray);
}

.newsletter-form button {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  border: none;
  color: #fff;
  width: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
}

.footer-bottom a {
  color: var(--primary);
}

.scroll-top {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 46px;
  height: 46px;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

/* ===== Portfolio filter ===== */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 40px 0;
}

.filter-bar button {
  padding: 10px 22px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: .25s;
}

.filter-bar button.active,
.filter-bar button:hover {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
}

/* ===== Responsive ===== */
@media(max-width:991px) {

  .hero-inner,
  .engaging-grid,
  .contact-grid,
  .mv-grid {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .why-grid,
  .testi-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .webapps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media(max-width:768px) {

  .topbar-left,
  .nav-cta {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: var(--surface-solid);
    border-right: 1px solid var(--border);
    flex-direction: column;
    padding: 90px 24px;
    box-shadow: var(--shadow);
    transition: .3s;
    overflow-y: auto;
    z-index: 1000;
  }

  .main-nav.open {
    left: 0;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .main-nav .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    display: none;
    width: 100%;
  }

  .main-nav li.has-dropdown.open .dropdown {
    display: block;
  }

  .nav-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 32px;
  }

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

  .services-grid,
  .why-grid,
  .testi-grid,
  .blog-grid,
  .projects-grid,
  .webapps-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media(max-width:480px) {

  .services-grid,
  .why-grid,
  .testi-grid,
  .blog-grid,
  .projects-grid,
  .webapps-grid {
    grid-template-columns: 1fr;
  }

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

/* ===== Floating Quick Contact Widget ===== */
.quick-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.quick-contact-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(108, 92, 255, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .25s;
}

.quick-contact-btn:hover {
  transform: scale(1.06);
}

.quick-contact-panel {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 320px;
  max-width: calc(100vw - 40px);
  background: var(--surface-solid);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: .25s;
}

.quick-contact.open .quick-contact-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.qc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.qc-header strong {
  font-size: 16px;
  color: var(--text);
}

.qc-header button {
  background: none;
  border: none;
  font-size: 16px;
  color: var(--gray);
  cursor: pointer;
}

.qc-greeting {
  font-size: 13.5px;
  color: var(--gray);
  margin-bottom: 14px;
  line-height: 1.5;
}

.qc-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 11px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
}

.qc-whatsapp:hover {
  background: #1ebe57;
}

.qc-divider {
  text-align: center;
  font-size: 11.5px;
  color: var(--gray);
  margin-bottom: 14px;
  position: relative;
}

.qc-divider::before,
.qc-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--border);
}

.qc-divider::before {
  left: 0;
}

.qc-divider::after {
  right: 0;
}

#qcForm input,
#qcForm select,
#qcForm textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 10px;
  font-family: inherit;
  resize: vertical;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}

#qcForm select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239aa3b8'%3E%3Cpath d='M5.25 7.5L10 12.25L14.75 7.5H5.25Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 32px;
}

#qcForm input:focus,
#qcForm select:focus,
#qcForm textarea:focus {
  outline: none;
  border-color: var(--primary);
}

#qcForm button {
  width: 100%;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#qcForm button:hover {
  filter: brightness(1.1);
}

#qcForm button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.qc-status {
  margin: 8px 0 0;
  font-size: 12.5px;
  text-align: center;
}

.qc-status.success {
  color: #4ce0a0;
}

.qc-status.error {
  color: #ff8f8f;
}

@media(max-width:480px) {
  .quick-contact {
    right: 16px;
    bottom: 16px;
  }

  .scroll-top {
    right: 16px;
  }
}

/* ===== Shared Lead Modal (Get Free Quote / Start a Project) ===== */
.lead-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(4px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: .25s;
}

.lead-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lead-modal {
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px;
  width: 460px;
  max-width: 100%;
  position: relative;
  transform: translateY(20px);
  transition: .25s;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--glow);
}

.lead-modal-overlay.open .lead-modal {
  transform: translateY(0);
}

.lead-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--gray);
  font-size: 15px;
}

.lead-modal-close:hover {
  background: rgba(255, 255, 255, .1);
}

.lead-modal h3 {
  font-size: 24px;
  color: var(--text);
  margin-bottom: 8px;
}

.lead-modal>p {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 20px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

#leadModalForm input,
#leadModalForm select,
#leadModalForm textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: inherit;
  resize: vertical;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}

#leadModalForm select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239aa3b8'%3E%3Cpath d='M5.25 7.5L10 12.25L14.75 7.5H5.25Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 36px;
}

#leadModalForm input:focus,
#leadModalForm select:focus,
#leadModalForm textarea:focus {
  outline: none;
  border-color: var(--primary);
}

#leadModalForm button {
  width: 100%;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#leadModalForm button:hover {
  filter: brightness(1.1);
}

#leadModalForm button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.lead-modal-status {
  margin: 10px 0 0;
  font-size: 13px;
  text-align: center;
}

.lead-modal-status.success {
  color: #4ce0a0;
}

.lead-modal-status.error {
  color: #ff8f8f;
}

@media(max-width:480px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .lead-modal {
    padding: 26px 22px;
  }
}

/* ===== Service Detail Page Breakdown ===== */
.service-breakdown {
  padding-top: 0;
}

.service-content-rich {
  max-width: 900px;
  margin: 0 auto;
  color: var(--gray);
  line-height: 1.8;
  font-size: 15.5px;
}

.service-content-rich h2,
.service-content-rich h3 {
  color: var(--text);
  margin: 28px 0 14px;
  font-family: var(--font-head);
}

.service-content-rich p {
  margin-bottom: 16px;
}

.service-content-rich ul,
.service-content-rich ol {
  margin: 0 0 16px 22px;
}

.service-content-rich li {
  margin-bottom: 6px;
}

.service-content-rich img {
  max-width: 100%;
  border-radius: 14px;
  margin: 20px 0;
  border: 1px solid var(--border);
}

.service-content-rich a {
  color: var(--primary);
  text-decoration: underline;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 44px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 20px;
  border-radius: 14px;
  font-weight: 600;
  color: var(--text);
}

.feature-item i {
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.process-step {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.process-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 16px;
}

.process-step p {
  color: var(--gray);
  font-weight: 600;
  line-height: 1.5;
}

/* ===== Animated Service Card Backgrounds ===== */
.service-card {
  position: relative;
  overflow: hidden;
}

.service-card.bg-gradient::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, rgba(108, 92, 255, .16), rgba(108, 92, 255, 0) 30%, rgba(0, 212, 255, .14), rgba(108, 92, 255, 0) 90%);
  animation: spin-slow 10s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.service-card.bg-blobs::before,
.service-card.bg-blobs::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 255, .22), rgba(108, 92, 255, 0) 70%);
  z-index: 0;
  pointer-events: none;
  animation: float-blob 7s ease-in-out infinite;
}

.service-card.bg-blobs::before {
  top: -40px;
  right: -40px;
}

.service-card.bg-blobs::after {
  bottom: -50px;
  left: -30px;
  animation-delay: -3.5s;
  background: radial-gradient(circle, rgba(0, 212, 255, .2), rgba(0, 212, 255, 0) 70%);
}

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

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes float-blob {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-10px, 14px) scale(1.15);
  }
}

@media(prefers-reduced-motion:reduce) {

  .service-card.bg-gradient::before,
  .service-card.bg-blobs::before,
  .service-card.bg-blobs::after {
    animation: none;
  }
}

/* ===== Blog Comments ===== */
.comments-section {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.comments-section h3 {
  font-size: 22px;
  color: var(--text);
  margin-bottom: 24px;
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 36px;
}

.comment-item {
  display: flex;
  gap: 16px;
}

.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.comment-body strong {
  color: var(--text);
}

.comment-date {
  color: var(--gray);
  font-size: 12.5px;
  margin-left: 10px;
}

.comment-body p {
  color: var(--gray);
  margin-top: 6px;
  line-height: 1.6;
}

.comment-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.comment-form-wrap h4 {
  font-size: 17px;
  color: var(--text);
  margin-bottom: 4px;
}

#commentForm input,
#commentForm textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: inherit;
  resize: vertical;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
}

#commentForm input:focus,
#commentForm textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.comment-status {
  margin-top: 10px;
  font-size: 13px;
}

.comment-status.success {
  color: #4ce0a0;
}

.comment-status.error {
  color: #ff8f8f;
}

/* ===== Problem vs Solution ===== */
.problem-solution-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 36px;
  align-items: stretch;
  margin-top: 50px;
}

.ps-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 34px;
}

.ps-card.ps-problem {
  border-top: 3px solid #ff5a5a;
}

.ps-card.ps-solution {
  border-top: 3px solid var(--primary);
}

.ps-card h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ps-card.ps-problem h3 {
  color: #ff8f8f;
}

.ps-card.ps-solution h3 {
  color: var(--primary);
}

.ps-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ps-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

.ps-list li i {
  flex: none;
  margin-top: 3px;
  font-size: 15px;
}

.ps-problem .ps-list li i {
  color: #ff5a5a;
}

.ps-solution .ps-list li i {
  color: var(--primary);
}

.ps-divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ps-divider span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--glow);
}

.ps-quote {
  max-width: 760px;
  margin: 44px auto 0;
  text-align: center;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
  position: relative;
  padding: 0 40px;
}

.ps-quote::before {
  content: "\201C";
  font-size: 60px;
  color: var(--primary);
  opacity: .4;
  position: absolute;
  left: 0;
  top: -20px;
  font-family: Georgia, serif;
}

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

  .ps-divider {
    transform: rotate(90deg);
    margin: -8px 0;
  }
}

/* ===== Homepage Step Rail ("How We Work") ===== */
.steps-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 56px;
  position: relative;
}

.steps-rail::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border) 10%, var(--border) 90%, transparent);
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}

.step-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 20px;
  transition: .3s;
}

.step-item:hover .step-num {
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  color: #fff;
  border-color: transparent;
  box-shadow: var(--glow);
  transform: translateY(-4px);
}

.step-item h4 {
  font-size: 15.5px;
  color: var(--text);
  margin-bottom: 8px;
}

.step-item p {
  font-size: 13.5px;
  color: var(--gray);
  line-height: 1.5;
}

@media(max-width:900px) {
  .steps-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }

  .steps-rail::before {
    display: none;
  }
}

@media(max-width:480px) {
  .steps-rail {
    grid-template-columns: 1fr;
  }
}

/* ===== Theme Toggle ===== */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: .25s;
  flex: none;
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-toggle i {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .theme-icon-light {
  display: block;
}

:root[data-theme="light"] .theme-toggle .theme-icon-dark {
  display: block;
}

@media(max-width:768px) {
  .theme-toggle {
    margin-right: 6px;
  }
}