:root {
  --bg: #060a15;
  --bg2: #0a1633;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.88);
  --muted: rgba(255, 255, 255, 0.64);
  --brand: #19d3ff;
  --brand2: #3cffc6;
  --brand3: #6b7cff;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.45);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

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

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(1200px 600px at 70% 10%, rgba(25, 211, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 15% 45%, rgba(60, 255, 198, 0.12), transparent 55%),
    radial-gradient(900px 700px at 80% 70%, rgba(94, 84, 255, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  overflow-x: hidden;
}

.accent {
  color: rgba(25, 211, 255, 0.98);
  text-shadow: 0 0 18px rgba(25, 211, 255, 0.2);
}

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

button {
  font: inherit;
}

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

.grid {
  display: grid;
  gap: 18px;
}

.section-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.scroll-btn {
  width: 42px;
  height: 38px;
  padding: 0;
}

.hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(260px, 34vw, 380px);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 10px;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hitem {
  scroll-snap-align: start;
}

.hscroll::-webkit-scrollbar {
  display: none;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.subcard {
  box-shadow: none;
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.11);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.subcard:hover {
  border-color: rgba(25, 211, 255, 0.28);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(25, 211, 255, 0.24);
  background: rgba(25, 211, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  box-shadow: 0 0 18px rgba(25, 211, 255, 0.6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-primary {
  border-color: rgba(25, 211, 255, 0.35);
  background: linear-gradient(90deg, rgba(25, 211, 255, 0.18), rgba(60, 255, 198, 0.12));
}

.btn-primary:hover {
  border-color: rgba(25, 211, 255, 0.6);
  background: linear-gradient(90deg, rgba(25, 211, 255, 0.24), rgba(60, 255, 198, 0.16));
}

.btn-ghost {
  background: transparent;
}

.btn-sm {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}

.editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 18px;
  background: rgba(3, 7, 18, 0.72);
  backdrop-filter: blur(10px);
  overflow: auto;
}

.editor-panel {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 18px;
  background: rgba(7, 13, 30, 0.96);
}

.editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.editor-head h2 {
  margin: 12px 0 6px;
  font-size: clamp(22px, 3vw, 32px);
}

.editor-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 680px;
}

.editor-actions,
.editor-section-head,
.editor-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.editor-grid {
  display: grid;
  gap: 16px;
  padding-top: 16px;
}

.editor-section {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.editor-section h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.editor-section-head h3 {
  margin: 0;
}

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

.editor-wide {
  grid-column: span 3;
}

.editor-section label,
.editor-item label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
}

.editor-section input,
.editor-section textarea,
.editor-section select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.editor-section input[type="file"] {
  padding: 9px;
}

.editor-section textarea {
  min-height: 88px;
  resize: vertical;
}

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

.editor-list.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editor-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.16);
}

.editor-item-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-preview {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.editor-preview.logo-preview {
  height: 90px;
  object-fit: contain;
  padding: 10px;
}

.login-backdrop {
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(420px, 100%);
  padding: 20px;
  display: grid;
  gap: 14px;
  background: rgba(7, 13, 30, 0.96);
}

.login-panel h2 {
  margin: 12px 0 6px;
  font-size: 26px;
}

.login-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.login-panel label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.login-panel input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.92);
  outline: none;
}

.login-error {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 92, 138, 0.34);
  background: rgba(255, 92, 138, 0.1);
  color: rgba(255, 220, 230, 0.96);
  font-size: 13px;
}

.section {
  padding: 56px 0;
  position: relative;
}

.section-wide {
  padding: 46px 0;
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: -0.02em;
}

.section-title p {
  margin: 4px 0 0;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.5;
}

.section-title-inline {
  margin: 0 0 14px;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.underline {
  height: 2px;
  width: 56px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(25, 211, 255, 0.95), rgba(60, 255, 198, 0.65), rgba(107, 124, 255, 0.35));
  box-shadow: 0 0 26px rgba(25, 211, 255, 0.22);
}

.underline.sm {
  width: 44px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 25, 0.55);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

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

.brand img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 10px 24px rgba(25, 211, 255, 0.18));
}

.brand .name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand .name strong {
  letter-spacing: 0.08em;
  font-size: 14px;
}

