/* Anvicom Connect public homepage — brand styling lifted from the user manual.
   Palette: --brand:#09A5D3 (cyan), with cyan gradients, dot-grid hero, gradient
   header tables, and step-list numbered circles to match the manual look. */

:root {
  --brand: #09A5D3;
  --brand-dark: #0785aa;
  --brand-light: #2bbde8;
  --brand-tint: #e6f7fd;

  --bg: #ffffff;
  --surface-2: #f4f6f9;
  --border: #e2e8f0;

  --text: #1e293b;
  --text-muted: #64748b;
  --text-dim: #94a3b8;

  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;

  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font: 15.5px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff; color: var(--text);
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--text-muted); }
.small { font-size: 12.5px; }

a { color: var(--brand-dark); text-decoration: none; transition: color .12s; }
a:hover { color: var(--brand); }

/* ─── Header ─────────────────────────────────────────── */
.site-header {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  box-shadow: var(--shadow-sm);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 800; letter-spacing: -.2px;
  color: var(--text);
}
.brand:hover { color: var(--text); }
/* Logo SVG includes "ANVICOM CONNECT" wordmark — render large enough to read
   without an adjacent text label (which would duplicate + overlap). */
.brand-mark-svg { height: 32px; width: auto; flex: 0 0 auto; display: block; }
.brand-by {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: 8px;
  border-left: 1px solid var(--border);
  margin-left: 6px;
}
.anviteq-logo { height: 28px; width: auto; vertical-align: middle; margin-bottom: 6px; }
.footer-logo { height: 18px; width: auto; vertical-align: middle; margin-left: 4px; }

/* Single-maker contact card */
.contact-single { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.maker-card {
  text-align: center;
  padding: 40px 32px;
  background: linear-gradient(135deg, #fff 0%, var(--brand-tint) 100%);
}
.maker-card .anviteq-logo-large { height: 56px; width: auto; margin-bottom: 16px; }
.maker-card .maker-line { font-size: 14px; color: var(--text-muted); margin: 0 0 6px; }
.maker-card .maker-product { font-size: 14px; color: var(--text); margin: 0 0 24px; }
.maker-card .maker-inline-link {
  color: var(--brand-dark); font-weight: 700; text-decoration: none;
  border-bottom: 1.5px solid #67e8f9;
  transition: border-color .15s ease, color .15s ease;
}
.maker-card .maker-inline-link:hover { color: var(--brand); border-color: var(--brand); }
.maker-card .maker-contacts {
  display: flex; gap: 12px; flex-wrap: wrap;
  justify-content: center;
}
.maker-card .maker-contacts a {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px; font-weight: 600;
  transition: all .15s;
}
.maker-card .maker-contacts a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(9, 165, 211, .15);
  text-decoration: none;
}
.maker-card .maker-contacts iconify-icon { font-size: 16px; color: var(--brand); }
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a {
  color: var(--text);
  font-size: 14px; font-weight: 500;
}
.site-header nav a:hover { color: var(--brand); }
.site-header nav a.nav-portal {
  background: var(--brand); color: #fff;
  padding: 7px 14px; border-radius: 999px;
  font-weight: 700; font-size: 13px;
  box-shadow: 0 2px 8px rgba(6,182,212,.30);
  transition: background .15s ease, box-shadow .15s ease;
}
.site-header nav a.nav-portal:hover {
  background: #0e7490; color: #fff;
  box-shadow: 0 3px 12px rgba(6,182,212,.45);
}

/* ─── Hero (gradient + dot grid + glow orb) ─────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 80px;
  background:
    radial-gradient(circle at 20% 110%, rgba(125, 211, 252, .25), transparent 55%),
    radial-gradient(circle at 90% 0%, rgba(189, 238, 251, .28), transparent 50%),
    linear-gradient(135deg, #0a4a63 0%, var(--brand-dark) 45%, var(--brand) 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to right, transparent, #000 30%, #000 100%);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 30%, #000 100%);
  opacity: .55;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 400px; height: 400px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(189, 238, 251, .35), rgba(9, 165, 211, 0) 65%);
}
.hero > * { position: relative; z-index: 1; }
.hero .chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .30);
  border-radius: 999px; padding: 6px 16px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  margin-bottom: 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset;
  color: #fff;
}
.hero .chip::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, .25);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: 50px; font-weight: 800;
  letter-spacing: -1px; line-height: 1.08;
  text-shadow: 0 2px 14px rgba(10, 74, 99, .35);
  max-width: 780px;
  color: #fff;
}
.hero h1 b {
  background: linear-gradient(180deg, #ffffff 0%, #bdeefb 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lead {
  margin: 0; font-size: 17px; max-width: 720px;
  color: #e2f5fc;
}
.cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
}
.hero-note {
  margin: 14px 0 0; font-size: 12.5px; color: #cdeefb; max-width: 580px;
}
.hero-note a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* Get Started — twin CTA cards replacing the public Download grid */
.portal-cta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; margin: 28px 0 18px;
}
.portal-cta-card {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 22px 20px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .04);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.portal-cta-card:hover {
  transform: translateY(-2px); border-color: #67e8f9;
  box-shadow: 0 8px 20px rgba(6, 182, 212, .14);
}
.portal-cta-card .portal-icon {
  font-size: 30px; color: var(--brand);
  background: #ecfeff; width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; margin-bottom: 6px;
}
.portal-cta-card h3 {
  margin: 0; font-size: 17px; font-weight: 700; color: var(--text);
}
.portal-cta-card p {
  margin: 0 0 4px; font-size: 13.5px; color: var(--text-muted);
}
.portal-cta-card .btn-primary,
.portal-cta-card .btn-ghost {
  align-self: flex-start; margin-top: 4px;
}
.hero-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 56px;
  font-size: 13.5px; color: #cdeefb;
  position: relative;
}
.hero-stats strong {
  display: block;
  font-size: 22px; font-weight: 800; color: #fff;
  letter-spacing: -.5px;
  font-variant-numeric: tabular-nums;
}

