:root {
  color-scheme: dark;
  --ink: #e6f1ff;
  --muted: #a8b8cf;
  --line: rgba(255, 255, 255, .1);
  --panel: rgba(255, 255, 255, .045);
  --panel-strong: rgba(15, 31, 58, .86);
  --soft: #0a1628;
  --navy: #060d1c;
  --blue: #00b3ff;
  --cyan: #00e0a4;
  --green: #00e0a4;
  --amber: #ffb547;
  --red: #ff5e7a;
  --gradient: linear-gradient(135deg, #00e0a4 0%, #00b3ff 100%);
  --soft-gradient: linear-gradient(135deg, rgba(0, 224, 164, .15) 0%, rgba(0, 179, 255, .14) 100%);
  --shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 4%, rgba(0, 224, 164, .16), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(0, 179, 255, .14), transparent 32%),
    linear-gradient(180deg, #060d1c 0%, #0a1628 44%, #07111f 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px max(20px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(6, 13, 28, .84);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--gradient);
  color: #061020;
  font-weight: 800;
  box-shadow: 0 0 28px rgba(0, 224, 164, .22);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small { color: var(--muted); font-size: 12px; margin-top: 3px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
  color: #a8b8cf;
  font-size: 14px;
  font-weight: 600;
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--gradient);
  color: #061020;
  font-size: 14px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  align-items: center;
  gap: 54px;
  min-height: calc(100vh - 68px);
  padding: 70px 0 46px;
  position: relative;
}

.eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(0, 224, 164, .22);
  border-radius: 999px;
  background: rgba(0, 224, 164, .08);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  color: #f7fbff;
  font-size: clamp(40px, 7vw, 72px);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
  color: #f7fbff;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
  color: #f7fbff;
}

.hero-lead,
.section-heading p,
.split-section > div:first-child p,
.trial-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  background: var(--gradient);
  color: #061020;
  box-shadow: 0 16px 34px rgba(0, 224, 164, .22);
}

.btn.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04);
  color: #e6f1ff;
}

.btn.light {
  background: #fff;
  color: var(--navy);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.trust-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
}

.product-visual {
  overflow: hidden;
  border: 1px solid rgba(0, 224, 164, .18);
  border-radius: 20px;
  background: rgba(6, 13, 28, .86);
  box-shadow: var(--shadow);
}

.visual-topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #cbd5e1;
  font-size: 13px;
}

.visual-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

.visual-topbar span:nth-child(2) { background: #f59e0b; }
.visual-topbar span:nth-child(3) { background: #22c55e; }
.visual-topbar strong { margin-left: auto; }

.visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 16px;
}

.metric-card {
  min-height: 124px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
}

.metric-card small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin: 10px 0;
  color: #f8fafc;
  font-size: 27px;
}

.status {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.status.danger { background: rgba(220, 38, 38, .18); color: #fecaca; }
.status.warn { background: rgba(217, 119, 6, .18); color: #fed7aa; }
.status.ok { background: rgba(0, 224, 164, .18); color: #bbf7d0; }

.incident-feed {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.feed-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-left-width: 4px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  color: #e2e8f0;
}

.feed-item.critical { border-left-color: var(--red); }
.feed-item.warning { border-left-color: var(--amber); }
.feed-item.ok { border-left-color: var(--green); }
.feed-item p { margin: 4px 0 0; color: #94a3b8; font-size: 13px; }
.feed-item span { color: #bfdbfe; font-size: 12px; font-weight: 800; }

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

#novedades,
#modulos,
#flujo,
#arquitectura,
.trial-section {
  padding: 82px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card,
.steps article,
.trial-form,
.module-list div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
}

.feature-card {
  min-height: 230px;
  padding: 22px;
}

.feature-card p,
.steps p,
.module-list span,
.check-list,
.form-note {
  color: var(--muted);
  line-height: 1.65;
}

.icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 10px;
  background: rgba(0, 224, 164, .1);
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.split-section {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

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

.module-list div {
  min-height: 130px;
  padding: 18px;
}

.module-list strong,
.module-list span { display: block; }
.module-list span { margin-top: 8px; font-size: 14px; }

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

.steps article {
  min-height: 240px;
  padding: 22px;
}

.steps span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--gradient);
  color: #061020;
  font-weight: 900;
}

.system-section {
  position: relative;
}

.architecture-map {
  margin: 30px 0 0;
  padding: 0;
}

.architecture-svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.system-diagram {
  display: grid;
  grid-template-columns: minmax(210px, .9fr) 48px minmax(260px, 1.05fr) 48px minmax(210px, .9fr);
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  padding: 22px;
  border: 1px solid rgba(0, 224, 164, .14);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 224, 164, .07) 0%, rgba(0, 179, 255, .06) 100%),
    rgba(6, 13, 28, .54);
  box-shadow: var(--shadow);
}

.diagram-column {
  display: grid;
  gap: 10px;
}

.diagram-column h3 {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.diagram-node {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: rgba(255, 255, 255, .045);
  color: #d7e6f8;
  font-size: 14px;
  font-weight: 800;
}

.diagram-node.source {
  border-left: 4px solid var(--blue);
}

.diagram-node.output {
  border-left: 4px solid var(--green);
}

.diagram-node.output.critical {
  border-left-color: var(--red);
}

.diagram-arrow {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(0, 224, 164, .18);
  border-radius: 50%;
  background: rgba(0, 224, 164, .08);
  color: var(--green);
  font-size: 28px;
  font-weight: 900;
}

.diagram-core {
  position: relative;
  min-height: 280px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 224, 164, .24);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 16%, rgba(0, 224, 164, .24), transparent 40%),
    rgba(10, 22, 40, .86);
  text-align: center;
}

.core-ring {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(0, 224, 164, .18);
  border-radius: 999px;
}

.diagram-core strong {
  position: relative;
  color: #f7fbff;
  font-size: 30px;
  line-height: 1.05;
}

.diagram-core p {
  position: relative;
  max-width: 360px;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.core-tags {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.core-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(0, 224, 164, .18);
  border-radius: 999px;
  background: rgba(0, 224, 164, .08);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.phone-shot {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.phone-shot h3 {
  margin: 18px 0 8px;
}

.phone-shot p {
  color: var(--muted);
  line-height: 1.6;
}

.phone-frame {
  max-width: 390px;
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border: 10px solid #050b15;
  border-radius: 32px;
  background: #101820;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 50px rgba(0, 0, 0, .34);
}

.shot-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 14px;
  background: #075e54;
  color: #fff;
}

.shot-header.telegram {
  background: #229ed9;
}

.shot-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  font-size: 12px;
  font-weight: 900;
}

.shot-header strong,
.shot-header small {
  display: block;
}

.shot-header small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
}

.chat-screen {
  min-height: 430px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .035) 25%, transparent 25%) 0 0 / 24px 24px,
    #0f211d;
}

