/* ==========================================================================
   VerCloud — first prototype styles
   ========================================================================== */

:root {
  --bg: #07070b;
  --bg-2: #0b0b12;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #e8e9ef;
  --muted: #9ea3b5;
  --dim: #6a6f80;

  --brand: #7c5cff;
  --brand-2: #22d3ee;
  --accent: #f0abfc;
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;

  --radius: 18px;
  --radius-sm: 12px;

  --container: 1200px;
  --gutter: clamp(16px, 3vw, 32px);

  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.5), 0 2px 0 rgba(255, 255, 255, 0.04) inset;

  --grad-brand: linear-gradient(135deg, #7c5cff 0%, #22d3ee 60%, #f0abfc 100%);
  --grad-text: linear-gradient(180deg, #ffffff 0%, #b9bdd0 100%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Background: mesh gradient + grid + noise
   ========================================================================== */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(1200px 700px at 80% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 10%, rgba(34, 211, 238, 0.15), transparent 60%),
    linear-gradient(180deg, #07070b 0%, #08080e 50%, #07070c 100%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, black 30%, transparent 70%);
  opacity: 0.6;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: float 18s ease-in-out infinite;
}
.bg-blob--1 {
  width: 520px;
  height: 520px;
  top: -160px;
  left: -120px;
  background: radial-gradient(circle at 30% 30%, #7c5cff 0%, transparent 70%);
}
.bg-blob--2 {
  width: 640px;
  height: 640px;
  top: 10%;
  right: -200px;
  background: radial-gradient(circle at 60% 40%, #22d3ee 0%, transparent 70%);
  animation-delay: -6s;
}
.bg-blob--3 {
  width: 480px;
  height: 480px;
  bottom: -160px;
  left: 20%;
  background: radial-gradient(circle at 50% 50%, #f0abfc 0%, transparent 70%);
  animation-delay: -12s;
  opacity: 0.4;
}

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(30px, -20px, 0) scale(1.05);
  }
}

.bg-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ==========================================================================
   Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 3vw, 32px);
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  transition: background 0.25s, backdrop-filter 0.25s, border-color 0.25s;
}

.nav.is-scrolled {
  background: rgba(8, 8, 14, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}
.nav__logo img {
  height: 22px;
  width: auto;
  display: block;
}

.nav__links {
  display: flex;
  gap: 6px;
  margin: 0 auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(10px);
}
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Language toggle */
.lang {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.lang__btn {
  position: relative;
  z-index: 1;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.2s;
}
.lang__btn.is-active {
  color: #0a0a12;
}
.lang__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  width: calc(50% - 4px);
  left: 4px;
  background: var(--grad-brand);
  border-radius: 999px;
  transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.3);
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.35);
}
.lang[data-lang="en"] .lang__pill {
  transform: translateX(100%);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  --h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s, background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn--lg {
  --h: 50px;
  padding: 0 22px;
  font-size: 15px;
}
.btn--primary {
  color: #0a0a12;
  background: var(--grad-brand);
  box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(124, 92, 255, 0.45);
}
.btn--ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-2);
}
.btn--ghost:hover {
  background: var(--surface-2);
}

