/* ═══════════════════════════════════════════════════════════════════
   ZENTENIO — DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:            #00050E;
  --bg-alt:        #030B18;
  --primary:       #124AD3;
  --primary-dark:  #0D3BA8;
  --primary-light: #2E62E8;
  --secondary:     #17316F;
  --accent:        #4366BD;
  --light:         #F7F7F4;
  --light-muted:   rgba(247, 247, 244, 0.55);
  --light-subtle:  rgba(247, 247, 244, 0.08);
  --card-bg:       rgba(247, 247, 244, 0.04);
  --card-bg-hover: rgba(247, 247, 244, 0.07);
  --border:        rgba(247, 247, 244, 0.08);
  --border-strong: rgba(247, 247, 244, 0.16);
  --glow-primary:  rgba(18, 74, 211, 0.20);
  --glow-accent:   rgba(67, 102, 189, 0.15);

  /* Typography */
  --font-display:  'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body:     'Asap', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* Spacing */
  --section-py:    clamp(80px, 10vw, 140px);
  --container:     1200px;
  --gap:           clamp(16px, 2vw, 24px);
  --radius:        16px;
  --radius-sm:     8px;
  --radius-pill:   100px;

  /* Transitions */
  --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:      cubic-bezier(0.0, 0.0, 0.2, 1.0);
  --t-fast:        0.18s;
  --t-med:         0.35s;
  --t-slow:        0.65s;
}

/* ─── LIGHT THEME VARIABLES ─────────────────────────────────────── */
[data-theme="light"] {
  --bg:            #F0F3FA;
  --bg-alt:        #E6EAF5;
  --light:         #05101E;
  --light-muted:   rgba(5, 16, 30, 0.55);
  --light-subtle:  rgba(5, 16, 30, 0.06);
  --card-bg:       rgba(255, 255, 255, 0.75);
  --card-bg-hover: rgba(255, 255, 255, 0.95);
  --border:        rgba(5, 16, 30, 0.10);
  --border-strong: rgba(5, 16, 30, 0.18);
  --glow-primary:  rgba(18, 74, 211, 0.10);
  --glow-accent:   rgba(67, 102, 189, 0.08);
}

/* Smooth theme transition */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ─── RESET & BASE ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  background-color: var(--bg);
  color: var(--light);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
em { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── SKIP LINK ──────────────────────────────────────────────────── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--light);
  padding: 12px 24px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top var(--t-fast) var(--ease);
}
.skip-link:focus { top: 0; }

/* ─── CONTAINER ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(18, 74, 211, 0.12);
  border: 1px solid rgba(18, 74, 211, 0.3);
  border-radius: var(--radius-pill);
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--light);
  margin-bottom: 20px;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.5vw, 17px);
  color: var(--light-muted);
  max-width: 580px;
  line-height: 1.65;
  margin-bottom: 56px;
}

.section-text {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--light-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 20px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header.centered .section-subtitle {
  text-align: center;
}

/* ─── SECTIONS ───────────────────────────────────────────────────── */
.section {
  padding-block: var(--section-py);
  position: relative;
}

.section-alt {
  background: var(--bg-alt);
}

.section-alt::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 80% 0%, rgba(18, 74, 211, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 10% 100%, rgba(67, 102, 189, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--t-fast) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--t-fast) var(--ease);
}

.btn:hover::after { background: rgba(255, 255, 255, 0.08); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--light);
  box-shadow: 0 4px 20px rgba(18, 74, 211, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(18, 74, 211, 0.55);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--light);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--light-subtle);
  border-color: rgba(247, 247, 244, 0.3);
}

.btn-lg {
  padding: 15px 32px;
  font-size: 0.95rem;
  border-radius: 10px;
}

.btn-full { width: 100%; }

