/* ═══════════════════════════════════════════
   JUST KODEZ — Brand Identity CSS
   Colors: Navy #0d1821 | Terra #a85f35 | Copper #e0a880
═══════════════════════════════════════════ */

/* ─── CSS VARIABLES ─── */
:root {
  /* Blue Family */
  --navy-deep:     #1c2f42;
  --dark-slate:    #0d1821;
  --wordmark-blue: #4a6580;
  --steel-mid:     #4a7090;
  --steel-light:   #6a90a8;
  --heading-blue:  #2e3f50;

  /* Terracotta Family */
  --terra-deep:    #a85f35;
  --terra-mid:     #c47a50;
  --copper-light:  #e0a880;
  --blush-tint:    #fdf1e8;

  /* Dark Theme Surfaces */
  --bg-page:       #0a1018;
  --bg-hero:       #162028;
  --bg-nav:        #0d1821;
  --bg-card-1:     #172535;
  --bg-card-2:     #253444;
  --bg-section-alt:#1e2a35;
  --border-dark:   #1e2e3d;
  --border-mid:    #3d5a70;

  /* Text */
  --text-heading:  #e0a880;
  --text-body:     #8fa8bc;
  --text-muted:    #6a8fa8;

  /* Gradients */
  --grad-cta:      linear-gradient(135deg, #a85f35, #c47a50);
  --grad-hero:     linear-gradient(135deg, #1c2f42 0%, #0a1018 60%, #1a1208 100%);
  --grad-text:     linear-gradient(135deg, #e0a880, #c47a50);

  /* Spacing */
  --section-pad:   100px;
  --container-max: 1240px;

  /* Transitions */
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* Radius */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
  width: 100%;
}

html { overflow-x: hidden; }

/* ─── CANVAS BACKGROUND ─── */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--terra-deep); border-radius: 3px; }

/* ─── SELECTION ─── */
::selection { background: var(--terra-mid); color: #fff; }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-heading);
}

a { text-decoration: none; color: inherit; }

strong { color: var(--copper-light); font-weight: 600; }
em { color: var(--terra-mid); font-style: normal; }

/* ─── GRADIENT TEXT ─── */
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── CONTAINER ─── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ─── SECTION ─── */
.section {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
}
.section-alt { background: var(--bg-section-alt); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(168, 95, 53, 0.12);
  border: 1px solid rgba(168, 95, 53, 0.3);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--terra-mid);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

.mt-lg { margin-top: 32px !important; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(168, 95, 53, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(168, 95, 53, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--steel-light);
  border: 1px solid var(--border-mid);
}
.btn-secondary:hover {
  border-color: var(--terra-mid);
  color: var(--terra-mid);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-dark);
}
.btn-ghost:hover {
  border-color: var(--steel-mid);
  color: var(--steel-light);
}

.btn-lg { padding: 16px 36px; font-size: 16px; }

.btn-block { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(10, 16, 24, 0.95);
  backdrop-filter: blur(20px);
  border-color: var(--border-dark);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  z-index: 1001;
}

.logo-mark-img {
  height: 40px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(168, 95, 53, 0.25));
}

.logo-text-img {
  height: 30px;
  width: auto;
  filter: brightness(1.1);
}

@media (max-width: 480px) {
  .logo-text-img { height: 26px; }
  .logo-mark-img { height: 34px; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--copper-light);
}

.nav-link.active {
  color: var(--terra-mid);
}

.nav-link.nav-cta {
  background: var(--grad-cta);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(168, 95, 53, 0.3);
}
.nav-link.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(168, 95, 53, 0.45);
}

/* Drawer-only bits — hidden on desktop, shown in the mobile menu */
.nav-ico { display: none; }
.nav-foot { display: none; }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 14, 0.6);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 998;
}
.nav-overlay.show { opacity: 1; visibility: visible; }
@media (min-width: 769px) { .nav-overlay { display: none; } }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--copper-light);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 120px 24px 80px;
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(30, 46, 61, 0.8);
  border: 1px solid rgba(74, 112, 144, 0.4);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--steel-light);
  width: fit-content;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terra-mid);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.1;
  color: var(--copper-light);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-body);
  min-height: 56px;
}

#typed-text {
  color: var(--terra-mid);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-dark);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--copper-light);
  font-family: 'JetBrains Mono', monospace;
}

