:root {
  --ink: #101820;
  --ink-2: #273241;
  --muted: #667085;
  --line: #d9dee7;
  --line-soft: #edf1f5;
  --panel: #ffffff;
  --soft: #f4f7fa;
  --teal: #0f766e;
  --teal-dark: #0b5f59;
  --blue: #2563eb;
  --amber: #f59e0b;
  --green: #16a34a;
  --red: #dc2626;
  --steel: #44546a;
  --navy: #0f172a;
  --shadow: 0 24px 70px rgba(16, 24, 32, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

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

button,
input,
textarea {
  font: inherit;
}

.muted {
  color: var(--muted);
}

.brand,
.landing-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img,
.landing-brand img {
  display: block;
  width: 168px;
  height: auto;
}

.brand span,
.landing-brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand-light {
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(217, 222, 231, .56);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .2);
}

.brand-light img {
  width: 176px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.button.primary,
button.primary {
  background: var(--teal);
  color: #fff;
}

.button.primary:hover,
button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.landing-page {
  background: var(--soft);
}

.landing-shell {
  min-height: 720px;
  color: var(--ink);
  background: var(--soft);
}

.landing-nav,
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 80px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(10px);
}

.landing-links,
.top-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
}

.nav-login {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  font-weight: 750;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 600px);
  gap: 64px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 68px 40px 72px;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.dashboard-eyebrow {
  margin: 0 0 18px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

.hero-copy h1 {
  margin-bottom: 24px;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 630px;
  margin-bottom: 28px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.port-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.port-strip span,
.status-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--steel);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.port-strip span:first-child,
.status-pill.blue {
  background: var(--blue);
}

.port-strip span:last-child,
.status-pill {
  background: var(--teal);
}

.topology-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 1fr);
  gap: 0;
  align-items: center;
  min-height: 380px;
  padding: 38px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow);
}

.topology-card p {
  position: absolute;
  right: 38px;
  bottom: 32px;
  left: 38px;
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.55;
}

.device-card {
  min-width: 0;
  min-height: 170px;
  padding: 22px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #172033;
}

.plc-device {
  min-height: 198px;
}

.hub-device {
  background: #132f2b;
}

.device-title {
  display: block;
  margin-bottom: 24px;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.device-line {
  display: block;
  width: 78px;
  height: 8px;
  margin-bottom: 18px;
  border-radius: 4px;
  background: #44546a;
}

.device-ports {
  display: flex;
  gap: 10px;
}

.device-ports i {
  width: 12px;
  height: 44px;
  border-radius: 3px;
  background: #44546a;
}

.device-ports i:nth-child(2) {
  background: var(--amber);
}

.tunnel-line {
  height: 3px;
  background: var(--teal);
}

.metrics-band,
.section,
.landing-cta {
  background: var(--soft);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 86px;
}

.metric-card {
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.1;
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-card small {
  display: block;
  margin-top: 10px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 40px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section h2,
.landing-cta h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 36px;
  line-height: 1.15;
}

.section-heading p,
.security-layout p,
.landing-cta p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.route-showcase {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  min-height: 520px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(244, 247, 250, .98) 58%, #e8f1ed 100%);
  box-shadow: 0 30px 90px rgba(16, 24, 32, .09);
}

.route-showcase::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(15, 118, 110, .08);
  border-radius: 12px;
  pointer-events: none;
}

.route-sky,
.route-ground,
.route-line {
  position: absolute;
  pointer-events: none;
}

.route-sky {
  inset: 0;
}

.route-cloud {
  position: absolute;
  width: 112px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 36px rgba(16, 24, 32, .06);
}

.route-cloud::before,
.route-cloud::after {
  content: "";
  position: absolute;
  bottom: 12px;
  border-radius: 50%;
  background: inherit;
}

.route-cloud::before {
  left: 22px;
  width: 38px;
  height: 38px;
}

.route-cloud::after {
  right: 22px;
  width: 48px;
  height: 48px;
}

.cloud-a {
  top: 48px;
  left: 10%;
  animation: cloudDrift 14s ease-in-out infinite;
}

.cloud-b {
  top: 74px;
  right: 13%;
  transform: scale(.78);
  animation: cloudDrift 18s ease-in-out infinite reverse;
}

.route-line {
  top: 166px;
  right: 17%;
  left: 17%;
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, .12), rgba(15, 118, 110, .72), rgba(37, 99, 235, .72), rgba(15, 118, 110, .12));
  box-shadow: 0 0 0 8px rgba(15, 118, 110, .07);
}