/* ─── NAVBAR ─────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding-block: 20px;
  transition: background var(--t-med) var(--ease), padding var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(0, 5, 14, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-block: 14px;
  border-bottom-color: var(--border);
}

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

.nav-logo .logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--light-muted);
  border-radius: var(--radius-sm);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.nav-link:hover,
.nav-link.active {
  color: var(--light);
  background: var(--light-subtle);
}

.nav-link.active {
  color: var(--light);
}

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

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--light-muted);
  background: transparent;
  transition: all var(--t-fast) var(--ease);
}

.lang-toggle:hover {
  color: var(--light);
  border-color: var(--border-strong);
  background: var(--light-subtle);
}

.lang-toggle .lang-active { color: var(--light); }
.lang-toggle .lang-divider { opacity: 0.3; }

.nav-cta { display: none; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast) var(--ease);
}

.hamburger:hover { background: var(--light-subtle); }

.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--light);
  border-radius: 2px;
  transition: all var(--t-med) var(--ease);
}

.hamburger.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE OVERLAY ─────────────────────────────────────────────── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 5, 14, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2rem;
  color: var(--light-muted);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast) var(--ease);
}

.mobile-close:hover { color: var(--light); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  color: var(--light-muted);
  padding: 12px 24px;
  transition: color var(--t-fast) var(--ease);
}

.mobile-link:hover { color: var(--light); }

.mobile-cta {
  margin-top: 16px;
}

.lang-toggle-mobile {
  margin-top: 8px;
}

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 80px;
}

/* Animated glow background */
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 700px at 65% 30%, rgba(18, 74, 211, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 600px 500px at 20% 80%, rgba(67, 102, 189, 0.10) 0%, transparent 55%),
    radial-gradient(ellipse 400px 400px at 80% 90%, rgba(23, 49, 111, 0.12) 0%, transparent 60%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}

@keyframes heroGlow {
  0%   { transform: scale(1) translate(0px, 0px); }
  50%  { transform: scale(1.06) translate(-15px, 10px); }
  100% { transform: scale(0.97) translate(20px, -15px); }
}

/* Dot grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(67, 102, 189, 0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 40px 40px; }
}

/* Noise texture overlay */
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
  pointer-events: none;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(18, 74, 211, 0.12);
  border: 1px solid rgba(18, 74, 211, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: pulseDot 2.4s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(18, 74, 211, 0.8);
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--light);
  margin-bottom: 28px;
}

.hero-subtitle {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--light-muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--light);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--light-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); transform-origin: top; }
}

/* ─── HERO ENTRANCE ANIMATIONS ───────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp var(--t-slow) var(--ease-out) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── REVEAL ANIMATIONS ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 0.1s);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ABOUT SECTION ──────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: start;
  margin-bottom: 64px;
}

.about-left .btn {
  margin-top: 12px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.value-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 28px);
  transition: all var(--t-med) var(--ease);
}

.value-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(18, 74, 211, 0.3);
  box-shadow: 0 0 30px var(--glow-primary);
  transform: translateY(-3px);
}

.value-icon {
  color: var(--primary-light);
  margin-bottom: 14px;
}

.value-card h3 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 8px;
}

.value-card p {
  font-size: 0.83rem;
  color: var(--light-muted);
  line-height: 1.6;
}

.mission-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.mission-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  transition: all var(--t-med) var(--ease);
}

.mission-card:hover {
  border-color: rgba(18, 74, 211, 0.25);
  background: var(--card-bg-hover);
}

.mission-icon {
  color: var(--accent);
  margin-bottom: 16px;
  padding: 10px;
  background: rgba(18, 74, 211, 0.12);
  border-radius: var(--radius-sm);
  display: inline-flex;
}

.mission-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 12px;
}

.mission-card p {
  font-size: 0.88rem;
  color: var(--light-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.mission-card p:last-child {
  margin-bottom: 0;
}

.mission-highlight {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  border-left: 2px solid var(--primary);
  padding-left: 12px;
  line-height: 1.6;
}

/* 5th value card spans full width on its row */
.value-card--wide {
  grid-column: 1 / -1;
}

/* ─── SERVICES SECTION ───────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-bottom: 64px;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 3.5vw, 40px);
  position: relative;
  overflow: hidden;
  transition: all var(--t-med) var(--ease);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}

.service-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(18, 74, 211, 0.3);
  box-shadow: 0 8px 40px var(--glow-primary);
  transform: translateY(-4px);
}

.service-card:hover::before { opacity: 1; }

.service-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: rgba(18, 74, 211, 0.15);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
  transition: color var(--t-med) var(--ease);
}

.service-card:hover .service-number {
  color: rgba(18, 74, 211, 0.35);
}

.service-icon-wrap {
  color: var(--primary-light);
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--light-muted);
  line-height: 1.7;
}

/* Tech pills */
.tech-section {
  text-align: center;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.tech-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-muted);
  margin-bottom: 8px;
}

.tech-hint {
  font-size: 0.75rem;
  color: rgba(67, 102, 189, 0.7);
  margin-bottom: 20px;
  font-style: italic;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--light-muted);
  letter-spacing: 0.02em;
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
}

.tech-pill:hover {
  background: rgba(18, 74, 211, 0.12);
  border-color: rgba(18, 74, 211, 0.4);
  color: var(--accent);
  transform: translateY(-2px);
}

