/* CtrlSoft marketing site. Generated from the former Angular landing styles (dark-first, light via
   prefers-color-scheme) plus the language switcher, guide pages and guide index below. */
html, body { margin: 0; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; }
img, video { max-width: 100%; height: auto; }
body {
  display: block;
  --l-bg: #0b0d12;
  --l-bg-alt: #11131a;
  --l-surface: #171a24;
  --l-surface-alt: #1d2130;
  --l-border: rgba(255, 255, 255, 0.08);
  --l-text: #e8ecf3;
  --l-text-dim: rgba(232, 236, 243, 0.65);
  --l-text-muted: rgba(232, 236, 243, 0.45);
  --l-accent: #5d87ff;
  --l-accent-2: #49beff;
  --l-accent-soft: rgba(93, 135, 255, 0.14);
  --l-success: #13deb9;
  --l-warn: #ffae1f;
  --l-fail: #fa896b;
  --l-radius: 16px;
  background: var(--l-bg);
  color: var(--l-text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

@media (prefers-color-scheme: light) {
  body {
    --l-bg: #f7f8fb;
    --l-bg-alt: #ffffff;
    --l-surface: #ffffff;
    --l-surface-alt: #f1f3f8;
    --l-border: rgba(0, 0, 0, 0.08);
    --l-text: #0f1420;
    --l-text-dim: rgba(15, 20, 32, 0.65);
    --l-text-muted: rgba(15, 20, 32, 0.45);
  }
}
body * {
  box-sizing: border-box;
}

body a {
  color: var(--l-accent);
  text-decoration: none;
  cursor: pointer;
}

body a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--l-bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--l-border);
}
.topnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--l-text) !important;
}

.brand:hover {
  text-decoration: none !important;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--l-accent), var(--l-accent-2));
  box-shadow: 0 0 20px var(--l-accent);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: var(--l-text-dim) !important;
  font-size: 14px;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--l-text) !important;
  text-decoration: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
  background: transparent;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none !important;
}

.btn-primary {
  background: var(--l-accent);
  color: #fff !important;
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--l-accent) 90%, white);
  box-shadow: 0 10px 24px -8px var(--l-accent);
}

.btn-ghost {
  color: var(--l-text) !important;
  border-color: var(--l-border);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--l-surface-alt);
}

@media (max-width: 760px) {
  .nav-links a {
    display: none;
  }
}
/* Hero */
.hero {
  position: relative;
  padding: 90px 0 60px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 500px;
  background: radial-gradient(ellipse at 30% 20%, rgba(93, 135, 255, 0.22), transparent 60%), radial-gradient(ellipse at 70% 10%, rgba(73, 190, 255, 0.14), transparent 55%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--l-border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--l-text-dim);
  background: var(--l-surface);
  margin-bottom: 20px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--l-success);
  box-shadow: 0 0 8px var(--l-success);
}

.hero-title {
  font-size: clamp(32px, 5.5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--l-text);
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--l-accent), var(--l-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--l-text-dim);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero-ctas {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Screenshot */
.mockup {
  margin: 60px auto 0;
  max-width: 1050px;
  border-radius: 20px;
  border: 1px solid var(--l-border);
  background: var(--l-surface);
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(93, 135, 255, 0.05);
}

.mockup .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: var(--l-surface-alt);
  border-bottom: 1px solid var(--l-border);
}
.mockup .bar .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--l-text-muted);
  opacity: 0.5;
}
.mockup .bar .dot:nth-child(1) {
  background: #fa896b;
}
.mockup .bar .dot:nth-child(2) {
  background: #ffae1f;
}
.mockup .bar .dot:nth-child(3) {
  background: #13deb9;
}
.mockup .bar .url {
  margin-left: 14px;
  font-size: 12px;
  color: var(--l-text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mockup .screenshot {
  display: block;
  width: 100%;
  height: auto;
}

/* Showcase (real screenshots) */
.showcase {
  display: flex;
  flex-direction: column;
  gap: 72px;
  margin-top: 88px;
}

.show-row {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: center;
}
.show-row.rev {
  grid-template-columns: 7fr 5fr;
}
.show-row.rev .show-text {
  order: 2;
}

.show-tag {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--l-accent);
  font-weight: 600;
}

.show-text h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em;
  margin: 10px 0 12px;
  color: var(--l-text);
  line-height: 1.15;
}