.brand .name span {
  color: var(--muted);
  font-size: 12px;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navlinks a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background 0.15s ease, color 0.15s ease;
}

.navlinks a:hover {
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.06);
}

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

.menu-btn {
  display: none;
}

.hero {
  padding: 58px 0 20px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
  align-items: start;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-visual {
  display: grid;
  gap: 14px;
  align-content: start;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: start;
}

.hero-left,
.hero-mid,
.hero-right {
  min-width: 0;
}

.hero-mid,
.hero-right {
  display: grid;
  gap: 14px;
  align-content: start;
}

.chip-hero {
  border-color: rgba(25, 211, 255, 0.22);
  background: rgba(25, 211, 255, 0.06);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(30px, 4.2vw, 54px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.section-pad {
  height: 18px;
}

.visual-shell {
  height: 420px;
  border-radius: 24px;
  border: 1px solid rgba(25, 211, 255, 0.22);
  background: radial-gradient(500px 260px at 24% 18%, rgba(25, 211, 255, 0.16), transparent 62%),
    radial-gradient(380px 280px at 82% 78%, rgba(255, 92, 138, 0.12), transparent 55%),
    radial-gradient(420px 320px at 70% 45%, rgba(60, 255, 198, 0.1), transparent 58%),
    rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
}

.visual-shell:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.82), transparent 90%);
  opacity: 0.28;
}

.cyber-grid {
  position: absolute;
  inset: -20%;
  background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(25, 211, 255, 0.28), transparent 36%);
  filter: blur(16px);
  opacity: 0.55;
  animation: cyberSweep 7s linear infinite;
  z-index: 0;
}

.visual-dashboard {
  position: absolute;
  left: 24px;
  top: 26px;
  width: clamp(238px, 52%, 286px);
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 18, 39, 0.84);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.38);
  display: grid;
  gap: 10px;
  animation: panelFloat 5.5s ease-in-out infinite;
  z-index: 3;
}

.visual-dashboard-top,
.visual-kpis,
.visual-events span,
.threat-card {
  display: flex;
  align-items: center;
}

.visual-dashboard-top {
  justify-content: space-between;
  gap: 12px;
}

.visual-dashboard-top span,
.visual-kpis span,
.visual-events span,
.threat-card span,
.status-pill {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.visual-dashboard-top strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
}

.visual-kpis {
  gap: 8px;
}

.visual-kpis div {
  flex: 1;
  min-width: 0;
  padding: 8px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-kpis strong {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 18px;
}

.visual-chart {
  height: 70px;
  display: flex;
  align-items: end;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-chart span {
  flex: 1;
  min-width: 12px;
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(180deg, rgba(60, 255, 198, 0.95), rgba(25, 211, 255, 0.42));
  box-shadow: 0 0 24px rgba(25, 211, 255, 0.16);
  animation: chartPulse 2.8s ease-in-out infinite;
}

.visual-chart span:nth-child(1) {
  height: 44%;
}
.visual-chart span:nth-child(2) {
  height: 72%;
  animation-delay: 0.2s;
}
.visual-chart span:nth-child(3) {
  height: 56%;
  animation-delay: 0.4s;
}
.visual-chart span:nth-child(4) {
  height: 86%;
  animation-delay: 0.6s;
}
.visual-chart span:nth-child(5) {
  height: 62%;
  animation-delay: 0.8s;
}
.visual-chart span:nth-child(6) {
  height: 78%;
  animation-delay: 1s;
}

.visual-events {
  display: grid;
  gap: 6px;
}

.visual-events span {
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.visual-events span:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand2);
  box-shadow: 0 0 16px rgba(60, 255, 198, 0.65);
  flex: 0 0 auto;
}

.cyber-core {
  position: absolute;
  right: 34px;
  top: 62px;
  width: 136px;
  height: 136px;
  display: grid;
  place-items: center;
  animation: panelFloat 6.2s ease-in-out infinite reverse;
  z-index: 3;
}

.scan-ring,
.scan-ring:before,
.scan-ring:after {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(25, 211, 255, 0.3);
}

.scan-ring {
  inset: 0;
  animation: scanSpin 8s linear infinite;
}

.scan-ring:before,
.scan-ring:after {
  content: "";
  inset: 22px;
}

.scan-ring:after {
  inset: 48px;
  border-color: rgba(60, 255, 198, 0.35);
}

.core-shield {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(25, 211, 255, 0.2), rgba(60, 255, 198, 0.08));
  box-shadow: 0 0 55px rgba(25, 211, 255, 0.2), 0 26px 65px rgba(0, 0, 0, 0.48);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.core-shield:before {
  content: "";
  position: absolute;
  inset: -60%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: rotate(22deg);
  animation: shieldScan 3.2s ease-in-out infinite;
}

.cybertec-mark {
  position: relative;
  z-index: 2;
  width: 54px;
  height: auto;
  opacity: 0.98;
  filter: drop-shadow(0 16px 40px rgba(25, 211, 255, 0.18));
  animation: markFloat 4.2s ease-in-out infinite;
  pointer-events: none;
}

.threat-card {
  position: absolute;
  right: 28px;
  bottom: 36px;
  width: 176px;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 92, 138, 0.28);
  background: rgba(24, 11, 28, 0.82);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32);
  animation: alertGlow 3.4s ease-in-out infinite;
  z-index: 4;
}