.stat-suffix {
  font-size: 22px;
  font-weight: 700;
  color: var(--terra-mid);
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-dark);
}

/* Code Window */
.hero-code-block {
  position: relative;
}

.code-window {
  background: #0e1a24;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(74,112,144,0.1);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.code-window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #091014;
  border-bottom: 1px solid var(--border-dark);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.code-title {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.code-content {
  padding: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13.5px;
  line-height: 1.8;
  overflow-x: auto;
}

.code-content code { white-space: pre; }

/* Code syntax colors */
.c-keyword { color: #c47a50; }
.c-module   { color: #6a90a8; }
.c-comment  { color: #3d5a70; }
.c-class    { color: #e0a880; }
.c-func     { color: #88b4d0; }
.c-num      { color: #c47a50; }
.c-string   { color: #6a9a6a; }
.c-output   { color: #28c840; display: block; margin-top: 4px; }

/* Hero Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  animation: fade-bounce 2s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--terra-mid));
}

@keyframes fade-bounce {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════════
   TICKER / MARQUEE
═══════════════════════════════════════════ */
.ticker-wrap {
  width: 100%;
  overflow: hidden;
  background: var(--bg-hero);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 14px 0;
  position: relative;
  z-index: 1;
}

.ticker {
  display: flex;
  width: max-content;
  animation: ticker-scroll 30s linear infinite;
  gap: 0;
}

.ticker span {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--steel-light);
  padding: 0 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ticker .sep {
  color: var(--terra-mid);
  font-size: 10px;
  padding: 0 4px;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--text-body);
}

.about-pillars {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.pillar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(30, 46, 61, 0.6);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--copper-light);
  transition: var(--transition);
}

.pillar:hover {
  border-color: var(--terra-mid);
  background: rgba(168, 95, 53, 0.08);
}

.pillar i {
  color: var(--terra-mid);
  font-size: 16px;
}

/* Logo showcase */
.about-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.logo-showcase {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-square {
  width: 120px;
  height: 120px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 32px rgba(168,95,53,0.3));
  animation: float 6s ease-in-out infinite;
}

.logo-rings {
  position: absolute;
  inset: 0;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

.ring-1 {
  width: 160px; height: 160px;
  border-color: rgba(168, 95, 53, 0.25);
  animation: ring-pulse 3s ease-in-out infinite;
}
.ring-2 {
  width: 200px; height: 200px;
  border-color: rgba(74, 112, 144, 0.15);
  animation: ring-pulse 3s ease-in-out 0.5s infinite;
}
.ring-3 {
  width: 240px; height: 240px;
  border-color: rgba(168, 95, 53, 0.08);
  animation: ring-pulse 3s ease-in-out 1s infinite;
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
}

.vision-card {
  background: var(--bg-card-1);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  border-top: 2px solid var(--terra-mid);
}

.vision-card i {
  font-size: 32px;
  color: var(--terra-mid);
  margin-bottom: 12px;
  display: block;
}

.vision-card h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--copper-light);
}

.vision-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   SERVICES SECTION
═══════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-cta);
  transform: scaleX(0);
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-accent {
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,95,53,0.06) 0%, transparent 70%);
}

.service-accent.accent-2 {
  background: radial-gradient(circle, rgba(74,112,144,0.08) 0%, transparent 70%);
}

.service-icon {
  width: 56px; height: 56px;
  background: rgba(168, 95, 53, 0.12);
  border: 1px solid rgba(168, 95, 53, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--terra-mid);
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(168, 95, 53, 0.2);
  border-color: var(--terra-mid);
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--copper-light);
}

.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: 24px;
}

.service-tags li {
  padding: 4px 12px;
  background: rgba(10, 16, 24, 0.6);
  border: 1px solid var(--border-dark);
  border-radius: 100px;
  font-size: 12px;
  color: var(--steel-light);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--terra-mid);
  transition: var(--transition);
}

.service-link:hover {
  gap: 12px;
  color: var(--copper-light);
}

/* ═══════════════════════════════════════════
   SOLUTIONS SECTION
═══════════════════════════════════════════ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-item {
  background: var(--bg-card-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.solution-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-cta);
  transform: scaleX(0);
  transition: var(--transition);
}

.solution-item:hover {
  border-color: var(--border-mid);
  transform: translateY(-4px);
}

.solution-item:hover::after {
  transform: scaleX(1);
}

.solution-icon {
  width: 52px; height: 52px;
  background: rgba(168, 95, 53, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--terra-mid);
  margin-bottom: 16px;
}

.solution-item h4 {
  font-size: 17px;
  color: var(--copper-light);
  margin-bottom: 10px;
}

.solution-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   PRODUCTS SECTION
═══════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.product-card {
  background: var(--bg-card-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Push the CTA to the bottom so all cards align at equal height */
.product-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

.product-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.product-featured {
  background: linear-gradient(135deg, #1c2f42 0%, #172535 100%);
  border-color: var(--terra-deep);
  box-shadow: 0 8px 40px rgba(168,95,53,0.15);
}

.product-coming {
  opacity: 0.85;
}

.product-badge {
  position: absolute;
  top: 20px; right: 20px;
  padding: 4px 14px;
  background: var(--grad-cta);
  color: #fff;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-badge.coming {
  background: linear-gradient(135deg, #3d5a70, #4a7090);
}

.product-icon {
  width: 64px; height: 64px;
  background: rgba(168, 95, 53, 0.12);
  border: 1px solid rgba(168, 95, 53, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--terra-mid);
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 24px;
  color: var(--copper-light);
  margin-bottom: 12px;
}

.product-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.product-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-body);
}

.product-features li i {
  color: var(--terra-mid);
  font-size: 13px;
  flex-shrink: 0;
}

/* In-progress / upcoming feature badge */
.feat-soon {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  margin-left: 4px;
  border-radius: 100px;
  color: var(--steel-light);
  background: rgba(74, 112, 144, 0.14);
  border: 1px solid rgba(74, 112, 144, 0.3);
  white-space: nowrap;
}
[data-theme="light"] .feat-soon {
  color: var(--steel-mid);
  background: rgba(74, 112, 144, 0.10);
  border-color: rgba(74, 112, 144, 0.28);
}

/* ═══════════════════════════════════════════
   WORK / CUSTOM APPLICATIONS
═══════════════════════════════════════════ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--bg-card-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.work-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.work-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.work-card:hover::before { transform: scaleX(1); }

.work-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

/* Muted brand-tinted logo tile (placeholder until real logos arrive) */
.work-logo {
  width: 58px; height: 58px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  /* Muted, single steel-blue tone for placeholder icons (non-distracting) */
  background: rgba(74, 112, 144, 0.10);
  border: 1px solid rgba(74, 112, 144, 0.22);
  color: var(--steel-light);
  transition: var(--transition);
}
.work-card:hover .work-logo { transform: scale(1.04); }

[data-theme="light"] .work-logo {
  background: rgba(74, 112, 144, 0.08);
  border-color: rgba(74, 112, 144, 0.20);
  color: var(--steel-mid);
}

.work-logo img { width: 38px; height: 38px; object-fit: contain; }

.work-titles h3 {
  font-size: 19px;
  color: var(--copper-light);
  margin-bottom: 2px;
  line-height: 1.2;
}

.work-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terra-mid);
  font-family: 'JetBrains Mono', monospace;
}

