/* ============================================================
   TRCOM — Estilos principales
   ============================================================ */

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* === DESIGN TOKENS === */
:root {
  /* Colores */
  --blue-900: #080f1d;
  --blue-800: #0f1e3c;
  --blue-700: #132a55;
  --blue-600: #1a3a6b;
  --blue-500: #1a5cf5;
  --blue-400: #4a7ff5;
  --blue-300: #7ea8ff;
  --teal-600: #009688;
  --teal-500: #00b8a0;
  --teal-400: #00d4ba;
  --teal-300: #5ee8d8;
  --gray-50:  #f7f9fc;
  --gray-100: #edf1f7;
  --gray-200: #d8e0ee;
  --gray-300: #b4bfd4;
  --gray-400: #8494a8;
  --gray-500: #5a6a7e;
  --gray-600: #3d4c5e;
  --white: #ffffff;
  --text-dark: #0b1829;
  --text-medium: #3d4c5e;
  --text-light: #8494a8;

  /* Semánticos */
  --color-primary: var(--blue-800);
  --color-accent: var(--blue-500);
  --color-highlight: var(--teal-500);
  --color-surface: var(--gray-50);
  --color-border: var(--gray-200);

  /* Espaciado */
  --s1: 0.25rem;  --s2: 0.5rem;  --s3: 0.75rem;
  --s4: 1rem;     --s6: 1.5rem;  --s8: 2rem;
  --s10: 2.5rem;  --s12: 3rem;   --s16: 4rem;
  --s20: 5rem;    --s24: 6rem;   --s32: 8rem;

  /* Tipografía */
  --text-xs: 0.75rem;   --text-sm: 0.875rem;  --text-base: 1rem;
  --text-lg: 1.125rem;  --text-xl: 1.25rem;   --text-2xl: 1.5rem;
  --text-3xl: 1.875rem; --text-4xl: 2.25rem;  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Radios */
  --r-sm: 0.375rem; --r-md: 0.5rem; --r-lg: 0.75rem;
  --r-xl: 1rem;     --r-2xl: 1.5rem; --r-full: 9999px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.13);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.17);
  --shadow-blue: 0 8px 32px rgba(26,92,245,0.28);

  /* Transiciones */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;

  /* Layout */
  --container-max: 1200px;
  --gutter: 1.5rem;
}

/* === LAYOUT === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--s24) 0; }
.section--alt { background: var(--gray-50); }
.section--dark { background: var(--blue-900); color: var(--white); }
.section--navy { background: var(--blue-800); color: var(--white); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: var(--s4);
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.12;
  color: var(--text-dark);
  letter-spacing: -0.025em;
}
.section-title--light { color: var(--white); }

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--text-medium);
  max-width: 600px;
  margin-top: var(--s4);
  line-height: 1.75;
}
.section-subtitle--light { color: var(--gray-300); }

.section-header { margin-bottom: var(--s16); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-md);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t-base);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--blue-500);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
  background: var(--blue-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(26,92,245,0.38);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
}

.btn--ghost {
  background: transparent;
  color: var(--blue-500);
  border-color: var(--blue-500);
}
.btn--ghost:hover {
  background: var(--blue-500);
  color: var(--white);
  transform: translateY(-1px);
}

.btn--whatsapp {
  background: #25d366;
  color: var(--white);
}
.btn--whatsapp:hover {
  background: #1dbb58;
  transform: translateY(-1px);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--text-lg);
  border-radius: var(--r-lg);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* === BADGES === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  background: rgba(26,92,245,0.1);
  color: var(--blue-500);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge--teal  { background: rgba(0,184,160,0.1); color: var(--teal-500); }
.badge--dark  { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); }

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: var(--s4) 0;
  transition: all var(--t-base);
}
.nav--scrolled {
  background: rgba(8,15,29,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: var(--s3) 0;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  color: var(--white);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.nav__logo-mark {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-500));
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav__logo-mark svg { width: 20px; height: 20px; color: var(--white); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--s6);
}
.nav__link {
  color: rgba(255,255,255,0.72);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--t-fast);
  position: relative;
  padding: var(--s1) 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--teal-500);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--t-fast);
}
.nav__link:hover,
.nav__link.active { color: var(--white); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }

.nav__cta {
  background: var(--blue-500);
  color: var(--white);
  padding: 0.5rem 1.125rem;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: all var(--t-base);
  white-space: nowrap;
}
.nav__cta:hover {
  background: var(--blue-400);
  transform: translateY(-1px);
}

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--s1);
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t-base);
}
.nav__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === HERO === */
.hero {
  min-height: 100vh;
  background: var(--blue-900);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: calc(70px + var(--s16)) 0 var(--s16);
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,92,245,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,92,245,0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero__glow-1 {
  position: absolute;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(26,92,245,0.14) 0%, transparent 68%);
  top: -250px; right: -200px;
  border-radius: 50%;
}
.hero__glow-2 {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,184,160,0.09) 0%, transparent 68%);
  bottom: -100px; left: -100px;
  border-radius: 50%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: rgba(0,184,160,0.1);
  border: 1px solid rgba(0,184,160,0.25);
  color: var(--teal-400);
  padding: 0.375rem 0.875rem;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: var(--s6);
}
.hero__eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--teal-400);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.7)} }

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: var(--s6);
}
.hero__title mark {
  background: linear-gradient(120deg, var(--blue-400), var(--teal-400));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-color: transparent;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--gray-300);
  line-height: 1.75;
  margin-bottom: var(--s8);
  max-width: 500px;
}

