:root {
  --bg: #060b10;
  --panel: #0c141c;
  --panel-2: #101c26;
  --line: #1c2c38;
  --mint: #dc212d;
  --mint-dim: #a51822;
  --amber: #ffb454;
  --text: #ffffff;
  --text-dim: #ffffff;
  --text-faint: #949494;
}

/* ---------- LIGHT THEME ---------- */
html[data-theme="light"] {
  --bg: #f4f5f7;
  --panel: #ffffff;
  --panel-2: #eef0f3;
  --line: #dde1e6;
  --mint: #dc212d;
  --mint-dim: #a51822;
  --amber: #b9790f;
  --text: #000000;
  --text-dim: #000000;
  --text-faint: #000000;
}

html[data-theme="light"] header {
  background: rgba(255, 255, 255, 0.85);
}

html[data-theme="light"] .terminal,
html[data-theme="light"] .float-wa {
  box-shadow: 0 20px 60px rgba(15, 23, 30, 0.12);
}

html[data-theme="light"] .terminal-bar {
  background: var(--panel-2);
}

/* smooth transition when switching themes */
body, header, .terminal, .service-card, .review-card, .trust-item,
.support-panel, .os-btn, .btn-secondary, .theme-toggle {
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@font-face {
  font-family: "sysfont";
}

.mono {
  font-family: "IBM Plex Mono", "Consolas", monospace;
}

/* subtle circuit grid background */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(
      rgba(220, 33, 45, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(220, 33, 45, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    black 40%,
    transparent 100%
  );
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- NAV ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 11, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.35;
  }
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 18px;
  color: var(--text-dim);
  font-weight: bold;
}

.nav-links a:hover {
  color: var(--mint);
}

.nav-cta {
  background: var(--mint);
  color: #fff5f4;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 6px;
  letter-spacing: 0.2px;
  box-shadow: 0 0 0 1px rgba(220, 33, 45, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(220, 33, 45, 0.35);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--mint-dim);
  color: var(--mint);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.mobile-hide {
  display: flex;
}

@media (max-width: 760px) {
  .mobile-hide {
    display: none;
  }
}

@media (max-width: 760px) {
  .mobile-hide {
    display: none;
  }
  .nav-cta {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 88px 24px 140px;
  text-align: left;
}

@media (max-width: 980px) {
  .hero {
    padding: 56px 20px 48px;
  }
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mint);
  border: 1px solid rgba(220, 33, 45, 0.3);
  background: rgba(220, 33, 45, 0.06);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
  font-weight: bold;
}

.status-line .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}

h1 {
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -1.5px;
  max-width: 820px;
  margin-bottom: 22px;
}

h1 .accent {
  color: var(--mint);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn-primary {
  background: var(--mint);
  color: #fff5f4;
  font-weight: 700;
  font-size: 15.5px;
  padding: 16px 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 0 1px rgba(220, 33, 45, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(220, 33, 45, 0.35);
}

.btn-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 15.5px;
  padding: 16px 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.btn-secondary:hover {
  border-color: var(--mint-dim);
  background: rgba(220, 33, 45, 0.04);
}

/* hero layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* terminal card - signature element */
.terminal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 620px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
}

.terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.terminal-bar span:nth-child(1) {
  background: #ff5f57;
}

.terminal-bar span:nth-child(2) {
  background: #febc2e;
}

.terminal-bar span:nth-child(3) {
  background: #28c840;
}

.terminal-title {
  margin-left: 8px;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.terminal-body {
  padding: 20px 22px;
  font-size: 13.5px;
  line-height: 1.7;
}

.terminal-body .line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  padding: 3px 0;
}

.terminal-body .ok {
  color: var(--mint);
  flex-shrink: 0;
}

.terminal-body .label {
  color: var(--text-dim);
  flex: 0 0 auto;
  min-width: 0;
}

.terminal-body .val {
  color: var(--text);
  min-width: 0;
  word-break: break-word;
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--mint);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@media (max-width: 480px) {
  .terminal-body {
    padding: 16px 16px;
    font-size: 12.5px;
  }

  .terminal-body .line {
    gap: 3px 8px;
  }
}

/* ---------- SECTION LABELS ---------- */
.eyebrow {
  font-size: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mint-dim);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--mint-dim);
}

.section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  max-width: 640px;
}

.section-sub {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 560px;
  line-height: 1.6;
  margin-bottom: 48px;
}

section {
  padding: 88px 0;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid var(--line);
}

/* ---------- ABOUT / TRUST BAR ---------- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.trust-item {
  background: var(--panel);
  padding: 26px 20px;
  text-align: center;
}

.trust-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--mint);
  font-family: "IBM Plex Mono", monospace;
}

.trust-label {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-top: 6px;
  letter-spacing: 0.3px;
}

@media (max-width: 700px) {
  .trust-bar {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--panel);
  padding: 30px 26px;
  transition: background 0.2s ease;
  position: relative;
}

.service-card:hover {
  background: var(--panel-2);
}

.service-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(220, 33, 45, 0.08);
  border: 1px solid rgba(220, 33, 45, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--mint);
  font-size: 17px;
}

.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ---------- PROCESS ---------- */
.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .process-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .process-row {
    grid-template-columns: 1fr;
  }
}

.process-step {
  position: relative;
  padding-top: 20px;
  border-top: 2px solid var(--line);
}

.process-step.active {
  border-top: 2px solid var(--mint);
}

.process-num {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--mint);
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: block;
  font-weight: bold;
}

.process-step h4 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---------- REVIEWS ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 860px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.stars {
  color: var(--amber);
  font-size: 20px;
  letter-spacing: 2px;
}

.review-card p {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.65;
  flex-grow: 1;
}

.review-author {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-author .avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--mint);
  font-weight: 700;
}

.reviews-cta {
  margin-top: 32px;
  text-align: center;
}

/* ---------- SUPPORT (remote access) ---------- */
.support-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}

.support-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.support-text p {
  font-size: 14.5px;
  color: var(--text-dim);
  max-width: 400px;
  line-height: 1.6;
}

.os-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.os-btn {
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all 0.15s ease;
}

.os-btn:hover {
  border-color: var(--mint-dim);
  color: var(--mint);
  background: rgba(220, 33, 45, 0.05);
}

/* ---------- FINAL CTA ---------- */
.final-cta {
  text-align: center;
  padding: 100px 24px;
  background: radial-gradient(
    ellipse 60% 100% at 50% 100%,
    rgba(220, 33, 45, 0.08),
    transparent
  );
}

.final-cta h2 {
  font-size: clamp(28px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -1.2px;
  max-width: 680px;
  margin: 0 auto 18px;
  line-height: 1.12;
}

.final-cta p {
  color: var(--text-dim);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 36px;
}

.final-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
footer {
  padding: 48px 24px 32px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.footer-col h5 {
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.footer-col a,
.footer-col p {
  display: block;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 9px;
}

.footer-col a:hover {
  color: var(--mint);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-faint);
}

/* whatsapp floating */
.float-wa {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(220, 33, 45, 0.4);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 6px 24px rgba(220, 33, 45, 0.4);
  }

  50% {
    box-shadow: 0 6px 30px rgba(220, 33, 45, 0.7);
  }
}

.float-wa svg {
  width: 28px;
  height: 28px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

::selection {
  background: rgba(220, 33, 45, 0.3);
}