:root {
  --bg: #07101c;
  --bg2: #0b1624;
  --panel: #0e1b2b;
  --panel-hover: #132438;
  --line: rgba(157, 185, 215, 0.15);
  --line-light: rgba(85, 230, 193, 0.3);
  --text: #edf5ff;
  --text-dim: #dce9f7;
  --muted: #93a6bb;
  --accent: #55e6c1;
  --accent-glow: rgba(85, 230, 193, 0.2);
  --accent2: #72a7ff;
  --max: 1180px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(85, 230, 193, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(7, 16, 28, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.brand > span:last-child > span {
  color: var(--accent);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(85, 230, 193, 0.45);
  border-radius: 9px;
  color: var(--accent);
  font-size: 13px;
  background: rgba(85, 230, 193, 0.06);
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: #b6c6d7;
}

.menu a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid rgba(85, 230, 193, 0.4);
  border-radius: 7px;
  color: var(--accent) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(85, 230, 193, 0.05);
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: #04100f !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 25px;
  cursor: pointer;
  padding: 6px;
}

/* Typography & General */
.eyebrow, .label {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.25); }
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(40px, 5.2vw, 72px);
  letter-spacing: -2px;
  max-width: 780px;
}

h1 span, h2 span {
  color: var(--accent);
  background: linear-gradient(135deg, #55e6c1, #72a7ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--accent);
  color: #04100f;
  box-shadow: 0 8px 30px rgba(85, 230, 193, 0.2);
}

.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(85, 230, 193, 0.3);
}