.hero__actions {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s10);
}

.hero__stats {
  display: flex;
  gap: var(--s8);
  padding-top: var(--s8);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero__stat-val {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero__stat-lbl {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: var(--s1);
  line-height: 1.4;
}

/* PCB Illustration */
.hero__visual { display: flex; justify-content: center; align-items: center; }

.pcb-illustration {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 4/3;
  background: #0a121e;
  border: 1px solid rgba(26,92,245,0.25);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(26,92,245,0.08),
    0 32px 80px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.pcb-illustration svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

/* Tags grid overlaying pcb */
.pcb-tags {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s6);
}
.pcb-tag {
  background: rgba(10,18,30,0.85);
  border: 1px solid rgba(26,92,245,0.35);
  color: var(--blue-300);
  padding: 0.25rem 0.6rem;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
}
.pcb-tag--teal {
  border-color: rgba(0,184,160,0.35);
  color: var(--teal-400);
}
.pcb-tag--white {
  border-color: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.65);
}

/* === SERVICE CARDS === */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s6);
}

.service-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  transition: all var(--t-base);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-500));
  opacity: 0;
  transition: opacity var(--t-base);
}
.service-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.service-card:hover::after { opacity: 1; }

.service-card__icon {
  width: 52px; height: 52px;
  background: rgba(26,92,245,0.08);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s6);
  transition: background var(--t-base);
}
.service-card:hover .service-card__icon { background: rgba(26,92,245,0.14); }
.service-card__icon svg { width: 26px; height: 26px; color: var(--blue-500); }

.service-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--s2);
  letter-spacing: -0.01em;
}
.service-card__desc {
  font-size: var(--text-sm);
  color: var(--text-medium);
  line-height: 1.75;
  margin-bottom: var(--s6);
}
.service-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}
.service-card__chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-500);
  background: rgba(26,92,245,0.07);
  padding: 0.2rem 0.5rem;
  border-radius: var(--r-sm);
  font-family: 'SF Mono', 'Consolas', monospace;
}

/* === METRICS === */
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s4);
}
.metric-card {
  text-align: center;
  padding: var(--s8) var(--s6);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-xl);
  transition: border-color var(--t-base);
}
.metric-card:hover { border-color: rgba(26,92,245,0.4); }
.metric-card__val {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--s2);
}
.metric-card__val span { color: var(--teal-400); }
.metric-card__lbl { font-size: var(--text-sm); color: var(--gray-400); line-height: 1.5; }

/* === INDUSTRIES === */
.industries__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s6);
}