.work-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: auto;
}

.work-tags li {
  padding: 5px 12px;
  background: rgba(10, 16, 24, 0.5);
  border: 1px solid var(--border-dark);
  border-radius: 100px;
  font-size: 12px;
  color: var(--steel-light);
}

[data-theme="light"] .work-card h3 { color: var(--text-heading); }
[data-theme="light"] .work-tags li {
  background: #faf7f4;
  border-color: var(--border-dark);
  color: var(--steel-mid);
}

/* ─── Shared real-logo tiles (products + work) ─── */
.product-icon img,
.work-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-icon:has(img) { padding: 10px; overflow: hidden; }
.work-logo:has(img)    { padding: 9px;  overflow: hidden; }

/* Light logos (white/pale marks) need a deep tile */
.logo-bg-dark {
  background: linear-gradient(135deg, #1c2f42, #0d1821) !important;
  border: 1px solid #24384c !important;
  color: #fff !important;
}
/* Dark / blue / colour marks read best on a clean light tile */
.logo-bg-light {
  background: #ffffff !important;
  border: 1px solid #e8e1da !important;
}
/* Self-contained app icons fill the tile edge-to-edge */
.logo-fill { padding: 0 !important; background: transparent !important; border: none !important; }
.logo-fill img { object-fit: cover; border-radius: inherit; }

/* ═══════════════════════════════════════════
   PROCESS SECTION
═══════════════════════════════════════════ */
.process-timeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 16px;
}