.show-text p {
  color: var(--l-text-dim);
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0;
}

.show-img {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--l-border);
  background: #fff;
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.55);
}
.show-img img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .showcase {
    gap: 48px;
    margin-top: 64px;
  }
  .show-row, .show-row.rev {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .show-row .show-text, .show-row.rev .show-text {
    order: 0;
  }
}
/* Product tour video */
.video-section {
  padding-bottom: 20px;
}

.video-frame {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--l-border);
  background: #000;
  box-shadow: 0 40px 80px -28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(93, 135, 255, 0.06);
}
.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

/* Demo */
.demo {
  max-width: 1000px;
  margin: 0 auto;
}

.demo-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.demo-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--l-border);
  background: var(--l-surface);
  color: var(--l-text-dim);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, color 0.15s;
}
.demo-tab:hover {
  color: var(--l-text);
}
.demo-tab.active {
  color: var(--l-text);
  border-color: color-mix(in srgb, var(--l-accent) 50%, transparent);
}

.demo-tab-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 12px;
  background: var(--l-surface-alt);
  color: var(--l-text-muted);
}

.demo-tab.active .demo-tab-num {
  background: var(--l-accent);
  color: #fff;
}

.demo-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--l-accent);
}

.demo.autoplay .demo-progress {
  animation: demoProgress 7s linear forwards;
}

.demo.paused .demo-progress {
  animation-play-state: paused;
}

@keyframes demoProgress {
  to {
    width: 100%;
  }
}
@media (max-width: 640px) {
  .demo-tabs {
    grid-template-columns: 1fr;
  }
}
.demo-stage {
  min-height: 400px;
}

.scene {
  animation: sceneIn 0.35s ease both;
}

@keyframes sceneIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.win {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  background: var(--l-surface-alt);
  border-bottom: 1px solid var(--l-border);
}
.win-bar .wd {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--l-text-muted);
  opacity: 0.35;
}
.win-bar .win-title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--l-text-muted);
}

/* shared reveal: elements with --d appear after that delay */
[style*="--d"] {
  opacity: 0;
  animation: reveal 0.4s ease forwards;
  animation-delay: var(--d);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
/* scene: scripts */
.scripts-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 340px;
}

.script-list {
  border-right: 1px solid var(--l-border);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.script-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--l-text-dim);
}
.script-item b {
  display: block;
  font-weight: 600;
  color: var(--l-text);
}
.script-item small {
  font-size: 11px;
  color: var(--l-text-muted);
}
.script-item.active {
  background: var(--l-accent-soft);
}

.run-btn {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--l-success);
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  animation: press 0.5s ease 0.4s both;
}

@keyframes press {
  50% {
    transform: scale(0.88);
    box-shadow: 0 0 0 6px rgba(19, 222, 185, 0.25);
  }
}
.terminal {
  background: #0a0c11;
  display: flex;
  flex-direction: column;
}

.term-head {
  font-size: 12px;
  color: rgba(232, 236, 243, 0.55);
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--l-success);
  box-shadow: 0 0 6px var(--l-success);
}

.term-body {
  padding: 14px;
  font: 12.5px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #c9d3e6;
}

.term-body .p {
  color: var(--l-accent-2);
}

.term-body .out {
  color: #e8ecf3;
}

.term-body .ok {
  color: var(--l-success);
  margin-top: 6px;
}

@media (max-width: 700px) {
  .scripts-grid {
    grid-template-columns: 1fr;
  }
  .script-list {
    border-right: 0;
    border-bottom: 1px solid var(--l-border);
  }
  .script-item:not(.active) {
    display: none;
  }
}
/* scene: chat */
.chat-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.chat-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 250px;
}

.bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
}