.nav__cta {
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(48px, 8vw, 96px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.hero__title {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 18px 0 20px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__title .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.hero__title > span {
  display: inline;
}

.hero__lead {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 18px);
  max-width: 580px;
  margin: 0 0 28px;
}

.hero__cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero__stats {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 620px;
}
.hero__stats li {
  padding: 14px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.hero__stats strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__stats span {
  color: var(--muted);
  font-size: 12.5px;
}

/* decorative panels */
.hero__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateZ(0);
}
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(10px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 40%);
  opacity: 0.8;
}
.panel__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.panel__bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #444;
}
.panel__bar .dot--r {
  background: #ff5f57;
}
.panel__bar .dot--y {
  background: #febc2e;
}
.panel__bar .dot--g {
  background: #28c840;
}
.panel__title {
  margin-left: 10px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
}
.panel__body {
  margin: 0;
  padding: 16px 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #cfd3e2;
  overflow-x: auto;
}
.c-dim {
  color: var(--dim);
}
.c-ok {
  color: var(--ok);
}
.c-acc {
  color: var(--brand-2);
}
.cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--text);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.panel--sm {
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}
.panel__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag--ops {
  background: rgba(124, 92, 255, 0.15);
  color: #c7b8ff;
  border: 1px solid rgba(124, 92, 255, 0.3);
}
.tag--ok {
  background: rgba(52, 211, 153, 0.12);
  color: #8df2c8;
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.tag--ml {
  background: rgba(34, 211, 238, 0.12);
  color: #8fe8f6;
  border: 1px solid rgba(34, 211, 238, 0.3);
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.015);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee__track {
  display: inline-flex;
  gap: 42px;
  white-space: nowrap;
  animation: scroll 45s linear infinite;
  padding-left: 42px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.marquee__track span {
  opacity: 0.8;
}
@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(60px, 9vw, 120px) var(--gutter);
}

.section__head {
  max-width: 780px;
  margin: 0 auto clamp(28px, 4vw, 56px);
  text-align: center;
}
.section__head .eyebrow {
  margin: 0 auto 18px;
}
.section__title {
  font-size: clamp(28px, 4.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section__lead {
  color: var(--muted);
  font-size: clamp(15px, 1.2vw, 17px);
  margin: 0;
}

/* Services (tabs) */
.svc {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 14px;
  box-shadow: var(--shadow-lg);
}
.svc__nav {
  display: grid;
  gap: 6px;
  align-content: flex-start;
}
.svc__tab {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.svc__tab:hover {
  background: var(--surface);
  color: var(--text);
}
.svc__tab.is-active {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(34, 211, 238, 0.12));
  border-color: rgba(124, 92, 255, 0.45);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.18);
}
.svc__tab-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  display: inline-grid;
  place-items: center;
  color: var(--brand-2);
  flex: 0 0 auto;
  transition: background 0.2s, color 0.2s;
}
.svc__tab.is-active .svc__tab-icon {
  background: var(--grad-brand);
  color: #0a0a12;
}
.svc__tab-icon svg {
  width: 16px;
  height: 16px;
}

.svc__panels {
  position: relative;
}
.svc__panel {
  display: none;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(18px, 2.5vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  min-height: 100%;
  animation: fade 0.35s ease both;
}
.svc__panel.is-active {
  display: block;
}
.svc__list {
  grid-template-columns: 1fr 1fr;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.svc__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc__text h3 {
  margin: 2px 0 6px;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.svc__text p {
  color: var(--muted);
  margin: 0 0 4px;
  font-size: 15px;
}
.svc__list {
  list-style: none;
  padding: 0;
  margin: 4px 0 14px;
  display: grid;
  gap: 8px;
}
.svc__list li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 14.5px;
}
.svc__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--grad-brand);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
}
.svc__text .btn {
  align-self: flex-start;
  margin-top: auto;
}

.kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-2);
}
.kicker--ops {
  color: #c7b8ff;
}
.kicker--ml {
  color: #8fe8f6;
}
.kicker--ok {
  color: #8df2c8;
}

.svc__visual {
  display: flex;
  align-items: stretch;
}
.svc__visual .panel {
  width: 100%;
}

/* Pipeline */
.pipeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
}
.pipeline__step {
  display: grid;
  gap: 2px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  font-weight: 600;
  min-width: 90px;
}
.pipeline__step span {
  font-weight: 400;
  font-size: 11.5px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}
.pipeline__step.is-ok {
  border-color: rgba(52, 211, 153, 0.35);
  color: #c9f7e2;
}
.pipeline__step.is-run {
  border-color: rgba(124, 92, 255, 0.5);
  color: #dcd0ff;
  background: rgba(124, 92, 255, 0.08);
  animation: pulseBg 1.4s ease-in-out infinite;
}
@keyframes pulseBg {
  50% {
    box-shadow: 0 0 0 6px rgba(124, 92, 255, 0.15);
  }
}
.pipeline__arrow {
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.05));
  border-radius: 2px;
}