/* 3D isometric decorations in hero */
.hero-decor {
  position: absolute;
  pointer-events: none;
  opacity: .45;
  z-index: 0;
  filter: drop-shadow(0 8px 20px rgba(10, 74, 99, .4));
  animation: float 8s ease-in-out infinite;
}
.hero-decor-left {
  width: 280px; height: 280px;
  left: 2%; top: 50%;
  transform: translateY(-50%);
}
.hero-decor-right {
  width: 320px; height: 320px;
  right: 4%; top: 50%;
  transform: translateY(-50%);
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { transform: translateY(-50%) translateZ(0); }
  50%      { transform: translateY(-52%) translateZ(0); }
}
@media (max-width: 1100px) {
  .hero-decor-left { display: none; }
  .hero-decor-right { width: 240px; height: 240px; opacity: .25; }
}
@media (max-width: 720px) {
  .hero-decor { display: none; }
}

/* ─── Buttons ────────────────────────────────────────── */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  font-size: 15px; font-weight: 600;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(9, 165, 211, .35), 0 1px 0 rgba(255, 255, 255, .25) inset;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(9, 165, 211, .45);
  color: #fff;
}
.btn-ghost {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}
.section .btn-ghost {
  background: #fff; color: var(--text); border-color: var(--border);
  padding: 10px 18px; font-size: 14px;
}
.section .btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--brand-light);
  color: var(--brand-dark);
}