.bubble.them {
  background: var(--l-surface-alt);
  color: var(--l-text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.bubble.me {
  background: var(--l-accent);
  color: #fff;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.delivered {
  align-self: flex-end;
  font-size: 11px;
  color: var(--l-success);
}

.chat-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 14px 14px;
  padding: 10px 12px;
  border: 1px solid var(--l-border);
  border-radius: 10px;
  font-size: 13px;
  color: var(--l-text-muted);
}
.chat-input .send {
  color: var(--l-accent);
  font-weight: 600;
}

.desktop {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--l-border);
  background: radial-gradient(ellipse at 30% 30%, #2b5fd9, transparent 60%), radial-gradient(ellipse at 80% 80%, #6a3fd1, transparent 55%), #0f2a6b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 56px;
}

.msgbox {
  width: 100%;
  max-width: 330px;
  background: #f3f3f3;
  color: #1b1b1b;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-family: "Segoe UI", system-ui, sans-serif;
  opacity: 0;
  animation: popIn 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) 2.2s forwards;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.msgbox-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  font-size: 12px;
  background: #fff;
}
.msgbox-bar span {
  opacity: 0.6;
}

.msgbox-body {
  display: flex;
  gap: 12px;
  padding: 16px 14px;
  font-size: 13px;
  line-height: 1.45;
}
.msgbox-body p {
  margin: 0;
}

.msgbox-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #0067c0;
  color: #fff;
  display: grid;
  place-items: center;
  font: 700 14px/1 Georgia, serif;
}

.msgbox-actions {
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px;
  background: #fafafa;
  border-top: 1px solid #e5e5e5;
}
.msgbox-actions span {
  font-size: 12px;
  padding: 5px 22px;
  border: 1px solid #0067c0;
  border-radius: 4px;
  background: #fff;
}

.taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: rgba(20, 24, 36, 0.75);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.taskbar span {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
}
.taskbar span:first-child {
  background: #4ea1ff;
}

@media (max-width: 760px) {
  .chat-split {
    grid-template-columns: 1fr;
  }
}
/* scene: inventory */
.inv-body {
  padding: 18px;
  min-height: 340px;
}

.inv-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--l-accent) 45%, transparent);
  border-radius: 10px;
  color: var(--l-text-muted);
  font-size: 14px;
}

.typed {
  color: var(--l-text);
}
.typed span {
  animation-duration: 0.01s;
}

.caret {
  width: 1.5px;
  height: 16px;
  background: var(--l-accent);
  margin-left: -8px;
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}
.inv-table {
  border: 1px solid var(--l-border);
  border-radius: 10px;
  overflow: hidden;
}

.inv-row {
  display: grid;
  grid-template-columns: 1fr 140px 80px;
  gap: 12px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--l-text-dim);
  border-bottom: 1px solid var(--l-border);
  max-height: 44px;
  line-height: 43px;
  overflow: hidden;
}
.inv-row:last-child {
  border-bottom: 0;
}
.inv-row.head {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--l-text-muted);
  background: var(--l-surface-alt);
}
.inv-row.match > div:first-child {
  color: var(--l-text);
  font-weight: 500;
}
.inv-row.drop {
  animation: collapse 0.45s ease 1.6s forwards;
}
.inv-row.flag {
  animation: flag 0.6s ease 2.1s forwards;
}

@keyframes collapse {
  to {
    max-height: 0;
    opacity: 0;
    border-bottom-width: 0;
  }
}
@keyframes flag {
  to {
    background: rgba(255, 174, 31, 0.1);
  }
}
.chip {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  line-height: 20px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--l-warn);
  background: rgba(255, 174, 31, 0.15);
}

.inv-devices {
  margin-top: 14px;
  font-size: 13px;
  color: var(--l-text-dim);
}
.inv-devices b {
  color: var(--l-text);
  font-weight: 600;
}

@media (max-width: 600px) {
  .inv-row {
    grid-template-columns: 1fr 70px;
  }
  .inv-row > div:nth-child(2) {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .scene *, [style*="--d"] {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .inv-row.drop {
    display: none;
  }
}
/* FAQ */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: 12px;
}
.faq-item h3 {
  margin: 0;
}
.faq-item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--l-text);
}

.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  background: var(--l-text-muted);
  transition: transform 0.2s;
}
.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item.open .faq-icon::after {
  transform: rotate(0deg);
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}
.faq-a > div {
  overflow: hidden;
}
.faq-a p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--l-text-dim);
  font-size: 15px;
  line-height: 1.6;
}

.faq-item.open .faq-a {
  grid-template-rows: 1fr;
}

/* Sections */
section {
  padding: 100px 0;
}

