:root {
  color-scheme: dark;
  --bg: #071014;
  --panel: #0e1b21;
  --panel-soft: #11262d;
  --text: #f4fbfd;
  --muted: #9ab0b8;
  --cyan: #00b8d4;
  --cyan-2: #48d9ef;
  --orange: #ff8a2a;
  --line: rgba(196, 235, 244, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(0, 184, 212, 0.16), transparent 28rem),
    radial-gradient(circle at 85% 8%, rgba(255, 138, 42, 0.13), transparent 26rem),
    linear-gradient(180deg, #071014 0%, #0b151a 48%, #071014 100%);
  color: var(--text);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 20, 0.82);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; font-size: 1.2rem; }
.brand img { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; box-shadow: 0 0 28px rgba(0, 184, 212, .35); }
.brand span, .text-gradient { background: linear-gradient(135deg, var(--cyan), var(--cyan-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.8rem); color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--text); }

.language-switcher {
  display: inline-flex;
  gap: .2rem;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
}
.language-switcher button {
  border: 0;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  padding: .45rem .58rem;
  font-weight: 700;
  cursor: pointer;
}
.language-switcher button.active { color: #061015; background: var(--cyan); }

.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 8px; background: transparent; }
.menu-toggle span { display: block; width: 18px; height: 2px; margin: 4px auto; background: var(--text); }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: minmax(170px, 34vh) 1fr;
  padding: 5.2rem clamp(1rem, 4vw, 3.5rem) 3rem;
  overflow: hidden;
}
.hero-media {
  display: grid;
  place-items: center;
  min-height: 170px;
}
.hero-media img {
  width: min(30rem, 72vw);
  max-height: 30vh;
  object-fit: contain;
  filter: drop-shadow(0 0 70px rgba(0,184,212,.26));
}
.hero-content {
  width: min(1120px, 100%);
  margin: 0 auto;
  text-align: center;
  align-self: center;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--orange);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 980px;
  margin: 0 auto 1.1rem;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: .96;
  letter-spacing: 0;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.03;
  letter-spacing: 0;
  margin-bottom: 1rem;
}
h3 { font-size: 1.25rem; margin-bottom: .55rem; }
.hero-copy, .section-heading p:not(.eyebrow), .split p, .cta-band p { color: var(--muted); font-size: 1.1rem; line-height: 1.75; }
.hero-copy { max-width: 760px; margin: 0 auto 2rem; }

.hero-actions, .stats { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .85rem 1.25rem;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid var(--line);
}
.button.primary { background: linear-gradient(135deg, var(--cyan), var(--cyan-2)); color: #061015; box-shadow: 0 0 36px rgba(0,184,212,.24); }
.button.secondary { background: rgba(255,255,255,.05); color: var(--text); }

.stats {
  margin-top: 2.2rem;
  gap: 1.1rem;
}
.stats div {
  min-width: 190px;
  padding: 1.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 27, 33, .78);
}
.stats strong { display: block; color: var(--cyan-2); font-size: clamp(1.7rem, 4vw, 2.5rem); }
.stats span { display: block; color: var(--muted); font-size: .9rem; }

.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 3.5rem);
}
.section-heading { width: min(900px, 100%); margin: 0 auto 2.4rem; text-align: center; }
.contrast { background: rgba(255,255,255,.025); border-block: 1px solid var(--line); }

.card-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.image-card, .vertical-grid article, .team-grid article, .tech-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 27, 33, .84);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.image-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: contain;
  background: linear-gradient(135deg, rgba(0, 184, 212, .1), rgba(255, 138, 42, .08)), #081217;
}
.image-card div { padding: 1.25rem; }
.image-card p, .team-grid p, .tech-list p { color: var(--muted); line-height: 1.65; margin-bottom: 0; }

.vertical-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.vertical-grid article { position: relative; min-height: 210px; }
.vertical-grid img { width: 100%; height: 100%; min-height: 210px; object-fit: cover; opacity: .62; }
.vertical-grid span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  font-size: 1.15rem;
  font-weight: 800;
}

.split {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: 2rem;
}
.tech-list { display: grid; gap: 1rem; }
.tech-list article {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 1.1rem;
  padding: .9rem;
}
.tech-list img { width: 150px; height: 105px; object-fit: cover; border-radius: 6px; }
.tech-list h3 { margin-bottom: .25rem; }

.team-grid {
  width: min(820px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.team-grid article { padding: 1rem; text-align: center; }
.team-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; margin-bottom: 1rem; }

.cta-band {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(0,184,212,.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,184,212,.16), rgba(255,138,42,.12)), var(--panel);
}
.cta-band div { max-width: 760px; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }

.footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 2rem clamp(1rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(14, 27, 33, .6);
}
.footer strong { color: var(--cyan-2); font-size: 1.25rem; }
.footer p { margin-bottom: 0; }
.footer div:nth-child(2) { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer a:hover { color: var(--text); }

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 25;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #061015;
  background: var(--orange);
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(255, 138, 42, .32);
}

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(7, 16, 20, .98);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem; border-radius: 8px; background: rgba(255,255,255,.04); }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vertical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header { padding: .75rem 1rem; }
  .brand span { display: none; }
  .language-switcher button { padding-inline: .48rem; }
  .hero { min-height: auto; padding-top: 4.6rem; grid-template-rows: auto 1fr; }
  .hero-media { min-height: 135px; }
  .hero-media img { width: min(18rem, 78vw); max-height: 150px; }
  h1 { font-size: clamp(2.25rem, 13vw, 3.7rem); }
  .card-grid, .vertical-grid, .team-grid { grid-template-columns: 1fr; }
  .tech-list article { grid-template-columns: 1fr; }
  .tech-list img { width: 100%; height: auto; aspect-ratio: 16/9; }
  .cta-band { flex-direction: column; align-items: stretch; }
  .whatsapp-float { width: 50px; height: 50px; }
}
