:root {
  --bg: #05070f;
  --card: rgba(12, 19, 33, 0.78);
  --text: #e9eefc;
  --muted: #9eabc8;
  --line: rgba(161, 174, 204, 0.25);
  --brand: #74e4ff;
  --brand-2: #8594ff;
  --ok: #8ef7ba;
  --critical: #ff7a9f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% -10%, #17315a 0%, transparent 45%),
    radial-gradient(circle at 85% 0%, #1c1f52 0%, transparent 35%),
    var(--bg);
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100svh;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  opacity: 0.12;
  background-image: radial-gradient(rgba(255,255,255,0.08) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

.bg-orb {
  position: fixed;
  z-index: -1;
  filter: blur(80px);
  opacity: 0.24;
  border-radius: 999px;
}

.orb-1 {
  width: 360px;
  height: 360px;
  background: var(--brand-2);
  top: -100px;
  right: -90px;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--brand);
  bottom: -110px;
  left: -80px;
}

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

.header {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(5, 8, 16, 0.68);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.logo {
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #f3f7ff;
}

nav { display: flex; gap: 1.1rem; }
nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
}

nav a:hover { color: #f0f4ff; }

.hero {
  padding: 5.4rem 0 2.2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
  align-items: stretch;
}

.hero-copy { padding-top: 0.4rem; }

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--ok);
  font-weight: 600;
  font-size: 0.86rem;
  border: 1px solid rgba(142, 247, 186, 0.35);
  background: rgba(18, 38, 31, 0.35);
  border-radius: 999px;
  padding: 0.36rem 0.76rem;
}

h1 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2rem, 4.8vw, 3.8rem);
  line-height: 1.05;
  background: linear-gradient(90deg, #f3f7ff, #b8cafc 45%, #8de5ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  margin: 1.2rem auto 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.66;
  font-size: 1.03rem;
}

.subtitle.left { margin-inline: 0; }

