html.light-mode {
  --bg: #f7f8fb;
  --bg2: #ffffff;
  --surface: rgba(9, 18, 32, 0.055);
  --surface-hover: rgba(9, 18, 32, 0.085);
  --border: rgba(15, 23, 42, 0.12);
  --border-hover: rgba(37, 99, 235, 0.36);
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.68);
  --muted2: rgba(15, 23, 42, 0.46);
  --blue: #2563eb;
  --blue-bright: #1d4ed8;
  --cyan: #0f766e;
  --purple: #7c3aed;
  --green: #047857;
  --orange: #b45309;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 16px 42px rgba(15, 23, 42, 0.1);
  color-scheme: light;
}

html.light-mode,
html.light-mode body {
  background: #f7f8fb !important;
}

body.light-mode {
  background:
    radial-gradient(circle at 12% -10%, rgba(37, 99, 235, 0.1), transparent 28rem),
    radial-gradient(circle at 86% 4%, rgba(15, 118, 110, 0.09), transparent 28rem),
    linear-gradient(180deg, #fbfcff 0%, #eef3f8 54%, #f8fafc 100%) !important;
  color: #0f172a !important;
}

body.light-mode::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px) !important;
  opacity: 0.72 !important;
}

body.light-mode::after,
.light-mode .ambient,
.light-mode .aurora,
.light-mode #starfield,
.light-mode .cursor-glow {
  display: none !important;
}

.light-mode nav {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.1) !important;
  backdrop-filter: blur(22px) !important;
  -webkit-backdrop-filter: blur(22px) !important;
}

.light-mode .mobile-nav {
  background: rgba(255, 255, 255, 0.98) !important;
}

.light-mode .nav-logo,
.light-mode .mobile-nav a,
.light-mode .section-title,
.light-mode .page-hero h1,
.light-mode .hero-h1,
.light-mode .bento-title,
.light-mode .ow-title,
.light-mode .blog-title,
.light-mode .testi-author,
.light-mode .sb-title,
.light-mode .ps-title,
.light-mode .cta-inner h2,
.light-mode h1,
.light-mode h2,
.light-mode h3,
.light-mode h4 {
  color: #0f172a !important;
}

.light-mode .nav-links a,
.light-mode .footer-col a,
.light-mode .footer-links a,
.light-mode p,
.light-mode .hero-sub,
.light-mode .section-sub,
.light-mode .bento-desc,
.light-mode .sb-desc,
.light-mode .ow-desc,
.light-mode .testi-quote,
.light-mode .blog-excerpt,
.light-mode .ps-desc,
.light-mode .footer-desc,
.light-mode .tech-name,
.light-mode .port-desc,
.light-mode .art-excerpt,
.light-mode .feat-excerpt,
.light-mode .team-bio,
.light-mode .val-desc,
.light-mode .mv-text {
  color: rgba(15, 23, 42, 0.66) !important;
}

.light-mode .nav-links a:hover,
.light-mode .nav-links a.active,
.light-mode .nav-links a[aria-current="page"],
.light-mode .footer-col a:hover,
.light-mode .footer-links a:hover {
  color: #0f172a !important;
}

.light-mode .section-label,
.light-mode .bento-arrow,
.light-mode .blog-link,
.light-mode .article-link,
.light-mode .port-link {
  color: #0f766e !important;
}

.light-mode .grad,
.light-mode .nav-logo span,
.light-mode .footer-logo span,
.light-mode .hero-h1 .grad {
  background: linear-gradient(135deg, #1d4ed8, #0f766e, #7c3aed) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

.light-mode .theme-toggle,
.light-mode .nav-btn,
.light-mode .btn-glow.secondary,
.light-mode .footer-nl input,
.light-mode input,
.light-mode select,
.light-mode textarea {
  background: rgba(255, 255, 255, 0.78) !important;
  border-color: rgba(15, 23, 42, 0.13) !important;
  color: #0f172a !important;
}

.light-mode .theme-toggle[aria-pressed="true"] {
  background: rgba(15, 23, 42, 0.86) !important;
  border-color: rgba(15, 23, 42, 0.86) !important;
  color: #fff !important;
}

.light-mode .btn-glow.primary,
.light-mode .nav-btn.primary,
.light-mode .footer-nl button,
.light-mode .nl-widget button {
  background: linear-gradient(135deg, #2563eb, #0f766e) !important;
  color: #fff !important;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.18) !important;
}

.light-mode .hero,
.light-mode .page-hero,
.light-mode .ai-section,
.light-mode .tech-section,
.light-mode .stats-strip,
.light-mode .cta-section,
.light-mode footer {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(238, 243, 248, 0.46)),
    transparent !important;
}

.light-mode .hero::before,
.light-mode .page-hero::before,
.light-mode .hero-visual,
.light-mode .service-hero-art,
.light-mode .bento-cell,
.light-mode .tech-item,
.light-mode .ow-card,
.light-mode .testi-card,
.light-mode .blog-card,
.light-mode .featured,
.light-mode .port-card,
.light-mode .article-card,
.light-mode .service-shot,
.light-mode .sb-inner,
.light-mode .sb-visual,
.light-mode .cta-inner,
.light-mode .process-steps,
.light-mode .service-principles,
.light-mode .ai-terminal,
.light-mode .form-card,
.light-mode .info-panel,
.light-mode .response-panel,
.light-mode .sb-widget,
.light-mode .team-card,
.light-mode .val-card,
.light-mode .mv-cell,
.light-mode .ps-item,
.light-mode .ow-row,
.light-mode .faq-item,
.light-mode .policy,
.light-mode .service-principles article {
  border-color: rgba(15, 23, 42, 0.11) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.72)),
    #fff !important;
  box-shadow: var(--shadow-card) !important;
}