.route-pulse {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 8px rgba(15, 118, 110, .16);
  transform: translate(-50%, -50%);
  animation: routePulse 4.8s linear infinite;
}

.pulse-two {
  animation-delay: 1.6s;
  background: var(--amber);
  box-shadow: 0 0 0 8px rgba(245, 158, 11, .18);
}

.pulse-three {
  animation-delay: 3.2s;
  background: var(--blue);
  box-shadow: 0 0 0 8px rgba(37, 99, 235, .16);
}

.route-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 240px minmax(190px, auto);
  gap: 20px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(217, 222, 231, .72);
  border-radius: 12px;
  background: rgba(255, 255, 255, .76);
  box-shadow: 0 18px 50px rgba(16, 24, 32, .08);
  outline: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.route-stage:hover,
.route-stage:focus-visible {
  border-color: rgba(15, 118, 110, .36);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 26px 70px rgba(16, 24, 32, .14);
  transform: translateY(-6px);
}

.route-illustration {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 240px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 78%, rgba(15, 118, 110, .14), transparent 38%),
    linear-gradient(180deg, #eaf3f5 0%, #eef5ee 100%);
  overflow: hidden;
}

.route-illustration::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 28px;
  left: 24px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 24, 32, .12);
  filter: blur(10px);
}

.route-copy {
  padding: 0 6px 6px;
}

.route-copy span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.route-stage-plclink .route-copy span {
  background: rgba(245, 158, 11, .13);
  color: #a86405;
}

.route-stage-engineer .route-copy span {
  background: rgba(37, 99, 235, .1);
  color: var(--blue);
}

.route-copy strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.22;
}

.route-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.factory-scene,
.plclink-scene,
.engineer-scene {
  position: relative;
  z-index: 1;
  width: 230px;
  height: 190px;
}

.factory-building {
  position: absolute;
  right: 28px;
  bottom: 26px;
  width: 126px;
  height: 82px;
  border: 2px solid #334155;
  border-radius: 10px;
  background: #172033;
  box-shadow: inset 0 -10px 0 rgba(255, 255, 255, .04);
}

.factory-roof {
  position: absolute;
  right: 24px;
  bottom: 104px;
  width: 134px;
  height: 38px;
  background: var(--teal);
  clip-path: polygon(0 100%, 18% 28%, 36% 100%, 54% 28%, 72% 100%, 100% 28%, 100% 100%);
}

.factory-window {
  position: absolute;
  bottom: 56px;
  width: 20px;
  height: 24px;
  border-radius: 5px;
  background: var(--amber);
}

.window-a {
  right: 112px;
}

.window-b {
  right: 78px;
  background: #64748b;
}

.factory-stack {
  position: absolute;
  right: 172px;
  bottom: 50px;
  width: 34px;
  height: 112px;
  border: 2px solid #334155;
  border-radius: 8px 8px 4px 4px;
  background: #1e293b;
}

.factory-smoke {
  position: absolute;
  right: 174px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  animation: smokeFloat 3.8s ease-in-out infinite;
}

.smoke-a {
  top: 18px;
  width: 34px;
  height: 34px;
}

.smoke-b {
  top: 4px;
  right: 146px;
  width: 46px;
  height: 46px;
  animation-delay: 1.2s;
}

.plc-box {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: flex;
  gap: 7px;
  width: 74px;
  height: 94px;
  padding: 16px 12px;
  border: 2px solid #334155;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 30px rgba(16, 24, 32, .18);
}

.plc-box i {
  flex: 1;
  border-radius: 5px;
  background: #94a3b8;
}

.plc-box i:nth-child(2) {
  background: var(--amber);
}

.plclink-scene {
  display: grid;
  place-items: center;
}

.plclink-core {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border: 3px solid rgba(255, 255, 255, .74);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, .92), rgba(11, 95, 89, .96)),
    var(--teal);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  box-shadow: 0 22px 50px rgba(15, 118, 110, .32);
}

.orbit {
  position: absolute;
  inset: 28px;
  border: 2px solid rgba(15, 118, 110, .22);
  border-radius: 50%;
  animation: orbitSpin 8s linear infinite;
}