/* ─── Dashboard preview section ──────────────────────── */
.preview-section {
  padding: 80px 0 100px;
  background:
    radial-gradient(circle at 10% 0%, rgba(125, 211, 252, .12), transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(196, 181, 253, .10), transparent 45%),
    linear-gradient(180deg, #fff 0%, var(--surface-2) 100%);
  position: relative;
  overflow: hidden;
}
.preview-section::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(9, 165, 211, .08) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 70%);
}
.preview-section > .container { position: relative; z-index: 1; }
.preview-label {
  text-align: center;
  margin: 0 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.preview-title {
  text-align: center;
  margin: 0 0 50px;
  font-size: 32px; font-weight: 800;
  letter-spacing: -.5px;
  color: var(--text);
}

.dashboard-mock {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 30px 60px rgba(15, 23, 42, .15),
    0 10px 20px rgba(9, 165, 211, .10),
    0 0 0 1px rgba(15, 23, 42, .04);
  overflow: hidden;
  transform: perspective(1500px) rotateX(2deg);
  transition: transform .4s ease;
}
.dashboard-mock:hover {
  transform: perspective(1500px) rotateX(0deg) translateY(-4px);
}

.mock-chrome {
  height: 40px;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 16px; gap: 16px;
}
.mock-dots { display: flex; gap: 7px; }
.mock-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.08);
}
.mock-dot.red { background: #ff5f57; }
.mock-dot.amber { background: #ffbd2e; }
.mock-dot.green { background: #28c840; }
.mock-url {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px; color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
}
.mock-url iconify-icon { font-size: 12px; color: var(--ok); }
.mock-url span { color: var(--text); font-weight: 600; }
.mock-status {
  font-size: 11px; font-weight: 600;
  color: var(--ok);
  display: flex; align-items: center; gap: 6px;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .25);
  animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, .25); }
  50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, .10); }
}

.mock-canvas {
  width: 100%;
  height: auto;
  display: block;
  background: #f4f6f9;
}

/* Screenshot tabs above the browser mock */
.preview-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto 28px;
}
.preview-tab {
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all .15s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .04);
  position: relative;
}
/* All children pass through to the button — iconify-icon's web component
   shadow-root sometimes swallows clicks, this guarantees the button gets it. */
.preview-tab > * { pointer-events: none; }
.preview-tab iconify-icon {
  font-size: 20px;
  color: var(--brand);
  margin-bottom: 4px;
}
.preview-tab .tab-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.preview-tab .tab-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}
.preview-tab:hover {
  border-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(9, 165, 211, .15);
}
.preview-tab.active {
  border-color: var(--brand);
  background: linear-gradient(135deg, #fff 0%, var(--brand-tint) 100%);
  box-shadow: 0 8px 18px rgba(9, 165, 211, .22);
}
.preview-tab.active::after {
  content: "";
  position: absolute; left: 50%; bottom: -10px;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--brand);
}
.preview-tab.active iconify-icon { color: var(--brand-dark); }

/* Screenshot images — only the .active one is rendered */
.screenshot-img {
  display: none;
  width: 100%;
  height: auto;
}
.screenshot-img.active {
  display: block;
  animation: shot-fade-in .25s ease;
}
@keyframes shot-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.preview-caption {
  text-align: center;
  margin: 24px auto 0;
  max-width: 720px;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 960px) {
  .preview-tabs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .preview-title { font-size: 24px; margin-bottom: 32px; }
  .preview-section { padding: 56px 0 70px; }
  .dashboard-mock { transform: none; border-radius: 10px; }
  .mock-status { display: none; }
  .mock-url { max-width: none; }
  .preview-tabs { grid-template-columns: 1fr; gap: 8px; margin-bottom: 22px; }
  .preview-tab { padding: 12px 14px; }
  .preview-tab .tab-sub { font-size: 11px; }
  .preview-tab.active::after { display: none; }
}