.btn-secondary {
  border-color: var(--line);
  color: #d8e5f3;
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(157, 185, 215, 0.3);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 760px;
  padding-top: 78px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 35%, rgba(52, 117, 255, 0.14), transparent 35%),
              radial-gradient(circle at 20% 70%, rgba(85, 230, 193, 0.08), transparent 30%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(125, 155, 190, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(125, 155, 190, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.hero-content {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  position: relative;
  padding: 40px 0;
}

.hero-text {
  max-width: 650px;
  color: var(--muted);
  font-size: 17px;
  margin: 24px 0 30px;
}

.hero-text strong {
  color: var(--text-dim);
}

.hero-sub {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: #7e94ab;
}

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

.hero-trust {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 36px;
  color: #63788f;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
}

.hero-trust i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #50647a;
}

.hero-visual {
  height: 500px;
  position: relative;
  display: grid;
  place-items: center;
}

.code-card {
  position: relative;
  width: min(480px, 95%);
  background: rgba(10, 23, 38, 0.94);
  border: 1px solid rgba(122, 163, 205, 0.22);
  border-radius: 14px;
  box-shadow: var(--shadow-md), 0 0 40px rgba(85, 230, 193, 0.05);
  overflow: hidden;
  transform: perspective(900px) rotateY(-6deg) rotateX(2deg);
  z-index: 2;
  transition: transform 0.4s ease;
}

.code-card:hover {
  transform: perspective(900px) rotateY(-2deg) rotateX(1deg) translateY(-4px);
}

.window-bar {
  height: 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 7px;
  background: rgba(7, 16, 28, 0.6);
}

.window-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #53677b;
}

.window-bar span:nth-child(1) { background: #ff5f56; }
.window-bar span:nth-child(2) { background: #ffbd2e; }
.window-bar span:nth-child(3) { background: #27c93f; }

.window-bar small {
  margin-left: auto;
  color: #5d7287;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.code {
  padding: 24px 28px;
  font: 14px/2 ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #b8c8d8;
}

.code p {
  margin: 0;
}

.code em {
  color: #c18bff;
  font-style: normal;
}

.code b {
  color: #75b4ff;
  font-weight: 500;
}

.code q {
  color: var(--accent);
  quotes: "'" "'";
}

.code .indent {
  padding-left: 24px;
}

.code .success {
  color: var(--accent);
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
  font-weight: 500;
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.orb-one {
  width: 320px;
  height: 320px;
  background: rgba(85, 230, 193, 0.08);
  box-shadow: 0 0 140px rgba(85, 230, 193, 0.12);
}

.orb-two {
  width: 200px;
  height: 200px;
  border: 1px solid rgba(114, 167, 255, 0.2);
}

.floating-card {
  position: absolute;
  z-index: 3;
  background: rgba(14, 27, 43, 0.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-md);
  font-size: 13px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.floating-card > span {
  font-size: 22px;
  color: var(--accent);
}

.floating-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.card-ai {
  top: 50px;
  right: 0;
}

.card-data {
  bottom: 50px;
  left: -10px;
}

/* Stats Section */
.stats {
  border-block: 1px solid var(--line);
  background: #091522;
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid > div {
  padding: 18px 24px;
  border-right: 1px solid var(--line);
}

.stats-grid > div:last-child {
  border-right: 0;
}

.stats strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 4px;
}

.stats span {
  color: #7e94ab;
  font-size: 12px;
  line-height: 1.4;
  display: block;
}

.stats-sub {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  max-width: 700px;
  margin: 24px auto 0;
  padding: 0 20px;
}

/* Sections General */
.section {
  padding: 100px 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.04;
  z-index: 0;
  pointer-events: none;
}

.section > .container {
  position: relative;
  z-index: 1;
}

.section.servicios::before { background-image: url('../images/servicios.png'); }
.section.solutions::before, .section.soluciones::before { background-image: url('../images/soluciones.png'); }
.section.tecnologia::before { background-image: url('../images/stocktecnologico.png'); }
.section.process::before, .section.proceso::before { background-image: url('../images/proceso.png'); }
.section.contact::before, .section.contacto::before { background-image: url('../images/tienesunproyecto.png'); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 50px;
  margin-bottom: 50px;
}

.section-head > div {
  flex: 1;
}

.section-head > p {
  width: 44%;
  color: var(--muted);
  font-size: 16px;
  margin: 0;
}

.section h2, .center-head h2 {
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -1.5px;
  margin-top: 12px;
}

/* Section Infographic Banners */
.section-banner {
  margin: 20px 0 45px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md), 0 0 35px rgba(85, 230, 193, 0.05);
  background: var(--panel);
  position: relative;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.section-banner:hover {
  transform: translateY(-4px);
  border-color: rgba(85, 230, 193, 0.35);
  box-shadow: var(--shadow-md), 0 0 45px rgba(85, 230, 193, 0.12);
}

.section-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

.cta-banner {
  margin-bottom: 35px;
}

/* 01. Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service {
  position: relative;
  min-height: 310px;
  padding: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.service:hover {
  border-color: var(--line-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 25px rgba(85, 230, 193, 0.08);
  background: var(--panel-hover);
}

.service-number {
  position: absolute;
  right: 28px;
  top: 28px;
  color: #42566b;
  font: 13px ui-monospace, monospace;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(85, 230, 193, 0.1);
  color: var(--accent);
  font-size: 22px;
  margin-bottom: 24px;
}

.service h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.service p {
  color: var(--muted);
  max-width: 520px;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tags span {
  font-size: 11px;
  color: #a2b8cf;
  background: rgba(14, 27, 43, 0.8);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
}

.featured {
  background: linear-gradient(135deg, rgba(85, 230, 193, 0.08), var(--panel) 50%);
  border-color: rgba(85, 230, 193, 0.25);
}

/* 02. Solutions */
.solutions {
  background: #091522;
  border-block: 1px solid var(--line);
}

.solution-list {
  border-top: 1px solid var(--line);
}

.solution-item {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  align-items: center;
  gap: 24px;
  padding: 28px 12px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, padding 0.25s ease;
  border-radius: 8px;
}

.solution-item:hover {
  background: rgba(255, 255, 255, 0.02);
  padding-left: 20px;
}

.solution-item > span {
  font: 14px ui-monospace, monospace;
  color: #5d738a;
  font-weight: 600;
}

.solution-item h3 {
  font-size: 20px;
}

.solution-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.solution-item > b {
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
  transition: transform 0.25s ease;
}

.solution-item:hover > b {
  transform: translate(3px, -3px);
}

/* 03. Tech Stack */
.tech {
  background: radial-gradient(circle at 50% 20%, rgba(114, 167, 255, 0.08), transparent 35%);
}

.center-head {
  text-align: center;
  margin-bottom: 20px;
}

.tech-desc {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 50px;
  color: var(--muted);
  font-size: 15px;
}

.tech-cloud {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.tech-item {
  min-height: 130px;
  padding: 22px;
  background: rgba(14, 27, 43, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.tech-item:hover {
  border-color: rgba(114, 167, 255, 0.45);
  background: rgba(14, 27, 43, 0.95);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.tech-item b {
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  color: var(--text);
}

.tech-item small {
  color: #7d94ab;
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.3;
}

/* 04. Process */
.process {
  border-top: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-block: 1px solid var(--line);
}

.process-grid > div {
  padding: 32px 24px;
  border-right: 1px solid var(--line);
  position: relative;
  transition: background 0.25s ease;
}

.process-grid > div:hover {
  background: rgba(255, 255, 255, 0.02);
}

.process-grid > div:last-child {
  border-right: 0;
}

.process-grid span {
  font: 12px ui-monospace, monospace;
  color: var(--accent);
  font-weight: 600;
  display: block;
}

.process-grid h3 {
  font-size: 20px;
  margin-top: 36px;
  margin-bottom: 12px;
}

.process-grid p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* CTA Banner */
.cta-section {
  padding: 60px 0 100px;
}

.cta-box {
  background: linear-gradient(110deg, #10283a, #0b1b2b);
  border: 1px solid rgba(85, 230, 193, 0.22);
  border-radius: var(--radius-lg);
  padding: 55px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  box-shadow: var(--shadow-md), 0 0 50px rgba(85, 230, 193, 0.06);
}

.cta-box h2 {
  font-size: clamp(30px, 3.8vw, 48px);
  margin-top: 8px;
  letter-spacing: -1.5px;
}

.cta-sub {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
  max-width: 500px;
}

.btn-light {
  background: #eafdf9;
  color: #07110f;
  white-space: nowrap;
}

.btn-light:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(234, 253, 249, 0.25);
}

/* Portfolio Section */
.portafolio {
  background: #091522;
  border-top: 1px solid var(--line);
}

.portafolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.portafolio-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.portafolio-item:hover {
  transform: translateY(-5px);
  border-color: var(--line-light);
  box-shadow: var(--shadow-md);
}

.portafolio-categoria {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.portafolio-item h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.portafolio-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 16px;
  flex-grow: 1;
}

.portafolio-links {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.portafolio-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(85, 230, 193, 0.08);
  border-radius: 5px;
  border: 1px solid rgba(85, 230, 193, 0.2);
}

.portafolio-links a:hover {
  background: var(--accent);
  color: #04100f;
}

.portafolio-img {
  height: 190px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #07101c;
}

.portafolio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portafolio-item:hover .portafolio-img img {
  transform: scale(1.05);
}

/* 05. Contact Section */
.contact {
  background: #07101c;
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: flex-start;
}

.contact h2 {
  font-size: clamp(36px, 4.2vw, 56px);
  margin: 12px 0 20px;
}

.contact-details > p {
  color: var(--muted);
  font-size: 15px;
  max-width: 480px;
}

.contact-info {
  display: flex;
  gap: 40px;
  margin-top: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.contact-info span {
  display: block;
  font-size: 10px;
  color: #61768c;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-info b {
  font-size: 14px;
  color: var(--text);
}

.contact-additional {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

.contact-additional > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-additional span {
  font-size: 18px;
}

.contact-additional a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
}

.contact-additional a:hover {
  text-decoration: underline;
}

.contact-form {
  padding: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-form label {
  display: block;
  color: #9bb0c4;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: #091522;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: #eaf4ff;
  font: 14px 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(85, 230, 193, 0.6);
  box-shadow: 0 0 0 3px rgba(85, 230, 193, 0.1);
}

.contact-form button {
  width: 100%;
  margin-top: 6px;
}

.contact-form small {
  display: block;
  color: #60758b;
  font-size: 10px;
  margin-top: 14px;
  line-height: 1.4;
}

.contact-form small a {
  color: #7d96b0;
  text-decoration: underline;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: #060d17;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.footer p {
  margin: 8px 0 0;
  color: #62778d;
  font-size: 12px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: #8297ab;
}

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

.copyright {
  grid-column: 1 / -1;
  color: #4f6378;
  font-size: 11px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 10px;
}

/* Floating WhatsApp Button */
.wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  border: none;
}

.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.wa-icon {
  font-size: 26px;
  line-height: 1;
}

/* Animation Reveal Classes (Always safe, no inline style overriding) */
.reveal-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-item.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Responsive Media Queries */
@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
    padding: 60px 0;
  }
  .hero-visual {
    height: 420px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid > div:nth-child(2) {
    border-right: 0;
  }
  .stats-grid > div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
  .section-head {
    display: block;
  }
  .section-head > p {
    width: 100%;
    margin-top: 16px;
  }
  .tech-cloud {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid > div:nth-child(2n) {
    border-right: 0;
  }
  .process-grid > div:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(var(--max), calc(100% - 32px));
  }
  .nav {
    height: 68px;
  }
  .menu-toggle {
    display: block;
  }
  .menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    background: #0b1827;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }
  .menu.open {
    display: flex;
  }
  .nav-cta {
    text-align: center;
    justify-content: center;
  }
  .hero {
    min-height: auto;
  }
  .hero-visual {
    height: 360px;
  }
  .code-card {
    width: 100%;
    transform: none;
  }
  .card-ai {
    right: 0;
    top: 15px;
  }
  .card-data {
    left: 0;
    bottom: 10px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .tech-cloud {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-grid > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .process-grid > div:last-child {
    grid-column: auto;
  }
  .cta-box {
    padding: 36px 24px;
    display: block;
  }
  .cta-box .btn {
    margin-top: 24px;
  }
  .footer {
    grid-template-columns: 1fr;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
  .wa-fab {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
}