.industry-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: var(--s8);
  transition: all var(--t-base);
}
.industry-card:hover { border-color: var(--teal-500); box-shadow: 0 8px 32px rgba(0,184,160,0.12); transform: translateY(-2px); }
.industry-card__icon {
  width: 52px; height: 52px;
  background: rgba(0,184,160,0.08);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s6);
}
.industry-card__icon svg { width: 26px; height: 26px; color: var(--teal-500); }
.industry-card__title { font-size: var(--text-lg); font-weight: 700; color: var(--text-dark); margin-bottom: var(--s2); }
.industry-card__desc { font-size: var(--text-sm); color: var(--text-medium); line-height: 1.7; margin-bottom: var(--s4); }
.industry-card__items { display: flex; flex-direction: column; gap: var(--s2); }
.industry-card__item {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  color: var(--text-medium);
}
.industry-card__item::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--teal-500);
  border-radius: 50%;
  flex-shrink: 0;
}

/* === PROCESS === */
.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s4);
  counter-reset: step;
}
.process-step {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  padding: var(--s6);
  counter-increment: step;
  transition: all var(--t-base);
  position: relative;
}
.process-step:hover { border-color: var(--blue-400); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.process-step__num {
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--blue-500);
  letter-spacing: 0.08em;
  font-family: 'SF Mono', 'Consolas', monospace;
  margin-bottom: var(--s2);
}
.process-step__num::before { content: counter(step, decimal-leading-zero); }
.process-step__title { font-size: var(--text-sm); font-weight: 700; color: var(--text-dark); line-height: 1.4; }

/* === TECH STACK === */
.tech__cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  justify-content: center;
}
.tech-pill {
  display: flex;
  align-items: center;
  gap: var(--s2);
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-full);
  padding: 0.45rem 1rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-dark);
  transition: all var(--t-fast);
  cursor: default;
}
.tech-pill:hover { border-color: var(--blue-400); color: var(--blue-500); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.tech-pill__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.tech-pill__dot--hw  { background: #ef4444; }
.tech-pill__dot--fw  { background: #f59e0b; }
.tech-pill__dot--sw  { background: #8b5cf6; }
.tech-pill__dot--iot { background: var(--teal-500); }
.tech-pill__dot--ai  { background: #10b981; }
.tech-pill__dot--tool{ background: var(--gray-400); }

/* === CAPABILITIES GRID === */
.capabilities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--s2);
}
.cap-item {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  background: #000;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--white);
  cursor: default;
  pointer-events: none;
}
.cap-item__icon {
  width: 22px; height: 22px;
  background: var(--teal-400);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}

/* === PROJECT CARDS === */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--s8);
}
.project-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-base);
}
.project-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow-xl); transform: translateY(-4px); }

.project-card__image {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.project-card__image-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
}
.project-card__image-label {
  position: relative;
  z-index: 1;
  text-align: center;
}
.project-card__image-icon {
  font-size: 2.5rem;
  margin-bottom: var(--s2);
  line-height: 1;
}
.project-card__image-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Carousel (project-card__image) --- */
.carousel {
  position: absolute;
  inset: 0;
}
.carousel__track {
  position: absolute;
  inset: 0;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.carousel__slide.is-active { opacity: 1; }
.carousel .project-card__image-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.carousel__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
}
.carousel__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.carousel__dot.is-active { background: #fff; transform: scale(1.25); }
.carousel__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel__dot:hover:not(.is-active) { background: rgba(255,255,255,0.6); }

.project-card__body { padding: var(--s6); }
.project-card__tags { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s4); }
.project-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--s2);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.project-card__desc { font-size: var(--text-sm); color: var(--text-medium); line-height: 1.7; margin-bottom: var(--s4); }
.project-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue-500);
  transition: gap var(--t-fast);
}
.project-card:hover .project-card__link { gap: var(--s3); }

/* === BLOG CARDS === */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s8);
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--t-base);
}
.blog-card:hover { border-color: var(--blue-300); box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.blog-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  font-size: var(--text-3xl);
}
.blog-card__body { padding: var(--s6); }
.blog-card__meta { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s4); }
.blog-card__cat {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--blue-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-card__date { font-size: var(--text-xs); color: var(--text-light); }
.blog-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: var(--s2);
}
.blog-card__excerpt { font-size: var(--text-sm); color: var(--text-medium); line-height: 1.7; }

/* === CTA BAND === */
.cta-band {
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-900) 100%);
  border-radius: var(--r-2xl);
  padding: var(--s16) var(--s12);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(26,92,245,0.18) 0%, transparent 68%);
  top: -300px; left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band__content { position: relative; z-index: 1; }