.process-step {
  flex: 1;
  min-width: 160px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 48px;
  font-weight: 700;
  color: rgba(74, 96, 128, 0.15);
  line-height: 1;
  margin-bottom: -8px;
}

.step-content {
  background: var(--bg-card-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  flex: 1;
}

.step-content:hover {
  border-color: var(--terra-mid);
  box-shadow: 0 8px 32px rgba(168,95,53,0.1);
}

.step-icon {
  width: 44px; height: 44px;
  background: rgba(168, 95, 53, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--terra-mid);
  margin-bottom: 14px;
}

.step-content h4 {
  font-size: 16px;
  color: var(--copper-light);
  margin-bottom: 8px;
}

.step-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.process-arrow {
  display: flex;
  align-items: center;
  align-self: center;
  padding: 0 12px;
  color: var(--terra-mid);
  font-size: 14px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   INDUSTRIES SECTION
═══════════════════════════════════════════ */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.industry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--bg-card-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: default;
  transition: var(--transition);
}

.industry-item:hover {
  border-color: var(--terra-mid);
  background: rgba(168, 95, 53, 0.06);
  transform: translateY(-4px);
}

.industry-item i {
  font-size: 28px;
  color: var(--terra-mid);
}

.industry-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════
   WHY CHOOSE SECTION
═══════════════════════════════════════════ */
.why-section {
  background: linear-gradient(135deg, var(--bg-page) 0%, var(--bg-hero) 100%);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-left .section-tag { display: inline-flex; }
.why-left h2 { font-size: clamp(28px, 4vw, 42px); margin: 16px 0; }
.why-left p { color: var(--text-muted); font-size: 16px; line-height: 1.7; }

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--text-body);
  padding: 14px 18px;
  background: rgba(30, 46, 61, 0.4);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.why-list li:hover {
  border-color: var(--terra-mid);
  background: rgba(168, 95, 53, 0.05);
  color: var(--copper-light);
}

.why-list li i {
  color: var(--terra-mid);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   TECHNOLOGIES SECTION
═══════════════════════════════════════════ */
.tech-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tech-cat {
  background: var(--bg-card-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}

.tech-cat:hover {
  border-color: var(--border-mid);
}

.tech-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-dark);
}

.tech-cat-header i {
  font-size: 20px;
  color: var(--terra-mid);
}

.tech-cat-header h4 {
  font-size: 16px;
  color: var(--copper-light);
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(10, 16, 24, 0.8);
  border: 1px solid var(--border-dark);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--steel-light);
  transition: var(--transition);
}

.pill:hover {
  border-color: var(--terra-mid);
  color: var(--terra-mid);
  background: rgba(168, 95, 53, 0.06);
}

.pill i { font-size: 11px; }

/* ═══════════════════════════════════════════
   TESTIMONIALS  (auto-rolling marquee)
═══════════════════════════════════════════ */
.testimonials-section { overflow: hidden; }

.tm-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.tm-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 8px 12px 16px;
  animation: tm-scroll linear infinite;
}
.tm-marquee:hover .tm-track { animation-play-state: paused; }

@keyframes tm-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tm-card {
  flex: 0 0 auto;
  width: 380px;
  background: var(--bg-card-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.tm-card:hover {
  border-color: var(--border-mid);
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.28);
}

.tm-quote-mark {
  font-family: Georgia, serif;
  font-size: 46px;
  line-height: 0.6;
  color: var(--terra-mid);
  opacity: 0.5;
  margin-bottom: 14px;
}

.tm-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 14px;
  color: #e0a880;
  font-size: 13px;
}

.tm-text {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 24px;
  flex: 1;
}

.tm-person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--border-dark);
}

.tm-avatar {
  width: 50px; height: 50px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-mid);
}
.tm-avatar.tm-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: var(--grad-cta);
  border: none;
}