section.alt {
  background: var(--l-bg-alt);
  border-top: 1px solid var(--l-border);
  border-bottom: 1px solid var(--l-border);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--l-accent);
  margin-bottom: 12px;
  font-weight: 600;
}

.section-head h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--l-text);
}

.section-head p {
  color: var(--l-text-dim);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
  }
}
.feature {
  background: var(--l-surface);
  border: 1px solid var(--l-border);
  border-radius: var(--l-radius);
  padding: 28px 24px;
  transition: transform 0.15s, border-color 0.15s;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(93, 135, 255, 0.3);
}
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--l-accent-soft);
  color: var(--l-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature .icon svg {
  width: 22px;
  height: 22px;
}
.feature h3 {
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--l-text);
}
.feature p {
  font-size: 14px;
  color: var(--l-text-dim);
  line-height: 1.5;
  margin: 0;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  position: relative;
  padding-left: 56px;
}

.step .num {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--l-accent), var(--l-accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(93, 135, 255, 0.5);
}

.step h3 {
  margin: 6px 0 8px;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--l-text);
}

.step p {
  margin: 0;
  color: var(--l-text-dim);
  font-size: 14px;
  line-height: 1.5;
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}
.plan {
  background: var(--l-surface);
  border: 2px solid var(--l-border);
  border-radius: var(--l-radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.plan:hover {
  transform: translateY(-3px);
}
.plan.popular {
  border-color: var(--l-accent);
  box-shadow: 0 20px 40px -16px rgba(93, 135, 255, 0.25);
}
.plan .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--l-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 20px;
}
.plan h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--l-text);
}
.plan .price {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 10px 0 4px;
  color: var(--l-text);
}
.plan .price small {
  font-size: 15px;
  font-weight: 500;
  color: var(--l-text-muted);
  margin-left: 2px;
}
.plan .devices {
  font-size: 13px;
  color: var(--l-text-dim);
  margin-bottom: 20px;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}
.plan ul li {
  font-size: 13.5px;
  padding: 6px 0;
  color: var(--l-text-dim);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.4;
}
.plan ul li::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  background: var(--l-success);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" fill="black"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z" fill="black"/></svg>') center/contain no-repeat;
}
.plan .btn {
  width: 100%;
  justify-content: center;
}

/* CTA */
.cta-band {
  background: linear-gradient(135deg, var(--l-accent), var(--l-accent-2));
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(255, 255, 255, 0.15), transparent 50%);
  pointer-events: none;
}
.cta-band h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  color: #fff;
}
.cta-band p {
  margin: 0 0 24px;
  opacity: 0.9;
  font-size: 16px;
}
.cta-band .btn-primary {
  background: #fff;
  color: var(--l-accent) !important;
}
.cta-band .btn-primary:hover {
  background: #f3f6ff;
}

/* Footer */
footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--l-border);
  color: var(--l-text-muted);
  font-size: 13px;
}
footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
footer .f-links {
  display: flex;
  gap: 20px;
}
footer a {
  color: var(--l-text-dim) !important;
}
/* Nav CTA keeps button colours (.nav-links a would otherwise dim it) */
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #fff !important; }