/* ─── Use cases banner ───────────────────────────────── */
.usecases {
  background: #fff;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.usecases-label {
  text-align: center;
  margin: 0 0 22px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.usecases-row {
  display: flex; gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.usecase {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: var(--brand-tint);
  border: 1px solid #bae6fd;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-dark);
  transition: transform .12s, box-shadow .12s;
}
.usecase:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(9, 165, 211, .20);
}
.usecase iconify-icon { font-size: 18px; }

/* ─── Sections ───────────────────────────────────────── */
.section { padding: 84px 0; }
.section.alt { background: var(--surface-2); }
.section.has-decor { position: relative; overflow: hidden; }
.section.has-decor > .container { position: relative; z-index: 1; }
.section-decor {
  position: absolute;
  pointer-events: none;
  opacity: .14;
  z-index: 0;
  filter: drop-shadow(0 8px 20px rgba(10, 74, 99, .25));
  animation: float-slow 12s ease-in-out infinite;
}
.section-decor-right {
  width: 340px; height: 340px;
  right: -40px; top: 50%;
  transform: translateY(-50%);
}
.section-decor-left {
  width: 280px; height: 280px;
  left: -30px; top: 50%;
  transform: translateY(-50%);
  animation-delay: -6s;
}
@keyframes float-slow {
  0%, 100% { transform: translateY(-50%); }
  50%      { transform: translateY(-52%); }
}
@media (max-width: 900px) {
  .section-decor { opacity: .08; width: 220px; height: 220px; }
  .section-decor-right { right: -80px; }
  .section-decor-left { left: -80px; }
}
@media (max-width: 600px) {
  .section-decor { display: none; }
}
h2.sec {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  margin: 0 0 36px;
  font-size: 30px; font-weight: 800;
  color: var(--text); letter-spacing: -.4px;
}
h2.sec .n {
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 13px;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; letter-spacing: -.5px;
  box-shadow: 0 6px 16px rgba(9, 165, 211, .30), 0 1px 0 rgba(255, 255, 255, .30) inset;
}
.section .lead {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ─── Feature cards ──────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
}
.feature-card .icon {
  width: 52px; height: 52px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 14px rgba(9, 165, 211, .30), 0 1px 0 rgba(255, 255, 255, .25) inset;
}
.feature-card .icon iconify-icon { display: block; width: 28px; height: 28px; }
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px; font-weight: 700;
  color: var(--text);
}
.feature-card p {
  margin: 0; color: var(--text-muted);
  font-size: 14px;
}

/* ─── Protocol table ─────────────────────────────────── */
.protocol-table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}
.protocol-table thead {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border-bottom: 1px solid #d8e0ea;
}
.protocol-table th {
  text-align: left; padding: 13px 18px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px;
  color: #334155; font-weight: 700;
}
.protocol-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); }
.protocol-table tr:last-child td { border-bottom: none; }
.protocol-table tbody tr:nth-child(even) td { background: #fbfcfd; }
.protocol-table tbody tr:hover td { background: #f0fbff; }
.protocol-table strong { color: var(--brand-dark); }

/* ─── Step list (manual style) ───────────────────────── */
ol.steps {
  list-style: none; padding-left: 0; margin: 0;
  counter-reset: step;
}
ol.steps > li {
  position: relative;
  padding: 4px 0 24px 60px;
  counter-increment: step;
  font-size: 15px;
  color: var(--text-muted);
}
ol.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  box-shadow: 0 5px 12px rgba(9, 165, 211, .35), 0 0 0 4px #fff, 0 0 0 5px rgba(9, 165, 211, .20);
}
ol.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 19px; top: 46px; bottom: 4px; width: 2px;
  background: linear-gradient(180deg, rgba(9, 165, 211, .45) 0%, var(--border) 100%);
}
ol.steps > li > strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px; font-weight: 700;
  color: var(--text);
}
ol.steps code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 13px;
  background: #eef2f7;
  padding: 2px 7px; border-radius: 5px;
  color: #0f3a4d;
}