.threat-card strong {
  display: block;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
}

.threat-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5c8a;
  box-shadow: 0 0 24px rgba(255, 92, 138, 0.82);
  flex: 0 0 auto;
}

.status-pill {
  position: absolute;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(8, 18, 39, 0.72);
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  animation: panelFloat 4.6s ease-in-out infinite;
  z-index: 4;
}

.status-pill.sp1 {
  left: 28px;
  bottom: 38px;
}

.status-pill.sp2 {
  right: 30px;
  top: 24px;
  animation-delay: 0.8s;
}

.signal-path {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(25, 211, 255, 0.85), rgba(60, 255, 198, 0.5), transparent);
  transform-origin: left center;
  opacity: 0.72;
  animation: signalMove 2.6s linear infinite;
  z-index: 1;
}

.signal-path.p1 {
  width: 104px;
  left: 300px;
  top: 122px;
  transform: rotate(9deg);
}

.signal-path.p2 {
  width: 100px;
  left: 304px;
  bottom: 178px;
  transform: rotate(-13deg);
  animation-delay: 1.2s;
}

@keyframes cyberSweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes chartPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.26);
  }
}

@keyframes scanSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shieldScan {
  0%,
  100% {
    transform: translateX(-38%) rotate(22deg);
  }
  50% {
    transform: translateX(38%) rotate(22deg);
  }
}

@keyframes alertGlow {
  0%,
  100% {
    border-color: rgba(255, 92, 138, 0.24);
  }
  50% {
    border-color: rgba(255, 92, 138, 0.62);
  }
}

@keyframes signalMove {
  0% {
    opacity: 0.28;
    background-position: -220px 0;
  }
  45% {
    opacity: 0.86;
  }
  100% {
    opacity: 0.28;
    background-position: 220px 0;
  }
}

@keyframes markFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-7px) rotate(2deg);
  }
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

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

.stat2 {
  padding: 12px 12px;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
}

.stat2 .ico {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(25, 211, 255, 0.22);
  background: rgba(25, 211, 255, 0.06);
  color: rgba(25, 211, 255, 0.95);
  display: grid;
  place-items: center;
}

.stat2 strong {
  display: block;
  font-size: 13px;
}

.stat2 span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.customer-strip {
  margin-top: 30px;
  padding: 26px 0 8px;
}

.customer-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.customer-head span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.customer-head strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2vw, 22px);
  max-width: 520px;
  text-align: right;
}

.customer-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.customer-logo {
  min-width: 0;
  min-height: 92px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.028));
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 9px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.customer-logo-img {
  width: 100%;
  height: 44px;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

.customer-logo strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.services-grid {
  grid-template-columns: repeat(3, 1fr);
}

.services-hero {
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  gap: 12px;
}

.services-hero > * {
  scroll-snap-align: start;
}

.services-hero::-webkit-scrollbar {
  height: 8px;
}

.services-hero::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.service {
  padding: 18px;
}

.service-compact {
  padding: 14px;
}

.service-compact h3 {
  font-size: 15px;
  margin-bottom: 10px;
}

.service h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.service p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
  font-size: 13px;
}