.orbit-b {
  inset: 6px;
  border-color: rgba(37, 99, 235, .18);
  animation-duration: 11s;
  animation-direction: reverse;
}

.orbit-dot {
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 8px 16px rgba(16, 24, 32, .18);
}

.dot-a {
  top: 30px;
  right: 52px;
  animation: bob 2.8s ease-in-out infinite;
}

.dot-b {
  right: 26px;
  bottom: 44px;
  background: var(--blue);
  animation: bob 3.2s ease-in-out infinite reverse;
}

.engineer-scene {
  width: 250px;
}

.desk {
  position: absolute;
  right: 24px;
  bottom: 28px;
  left: 24px;
  height: 16px;
  border-radius: 999px;
  background: #334155;
}

.laptop {
  position: absolute;
  right: 26px;
  bottom: 44px;
  width: 122px;
  height: 78px;
  border: 3px solid #334155;
  border-radius: 10px 10px 5px 5px;
  background: #172033;
}

.laptop i {
  position: absolute;
  inset: 16px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, var(--teal) 0 42%, transparent 42% 52%, var(--blue) 52% 100%);
  opacity: .95;
}

.engineer-head {
  position: absolute;
  left: 62px;
  bottom: 108px;
  width: 48px;
  height: 48px;
  border: 3px solid #334155;
  border-radius: 50%;
  background: #f3c9a6;
}

.engineer-body {
  position: absolute;
  left: 42px;
  bottom: 42px;
  width: 88px;
  height: 78px;
  border: 3px solid #334155;
  border-radius: 28px 28px 12px 12px;
  background: var(--blue);
}

.check-badge {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 14px 28px rgba(22, 163, 74, .24);
}

.check-badge::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  width: 12px;
  height: 18px;
  border-right: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(42deg);
}

.route-ground {
  right: 34px;
  bottom: 18px;
  left: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.route-ground span {
  height: 18px;
  border-radius: 50%;
  background: rgba(15, 118, 110, .12);
  filter: blur(10px);
}

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 56px;
  align-items: start;
}

.security-list {
  display: grid;
  gap: 12px;
}

.security-list span {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-2);
  font-weight: 750;
}

.landing-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto 80px;
  padding: 34px 40px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}

.landing-cta h2 {
  color: #fff;
  font-size: 28px;
}

.landing-cta p {
  margin: 0;
  color: #cbd5e1;
}

.pricing-page .app-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.pricing-hero,
.pricing-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 40px;
}

.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 52px;
  align-items: center;
}

.pricing-hero-copy {
  max-width: 780px;
}

.pricing-hero h1 {
  margin-bottom: 22px;
  color: var(--ink);
  font-size: 52px;
  line-height: 1.08;
}

.pricing-hero p,
.pricing-heading p,
.calculator-copy p,
.billing-panel p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.pricing-wallet-card {
  position: relative;
  min-height: 280px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, .22);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, .95), rgba(16, 24, 32, .98)),
    var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
}

.pricing-wallet-card::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 32px solid rgba(245, 158, 11, .72);
  border-radius: 50%;
}

.pricing-wallet-card::after {
  content: "";
  position: absolute;
  top: 34px;
  right: 34px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--amber);
  box-shadow: 0 18px 42px rgba(245, 158, 11, .34);
}

.wallet-label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  margin-bottom: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #d9f2ec;
  font-size: 12px;
  font-weight: 850;
}

.pricing-wallet-card strong {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 260px;
  margin-bottom: 16px;
  font-size: 34px;
  line-height: 1.12;
}

.pricing-wallet-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #d9dee7;
}

.pricing-heading {
  max-width: 820px;
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(16, 24, 32, .07);
}

.pricing-card.featured {
  border-color: rgba(15, 118, 110, .35);
  box-shadow: 0 28px 78px rgba(15, 118, 110, .13);
}

.pricing-card.scada {
  border-color: rgba(245, 158, 11, .42);
}

.plan-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 20px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
}

.pricing-card.scada .plan-kicker {
  background: rgba(245, 158, 11, .14);
  color: #a86405;
}

.pricing-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.15;
}

.pricing-card-head p {
  min-height: 78px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-soft);
}

.plan-price strong {
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
}

.plan-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.plan-features {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.45;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--teal);
}