.hero-cta {
  margin-top: 1.9rem;
  display: flex;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.btn,
.btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 0.82rem 1.15rem;
  color: #08101f;
  background: linear-gradient(95deg, var(--brand), #a0bcff);
  font-weight: 700;
  transition: transform .18s ease, filter .18s ease;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

.btn:disabled,
.btn[disabled] {
  color: #08101f;
  background: linear-gradient(95deg, var(--brand), #a0bcff);
  opacity: 0.85;
  cursor: not-allowed;
  transform: none;
  filter: saturate(0.92);
}

.btn-sm {
  padding: 0.62rem 0.95rem;
  font-size: 0.88rem;
}

.btn-ghost,
.btn-ghost:visited,
.btn-ghost:hover,
.btn-ghost:active {
  color: var(--text);
  background: rgba(9, 15, 27, 0.65);
  border-color: var(--line);
}

.chips {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chips span {
  font-size: 0.84rem;
  color: #c6ddff;
  border: 1px solid var(--line);
  background: rgba(12, 24, 45, 0.56);
  border-radius: 999px;
  padding: 0.4rem 0.72rem;
}

.card {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.hero-panel {
  padding: 0.65rem;
}

.sim-window {
  border: 1px solid rgba(164, 184, 223, 0.25);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 14, 26, 0.95), rgba(4, 9, 18, 0.9));
  overflow: hidden;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.sim-window.incident-mode {
  border-color: rgba(255, 122, 159, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 122, 159, 0.22), 0 0 22px rgba(255, 122, 159, 0.26);
}

.window-top {
  height: 40px;
  padding: 0 0.7rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(14, 23, 40, 0.7);
}

.window-dots {
  display: flex;
  gap: 0.35rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  opacity: 0.9;
}

.dot.red { background: #ff6f8f; }
.dot.yellow { background: #ffc166; }
.dot.green { background: #73f0ad; }

.window-title {
  font-size: 0.78rem;
  color: #d7e3ff;
  font-weight: 600;
}

.window-status {
  font-size: 0.74rem;
  color: #bdeccd;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.window-status.incident {
  color: #ffd5e1;
}

.incident-banner {
  display: none;
  border-top: 1px solid rgba(255, 122, 159, 0.28);
  border-bottom: 1px solid rgba(255, 122, 159, 0.28);
  background: linear-gradient(90deg, rgba(104, 12, 37, 0.82), rgba(82, 9, 30, 0.78));
  color: #ffe8ef;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 0.45rem 0.7rem;
  animation: incidentFlash 850ms ease-in-out infinite alternate;
}

.incident-banner.active {
  display: block;
}

@keyframes incidentFlash {
  from { filter: brightness(0.95); }
  to { filter: brightness(1.12); }
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #89f7ba;
  box-shadow: 0 0 0 rgba(137, 247, 186, 0.75);
  animation: pulseLive 1.9s infinite;
}

@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(137, 247, 186, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(137, 247, 186, 0); }
  100% { box-shadow: 0 0 0 0 rgba(137, 247, 186, 0); }
}

.sim-window.incident-mode .pulse {
  background: #ff8cab;
  animation-duration: 900ms;
}

.sim-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.7rem;
}

.metric {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(12, 22, 40, 0.66);
  padding: 0.55rem;
}

.metric small {
  color: var(--muted);
  font-size: 0.68rem;
}

.metric p {
  margin: 0.3rem 0 0;
  font-size: 1.02rem;
  font-weight: 700;
}

.metric .critical { color: var(--critical); }

.sim-graph {
  height: 74px;
  margin: 0 0.7rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(9, 18, 34, 0.95), rgba(7, 12, 23, 0.85));
  display: flex;
  align-items: flex-end;
  gap: 0.2rem;
  padding: 0.38rem;
}

.sim-graph span {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #86d7ff, #6f82ff);
  opacity: 0.88;
  transition: height 500ms ease;
}

.sim-stream {
  margin: 0 0.7rem 0.75rem;
  max-height: 168px;
  overflow: hidden;
  display: grid;
  gap: 0.45rem;
}

.sim-stream p {
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 9px;
  background: rgba(8, 14, 26, 0.9);
  color: #c6d7fa;
  font-size: 0.79rem;
  line-height: 1.36;
  padding: 0.5rem 0.58rem;
}

.sev {
  display: inline-block;
  font-size: 0.67rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.15rem 0.42rem;
  margin-right: 0.36rem;
}

.sev.alta {
  color: #ffdbe5;
  border: 1px solid rgba(255, 122, 159, 0.45);
  background: rgba(255, 122, 159, 0.2);
}

.sev.media {
  color: #ffe5c7;
  border: 1px solid rgba(255, 193, 102, 0.45);
  background: rgba(255, 193, 102, 0.2);
}

.sev.baja {
  color: #d5fbe4;
  border: 1px solid rgba(115, 240, 173, 0.45);
  background: rgba(115, 240, 173, 0.18);
}

.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.trust-card {
  border: 1px solid var(--line);
  background: rgba(10, 18, 32, 0.72);
  border-radius: 14px;
  padding: 0.95rem;
}

.trust-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.trust-card h3 {
  margin: 0.45rem 0 0;
  font-size: 1.35rem;
}

.integrations {
  margin-top: 1rem;
}

.integrations p {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.integration-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.integration-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 0.7rem;
  font-size: 0.83rem;
  color: #d6e1fb;
  background: rgba(10, 16, 29, 0.8);
}

.section {
  padding: 2.3rem 0 1.55rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.grid-4, .grid-2 {
  display: grid;
  gap: 0.85rem;
}

.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.57;
  font-size: 0.93rem;
}

.flow-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0.85rem;
}

.flow-steps {
  display: grid;
  gap: 0.55rem;
}

.flow-step {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(9, 15, 28, 0.75);
  color: #c8d8f8;
  text-align: left;
  padding: 0.72rem 0.82rem;
  cursor: pointer;
}

.flow-step.active {
  color: #f1f8ff;
  border-color: rgba(110, 231, 255, 0.6);
  background: rgba(14, 34, 58, 0.82);
}

.flow-panel {
  min-height: 272px;
}

.flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.82rem;
}

#flow-badge {
  font-size: 0.76rem;
  border: 1px solid rgba(142, 247, 186, 0.35);
  color: var(--ok);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.flow-log {
  margin: 0;
  white-space: pre-wrap;
  color: #bdd2f7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  background: rgba(4, 10, 19, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 0.92rem;
}

.pricing-card {
  border: 1px solid rgba(116, 228, 255, 0.48);
  border-radius: 18px;
  padding: 1.18rem;
  max-width: 560px;
  background:
    linear-gradient(180deg, rgba(8, 26, 46, 0.88), rgba(10, 14, 26, 0.8));
}

.tiny {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.price {
  margin: 0.28rem 0 0.78rem;
  color: #d2deff;
}

.price span {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  color: white;
}

.pricing-card ul {
  margin: 0 0 1rem;
  padding-left: 1.12rem;
  color: var(--muted);
  line-height: 1.66;
}

.inquiry-form {
  display: grid;
  gap: 0.9rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #c7d5f3;
}

input, select, textarea {
  width: 100%;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(6, 12, 24, 0.78);
  color: #edf4ff;
  padding: 0.66rem 0.76rem;
  font: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(116, 228, 255, 0.28);
  border-color: rgba(116, 228, 255, 0.54);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.form-note {
  margin: 0;
  color: #9ec1ff;
  font-size: 0.87rem;
}

.faq {
  display: grid;
  gap: 0.72rem;
}

details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.86rem 1rem;
  background: rgba(11, 18, 31, 0.76);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  line-height: 1.56;
}

.footer {
  padding: 2.3rem 0;
  color: #9ba8c3;
  font-size: 0.89rem;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 0.82rem;
  }

  .trust,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  nav { display: none; }
  .grid-2,
  .grid-4,
  .trust,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.8rem;
  }
}