.cta-band__title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: var(--s4);
  line-height: 1.15;
}
.cta-band__subtitle {
  font-size: var(--text-lg);
  color: var(--gray-300);
  max-width: 520px;
  margin: 0 auto var(--s8);
  line-height: 1.7;
}
.cta-band__actions { display: flex; gap: var(--s4); justify-content: center; flex-wrap: wrap; }

/* === CONTACT PAGE === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--s16);
  align-items: start;
}
.contact-info__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.025em;
  margin-bottom: var(--s4);
  line-height: 1.2;
}
.contact-info__text { font-size: var(--text-base); color: var(--text-medium); line-height: 1.75; margin-bottom: var(--s8); }
.contact-links { display: flex; flex-direction: column; gap: var(--s3); }
.contact-link {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4) var(--s5);
  background: var(--gray-50);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  transition: all var(--t-fast);
  text-decoration: none;
}
.contact-link:hover { border-color: var(--blue-300); background: rgba(26,92,245,0.03); }
.contact-link__icon {
  width: 40px; height: 40px;
  background: rgba(26,92,245,0.1);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-link__icon svg { width: 20px; height: 20px; color: var(--blue-500); }
.contact-link__lbl { font-size: var(--text-xs); color: var(--text-light); margin-bottom: 2px; }
.contact-link__val { font-size: var(--text-sm); font-weight: 600; color: var(--text-dark); }

/* === FORM === */
.contact-form {
  background: var(--white);
  border: 1px solid var(--color-border);
  border-radius: var(--r-2xl);
  padding: var(--s8);
  box-shadow: var(--shadow-lg);
}
.contact-form__title { font-size: var(--text-xl); font-weight: 700; color: var(--text-dark); margin-bottom: var(--s6); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.form-group { display: flex; flex-direction: column; gap: var(--s1); }
.form-group--full { grid-column: 1 / -1; }
.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--text-dark); }
.form-input, .form-textarea, .form-select {
  padding: 0.75rem 1rem;
  background: var(--gray-50);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  color: var(--text-dark);
  transition: all var(--t-fast);
  font-family: inherit;
  width: 100%;
  appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,92,245,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-light); }
.form-textarea { resize: vertical; min-height: 130px; }
.form-submit { width: 100%; margin-top: var(--s2); justify-content: center; }
.form-status {
  margin-top: var(--s4);
  padding: 0.875rem 1rem;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
}
.form-status--success {
  background: rgba(0,184,160,0.08);
  border: 1px solid rgba(0,184,160,0.22);
  color: #0f766e;
}
.form-status--error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.2);
  color: #b91c1c;
}

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: var(--blue-900);
  padding: calc(70px + var(--s16)) 0 var(--s16);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26,92,245,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,92,245,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.page-hero__content { position: relative; z-index: 1; max-width: 680px; }
.page-hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-400);
  margin-bottom: var(--s4);
}
.page-hero__title {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: var(--s4);
}
.page-hero__subtitle { font-size: var(--text-lg); color: var(--gray-300); line-height: 1.7; }

/* === BLOG FULL PAGE === */
.blog-hero-card {
  background: var(--blue-800);
  border-radius: var(--r-2xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: var(--s12);
}
.blog-hero-card__img {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-900));
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}
.blog-hero-card__body { padding: var(--s10); }
.blog-hero-card__cat {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--teal-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s4);
}
.blog-hero-card__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--s4);
}
.blog-hero-card__excerpt { font-size: var(--text-base); color: var(--gray-300); line-height: 1.7; margin-bottom: var(--s6); }
.blog-hero-card__meta { font-size: var(--text-sm); color: var(--gray-500); }

/* === SERVICE PAGE === */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: center;
  margin-bottom: var(--s16);
  padding-bottom: var(--s16);
  border-bottom: 1px solid var(--color-border);
}
.service-detail:last-child { border-bottom: none; margin-bottom: 0; }
.service-detail:nth-child(even) .service-detail__visual { order: -1; }
.service-detail__title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.025em;
  margin-bottom: var(--s4);
  line-height: 1.2;
}
.service-detail__desc { font-size: var(--text-base); color: var(--text-medium); line-height: 1.8; margin-bottom: var(--s6); }
.service-detail__list { display: flex; flex-direction: column; gap: var(--s3); }
.service-detail__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: var(--text-sm);
  color: var(--text-medium);
}
.service-detail__item::before {
  content: '→';
  color: var(--blue-500);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.service-detail__visual {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-900));
  border-radius: var(--r-2xl);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s4);
  padding: var(--s8);
  border: 1px solid rgba(26,92,245,0.2);
}
.service-detail__visual-icon { font-size: 4rem; }
.service-detail__visual-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: center;
}
.service-detail__chip {
  background: rgba(26,92,245,0.15);
  border: 1px solid rgba(26,92,245,0.3);
  color: var(--blue-300);
  padding: 0.25rem 0.625rem;
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 700;
  font-family: 'SF Mono', 'Consolas', monospace;
}