/* ML graph */
.ml-panel {
  padding-bottom: 14px;
}
.ml-graph {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 16px;
}
.ml-node {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
}
.ml-node--accent {
  border-color: rgba(124, 92, 255, 0.5);
  background: rgba(124, 92, 255, 0.12);
}
.ml-node--ok {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.1);
}
.ml-edge {
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.6), rgba(34, 211, 238, 0.6));
  border-radius: 2px;
}
.ml-stats {
  padding: 0 18px 14px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* SLO */
.slo {
  padding: 16px 18px 20px;
  display: grid;
  gap: 12px;
}
.slo__row {
  display: grid;
  grid-template-columns: 110px 1fr 60px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.slo__row b {
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  text-align: right;
}
.slo__bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.slo__bar i {
  display: block;
  height: 100%;
  background: var(--grad-brand);
  border-radius: inherit;
}

/* Tickets */
.tickets {
  padding: 16px 18px 4px;
  display: grid;
  gap: 8px;
}
.ticket {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
}
.ticket__id {
  font-family: "JetBrains Mono", monospace;
  color: var(--dim);
  font-size: 12px;
}
.ticket__t {
  color: var(--text);
}
.tickets__foot {
  padding: 10px 18px 16px;
  color: var(--muted);
}
.badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.badge--ok {
  color: #8df2c8;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.badge--warn {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

/* CCTV */
.cctv__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  padding: 14px;
}
.cctv__cell {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, #0a0d18 0%, #0f1424 50%, #0a0d18 100%);
  overflow: hidden;
}
.cctv__cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
}
.cctv__cell::after {
  content: "";
  position: absolute;
  inset: auto 0 -50% 0;
  height: 40%;
  background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.35));
  animation: scan 3.2s linear infinite;
}
@keyframes scan {
  from {
    transform: translateY(-250%);
  }
  to {
    transform: translateY(50%);
  }
}
.cctv__label {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
}
.rec {
  position: absolute;
  top: 6px;
  right: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #fff;
  background: #e11d48;
  padding: 1px 5px;
  border-radius: 3px;
  letter-spacing: 0.1em;
  animation: blink 1.4s steps(1) infinite;
  z-index: 1;
}
.cctv__foot {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px 14px;
  color: var(--muted);
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.steps li {
  padding: 22px 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
}
.steps__n {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--brand-2);
  letter-spacing: 0.08em;
}
.steps h4 {
  font-size: 17px;
  margin: 10px 0 6px;
}
.steps p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Cases */
.cases {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.case {
  grid-column: span 2;
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.case::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.5), rgba(34, 211, 238, 0.25), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.case:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}
.case:hover::before {
  opacity: 1;
}
.case--wide {
  grid-column: span 3;
}
.case__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.case__fav {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  padding: 6px;
  object-fit: contain;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  flex: 0 0 auto;
}
.case__head h4 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.case__sphere {
  color: var(--muted);
  font-size: 13px;
}
.case p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  flex: 1;
}
.case__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-2);
  margin-top: 4px;
}
.case__link {
  margin-left: auto;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 500;
}
.tag--it {
  background: rgba(244, 114, 182, 0.12);
  color: #fbcfe8;
  border: 1px solid rgba(244, 114, 182, 0.3);
}
.tag--low {
  background: rgba(251, 191, 36, 0.1);
  color: #fde68a;
  border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Stack */
.stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stack__col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
}
.stack__col h5 {
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-2);
}
.stack__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.stack__col li {
  color: var(--muted);
  font-size: 14px;
}

/* Contact */
.contact__card {
  border: 1px solid var(--border-2);
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(24px, 3vw, 44px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  box-shadow: var(--shadow-lg);
}
.contact__list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.contact__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.contact__list a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--border-2);
  padding-bottom: 1px;
}
.contact__list a:hover {
  color: var(--brand-2);
}

.form {
  display: grid;
  gap: 12px;
}
.form label {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.form input,
.form textarea {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  resize: vertical;
}
.form input:focus,
.form textarea:focus {
  border-color: rgba(124, 92, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
}
.form__hint {
  color: var(--dim);
  font-size: 12.5px;
  margin: 4px 0 0;
}
.form .hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.form.is-sending button[type="submit"] {
  opacity: 0.6;
  pointer-events: none;
}
.form__hint.is-ok {
  color: #8df2c8;
}
.form__hint.is-err {
  color: #fca5a5;
}

/* Footer */
.foot {
  border-top: 1px solid var(--border);
  margin-top: clamp(40px, 6vw, 80px);
}
.foot__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 13.5px;
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.foot__brand img {
  height: 18px;
  width: auto;
  display: block;
}
.foot__links {
  display: flex;
  gap: 18px;
}
.foot__links a {
  color: var(--muted);
  text-decoration: none;
}
.foot__links a:hover {
  color: var(--text);
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__panel {
    order: 2;
  }
  .nav__links {
    display: none;
  }
  .svc {
    grid-template-columns: 1fr;
  }
  .svc__nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(180px, 1fr);
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .svc__tab {
    white-space: nowrap;
  }
  .svc__list {
    grid-template-columns: 1fr;
  }
  .cases {
    grid-template-columns: repeat(2, 1fr);
  }
  .case,
  .case--wide {
    grid-column: span 2;
  }
  .steps,
  .stack {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact__card {
    grid-template-columns: 1fr;
  }
  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .nav__cta {
    display: none;
  }
  .steps,
  .stack,
  .cases {
    grid-template-columns: 1fr;
  }
  .case,
  .case--wide {
    grid-column: span 1;
  }
  .slo__row {
    grid-template-columns: 80px 1fr 56px;
  }
  .foot__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