/* Language switcher (stays visible on phones) */
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--l-border); border-radius: 999px; }
.nav-links .lang a { display: inline-block !important; padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.nav-links .lang a[aria-current="true"] { background: var(--l-accent-soft); color: var(--l-text) !important; }
@media (max-width: 760px) { .nav-links { gap: 10px; } .nav-links a.btn { display: inline-flex !important; padding: 8px 12px; font-size: 13px; } }
@media (max-width: 760px) { .topnav .wrap { padding: 0 14px; } .nav-links .lang a { padding: 4px 7px; } }
@media (max-width: 340px) { .brand { font-size: 0; gap: 0; } }

/* Guide pages */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 48px 24px 24px; }
.crumbs { font-size: 13px; color: var(--l-text-muted); margin-bottom: 20px; }
.crumbs a { color: var(--l-text-dim) !important; }
.article h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; }
.article .lede { font-size: 19px; line-height: 1.6; color: var(--l-text-dim); margin: 0 0 12px; }
.article .meta { font-size: 13px; color: var(--l-text-muted); margin-bottom: 32px; }
.article h2 { font-size: 26px; letter-spacing: -0.01em; margin: 44px 0 12px; line-height: 1.25; }
.article h3 { font-size: 19px; margin: 28px 0 8px; }
.article p, .article li { font-size: 16.5px; line-height: 1.75; color: var(--l-text); }
.article p { margin: 0 0 16px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 18px; }
.article li { margin-bottom: 6px; }
.article code { font-family: 'JetBrains Mono', Consolas, monospace; font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--l-surface-alt); }
.article pre { margin: 0 0 20px; padding: 16px 18px; border-radius: 12px; background: #0d1017; color: #d7deea; border: 1px solid var(--l-border); overflow-x: auto; font-size: 13.5px; line-height: 1.6; }
.article pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; }
.article th, .article td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--l-border); vertical-align: top; }
.article th { color: var(--l-text-dim); font-weight: 600; }
.article .note { padding: 14px 16px; border-radius: 12px; background: var(--l-accent-soft); margin: 0 0 20px; font-size: 15.5px; line-height: 1.65; }
.article .tldr { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--l-border); background: var(--l-surface); margin: 0 0 28px; }
.article .tldr p { margin: 0; }
.article-cta { margin: 48px 0 8px; padding: 28px; border-radius: var(--l-radius); background: linear-gradient(135deg, rgba(93,135,255,.18), rgba(73,190,255,.10)); border: 1px solid var(--l-border); }
.article-cta h2 { margin: 0 0 8px; font-size: 22px; }
.article-cta p { margin: 0 0 16px; color: var(--l-text-dim); }
.related { max-width: 780px; margin: 0 auto; padding: 8px 24px 64px; }
.related h2 { font-size: 18px; margin: 32px 0 14px; }

/* Guide cards (guide index + related + home section) */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .guide-grid, .guide-grid.two { grid-template-columns: 1fr; } }
.guide-card { display: block; padding: 22px; border-radius: var(--l-radius); background: var(--l-surface); border: 1px solid var(--l-border); color: var(--l-text) !important; transition: border-color .2s, transform .2s; }
.guide-card:hover { border-color: var(--l-accent); transform: translateY(-2px); text-decoration: none !important; }
.guide-card .tag { font-size: 12px; font-weight: 600; color: var(--l-accent); text-transform: uppercase; letter-spacing: .06em; }
.guide-card h3 { margin: 8px 0 8px; font-size: 18px; line-height: 1.35; }
.guide-card p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--l-text-dim); }
.guides-index { max-width: 1180px; margin: 0 auto; padding: 56px 24px 72px; }

/* ---------------------------------------------------------------------------------------------------
   Designed product screens (hero, showcase, new demo scenes). Drawn in HTML/CSS so they stay sharp,
   follow the light/dark theme and animate like the demo; text mirrors the (English) panel UI.
--------------------------------------------------------------------------------------------------- */
.m-screen { font-size: 13px; color: var(--l-text); text-align: left; }
.m-pad { padding: 18px; }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.m-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.m-online { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--l-success); }
.m-online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--l-success); box-shadow: 0 0 0 4px rgba(19, 222, 185, .15); }
.m-muted { color: var(--l-text-muted); font-size: 12px; }
.m-card { background: var(--l-surface-alt); border: 1px solid var(--l-border); border-radius: 12px; padding: 14px; }
.m-card h4 { margin: 0 0 10px; font-size: 12px; font-weight: 600; color: var(--l-text-dim); text-transform: uppercase; letter-spacing: .05em; }
.m-grid { display: grid; gap: 12px; }
.m-grid > * { min-width: 0; }
.m-grid.c2 { grid-template-columns: 1fr 1fr; }
.m-grid.c3 { grid-template-columns: repeat(3, 1fr); }
.m-grid.c4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .m-grid.c3, .m-grid.c4 { grid-template-columns: 1fr 1fr; } .m-grid.c2.stack { grid-template-columns: 1fr; } }