.chat-screen.telegram-bg {
  background:
    radial-gradient(circle at 20% 15%, rgba(34, 158, 217, .18), transparent 28%),
    #122034;
}

.chat-bubble {
  position: relative;
  max-width: 88%;
  padding: 12px 12px 24px;
  border-radius: 14px;
  color: #102019;
  font-size: 13px;
  line-height: 1.45;
}

.chat-bubble p {
  margin: 7px 0 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.chat-bubble span {
  position: absolute;
  right: 10px;
  bottom: 6px;
  color: rgba(16, 32, 25, .58);
  font-size: 11px;
}

.chat-bubble.incoming {
  background: #dcf8c6;
}

.chat-bubble.outgoing {
  justify-self: end;
  background: #e7ffdb;
}

.chat-bubble.compact {
  max-width: 78%;
}

.telegram-message {
  background: #f4fbff;
  color: #102033;
}

.telegram-message span {
  color: rgba(16, 32, 51, .58);
}

.trial-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 38px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.trial-form {
  padding: 24px;
}

.trial-form h3 { margin-bottom: 18px; font-size: 22px; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: #d7e6f8;
  font-size: 13px;
  font-weight: 800;
}

.wide { grid-column: 1 / -1; }

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(6, 13, 28, .7);
  color: #e6f1ff;
  font: inherit;
}

input:focus,
select:focus {
  outline: 3px solid rgba(0, 224, 164, .18);
  border-color: var(--green);
}

select option {
  background: #0a1628;
  color: #e6f1ff;
}

.subdomain-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(6, 13, 28, .7);
}

.subdomain-input:focus-within {
  outline: 3px solid rgba(0, 224, 164, .18);
  border-color: var(--green);
}

.subdomain-input input {
  border: 0;
  outline: 0;
}

.subdomain-input span {
  padding-right: 12px;
  color: #a8b8cf;
  font-size: 13px;
  font-weight: 700;
}

label small {
  color: #a8b8cf;
  font-weight: 500;
}

.form-submit {
  width: 100%;
  margin-top: 18px;
}

.form-message {
  min-height: 22px;
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 700;
}

.form-message.ok { color: var(--green); }
.form-message.error { color: var(--red); }
.form-note { margin: 8px 0 0; font-size: 12px; }

.final-cta {
  background:
    radial-gradient(circle at 18% 15%, rgba(0, 224, 164, .2), transparent 30%),
    linear-gradient(135deg, #060d1c 0%, #0f1f3a 100%);
  color: #fff;
}

.final-cta .section-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 54px 0;
}

.final-cta h2 {
  max-width: 740px;
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 44px);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(6, 13, 28, .96);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  padding: 34px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner strong { color: #e6f1ff; }
.footer-inner p { margin: 6px 0 0; }
.footer-inner nav { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero,
  .split-section,
  .trial-section {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .diagram-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
  .architecture-map {
    overflow-x: auto;
    padding-bottom: 8px;
  }
  .architecture-svg {
    min-width: 860px;
  }
  .screenshots-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .section-shell { width: min(100% - 28px, 1160px); }
  .site-header { gap: 12px; padding: 12px 14px; }
  .header-cta { display: none; }
  .hero { padding-top: 44px; gap: 28px; }
  .hero-actions .btn { width: 100%; }
  .visual-grid,
  .feature-grid,
  .module-list,
  .steps,
  .screenshots-grid,
  .form-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .product-visual { border-radius: 14px; }
  .feed-item { align-items: flex-start; flex-direction: column; }
  #novedades,
  #modulos,
  #flujo,
  #arquitectura,
  .trial-section {
    padding: 56px 0;
  }
  .system-diagram { padding: 14px; }
  .diagram-core { min-height: 240px; padding: 22px; }
  .phone-shot { padding: 14px; }
  .phone-frame { min-height: 500px; border-width: 7px; border-radius: 26px; }
  .final-cta .section-shell {
    align-items: flex-start;
    flex-direction: column;
  }
}