/* === PROJECT DETAIL PAGE === */
.project-detail { max-width: 860px; margin: 0 auto; }
.project-detail__section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--s4);
  margin-top: var(--s8);
}
.project-detail__body { font-size: var(--text-base); color: var(--text-medium); line-height: 1.8; }
.project-detail__tech-grid { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.project-detail__result {
  background: rgba(0,184,160,0.06);
  border: 1px solid rgba(0,184,160,0.2);
  border-radius: var(--r-lg);
  padding: var(--s6);
  margin-top: var(--s4);
  font-size: var(--text-base);
  color: var(--text-dark);
  line-height: 1.7;
}

/* === FOOTER === */
.footer {
  background: var(--blue-900);
  color: var(--white);
  padding: var(--s16) 0 var(--s8);
}
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s12);
  margin-bottom: var(--s12);
}
.footer__brand {}
.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: var(--s4);
}
.footer__logo-mark {
  width: 30px; height: 30px;
  /* background: linear-gradient(135deg, var(--blue-500), var(--teal-500));*/
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
}
.footer__logo-mark svg { width: 18px; height: 18px; color: var(--white); }
.footer__tagline { font-size: var(--text-sm); color: var(--gray-500); line-height: 1.65; max-width: 260px; }
.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  margin-bottom: var(--s5);
}
.footer__links { display: flex; flex-direction: column; gap: var(--s3); }
.footer__link { font-size: var(--text-sm); color: rgba(255,255,255,0.5); transition: color var(--t-fast); }
.footer__link:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: var(--s6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.footer__copy { font-size: var(--text-sm); color: var(--gray-500); }
.footer__legal { display: flex; gap: var(--s6); }

/* === SCROLL ANIMATIONS === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }
.reveal-d5 { transition-delay: 0.40s; }

/* === MISC === */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-xl { max-width: 600px; }
.mt-4 { margin-top: var(--s4); }
.mt-6 { margin-top: var(--s6); }
.mt-8 { margin-top: var(--s8); }
.mb-4 { margin-bottom: var(--s4); }

/* separator */
.sep {
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-500));
  border-radius: 3px;
  margin: var(--s4) 0 0;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: var(--s8); }
  .contact-layout { grid-template-columns: 1fr; }
  .blog-hero-card { grid-template-columns: 1fr; }
  .blog-hero-card__img { min-height: 200px; }
  .service-detail { grid-template-columns: 1fr; }
  .service-detail:nth-child(even) .service-detail__visual { order: 0; }
}

@media (max-width: 768px) {
  :root { --gutter: 1rem; }
  .section { padding: var(--s16) 0; }

  .nav__menu {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(8,15,29,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: var(--s4);
    gap: var(--s1);
    border-top: 1px solid rgba(255,255,255,0.07);
  }
  .nav__menu.open { display: flex; }
  .nav__link { padding: var(--s3) var(--s4); border-radius: var(--r-md); }
  .nav__link::after { display: none; }
  .nav__link:hover { background: rgba(255,255,255,0.05); }
  .nav__hamburger { display: flex; }
  .nav__cta { display: none; }

  .hero { text-align: center; padding: calc(70px + var(--s10)) 0 var(--s10); }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__stats { justify-content: center; gap: var(--s6); }

  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: var(--s10) var(--s6); }
  .process__steps { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 480px) {
  .hero__stats { flex-direction: column; align-items: center; }
  .services__grid { grid-template-columns: 1fr; }
  .industries__grid { grid-template-columns: 1fr; }
  .projects__grid { grid-template-columns: 1fr; }
  .blog__grid { grid-template-columns: 1fr; }
}