/* ─── Download ───────────────────────────────────────── */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin: 28px 0;
}
.download-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.download-card.windows::before, .download-card.linux::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
}
.download-card .dl-icon {
  width: 56px; height: 56px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(9, 165, 211, .30), 0 1px 0 rgba(255, 255, 255, .25) inset;
}
.download-card .dl-icon iconify-icon { font-size: 32px; }
.btn-primary iconify-icon, .btn-ghost iconify-icon { font-size: 18px; vertical-align: middle; }
.download-card h3 {
  margin: 0 0 8px;
  font-size: 20px; font-weight: 700;
}
.download-card > p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 14px;
}
.download-card .btn-primary {
  font-size: 14px; padding: 10px 18px;
}
.download-card .dl-row {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.download-card .dl-row .btn-ghost {
  padding: 8px 14px; font-size: 13px;
}
.download-card .small {
  margin-top: 14px; margin-bottom: 0;
  font-size: 12px;
  color: var(--text-dim);
}

/* ─── Callouts ───────────────────────────────────────── */
.callout {
  position: relative;
  border: 1px solid transparent; border-left-width: 4px;
  border-radius: 10px;
  padding: 14px 18px 14px 50px;
  margin: 24px 0;
  font-size: 14.5px;
  box-shadow: var(--shadow-sm);
}
.callout::before {
  content: ""; position: absolute; left: 14px; top: 14px;
  width: 24px; height: 24px; border-radius: 50%;
}
.callout.note { background: #eff6ff; border-color: #3b82f6; color: #1e3a5f; }
.callout.note::before {
  background: #3b82f6 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'><line x1='12' y1='8' x2='12' y2='8.01'/><line x1='12' y1='11' x2='12' y2='17'/></svg>") center/14px no-repeat;
}
.callout .tag {
  display: inline-block;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  margin-right: 8px; opacity: .85;
}
.callout code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 12.5px;
  background: rgba(255, 255, 255, .65);
  padding: 1px 7px; border-radius: 5px;
  color: #0f3a4d;
}

/* ─── Contact ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 13px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.contact-card p { margin: 0; font-size: 15px; }
.contact-card a { font-weight: 600; }

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  font-size: 13px;
  background: var(--surface-2);
}
.site-footer .container {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

@media (max-width: 720px) {
  .hero { padding: 56px 0 50px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 16px; }
  .hero-stats { gap: 18px; margin-top: 36px; }
  .hero-stats strong { font-size: 18px; }
  .section { padding: 52px 0; }
  h2.sec { font-size: 24px; }
  h2.sec .n { width: 38px; height: 38px; font-size: 17px; border-radius: 11px; }
  .download-grid { grid-template-columns: 1fr; }
  .site-header nav { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   Edge-to-Cloud section — animated SENSORS → CONNECT → AnviSens diagram.
   The diagram is a single SVG (~1100×360); flowing data dots ride along
   bézier paths via SMIL <animateMotion>. Background gets perspective grid
   + slow drifting orbs so the section feels three-dimensional even though
   everything is CSS-only (no WebGL, no JS).
   ════════════════════════════════════════════════════════════════════════ */
.flow-section {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f0fbff 60%, #ecfeff 100%);
}
.flow-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.flow-section .container { position: relative; z-index: 1; }

/* Perspective grid floor — tilted dot pattern that fades to transparent at
   the top, so the section feels like it's sitting on a 3D plane. */
.flow-grid {
  position: absolute; left: -10%; right: -10%; bottom: 0; height: 60%;
  background-image:
    radial-gradient(circle at center, rgba(6,182,212,.18) 1px, transparent 1.5px),
    radial-gradient(circle at center, rgba(6,182,212,.10) 1px, transparent 1.5px);
  background-size: 36px 36px, 18px 18px;
  background-position: 0 0;
  transform: perspective(720px) rotateX(58deg);
  transform-origin: center top;
  mask-image: linear-gradient(to top, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 95%);
}

/* Drifting orbs in the background — pure-CSS lens flares. */
.flow-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(40px); opacity: .55;
  animation: orb-drift 18s ease-in-out infinite;
}
.fo-1 { width: 260px; height: 260px; top: 8%;  left: -60px;
        background: radial-gradient(circle, #7dd3fc 0%, transparent 70%);
        animation-delay: 0s; }
.fo-2 { width: 200px; height: 200px; top: 50%; left: 38%;
        background: radial-gradient(circle, #c4b5fd 0%, transparent 70%);
        animation-delay: -4s; }
.fo-3 { width: 240px; height: 240px; top: 14%; right: -40px;
        background: radial-gradient(circle, #67e8f9 0%, transparent 70%);
        animation-delay: -8s; }
.fo-4 { width: 180px; height: 180px; bottom: 6%; left: 18%;
        background: radial-gradient(circle, #a7f3d0 0%, transparent 70%);
        animation-delay: -12s; }

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: .5; }
  50%      { transform: translate(34px, -22px) scale(1.08); opacity: .75; }
}

/* The animated SVG stage. Constrains height so the section reads as
   "hero-strip" rather than dominating the page. */
.flow-stage {
  position: relative;
  margin: 28px auto 22px;
  max-width: 1100px;
  filter: drop-shadow(0 12px 28px rgba(6,182,212,.16));
}
.flow-svg { width: 100%; height: auto; display: block; }

/* The middle gateway pulses subtly — emphasises it's the live brain. */
.flow-gateway { animation: gw-bob 4.5s ease-in-out infinite; transform-origin: 130px 100px; }
@keyframes gw-bob {
  0%, 100% { transform: translate(470px, 130px) translateY(0); }
  50%      { transform: translate(470px, 130px) translateY(-4px); }
}

/* Dashed wires get a slow "stream" effect via CSS animation on stroke-dashoffset.
   Combined with the SMIL data dots it reads as "live flowing pipeline". */
.flow-wires use { animation: wire-stream 1.6s linear infinite; }
@keyframes wire-stream {
  to { stroke-dashoffset: -20; }
}

/* AnviSens cross-promo card — sits below the diagram, summary + features grid. */
.anvisens-card {
  background: #ffffff;
  border: 1px solid #a5f3fc;
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 18px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px;
  align-items: center;
  box-shadow: 0 6px 24px rgba(6,182,212,.10), 0 1px 0 rgba(255,255,255,.7) inset;
  position: relative; overflow: hidden;
}
.anvisens-card::before {
  content: ""; position: absolute; right: -90px; top: -90px;
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(125,211,252,.35), transparent 70%);
  pointer-events: none;
}
.anvisens-left {
  display: flex; gap: 18px; align-items: flex-start;
  position: relative; z-index: 1;
}
.anvisens-logo {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  border-radius: 14px;
  padding: 10px;
  flex: 0 0 auto;
  box-shadow: 0 4px 12px rgba(6,182,212,.18);
}
.anvisens-logo svg { display: block; }
.anvisens-left h3 {
  margin: 0 0 6px; font-size: 19px; font-weight: 800;
  color: var(--text); letter-spacing: -.2px;
}
.anvisens-left p {
  margin: 0 0 12px; font-size: 14px; color: var(--text-muted);
  line-height: 1.6;
}
.anvisens-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 700;
  color: var(--brand-dark);
  padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(135deg, #ecfeff 0%, #a5f3fc 100%);
  border: 1px solid #67e8f9;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.anvisens-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(6,182,212,.32);
  color: #0e7490;
}
.anvisens-link iconify-icon { font-size: 16px; }

.anvisens-features {
  display: flex; flex-direction: column; gap: 11px;
  position: relative; z-index: 1;
}
.anvisens-feat {
  display: flex; align-items: flex-start; gap: 11px;
  background: #f8fafc; padding: 11px 14px; border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 13px; color: var(--text);
}
.anvisens-feat iconify-icon {
  font-size: 22px; color: var(--brand); flex: 0 0 auto;
  background: #ecfeff; padding: 5px; border-radius: 7px;
}
.anvisens-feat b { color: var(--text); font-weight: 700; }
.anvisens-feat small { color: var(--text-muted); font-size: 11.5px; }

@media (max-width: 880px) {
  .anvisens-card { grid-template-columns: 1fr; gap: 18px; padding: 20px 22px; }
  .flow-stage { margin: 18px -16px 18px; }
}
@media (max-width: 640px) {
  .flow-svg { min-height: 240px; }
}

/* Respect users who've asked the OS to dial down motion — pause every
   keyframes animation in this section so we don't trigger vestibular
   discomfort. SMIL animations on the SVG can't be globally paused via
   CSS, but a tabbed-out browser pauses them automatically. */
@media (prefers-reduced-motion: reduce) {
  .flow-orb, .flow-gateway, .flow-wires use { animation: none; }
}

/* ─── Real-world deployments (use cases) ──────────────── */
.deployments {
  position: relative;
  background:
    radial-gradient(1200px 480px at 10% 0%, rgba(9, 165, 211, .07), transparent 60%),
    radial-gradient(1000px 400px at 100% 60%, rgba(34, 211, 238, .06), transparent 70%),
    #fff;
}
.deployments .dep-eyebrow {
  text-align: left;
  margin: 0 0 6px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--brand-dark);
}
.dep-heading { margin-bottom: 14px; }
.dep-heading .n {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  font-size: 22px;
  box-shadow: 0 6px 16px rgba(245, 158, 11, .35), 0 1px 0 rgba(255, 255, 255, .30) inset;
}
.deployments .dep-lead { max-width: 720px; }