.light-mode .service-nav-inner,
.light-mode .tech-grid,
.light-mode .process-steps,
.light-mode .service-principles {
  background: rgba(15, 23, 42, 0.1) !important;
}

.light-mode .service-nav a,
.light-mode .marquee-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.68)),
    #fff !important;
  color: rgba(15, 23, 42, 0.68) !important;
}

.light-mode .service-shot img,
.light-mode .service-hero-art img,
.light-mode .port-img,
.light-mode .blog-img,
.light-mode .art-img,
.light-mode .featured-img {
  filter: saturate(0.92) contrast(0.98) brightness(1.04) !important;
}

.light-mode .icon-mark,
.light-mode .visual-mark,
.light-mode .tech-logo-wrap,
.light-mode .ps-num,
.light-mode .check-icon {
  background:
    radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(15, 118, 110, 0.09)) !important;
  border-color: rgba(37, 99, 235, 0.22) !important;
  color: #1d4ed8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 26px rgba(15, 23, 42, 0.12) !important;
}

.light-mode .mark-svg {
  stroke: currentColor !important;
  filter: none !important;
}

.light-mode .btag,
.light-mode .stag,
.light-mode .hero-proof span,
.light-mode .service-proof span,
.light-mode .cta-proof span,
.light-mode .service-hero-art figcaption span,
.light-mode .ow-status,
.light-mode .feat-tag,
.light-mode .port-cat {
  background: rgba(255, 255, 255, 0.74) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: rgba(15, 23, 42, 0.62) !important;
}

.light-mode .hamburger {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

.light-mode .hamburger span {
  background: #0f172a !important;
}

/* Homepage visual refinement */
body {
  background:
    radial-gradient(circle at 18% -10%, rgba(59, 130, 246, 0.08), transparent 26rem),
    radial-gradient(circle at 86% 4%, rgba(34, 211, 238, 0.06), transparent 26rem),
    var(--bg) !important;
}

body::before {
  background-size: 72px 72px !important;
  opacity: 0.16 !important;
}

body::after {
  opacity: 0.24 !important;
}

.ambient-blob {
  opacity: 0.08 !important;
}

.aurora-band {
  opacity: 0.06 !important;
}

.cursor-glow {
  width: 260px !important;
  height: 260px !important;
  background: radial-gradient(circle, rgba(59,130,246,0.045), transparent 72%) !important;
}

.hero-visual {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01) 42%),
    radial-gradient(circle at 55% 38%, rgba(59,130,246,0.1), transparent 24rem),
    rgba(6,10,24,0.28) !important;
  box-shadow: 0 28px 90px rgba(0,0,0,0.2) !important;
}

.hero-visual::after {
  opacity: 0.52 !important;
  background:
    linear-gradient(115deg, transparent 18%, rgba(255,255,255,0.04) 42%, transparent 58%),
    radial-gradient(circle at 50% 48%, rgba(159,240,195,0.05), transparent 20rem) !important;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 2rem;
  color: rgba(240,244,255,0.74);
  font-size: 0.95rem;
}

.hero-trust-label {
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240,244,255,0.62);
  font-size: 0.72rem;
}

.hero-trust-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-trust-item {
  padding: 0.62rem 1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.82);
  font-size: 0.81rem;
  letter-spacing: 0.03em;
}

@media(max-width: 1024px) {
  .hero-visual {
    height: 480px !important;
  }
  .hero-proof {
    margin-bottom: 1.8rem;
  }
}

@media(max-width: 640px) {
  .hero-trust {
    justify-content: flex-start;
  }
}

/* ── Mobile hero fixes (overrides design-v2.css which loads before this) ── */
@media (max-width: 760px) {
  /* Remove extra top padding — design-v2 sets 9.5rem which creates a huge gap below the nav */
  .hero {
    padding-top: 5.5rem !important;
  }

  /* Hide the decorative card background — it bleeds above content on mobile */
  .hero::before {
    display: none !important;
  }

  /* Heading — scale down so "Build What You Need." doesn't overflow at 390px */
  .hero .hero-h1 {
    font-size: clamp(1.65rem, 8vw, 2.2rem) !important;
  }
}


.light-mode footer,
.light-mode .footer-bottom {
  border-color: rgba(15, 23, 42, 0.1) !important;
}

/* ── Inner-page hero mobile fixes (services, about, contact, portfolio, blog) ── */
@media (max-width: 760px) {
  .page-hero {
    padding-top: 5rem !important;
    padding-bottom: 3rem !important;
  }

  .page-hero::before {
    display: none !important;
  }

  .page-hero h1 {
    font-size: clamp(1.9rem, 8.5vw, 2.6rem) !important;
    line-height: 1.1 !important;
  }

  .page-hero p {
    font-size: 0.93rem !important;
    max-width: 100% !important;
  }

}