.plan-features li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 5px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(42deg);
}

.calculator-section {
  padding-top: 36px;
}

.calculator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 560px);
  gap: 56px;
  align-items: start;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, #fff 0%, rgba(244, 247, 250, .92) 100%);
  box-shadow: 0 28px 76px rgba(16, 24, 32, .08);
}

.calculator-copy h2,
.billing-panel h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 36px;
  line-height: 1.15;
}

.mix-example {
  display: grid;
  gap: 8px;
  max-width: 520px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 10px;
  background: rgba(15, 118, 110, .07);
}

.mix-example strong {
  color: var(--ink);
  font-size: 15px;
}

.mix-example span {
  color: var(--teal);
  font-size: 14px;
  font-weight: 850;
}

.pricing-calculator {
  display: grid;
  gap: 14px;
}

.calculator-row,
.balance-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.calculator-row strong,
.balance-field span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 16px;
}

.calculator-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.quantity-control {
  display: grid;
  grid-template-columns: 40px 72px 40px;
  gap: 8px;
  align-items: center;
}

.quantity-control button {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.quantity-control input,
.balance-field input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-weight: 850;
  text-align: center;
}

.balance-field input {
  max-width: 160px;
  padding: 0 12px;
  text-align: right;
}

.calculator-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.calculator-result div {
  min-height: 112px;
  padding: 18px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}

.calculator-result div:nth-child(2) {
  background: var(--teal);
}

.calculator-result div:nth-child(3) {
  background: var(--steel);
}

.calculator-result div:nth-child(4) {
  background: #1e293b;
}

.calculator-result span {
  display: block;
  margin-bottom: 12px;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
}

.calculator-result strong {
  display: block;
  color: #fff;
  font-size: 26px;
  line-height: 1.12;
}

.billing-section {
  padding-top: 36px;
}

.billing-panel {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 44px;
  padding: 34px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.billing-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.billing-steps article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--soft);
}

.billing-steps span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
}

.billing-steps strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 18px;
}

.billing-steps p {
  margin: 0;
  font-size: 14px;
}

.pricing-cta .landing-cta-inner {
  margin-bottom: 80px;
}

.app-header {
  color: var(--ink);
}

.app-main {
  max-width: 1120px;
  margin: 24px auto;
  padding: 0 16px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(420px, 620px) minmax(360px, 1fr);
  min-height: calc(100vh - 76px);
  background: var(--soft);
}

.auth-aside {
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: 64px 72px;
  background: var(--ink);
  color: #fff;
}

.auth-aside h1 {
  max-width: 500px;
  margin-bottom: 24px;
  font-size: 43px;
  line-height: 1.16;
}

.auth-aside p:not(.eyebrow) {
  max-width: 460px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.62;
}

.auth-topology {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 470px;
  margin-top: 54px;
  padding: 18px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0f172a;
}

.auth-topology span {
  min-width: 0;
  padding: 12px;
  border-radius: 6px;
  background: #172033;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.auth-topology i {
  flex: 1 0 24px;
  height: 3px;
  background: var(--teal);
}

.form-page {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 76px);
  padding: 32px;
}

.form-page-dashboard {
  min-height: auto;
  place-items: start center;
}

.form-panel,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow);
}

.form-panel {
  width: min(100%, 440px);
  padding: 36px;
}

.auth-card {
  align-self: center;
  justify-self: center;
}

.form-panel h1,
.panel h1,
.panel h2 {
  margin-bottom: 10px;
  color: var(--ink);
}

.form-panel p {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.5;
}

label {
  display: block;
  margin: 14px 0 7px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #bcc7d4;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(15, 118, 110, .14);
}

textarea {
  min-height: 110px;
}

.form-panel button {
  width: 100%;
  margin-top: 18px;
}

.auth-switch {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.auth-switch a {
  color: var(--teal);
  font-weight: 800;
}

.helptext {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.errorlist {
  margin: 8px 0;
  padding: 0;
  color: var(--red);
  font-size: 13px;
  list-style: none;
}

.app-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  position: sticky;
  top: 0;
  flex-direction: column;
  min-height: 100vh;
  padding: 30px 20px;
  background: var(--ink);
  color: #cbd5e1;
}

.side-nav {
  display: grid;
  gap: 8px;
  margin-top: 46px;
}

.side-nav a,
.logout-form button {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 22px;
  border-radius: 6px;
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 750;
}

.side-nav a.active,
.side-nav a:hover {
  background: #1e293b;
  color: #fff;
}

.logout-form {
  margin: auto 0 0;
}

.logout-form button {
  width: 100%;
  border: 0;
  background: transparent;
  justify-content: flex-start;
}

.app-main-dashboard {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 48px;
}

.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 32px;
}