.tm-meta .tm-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--copper-light);
  line-height: 1.3;
}
.tm-meta .tm-role {
  font-size: 13px;
  color: var(--text-muted);
}
.tm-meta .tm-role .tm-co { color: var(--steel-light); }

[data-theme="light"] .tm-name { color: var(--text-heading); }

@media (max-width: 480px) {
  .tm-card { width: 300px; padding: 26px 22px; }
}

/* ═══════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════ */
.cta-banner {
  position: relative;
  background: linear-gradient(135deg, #0f1e2d 0%, #1a2a18 50%, #1a0d06 100%);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 100px 24px;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.cta-bg-code {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 80px;
  font-weight: 700;
  color: rgba(168, 95, 53, 0.04);
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.cta-logo {
  width: 80px; height: 80px;
  object-fit: contain;
  margin: 0 auto 24px;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(168,95,53,0.4));
}

.cta-content h2 {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--copper-light);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════
   CONTACT SECTION
═══════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px; height: 44px;
  background: rgba(168, 95, 53, 0.12);
  border: 1px solid rgba(168, 95, 53, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--terra-mid);
  flex-shrink: 0;
}

.contact-item h5 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
  font-size: 15px;
  color: var(--copper-light);
  font-weight: 500;
  transition: var(--transition);
}

.contact-item a:hover { color: var(--terra-mid); }

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.contact-social a {
  width: 40px; height: 40px;
  background: rgba(30, 46, 61, 0.6);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--steel-light);
  font-size: 15px;
  transition: var(--transition);
}

.contact-social a:hover {
  background: rgba(168, 95, 53, 0.15);
  border-color: var(--terra-mid);
  color: var(--terra-mid);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card-1);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--steel-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.req { color: var(--terra-mid); }

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(10, 16, 24, 0.6);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-heading);
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

.form-group select option { background: var(--bg-card-1); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terra-mid);
  background: rgba(168, 95, 53, 0.04);
  box-shadow: 0 0 0 3px rgba(168, 95, 53, 0.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  background: rgba(40, 200, 64, 0.08);
  border: 1px solid rgba(40, 200, 64, 0.25);
  border-radius: var(--radius-md);
  color: #28c840;
  font-size: 15px;
  font-weight: 500;
}

.form-success.visible { display: flex; }

.form-success.error {
  background: rgba(224, 102, 74, 0.08);
  border-color: rgba(224, 102, 74, 0.3);
  color: #e0664a;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer {
  background: #0a1018;
  border-top: 1px solid var(--border-dark);
  padding-top: 72px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-dark);
}

.footer-logo {
  height: 32px;
  width: auto;
  margin-bottom: 16px;
  display: block;
  filter: brightness(0.9);
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px; height: 36px;
  background: rgba(30, 46, 61, 0.6);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--terra-mid);
  color: var(--terra-mid);
}

.footer-links-group h5 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--copper-light);
  margin-bottom: 20px;
}

.footer-links-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  font-size: 14px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links-group a:hover {
  color: var(--terra-mid);
  padding-left: 4px;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-tagline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px !important;
  color: var(--steel-light) !important;
}