.tech-pill.active {
  background: rgba(18, 74, 211, 0.18);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(18, 74, 211, 0.3);
}

/* Tech detail panel */
.tech-detail {
  margin-top: 24px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease-out), opacity 0.35s var(--ease-out);
  opacity: 0;
}

.tech-detail:not([hidden]) {
  max-height: 300px;
  opacity: 1;
}

.tech-detail[hidden] {
  display: block;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

.tech-detail-inner {
  background: var(--card-bg);
  border: 1px solid rgba(18, 74, 211, 0.3);
  border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 28px);
  text-align: left;
  position: relative;
}

.tech-detail-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.tech-detail-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 74, 211, 0.15);
  border-radius: var(--radius-sm);
  color: var(--primary-light);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tech-detail-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 2px;
}

.tech-detail-name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--light);
}

.tech-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--light-muted);
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: all var(--t-fast) var(--ease);
}

.tech-detail-close:hover {
  color: var(--light);
  background: var(--light-subtle);
}

.tech-detail-desc {
  font-size: 0.88rem;
  color: var(--light-muted);
  line-height: 1.7;
  max-width: 680px;
}

/* ─── CLIENTS SECTION ────────────────────────────────────────────── */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  margin-bottom: 64px;
}

.client-logo {
  background: rgba(247, 247, 244, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: clamp(16px, 2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  transition: all var(--t-med) var(--ease);
  overflow: hidden;
}

.client-logo:hover {
  background: rgba(247, 247, 244, 0.08);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.client-logo img {
  max-width: 120px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) brightness(0) invert(1);
  opacity: 0.5;
  transition: all var(--t-med) var(--ease);
}

.client-logo:hover img {
  filter: grayscale(0%) brightness(1) invert(0);
  opacity: 1;
}

/* Success case cards */
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.case-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  transition: all var(--t-med) var(--ease);
}

.case-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(18, 74, 211, 0.3);
  box-shadow: 0 8px 40px var(--glow-primary);
  transform: translateY(-3px);
}

.case-industry {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 12px;
}

.case-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 10px;
  line-height: 1.4;
}

.case-card p {
  font-size: 0.87rem;
  color: var(--light-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.case-link:hover { color: var(--light); gap: 10px; }

/* ─── HOW WE WORK SECTION ────────────────────────────────────────── */
.process-container {
  position: relative;
  margin-bottom: 64px;
}

.process-line {
  display: none;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: steps;
}

.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
  padding-block: 32px;
  border-bottom: 1px solid var(--border);
  transition: background var(--t-med) var(--ease);
  padding-inline: 16px;
  border-radius: var(--radius-sm);
}

.process-step:last-child { border-bottom: none; }

.process-step:hover {
  background: var(--card-bg);
}

.step-number {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.04em;
  line-height: 1;
  padding-top: 4px;
  opacity: 0.7;
  transition: opacity var(--t-fast) var(--ease);
}

.process-step:hover .step-number { opacity: 1; }

.step-body h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 8px;
}

.step-body p {
  font-size: 0.88rem;
  color: var(--light-muted);
  line-height: 1.7;
  max-width: 560px;
}

/* Pillars */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.pillar-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(24px, 2.5vw, 32px);
  transition: all var(--t-med) var(--ease);
}

.pillar-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(18, 74, 211, 0.3);
  box-shadow: 0 0 30px var(--glow-primary);
  transform: translateY(-3px);
}

.pillar-icon {
  color: var(--primary-light);
  margin-bottom: 14px;
  padding: 10px;
  background: rgba(18, 74, 211, 0.1);
  border-radius: var(--radius-sm);
  display: inline-flex;
}

.pillar-card h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--light);
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 0.83rem;
  color: var(--light-muted);
  line-height: 1.6;
}

/* ─── BLOG SECTION ───────────────────────────────────────────────── */
.blog-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}

.blog-intro {
  max-width: 420px;
  margin-bottom: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--t-med) var(--ease);
}

.blog-card:hover {
  background: var(--card-bg-hover);
  border-color: rgba(18, 74, 211, 0.3);
  box-shadow: 0 8px 40px var(--glow-primary);
  transform: translateY(-4px);
}