.dashboard-head > div {
  min-width: 0;
}

.dashboard-head h1 {
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dashboard-head p:not(.dashboard-eyebrow) {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.billing-panel-dashboard {
  margin-bottom: 32px;
}

.billing-dashboard-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: stretch;
}

.billing-dashboard-main h2 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: 28px;
  line-height: 1.2;
}

.billing-dashboard-main p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.billing-balance-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 210px;
  padding: 22px;
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(15, 118, 110, .96), rgba(16, 24, 32, .98));
  color: #fff;
}

.billing-balance-card span,
.billing-balance-card small {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 800;
}

.billing-balance-card strong {
  color: #fff;
  font-size: 36px;
  line-height: 1.1;
}

.billing-balance-card .button {
  width: 100%;
  margin-top: 12px;
  background: #fff;
  color: var(--teal);
}

.billing-warning {
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, .34);
  border-radius: 8px;
  background: rgba(245, 158, 11, .1);
  color: #8a5304;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.5;
}

.billing-warning.compact {
  margin-top: 18px;
  font-weight: 650;
}

.billing-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.billing-summary-grid div {
  min-height: 94px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--soft);
}

.billing-summary-grid span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.billing-summary-grid strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.panel {
  min-width: 0;
  padding: 28px;
  box-shadow: none;
}

