:root {
  --bg: #050914;
  --panel: #0b1220;
  --panel-2: #101827;
  --panel-3: #121d2f;
  --line: #223148;
  --line-strong: #31506f;
  --text: #e6edf6;
  --muted: #8fa0b6;
  --muted-2: #64748b;
  --cyan: #26b7e8;
  --green: #31d084;
  --amber: #f6b54a;
  --danger: #ff6473;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(38, 183, 232, 0.05), transparent 360px),
    var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.52;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

section[id] {
  scroll-margin-top: 82px;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(34, 49, 72, 0.92);
  background: rgba(5, 9, 20, 0.9);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  width: min(1220px, calc(100% - 36px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.15;
}

.brand strong {
  font-size: 0.98rem;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--text);
}

.nav .button {
  min-height: 36px;
  padding: 8px 12px;
  color: #03111b;
}

.nav .button.ghost {
  color: var(--text);
}

.nav-action {
  padding: 9px 13px;
  border: 1px solid rgba(38, 183, 232, 0.42);
  border-radius: 6px;
  color: #c7f4ff !important;
  background: rgba(38, 183, 232, 0.08);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 9px;
  background: var(--text);
}

.hero {
  min-height: 640px;
  padding: 74px 0 46px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 9, 20, 0.94) 0%, rgba(5, 9, 20, 0.76) 39%, rgba(5, 9, 20, 0.25) 68%, rgba(5, 9, 20, 0.08) 100%),
    linear-gradient(180deg, rgba(5, 9, 20, 0.06), rgba(5, 9, 20, 0.62)),
    url("/home-assets/imagen_app.png") center right / cover;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.72fr);
  gap: 42px;
  align-items: end;
}

.system-label,
.kicker {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 16px;
  font-size: clamp(2.05rem, 3.4vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 660px;
  margin-bottom: 22px;
  color: #b8c7da;
  font-size: 0.98rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
}

.button.primary {
  color: #03111b;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.button.ghost {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(11, 18, 32, 0.72);
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.spec-strip div,
.metric-table,
.process-list article,
.screen-card,
.ops-grid article {
  border: 1px solid var(--line);
  background: rgba(11, 18, 32, 0.86);
}

.spec-strip div {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 6px;
}

.spec-strip span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.spec-strip strong {
  color: var(--text);
  font-size: 0.82rem;
}

.dense-band {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  background: #08101d;
}

.band-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  align-items: center;
}

.band-grid span {
  display: block;
  color: var(--muted-2);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
}

.band-grid strong {
  font-size: 0.98rem;
}

.band-grid ul {
  display: grid;
  gap: 4px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.section.alt {
  background: #07101d;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 46px;
  align-items: start;
}

.section-copy {
  max-width: 560px;
}

.section-copy.narrow {
  max-width: 790px;
  margin-bottom: 24px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-copy p {
  color: var(--muted);
  font-size: 0.94rem;
}

.process-list {
  display: grid;
  gap: 10px;
}

.process-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-radius: 6px;
}

.process-list article > span {
  color: var(--cyan);
  font-family: var(--mono);
  font-weight: 700;
}

h3 {
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.process-list p,
.ops-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.metric-table {
  overflow: hidden;
  border-radius: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: 0.75fr 1.05fr 1.45fr;
  border-top: 1px solid var(--line);
}

.table-row:first-child {
  border-top: 0;
}

.table-row span {
  padding: 13px 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.table-row span:first-child {
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.table-head {
  background: var(--panel-3);
}

.table-head span {
  color: #b9cee6 !important;
  font-family: var(--mono);
  font-size: 0.72rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.screens-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.screen-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  overflow: hidden;
  border-radius: 8px;
}

.screen-card img {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
}

.screen-card div {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 22px;
  border-left: 1px solid var(--line);
}

.screen-card strong {
  font-size: 0.98rem;
}

.screen-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.mobile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.mobile-grid article {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.mobile-grid img {
  width: 100%;
  aspect-ratio: 9 / 18;
  object-fit: cover;
  object-position: top center;
  border-radius: 5px;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ops-grid article {
  padding: 18px;
  border-radius: 6px;
}


.contact {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #07101d, #0d1a2b);
}

.contact-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-layout h2 {
  margin-bottom: 8px;
}

.contact-layout p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer {
  padding: 20px 0;
  color: var(--muted-2);
  background: #050914;
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.footer-inner div {
  display: flex;
  gap: 16px;
}

@media (max-width: 980px) {
  .topbar-inner {
    min-height: 62px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 62px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #07101d;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 11px;
  }

  .hero-layout,
  .band-grid,
  .two-col,
  .screen-card {
    grid-template-columns: 1fr;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(5, 9, 20, 0.97) 0%, rgba(5, 9, 20, 0.86) 58%, rgba(5, 9, 20, 0.54) 100%),
      linear-gradient(180deg, rgba(5, 9, 20, 0.10), rgba(5, 9, 20, 0.9)),
      url("/home-assets/imagen_app.png") center right / cover;
  }

  .screen-card div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
    padding-bottom: 34px;
  }

  h1 {
    font-size: 2rem;
  }

  .ops-grid,
  .mobile-grid {
    grid-template-columns: 1fr;
  }


  .spec-strip div {
    min-height: auto;
    padding: 9px 11px;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row span {
    padding: 10px 12px;
    border-top: 1px solid rgba(34, 49, 72, 0.55);
  }

  .table-row span:first-child {
    border-top: 0;
    background: rgba(18, 29, 47, 0.7);
  }

  .section {
    padding: 48px 0;
  }

  .contact-layout,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