.blog-card-inner {
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.blog-meta-top {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-category {
  display: inline-flex;
  padding: 4px 10px;
  background: rgba(18, 74, 211, 0.15);
  border: 1px solid rgba(18, 74, 211, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.blog-date {
  font-size: 0.75rem;
  color: var(--light-muted);
  font-weight: 500;
}

.blog-card h3 {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: 700;
  color: var(--light);
  line-height: 1.4;
  flex-grow: 1;
}

.blog-card p {
  font-size: 0.85rem;
  color: var(--light-muted);
  line-height: 1.65;
  flex-grow: 2;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
  transition: gap var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}

.blog-link:hover { color: var(--light); gap: 10px; }

/* ─── CONTACT SECTION ────────────────────────────────────────────── */
.section-contact {
  position: relative;
  overflow: hidden;
}

.section-contact::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(18, 74, 211, 0.08) 0%, transparent 65%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: start;
}

.contact-left .section-title {
  margin-top: 12px;
  margin-bottom: 16px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--light-muted);
  transition: color var(--t-fast) var(--ease);
}

a.contact-item:hover { color: var(--light); }

.contact-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 74, 211, 0.1);
  border: 1px solid rgba(18, 74, 211, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent);
  flex-shrink: 0;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--light-muted);
  letter-spacing: 0.02em;
}

.label-optional {
  font-weight: 400;
  opacity: 0.7;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--light);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(247, 247, 244, 0.25);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: rgba(18, 74, 211, 0.6);
  box-shadow: 0 0 0 3px rgba(18, 74, 211, 0.12);
  background: rgba(247, 247, 244, 0.06);
}

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

.select-wrap {
  position: relative;
}

.select-wrap select {
  padding-right: 40px;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--light-muted);
}

.select-wrap select option {
  background: #0a1628;
  color: var(--light);
}

.field-error {
  font-size: 0.78rem;
  color: #ff6b6b;
  min-height: 1rem;
  display: block;
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--light-muted);
  margin-top: -8px;
}

/* Success state */
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  gap: 16px;
  background: var(--card-bg);
  border: 1px solid rgba(18, 74, 211, 0.3);
  border-radius: var(--radius);
  min-height: 320px;
}

.contact-success[hidden] { display: none; }

.success-icon {
  animation: successPop 0.6s var(--ease-out) both;
}

@keyframes successPop {
  0% { transform: scale(0.6); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.contact-success h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--light);
}

.contact-success p {
  font-size: 0.9rem;
  color: var(--light-muted);
  max-width: 320px;
  line-height: 1.6;
}

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-block: 56px;
}

.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--light-muted);
  max-width: 280px;
  line-height: 1.6;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light-muted);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(247, 247, 244, 0.45);
  transition: color var(--t-fast) var(--ease);
  padding-block: 3px;
}

.footer-col a:hover { color: var(--light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-block: 20px;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.footer-copy,
.footer-made {
  font-size: 0.78rem;
  color: rgba(247, 247, 244, 0.3);
}

/* ─── RESPONSIVE — TABLET (768px+) ──────────────────────────────── */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .hamburger { display: none; }

  .about-grid { grid-template-columns: 1fr 1fr; }
  .mission-row { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .cases-grid { grid-template-columns: repeat(3, 1fr); }
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: start; }
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }

  .blog-header {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .blog-intro {
    text-align: right;
  }
}

/* ─── RESPONSIVE — DESKTOP (1024px+) ────────────────────────────── */
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: repeat(4, 1fr); }
  .process-step { grid-template-columns: 72px 1fr; gap: 32px; }

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

  .blog-featured {
    grid-column: span 2;
  }

  .blog-featured .blog-card-inner {
    flex-direction: column;
    height: 100%;
  }

  .blog-featured h3 {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  }

  .process-line {
    display: block;
    position: absolute;
    left: 72px;
    top: 56px;
    bottom: 56px;
    width: 1px;
    background: linear-gradient(to bottom, var(--primary) 0%, var(--border) 100%);
    opacity: 0.3;
  }
}

/* ─── THEME TOGGLE BUTTON ────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--light-muted);
  background: transparent;
  transition: all var(--t-fast) var(--ease);
}

.theme-toggle:hover {
  color: var(--light);
  border-color: var(--border-strong);
  background: var(--light-subtle);
}

/* Show/hide correct icon based on theme */
:root .icon-sun        { display: none; }
:root .icon-moon       { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }

.mobile-bottom-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

/* ─── LIGHT THEME COMPONENT OVERRIDES ───────────────────────────── */

/* Body gradient background — fixed pseudo-element so it shows through all sections */
[data-theme="light"] html::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 700px at 90% -5%, rgba(18, 74, 211, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 700px 600px at -10% 60%, rgba(67, 102, 189, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse 500px 400px at 60% 105%, rgba(23, 49, 111, 0.05) 0%, transparent 55%);
}