.panel + .panel {
  margin-top: 28px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.panel-head h2,
.activity-panel h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.panel-head p {
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  padding: 17px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

td {
  color: var(--ink-2);
  font-size: 14px;
}

td code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.status-badge.online {
  background: var(--green);
}

.status-badge.offline {
  background: var(--steel);
}

.table-action {
  color: var(--teal);
  font-weight: 800;
  white-space: nowrap;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.tariff-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15, 118, 110, .1);
  color: var(--teal);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.table-subtext {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.empty-state {
  display: grid;
  gap: 6px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong {
  color: var(--ink);
}

.activity-list {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 160px;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.activity-item span,
.activity-item em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.billing-top-up-page {
  grid-template-columns: minmax(320px, 520px) minmax(360px, 460px);
  gap: 48px;
  align-items: center;
  justify-content: center;
}

.billing-top-up-page .form-copy h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 42px;
  line-height: 1.12;
}

.billing-top-up-page .form-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.top-up-status {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(15, 118, 110, .2);
  border-radius: 10px;
  background: #fff;
}

.top-up-status span,
.top-up-status small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.top-up-status strong {
  color: var(--ink);
  font-size: 34px;
  line-height: 1.1;
}

.message-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.message {
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(220, 38, 38, .08);
  color: var(--red);
  font-size: 13px;
  font-weight: 750;
}

.message.success {
  background: rgba(15, 118, 110, .1);
  color: var(--teal);
}

.team-add-panel .inline-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px auto;
  gap: 16px;
  align-items: end;
}

.team-add-panel .inline-form p {
  margin: 0;
}

.team-add-panel .inline-form button {
  min-width: 190px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(200px, .8fr) minmax(260px, 1fr);
  gap: 36px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 40px;
  color: var(--ink-2);
}

.site-footer strong,
.site-footer span {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
}

.site-footer p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.5;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-weight: 700;
}

.legal-page {
  padding: 58px 40px 76px;
}

.legal-document {
  max-width: 920px;
  margin: 0 auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-document h1 {
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1.12;
}

.legal-document h2 {
  margin: 30px 0 12px;
  font-size: 22px;
}

.legal-document p,
.legal-document li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.legal-document a {
  color: var(--teal);
  font-weight: 700;
}

.legal-note {
  padding: 14px 16px;
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 8px;
  background: rgba(245, 158, 11, .08);
}

@keyframes routePulse {
  0% {
    left: 0%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.7);
  }
  10% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes cloudDrift {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(26px);
  }
}

@keyframes smokeFloat {
  0%, 100% {
    opacity: .58;
    transform: translateY(0) scale(.86);
  }
  50% {
    opacity: .94;
    transform: translateY(-12px) scale(1.04);
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 1100px) {
  .landing-nav,
  .app-header {
    padding: 0 28px;
  }

  .landing-hero {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 64px 28px 70px;
  }

  .topology-card {
    min-height: 360px;
  }

  .metrics-grid,
  .dashboard-metrics,
  .route-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-showcase {
    min-height: auto;
  }

  .route-stage-engineer {
    grid-column: 1 / -1;
    max-width: 520px;
    justify-self: center;
  }

  .route-line {
    display: none;
  }

  .security-layout,
  .auth-layout,
  .pricing-hero,
  .calculator-layout,
  .billing-panel,
  .billing-dashboard-main,
  .billing-top-up-page {
    grid-template-columns: 1fr;
  }

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

  .pricing-card.scada {
    grid-column: 1 / -1;
  }

  .billing-steps {
    grid-template-columns: 1fr;
  }

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

  .auth-aside {
    min-height: auto;
  }
}

@media (max-width: 780px) {
  .landing-nav,
  .app-header,
  .landing-links,
  .top-nav,
  .dashboard-head,
  .landing-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-links,
  .top-nav {
    gap: 14px;
  }

  .nav-login {
    padding-left: 0;
    border-left: 0;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .topology-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    padding: 24px;
  }

  .topology-card p {
    position: static;
    margin-top: 8px;
  }

  .tunnel-line {
    width: 3px;
    height: 32px;
    justify-self: center;
  }

  .metrics-grid,
  .dashboard-metrics,
  .route-showcase,
  .billing-summary-grid {
    grid-template-columns: 1fr;
  }

  .route-showcase {
    padding: 20px;
  }

  .route-stage {
    grid-template-rows: 210px auto;
    padding: 14px;
  }

  .route-stage-engineer {
    grid-column: auto;
    max-width: none;
  }

  .route-ground {
    display: none;
  }

  .section-inner,
  .metrics-grid,
  .pricing-hero,
  .pricing-section {
    padding-right: 20px;
    padding-left: 20px;
  }

  .pricing-hero {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .pricing-hero h1 {
    font-size: 38px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card,
  .pricing-card.scada {
    grid-column: auto;
  }

  .pricing-card {
    min-height: auto;
    padding: 22px;
  }

  .pricing-card-head p {
    min-height: 0;
  }

  .calculator-layout,
  .billing-panel {
    padding: 22px;
  }

  .calculator-copy h2,
  .billing-panel h2 {
    font-size: 30px;
  }

  .calculator-row,
  .balance-field {
    grid-template-columns: 1fr;
  }

  .quantity-control {
    grid-template-columns: 44px minmax(72px, 1fr) 44px;
  }

  .quantity-control button {
    width: 44px;
  }

  .balance-field input {
    max-width: none;
    text-align: center;
  }

  .calculator-result {
    grid-template-columns: 1fr;
  }

  .landing-cta-inner {
    margin-right: 20px;
    margin-left: 20px;
    padding: 28px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
  }

  .logout-form {
    margin-top: 20px;
  }

  .app-main-dashboard {
    padding: 28px 18px;
  }

  .dashboard-head h1 {
    font-size: 30px;
  }

  .dashboard-head p:not(.dashboard-eyebrow) {
    overflow-wrap: anywhere;
  }

  .auth-aside,
  .form-page {
    padding: 32px 20px;
  }

  .billing-top-up-page {
    place-items: start stretch;
    gap: 26px;
  }

  .billing-top-up-page .form-copy h1 {
    font-size: 34px;
  }

  .auth-aside h1 {
    font-size: 32px;
  }

  .activity-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .team-add-panel .inline-form {
    grid-template-columns: 1fr;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    padding: 28px 20px;
  }

  .legal-page {
    padding: 32px 20px 48px;
  }

  .legal-document {
    padding: 26px 20px;
  }

  .legal-document h1 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .landing-nav,
  .app-header {
    padding: 16px 20px;
  }

  .landing-hero {
    padding: 42px 20px 54px;
  }

  .hero-actions,
  .hero-actions .button,
  .landing-cta .button {
    width: 100%;
  }

  .hero-actions .button,
  .landing-cta .button {
    justify-content: center;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .form-panel {
    padding: 26px 20px;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }
}