.portfolio-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.project-link {
  display: grid;
  cursor: pointer;
}

.project-link:hover {
  border-color: rgba(25, 211, 255, 0.32);
}

.project-link:focus-visible {
  outline: 2px solid rgba(25, 211, 255, 0.65);
  outline-offset: 3px;
}

.thumb {
  height: 150px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(120px 90px at 30% 30%, rgba(25, 211, 255, 0.22), transparent 60%),
    radial-gradient(120px 90px at 70% 70%, rgba(60, 255, 198, 0.14), transparent 60%),
    rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.thumb:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.2;
}

.product-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.035);
}

.product-thumb img,
.product-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb img {
  position: relative;
  z-index: 1;
  transition: transform 0.22s ease;
}

.project-link:hover .product-thumb img {
  transform: scale(1.04);
}

.product-gallery {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.product-shot {
  height: 140px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.project .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project .meta strong {
  font-size: 15px;
}

.tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 10px;
  border-radius: 999px;
}

.pricing-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.plan {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.plan .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plan h3 {
  margin: 0;
  font-size: 18px;
}

.price {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
}

.price small {
  font-size: 13px;
  color: var(--muted);
}

.plan.featured {
  border-color: rgba(25, 211, 255, 0.38);
  background: radial-gradient(600px 300px at 50% 0%, rgba(25, 211, 255, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  transform: translateY(-6px);
}

.plan.mini.featured {
  transform: none;
}

.note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.testi-grid {
  grid-template-columns: repeat(3, 1fr);
}

.advantages-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}

.adv {
  padding: 16px;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: start;
}

.adv .ico {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(25, 211, 255, 0.22);
  background: rgba(25, 211, 255, 0.06);
  color: rgba(25, 211, 255, 0.95);
  display: grid;
  place-items: center;
}

.adv strong {
  display: block;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.adv span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.testi {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.testi p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
}

.person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.person strong {
  font-size: 14px;
}

.person span {
  color: var(--muted);
  font-size: 13px;
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.form {
  padding: 18px;
}

.form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.field label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  outline: none;
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.sidebox {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.sidebox h3 {
  margin: 0;
  font-size: 18px;
}

.sidebox p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  padding: 28px 0 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 11, 25, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}

.footer small {
  color: rgba(255, 255, 255, 0.62);
}

.social {
  display: flex;
  gap: 10px;
}

.iconbtn {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
}

.iconbtn:hover {
  border-color: rgba(25, 211, 255, 0.35);
  background: rgba(25, 211, 255, 0.08);
}

.mobile-drawer {
  display: none;
}

.side {
  padding: 16px;
}

.side-head {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.side-head h3 {
  margin: 0;
  font-size: 18px;
}

.side > .note {
  margin-top: 10px;
}

.port-mini {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pmini {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.pmini strong {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thumb.mini {
  height: 74px;
  border-radius: 12px;
  background: radial-gradient(90px 60px at 35% 35%, rgba(25, 211, 255, 0.18), transparent 60%),
    radial-gradient(90px 60px at 70% 70%, rgba(60, 255, 198, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.02);
}

.pricing-mini {
  grid-template-columns: 1fr;
  gap: 10px;
}

.plan.mini {
  padding: 12px;
  gap: 10px;
}

.plan.mini .head h4 {
  margin: 0;
  font-size: 14px;
}

.plan.mini .price {
  font-size: 18px;
}

.testi-mini {
  grid-template-columns: 1fr;
  gap: 10px;
}

.testi.mini p {
  font-size: 13px;
}

.dash {
  padding: 14px;
  border-color: rgba(255, 255, 255, 0.14);
  background: radial-gradient(600px 260px at 20% 0%, rgba(25, 211, 255, 0.14), transparent 55%),
    radial-gradient(520px 260px at 90% 60%, rgba(107, 124, 255, 0.11), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.dash-title {
  display: grid;
  gap: 4px;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(25, 211, 255, 0.22);
  background: rgba(25, 211, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.dash-title strong {
  font-size: 16px;
}

.dash-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.14);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tab:hover {
  transform: translateY(-1px);
  border-color: rgba(25, 211, 255, 0.22);
}

.tab.active {
  background: rgba(25, 211, 255, 0.11);
  border-color: rgba(25, 211, 255, 0.3);
  color: rgba(255, 255, 255, 0.92);
}

.dash-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.dash-kpi {
  padding: 12px;
  grid-row: 1 / span 2;
}

.kpi-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
}

.kpi-label {
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.kpi-val {
  font-weight: 700;
  color: rgba(25, 211, 255, 0.95);
}

.dash-chart {
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.sparkline {
  width: 100%;
  height: 88px;
  display: block;
}

.sparkline .gridline {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1;
}

.sparkline .line {
  fill: none;
  stroke: rgba(25, 211, 255, 0.95);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw 2.6s ease-in-out infinite;
}

.sparkline .area {
  fill: rgba(25, 211, 255, 0.12);
  opacity: 0.9;
  animation: glow 2.6s ease-in-out infinite;
}

@keyframes draw {
  0% {
    stroke-dashoffset: 220;
  }
  40% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes glow {
  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(25, 211, 255, 0));
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(25, 211, 255, 0.25));
  }
}

.bars {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-top: 10px;
  align-items: end;
}

.bar {
  height: 18px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(60, 255, 198, 0.55), rgba(60, 255, 198, 0.08));
  border: 1px solid rgba(60, 255, 198, 0.18);
  animation: bar 1.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.07s);
}

@keyframes bar {
  0%,
  100% {
    height: 16px;
    opacity: 0.7;
  }
  50% {
    height: 32px;
    opacity: 1;
  }
}

.dash-log {
  padding: 12px;
  overflow: hidden;
}

.log {
  display: grid;
  gap: 8px;
  max-height: 140px;
  position: relative;
}

.log:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 10, 21, 0.65) 100%);
  pointer-events: none;
  opacity: 0.65;
}

.log-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  animation: slide 3.6s linear infinite;
}

.log-line:nth-child(2) {
  animation-delay: 0.25s;
}
.log-line:nth-child(3) {
  animation-delay: 0.5s;
}
.log-line:nth-child(4) {
  animation-delay: 0.75s;
}
.log-line:nth-child(5) {
  animation-delay: 1s;
}

@keyframes slide {
  0%,
  10% {
    transform: translateY(0);
  }
  60% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

.pill {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

.pill.ok {
  background: rgba(60, 255, 198, 0.75);
  box-shadow: 0 0 22px rgba(60, 255, 198, 0.25);
}

.pill.warn {
  background: rgba(255, 187, 74, 0.85);
  box-shadow: 0 0 22px rgba(255, 187, 74, 0.25);
}

@media (max-width: 1200px) {
  .navlinks {
    gap: 8px;
  }
  .navlinks a {
    padding: 10px 8px;
  }
  .brand {
    min-width: 198px;
  }
  .brand img {
    height: 40px;
  }
  .hero-layout {
    grid-template-columns: 1fr 0.95fr;
  }
  .hero-right {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .port-mini {
    grid-template-columns: repeat(2, 1fr);
  }
  .visual-shell {
    height: 390px;
  }
  .visual-dashboard {
    width: clamp(232px, 50%, 276px);
  }
  .cyber-core {
    right: 28px;
  }
  .signal-path.p1 {
    left: 286px;
    width: 88px;
  }
  .signal-path.p2 {
    left: 292px;
    width: 86px;
  }
  .customer-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .editor-fields,
  .editor-list,
  .editor-list.compact {
    grid-template-columns: 1fr;
  }
  .editor-wide {
    grid-column: auto;
  }
  .editor-head {
    flex-direction: column;
  }
  .editor-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .nav {
    gap: 16px;
  }
  .brand {
    min-width: 186px;
  }
  .brand .name span {
    font-size: 11px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-layout {
    grid-template-columns: 1fr;
  }
  .hero-right {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .visual-shell {
    height: 380px;
  }
  .visual-dashboard {
    width: min(45%, 300px);
  }
  .cyber-core {
    width: 132px;
    height: 132px;
    right: 54px;
    top: 70px;
  }
  .threat-card {
    right: 48px;
    bottom: 34px;
  }
  .status-pill.sp1 {
    left: 28px;
    bottom: 34px;
  }
  .status-pill.sp2 {
    right: 46px;
    top: 30px;
  }
  .signal-path.p1 {
    left: 42%;
    top: 132px;
  }
  .signal-path.p2 {
    left: 43%;
    bottom: 160px;
  }
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .plan.featured {
    transform: none;
  }
  .testi-grid {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .customer-head {
    align-items: start;
    flex-direction: column;
  }
  .customer-head strong {
    text-align: left;
  }
  .customer-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1160px);
  }
  .nav {
    padding: 12px 0;
  }
  .brand {
    min-width: 0;
    gap: 10px;
  }
  .brand img {
    height: 38px;
  }
  .brand .name strong {
    font-size: 12px;
  }
  .brand .name span {
    display: none;
  }
  .nav-cta {
    gap: 8px;
  }
  .admin-open {
    padding: 10px 11px;
    font-size: 12px;
  }
  .nav-cta .btn-primary {
    padding: 10px 11px;
    font-size: 12px;
  }
  .navlinks {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .mobile-drawer {
    display: block;
    padding: 12px 0 16px;
  }
  .drawer-inner {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
  }
  .drawer-inner a {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.86);
  }
  .drawer-inner a:hover {
    border-color: rgba(25, 211, 255, 0.35);
    background: rgba(25, 211, 255, 0.08);
  }
  .form .row {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 44px 0;
  }
  .section-wide {
    padding: 36px 0;
  }
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }
  .section-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .hero {
    padding: 40px 0 18px;
  }
  .hero h1 {
    font-size: clamp(30px, 10vw, 42px);
  }
  .hero-actions .btn {
    flex: 1 1 160px;
  }
  .hscroll {
    grid-auto-columns: minmax(252px, 86vw);
  }
  .stats-row {
    grid-template-columns: 1fr;
  }
  .stats-4 {
    grid-template-columns: 1fr;
  }
  .section-actions {
    gap: 8px;
  }
  .scroll-btn {
    width: 40px;
    height: 36px;
  }
  .visual-shell {
    height: 470px;
  }
  .visual-dashboard {
    left: 18px;
    top: 20px;
    width: calc(100% - 36px);
    padding: 14px;
  }
  .visual-chart {
    height: 72px;
  }
  .visual-events {
    display: none;
  }
  .cyber-core {
    width: 112px;
    height: 112px;
    top: auto;
    right: 20px;
    bottom: 30px;
  }
  .core-shield {
    width: 76px;
    height: 76px;
    border-radius: 21px;
  }
  .cybertec-mark {
    width: 50px;
  }
  .threat-card {
    left: 18px;
    right: auto;
    bottom: 34px;
    width: min(150px, calc(100% - 170px));
    gap: 8px;
    padding: 9px;
  }
  .threat-card strong {
    font-size: 12px;
  }
  .threat-card span {
    font-size: 10px;
  }
  .status-pill,
  .signal-path {
    display: none;
  }
  .customer-strip {
    margin-top: 24px;
    padding: 22px 0 6px;
  }
  .customer-logos {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .customer-logo {
    min-height: 68px;
    grid-template-columns: 48px 1fr;
    justify-items: start;
    text-align: left;
    padding: 12px;
  }
  .customer-logo-img {
    width: 44px;
    height: 34px;
  }
  .services-hero {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }
  .port-mini {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-gallery {
    grid-template-columns: 1fr;
  }
  .dash-grid {
    grid-template-columns: 1fr;
  }
  .dash-kpi {
    grid-row: auto;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .editor-backdrop {
    padding: 10px;
  }
  .editor-panel,
  .editor-section {
    padding: 12px;
  }
  .editor-actions .btn {
    flex: 1;
  }
  .nav-cta .btn-primary {
    display: none;
  }
  .visual-shell {
    height: 450px;
  }
  .visual-dashboard {
    left: 14px;
    top: 16px;
    width: calc(100% - 28px);
  }
  .visual-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .visual-kpis div {
    padding: 7px;
  }
  .visual-kpis strong {
    font-size: 15px;
  }
  .cyber-core {
    right: 16px;
    bottom: 26px;
  }
  .threat-card {
    left: 14px;
    bottom: 30px;
    width: calc(100% - 160px);
  }
}