.dep-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
  margin: 56px 0;
  padding: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06), 0 2px 6px rgba(15, 23, 42, .04);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dep-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(9, 165, 211, .14), 0 6px 14px rgba(15, 23, 42, .08);
}
.dep-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand), #22d3ee);
  opacity: .85;
}
.dep-img-left .dep-illu { order: 0; }
.dep-img-left .dep-text { order: 1; }
.dep-img-right .dep-illu { order: 1; }
.dep-img-right .dep-text { order: 0; }

.dep-illu {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(160deg, #f0f9ff 0%, #ecfeff 60%, #f8fafc 100%);
  padding: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 4px 18px rgba(9, 165, 211, .08);
  overflow: hidden;
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
}
.dep-svg { width: 100%; height: auto; display: block; }
.dep-badge {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff;
  border: 1px solid #bae6fd;
  color: var(--brand-dark);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px; font-weight: 800;
  letter-spacing: .3px;
  box-shadow: 0 2px 6px rgba(9, 165, 211, .18);
  z-index: 2;
}
.dep-badge iconify-icon { font-size: 14px; }
.dep-badge-water { color: #0e7490; border-color: #67e8f9; }
.dep-badge-edge  { color: #1e293b; border-color: #cbd5e1; }
.dep-badge-farm  { color: #92400e; border-color: #fcd34d; background: #fffbeb; }

.dep-text h3 {
  margin: 0 0 8px;
  font-size: 24px; font-weight: 800;
  color: var(--text); letter-spacing: -.3px;
}
.dep-tag {
  margin: 0 0 14px;
  font-size: 12.5px; font-weight: 600;
  color: var(--brand-dark);
  letter-spacing: .15px;
}
.dep-text > p {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}
.dep-text code {
  font-family: "SFMono-Regular", Consolas, Menlo, monospace;
  font-size: 12.5px;
  background: #eef2f7;
  padding: 2px 6px; border-radius: 5px;
  color: #0f3a4d;
}

.dep-bullets {
  list-style: none;
  padding: 0; margin: 0 0 20px;
  display: grid; gap: 8px;
}
.dep-bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px;
  color: var(--text);
}
.dep-bullets iconify-icon {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 18px;
  margin-top: 1px;
}

.dep-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.dep-stat-row > div {
  display: flex; flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.dep-stat-row strong {
  font-size: 18px; font-weight: 800;
  color: var(--brand-dark);
  letter-spacing: -.2px;
}
.dep-stat-row span {
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: .15px;
}

.dep-closing {
  display: flex; align-items: center; gap: 14px;
  margin-top: 40px;
  padding: 22px 28px;
  background: linear-gradient(135deg, #ecfeff 0%, #fff 100%);
  border: 1px dashed #67e8f9;
  border-radius: 16px;
  color: var(--text);
}
.dep-closing iconify-icon {
  flex: 0 0 auto;
  font-size: 28px;
  color: #f59e0b;
}
.dep-closing p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
}
.dep-closing a {
  color: var(--brand-dark);
  font-weight: 700;
  border-bottom: 1.5px solid #67e8f9;
}
.dep-closing a:hover { color: var(--brand); border-color: var(--brand); }

@media (max-width: 880px) {
  .dep-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
    margin: 36px 0;
  }
  .dep-img-left .dep-illu, .dep-img-right .dep-illu { order: 0; }
  .dep-img-left .dep-text, .dep-img-right .dep-text { order: 1; }
  .dep-text h3 { font-size: 21px; }
  .dep-illu { min-height: 220px; }
  .dep-closing { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; }
}
@media (max-width: 560px) {
  .dep-stat-row { grid-template-columns: 1fr 1fr; }
}