/* power buttons */
.m-power { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--l-text-dim); }
.m-power i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1.5px solid currentColor; font-style: normal; }
.m-power svg { width: 18px; height: 18px; }
.m-power.lock { color: #5d87ff; } .m-power.off { color: #fa896b; } .m-power.re { color: #13deb9; } .m-power.down { color: var(--l-text-dim); }

/* gauge + bars */
.m-gauge { position: relative; width: 104px; height: 104px; margin: 4px auto 0; }
.m-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.m-gauge circle { fill: none; stroke-width: 10; }
.m-gauge .track { stroke: var(--l-border); }
.m-gauge .val { stroke: var(--l-accent); stroke-linecap: round; stroke-dasharray: 226; stroke-dashoffset: 226; animation: gauge 1.4s ease .3s forwards; }
@keyframes gauge { to { stroke-dashoffset: var(--off, 150); } }
.m-gauge b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.m-bar { height: 8px; border-radius: 99px; background: var(--l-border); overflow: hidden; margin: 8px 0 6px; }
.m-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--l-accent), var(--l-accent-2)); animation: grow 1.2s ease .4s forwards; }
.m-bar.warn span { background: linear-gradient(90deg, #ffae1f, #fa896b); }
@keyframes grow { to { width: var(--w); } }
.m-big { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }

/* screenshot card */
.m-shot { border-radius: 10px; overflow: hidden; border: 1px solid var(--l-border); aspect-ratio: 16 / 9.5; position: relative;
  background: radial-gradient(ellipse at 25% 20%, #3a6ff0, transparent 60%), radial-gradient(ellipse at 85% 90%, #7a4be0, transparent 55%), #12306f; }
.m-shot .app { position: absolute; left: 9%; top: 11%; width: 64%; height: 66%; border-radius: 6px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35); overflow: hidden; }
.m-shot .app .t { height: 12%; background: #1d6f42; }
.m-shot .app .rows { padding: 6% 6%; display: grid; gap: 7%; height: 88%; align-content: start; }
.m-shot .app .rows span { height: 7px; border-radius: 3px; background: #e3e7ee; }
.m-shot .app .rows span:nth-child(3n) { width: 70%; } .m-shot .app .rows span:nth-child(2) { background: #c8e6d3; }
.m-shot .side { position: absolute; right: 7%; top: 18%; width: 18%; height: 40%; border-radius: 6px; background: rgba(255,255,255,.85); }
.m-shot .tb { position: absolute; left: 0; right: 0; bottom: 0; height: 9%; background: rgba(10, 18, 40, .7); }
.m-shot-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--l-text-dim); }
.m-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; background: var(--l-accent); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.m-btn.ghost { background: transparent; color: var(--l-accent); padding: 0; }
.m-btn svg { width: 13px; height: 13px; }

/* update tiles + list */
.m-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.m-tile { border-radius: 10px; padding: 10px 6px; text-align: center; font-size: 11px; color: var(--l-text-dim); background: rgba(19, 222, 185, .1); }
.m-tile b { display: block; font-size: 20px; color: var(--l-text); margin-bottom: 2px; }
.m-tile.amber { background: rgba(255, 174, 31, .14); } .m-tile.red { background: rgba(250, 137, 107, .14); }
.m-upd { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid var(--l-border); font-size: 12px; }
.m-upd .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--l-accent-soft); color: var(--l-accent); white-space: nowrap; }
.m-tag.sec { background: rgba(250, 137, 107, .16); color: #fa896b; }
.m-tag.ok { background: rgba(19, 222, 185, .14); color: #0fb597; }
.m-tag.warn { background: rgba(255, 174, 31, .18); color: #d98a00; }

/* files */
.m-crumbs { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--l-text-dim); margin-bottom: 14px; }
.m-crumbs b { color: var(--l-text); font-weight: 600; }
.m-files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.m-file { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 10px; border: 1px solid var(--l-border); background: var(--l-surface-alt); font-size: 11.5px; text-align: center; color: var(--l-text-dim); }
.m-file svg { width: 30px; height: 30px; }
.m-file.sel { border-color: var(--l-accent); background: var(--l-accent-soft); color: var(--l-text); }
@media (max-width: 640px) { .m-files { grid-template-columns: repeat(3, 1fr); } }

/* key/value rows */
.m-kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--l-border); font-size: 12.5px; }
.m-kv:first-of-type { border-top: 0; }
.m-kv span { color: var(--l-text-muted); } .m-kv b { font-weight: 600; font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.m-signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.m-signal i { width: 4px; border-radius: 1px; background: var(--l-success); } .m-signal i:nth-child(1) { height: 30%; } .m-signal i:nth-child(2) { height: 55%; } .m-signal i:nth-child(3) { height: 80%; } .m-signal i:nth-child(4) { height: 100%; opacity: .3; }

/* map */
.m-map { position: relative; height: 260px; border-radius: 10px; overflow: hidden; border: 1px solid var(--l-border);
  background-color: var(--l-surface-alt); background-image: radial-gradient(var(--l-border) 1.2px, transparent 1.2px); background-size: 14px 14px; }
.m-map svg.land { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-map svg.land path { fill: var(--l-accent-soft); stroke: rgba(93, 135, 255, .35); stroke-width: 1; }
.m-pin { position: absolute; transform: translate(-50%, -100%); }
.m-pin i { display: block; width: 14px; height: 14px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--l-accent); box-shadow: 0 4px 10px rgba(0,0,0,.25); }
.m-pin.away i { background: #fa896b; }
.m-pin em { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); white-space: nowrap; font-style: normal; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 6px; background: var(--l-surface); border: 1px solid var(--l-border); box-shadow: 0 6px 16px rgba(0,0,0,.18); }

/* dashboard ring */
.m-ring { --p: 70; width: 92px; height: 92px; border-radius: 50%; margin: 2px auto 8px; display: grid; place-items: center;
  background: conic-gradient(var(--l-accent) calc(var(--p) * 1%), var(--l-border) 0); }
.m-ring b { width: 70px; height: 70px; border-radius: 50%; background: var(--l-surface-alt); display: grid; place-items: center; font-size: 17px; font-weight: 800; }
.m-req { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--l-border); font-size: 12px; }

/* showcase frames hold a designed screen instead of an image */
.show-img.m-frame { background: var(--l-surface); }
.show-img.m-frame .win-bar { border-radius: 0; }

/* demo scene: screenshot */
.shot-split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; }
@media (max-width: 760px) { .shot-split { grid-template-columns: 1fr; } }
.shot-panel .m-btn { animation: press .5s ease .4s both; }
.capturing { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 12.5px; color: var(--l-text-dim); opacity: 0; animation: blipIn .3s ease .7s forwards, blipOut .3s ease 1.9s forwards; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--l-border); border-top-color: var(--l-accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blipIn { to { opacity: 1; } }
@keyframes blipOut { to { opacity: 0; height: 0; margin: 0; } }
.shot-result .m-shot { opacity: 0; transform: scale(.97); animation: shotIn .5s cubic-bezier(.2,.9,.3,1.1) 2.1s forwards; }
@keyframes shotIn { to { opacity: 1; transform: none; } }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash .5s ease 2.1s; pointer-events: none; }
@keyframes flash { 30% { opacity: .7; } }

/* demo scene: updates */
.upd-table { margin: 0 14px 14px; border: 1px solid var(--l-border); border-radius: 10px; overflow: hidden; font-size: 12.5px; }
.upd-row { display: grid; grid-template-columns: 1.6fr .8fr .8fr 1.2fr; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--l-border); align-items: center; }
.upd-row:first-child { border-top: 0; }
.upd-row.head { background: var(--l-surface-alt); color: var(--l-text-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.upd-row b { font-weight: 600; }
.upd-row.hot { animation: reveal .4s ease var(--d) forwards, hot .6s ease 2.6s forwards; }
@keyframes hot { to { background: rgba(250, 137, 107, .10); box-shadow: inset 3px 0 0 #fa896b; } }
.upd-sum { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px; }
@media (max-width: 600px) { .upd-row { grid-template-columns: 1.4fr .7fr 1fr; } .upd-row > :nth-child(2) { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .m-gauge .val { animation: none; stroke-dashoffset: var(--off, 150); }
  .m-bar span { animation: none; width: var(--w); }
  .capturing { display: none; }
  .shot-result .m-shot { animation: none; opacity: 1; transform: none; }
  .flash, .upd-row.hot { animation: none; }
}

/* demo tabs: five scenes */
.demo-tabs { grid-template-columns: repeat(5, 1fr); }
.demo-tab { font-size: 13px; }
@media (max-width: 1000px) { .demo-tabs { display: flex; overflow-x: auto; scrollbar-width: none; } .demo-tab { flex: 0 0 auto; } .demo-tabs::-webkit-scrollbar { display: none; } }