.code-tag {
  color: var(--terra-mid);
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   BACK TO TOP
═══════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px; height: 44px;
  background: var(--grad-cta);
  border: none;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(168,95,53,0.35);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(168,95,53,0.5);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-code-block { max-width: 560px; margin: 0 auto; }
  .services-grid, .solutions-grid, .work-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(4, 1fr); }
  .tech-categories { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 86%;
    max-width: 360px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-nav);
    border-left: 1px solid var(--border-dark);
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.55);
    flex-direction: column;
    align-items: stretch;
    padding: 88px 18px 26px;
    gap: 4px;
    transition: right 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-links.open { right: 0; }
  .nav-links li { width: 100%; }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-body);
    border-radius: 12px;
    transition: background 0.25s ease, color 0.25s ease;
  }
  .nav-link:hover, .nav-link.active {
    background: rgba(168, 95, 53, 0.08);
    color: var(--copper-light);
  }
  .nav-ico {
    display: inline-flex;
    width: 24px;
    justify-content: center;
    color: var(--terra-mid);
    font-size: 16px;
  }
  .nav-link:not(.nav-cta)::after {
    content: '\f054';                 /* chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.45;
  }
  .nav-link.nav-cta {
    margin-top: 18px;
    justify-content: center;
    padding: 16px;
    font-size: 15.5px;
  }

  .nav-foot {
    display: block;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid var(--border-dark);
  }
  .nav-foot-contact { display: flex; flex-direction: column; gap: 11px; margin-bottom: 18px; }
  .nav-foot-contact a { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
  .nav-foot-contact a i { color: var(--terra-mid); width: 18px; text-align: center; }
  .nav-foot-social { display: flex; gap: 12px; }
  .nav-foot-social a {
    width: 42px; height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border-dark);
    display: flex; align-items: center; justify-content: center;
    color: var(--steel-light);
    transition: var(--transition);
  }
  .nav-foot-social a:hover { border-color: var(--terra-mid); color: var(--terra-mid); }

  .hamburger { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 100px;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 18px;
  }
  .stat-divider { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .solutions-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .tech-categories { grid-template-columns: 1fr; }
  .why-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .process-timeline {
    flex-direction: column;
    gap: 16px;
  }

  .process-arrow { display: none; }

  .cta-bg-code { font-size: 40px; }
  .hero-scroll { display: none; }
}

@media (max-width: 480px) {
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .about-pillars { flex-direction: column; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; justify-content: center; max-width: 340px; }
}

/* ═══════════════════════════════════════════
   AOS OVERRIDES
═══════════════════════════════════════════ */
[data-aos] { pointer-events: none; }
[data-aos].aos-animate { pointer-events: auto; }

/* ─── Glow effect on cards ─── */
@keyframes card-glow {
  0% { box-shadow: 0 0 0 rgba(168,95,53,0); }
  50% { box-shadow: 0 0 40px rgba(168,95,53,0.08); }
  100% { box-shadow: 0 0 0 rgba(168,95,53,0); }
}

/* ═══════════════════════════════════════════
   THEME TOGGLE BUTTON
═══════════════════════════════════════════ */
.theme-toggle {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(30, 46, 61, 0.5);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  color: var(--copper-light);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--terra-mid);
  color: var(--terra-mid);
  transform: rotate(20deg);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-right { display: flex; align-items: center; gap: 14px; }

/* ═══════════════════════════════════════════
   LIGHT THEME  (warm linen · navy · terracotta)
   Brand-spec alternate theme. Remaps the token
   layer; a handful of hard-coded dark surfaces
   are overridden explicitly below.
═══════════════════════════════════════════ */
[data-theme="light"] {
  /* Surfaces — warm off-whites, never pure white page */
  --bg-page:        #f5f0eb;
  --bg-hero:        #efe9e2;
  --bg-nav:         #faf7f4;
  --bg-card-1:      #ffffff;
  --bg-card-2:      #ffffff;
  --bg-section-alt: #f0ebe4;
  --border-dark:    #e8e1da;
  --border-mid:     #d9cfc4;

  /* Text — navy headings, darker slate body for strong readability on linen */
  --text-heading:   #233241;
  --text-body:      #3a4b5a;
  --text-muted:     #566776;

  /* Terracotta CTA never changes; gradient text stays warm */
  --grad-text:      linear-gradient(135deg, #a85f35, #c47a50);
  --grad-hero:      linear-gradient(135deg, #f5ede6 0%, #f0ebe4 55%, #edf2f6 100%);
}

[data-theme="light"] body { background-color: var(--bg-page); }

[data-theme="light"] strong { color: var(--terra-deep); }

[data-theme="light"] #bg-canvas { opacity: 0.22; }

[data-theme="light"] #navbar.scrolled {
  background: rgba(250, 247, 244, 0.92);
  border-color: var(--border-dark);
}

[data-theme="light"] .logo-text-img { filter: none; }

/* Subtle dark-tinted surfaces → warm light surfaces */
[data-theme="light"] .hero-badge,
[data-theme="light"] .pillar,
[data-theme="light"] .why-list li,
[data-theme="light"] .tech-cat,
[data-theme="light"] .contact-social a {
  background: #ffffff;
  border-color: var(--border-dark);
}
[data-theme="light"] .hero-badge { color: var(--steel-mid); }

[data-theme="light"] .service-tags li,
[data-theme="light"] .pill,
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group select,
[data-theme="light"] .form-group textarea {
  background: #faf7f4;
  border-color: var(--border-dark);
  color: var(--text-heading);
}

[data-theme="light"] .why-section {
  background: linear-gradient(135deg, #f5f0eb 0%, #edf2f6 100%);
}

[data-theme="light"] .why-list li:hover,
[data-theme="light"] .pillar:hover {
  background: var(--blush-tint);
}

[data-theme="light"] .industry-item:hover,
[data-theme="light"] .solution-item:hover,
[data-theme="light"] .service-card:hover { background: #fff; }

/* Section headings/titles use --text-heading (now navy). Keep gradient spans warm. */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5 { color: var(--text-heading); }
[data-theme="light"] .service-card h3,
[data-theme="light"] .product-card h3,
[data-theme="light"] .solution-item h4,
[data-theme="light"] .vision-card h4,
[data-theme="light"] .footer-links-group h5 { color: var(--text-heading); }

/* Cards lift cleanly off warm linen */
[data-theme="light"] .service-card,
[data-theme="light"] .solution-item,
[data-theme="light"] .product-card,
[data-theme="light"] .industry-item,
[data-theme="light"] .tech-cat,
[data-theme="light"] .step-content,
[data-theme="light"] .vision-card {
  box-shadow: 0 10px 30px -18px rgba(46, 63, 80, 0.18);
}

/* Product featured keeps a warm tint */
[data-theme="light"] .product-featured {
  background: linear-gradient(135deg, #fff 0%, #fdf1e8 100%);
  border-color: var(--terra-mid);
}

/* Theme toggle on light nav */
[data-theme="light"] .theme-toggle {
  background: #fff;
  border-color: var(--border-dark);
  color: var(--terra-deep);
}

/* Mobile drawer on light */
[data-theme="light"] .nav-links {
  background: var(--bg-nav);
  border-color: var(--border-dark);
}

/* Footer stays deep navy (brand: ties light to dark) — force light text */
[data-theme="light"] .footer { background: #1c2f42; border-color: #1c2f42; }
[data-theme="light"] .footer-brand p,
[data-theme="light"] .footer-links-group a,
[data-theme="light"] .footer-bottom p { color: #9db4c6; }
[data-theme="light"] .footer-links-group h5 { color: #fff; }
[data-theme="light"] .footer-links-group a:hover { color: var(--copper-light); }
[data-theme="light"] .footer-social a {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  color: var(--copper-light);
}
[data-theme="light"] .footer-logo { filter: brightness(0) invert(1); opacity: 0.92; }

/* Hero subtle: heading reads navy, gradient words stay terracotta */
[data-theme="light"] .hero-title { color: var(--text-heading); }

/* Code window → light editor (readable syntax on warm white) */
[data-theme="light"] .code-window {
  background: #fdfbf9;
  border-color: #e8e1da;
  box-shadow: 0 32px 80px rgba(46, 63, 80, 0.16), 0 0 0 1px rgba(46,63,80,0.04);
}
[data-theme="light"] .code-window-bar {
  background: #f0ebe4;
  border-color: #e3dbd2;
}
[data-theme="light"] .code-title { color: #8295a3; }
[data-theme="light"] .code-content { color: #3a4a57; }

[data-theme="light"] .c-keyword { color: #a85f35; }
[data-theme="light"] .c-module  { color: #4a7090; }
[data-theme="light"] .c-comment { color: #9aa9b5; }
[data-theme="light"] .c-class   { color: #2e3f50; }
[data-theme="light"] .c-func    { color: #3f6d92; }
[data-theme="light"] .c-num     { color: #c47a50; }
[data-theme="light"] .c-string  { color: #4a8a4a; }
[data-theme="light"] .c-output  { color: #2a9d4a; }

/* ═══════════════════════════════════════════
   MOBILE OVERFLOW SAFETY NET
   Stops the hero (grid/flex items) from pushing
   wider than the screen on phones.
═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero { min-width: 0; padding-left: 20px; padding-right: 20px; }
  .hero-content,
  .hero-code-block { min-width: 0; max-width: 100%; }
  .hero-content > * { min-width: 0; max-width: 100%; }
  .hero h1, .hero-sub { overflow-wrap: break-word; }
  .hero-stats { min-width: 0; }
  .hero-stats .stat { min-width: 0; }
  .code-window { max-width: 100%; }
  .code-content { max-width: 100%; }
}