/* Sections must be transparent so the fixed gradient shows through seamlessly */
[data-theme="light"] .section-alt {
  background: rgba(18, 49, 111, 0.03);
}

/* CTA buttons — always white text regardless of theme */
[data-theme="light"] .btn-primary {
  color: #ffffff;
}

/* Navbar */
[data-theme="light"] .navbar.scrolled {
  background: rgba(240, 243, 250, 0.94);
  border-bottom-color: rgba(5, 16, 30, 0.1);
}

[data-theme="light"] .ham-line {
  background: var(--light);
}

/* Mobile overlay */
[data-theme="light"] .mobile-overlay {
  background: rgba(240, 243, 250, 0.98);
}

/* Hero */
[data-theme="light"] .hero-glow {
  background:
    radial-gradient(ellipse 900px 700px at 65% 30%, rgba(18, 74, 211, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 600px 500px at 20% 80%, rgba(67, 102, 189, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 400px 400px at 80% 90%, rgba(23, 49, 111, 0.08) 0%, transparent 60%);
}

[data-theme="light"] .hero-grid {
  background-image: radial-gradient(circle, rgba(18, 74, 211, 0.15) 1px, transparent 1px);
}

[data-theme="light"] .scroll-line {
  background: linear-gradient(to bottom, var(--primary), transparent);
}

/* Section alt background */
[data-theme="light"] .section-alt::before {
  background:
    radial-gradient(ellipse 800px 400px at 80% 0%, rgba(18, 74, 211, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 600px 400px at 10% 100%, rgba(67, 102, 189, 0.04) 0%, transparent 60%);
}

/* Cards — add a real shadow in light mode */
[data-theme="light"] .value-card,
[data-theme="light"] .service-card,
[data-theme="light"] .mission-card,
[data-theme="light"] .case-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .pillar-card {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 12px rgba(5, 16, 30, 0.07);
}

[data-theme="light"] .value-card:hover,
[data-theme="light"] .service-card:hover,
[data-theme="light"] .mission-card:hover,
[data-theme="light"] .case-card:hover,
[data-theme="light"] .blog-card:hover,
[data-theme="light"] .pillar-card:hover {
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(18, 74, 211, 0.12);
}

/* Client logos — in light mode use grayscale, not invert */
[data-theme="light"] .client-logo {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 8px rgba(5, 16, 30, 0.07);
}

[data-theme="light"] .client-logo img {
  filter: grayscale(100%);
  opacity: 0.5;
}

[data-theme="light"] .client-logo:hover img {
  filter: grayscale(0%) brightness(1) invert(0);
  opacity: 1;
}

/* Form inputs */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea,
[data-theme="light"] .form-group select {
  background: #ffffff;
  border-color: rgba(5, 16, 30, 0.15);
  color: var(--light);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
  color: rgba(5, 16, 30, 0.3);
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus,
[data-theme="light"] .form-group select:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(18, 74, 211, 0.1);
}

[data-theme="light"] .select-wrap select option {
  background: #f0f3fa;
  color: var(--light);
}

/* Contact success */
[data-theme="light"] .contact-success {
  background: rgba(255, 255, 255, 0.8);
}

/* Footer */
[data-theme="light"] .footer {
  background: var(--bg-alt);
  border-top-color: rgba(5, 16, 30, 0.1);
}

[data-theme="light"] .footer-bottom {
  border-top-color: rgba(5, 16, 30, 0.08);
}

/* Hero badge glow dot */
[data-theme="light"] .badge-dot {
  background: var(--primary);
  box-shadow: 0 0 6px rgba(18, 74, 211, 0.5);
}

/* Section tag */
[data-theme="light"] .section-tag {
  background: rgba(18, 74, 211, 0.08);
  border-color: rgba(18, 74, 211, 0.2);
}

/* Tech pills */
[data-theme="light"] .tech-pill {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 4px rgba(5, 16, 30, 0.06);
}

[data-theme="light"] .tech-pill:hover {
  background: rgba(18, 74, 211, 0.08);
}

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

[data-theme="light"] .tech-detail-inner {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 20px rgba(18, 74, 211, 0.08);
}

/* Process steps */
[data-theme="light"] .process-step:hover {
  background: rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .process-step {
  border-bottom-color: rgba(5, 16, 30, 0.1);
}

/* ─── REDUCED MOTION ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }

  .reveal { opacity: 1; transform: none; }
  .animate-in { opacity: 1; transform: none; }
}
