/* SME IoT — dark premium IoT landing (single CSS file, no framework) */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-deep: #050a12;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-solid: #0f172a;
  --border: rgba(59, 130, 246, 0.18);
  --border-glow: rgba(34, 211, 238, 0.4);
  --text: #e8eef5;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --cyan: #22d3ee;
  --cyan-dim: #0891b2;
  --violet: #a5b4fc;
  --indigo: #6366f1;
  --emerald: #34d399;
  --ne-blue: #2563eb;
  --ne-navy: #1e3a5f;
  --ne-warm: #ea580c;
  --accent-line: linear-gradient(135deg, var(--cyan), var(--indigo));
  --font-display: 'Oxanium', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Share Tech Mono', ui-monospace, monospace;
  --radius: 20px;
  --radius-sm: 14px;
  --max: 1180px;
  --pad: clamp(16px, 4vw, 28px);
  --shadow-glow: 0 0 60px rgba(34, 211, 238, 0.08);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background: var(--bg-deep);
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(99, 102, 241, 0.22), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 10%, rgba(34, 211, 238, 0.12), transparent 45%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(52, 211, 153, 0.06), transparent 42%),
    linear-gradient(180deg, #030712 0%, #0a0f1a 40%, #030712 100%);
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, black, transparent);
  pointer-events: none;
}

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

/* ——— Header ——— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(3, 7, 18, 0.82);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-glow);
}

.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--border), 0 8px 32px rgba(34, 211, 238, 0.15);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #f1f5f9, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-subtitle {
  font-size: 11px;
  color: var(--text-dim);
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.5vw, 22px);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(34, 211, 238, 0.35);
}

.btn-nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #030712;
  background: linear-gradient(135deg, var(--cyan), #67e8f9);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(34, 211, 238, 0.45);
}

/* ——— Page ——— */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px var(--pad) 56px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bae6fd;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(34, 211, 238, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.35);
  margin-bottom: 16px;
}

.badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 12px var(--emerald);
  animation: livePulse 2.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.65;
    transform: scale(1.1);
  }
}

.accent {
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 52px);
  align-items: center;
  margin-bottom: 56px;
}

.hero-typewriter {
  font-family: var(--font-mono);
  font-size: clamp(12px, 2.8vw, 13px);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #7dd3fc;
  min-height: 1.5em;
  margin-bottom: 14px;
  opacity: 0.95;
}

.hero-typewriter::after {
  content: '▌';
  margin-left: 2px;
  color: var(--cyan);
  animation: typeCursor 0.85s step-end infinite;
}

@keyframes typeCursor {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-typewriter::after {
    animation: none;
    opacity: 0.65;
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: #f8fafc;
}

.hero-title-lg {
  display: block;
  font-size: clamp(1.65rem, 1rem + 2.5vw, 2.45rem);
  font-weight: 600;
  color: #f1f5f9;
}

.hero-title-accent {
  display: block;
  margin-top: 6px;
  font-size: clamp(1.95rem, 1.35rem + 2.5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(115deg, #38bdf8 0%, #60a5fa 35%, #a78bfa 70%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(56, 189, 248, 0.15);
}

.hero-em {
  font-style: normal;
  font-weight: 700;
  color: #93c5fd;
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.hero-desc {
  font-size: clamp(15px, 1.55vw, 18px);
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 38rem;
  line-height: 1.65;
}

.inline-ne {
  color: #7dd3fc;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(234, 88, 12, 0.55);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.inline-ne:hover {
  color: #fff;
  text-decoration-color: var(--ne-warm);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}

.btn-primary {
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  color: #030712;
  background: linear-gradient(135deg, var(--cyan), #7dd3fc);
  box-shadow: 0 0 28px rgba(34, 211, 238, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.45);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-chip {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--cyan);
}

.stat-label {
  font-size: 11px;
  color: var(--text-dim);
}

.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.iot-stage {
  --gx: 0deg;
  --gy: 0deg;
  perspective: 1000px;
  border-radius: calc(var(--radius) + 4px);
  padding: clamp(16px, 2.5vw, 24px);
  background: linear-gradient(
    160deg,
    rgba(15, 23, 42, 0.94),
    rgba(30, 58, 95, 0.28),
    rgba(15, 23, 42, 0.88)
  );
  border: 1px solid var(--border);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(34, 211, 238, 0.06) inset,
    0 0 80px rgba(37, 99, 235, 0.06);
  position: relative;
  overflow: hidden;
  cursor: crosshair;
}

.iot-stage::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(34, 211, 238, 0.04), transparent);
  animation: hubRotate 14s linear infinite;
}

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

.iot-svg-wrap {
  position: relative;
  z-index: 1;
  perspective: inherit;
  transform-style: preserve-3d;
}

.globe-3d-rotor {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
  transform: rotateX(calc(16deg + var(--gy))) rotateY(calc(-22deg + var(--gx))) translateZ(18px);
  transition: transform 0.18s ease-out;
  animation: globeFloat 7.5s ease-in-out infinite;
  will-change: transform;
}

.iot-stage:hover .globe-3d-rotor {
  transform: rotateX(calc(14deg + var(--gy))) rotateY(calc(-20deg + var(--gx))) translateZ(22px) scale(1.02);
}

@keyframes globeFloat {
  0%,
  100% {
    transform: rotateX(calc(16deg + var(--gy))) rotateY(calc(-22deg + var(--gx))) translateZ(18px) translateY(0);
  }
  50% {
    transform: rotateX(calc(15deg + var(--gy))) rotateY(calc(-24deg + var(--gx))) translateZ(20px) translateY(-5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .globe-3d-rotor {
    animation: none;
    transform: rotateX(16deg) rotateY(-22deg) translateZ(12px);
  }

  .iot-stage:hover .globe-3d-rotor {
    transform: rotateX(15deg) rotateY(-22deg) translateZ(14px) scale(1.01);
  }
}

.iot-svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 380px;
  margin: 0 auto;
  max-height: min(240px, 36vw);
  filter: drop-shadow(0 18px 36px rgba(34, 211, 238, 0.18));
}

.iot-svg .iot-link,
.iot-svg .globe-link {
  stroke: url(#iotLineGrad);
  stroke-width: 2.25;
  stroke-linecap: round;
  fill: none;
  opacity: 0.62;
}

.iot-svg .globe-hub-glow {
  pointer-events: none;
  animation: hubGlowPulse 4s ease-in-out infinite;
}

@keyframes hubGlowPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.9;
  }
}

.globe-orbit {
  transform-origin: 210px 165px;
  animation: globeOrbitSpin 42s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .globe-orbit {
    animation: none;
  }

  .iot-svg .globe-hub-glow {
    animation: none;
  }
}

.globe-nexus-core {
  fill: rgba(15, 23, 42, 0.92);
  stroke: rgba(34, 211, 238, 0.55);
  stroke-width: 1.3;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.35));
}

.globe-nexus-chip {
  fill: rgba(3, 7, 18, 0.95);
  stroke: rgba(165, 180, 252, 0.4);
  stroke-width: 0.9;
}

.iot-svg .iot-node-sat {
  fill: #e0f2fe;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.65));
}

.iot-svg .iot-node-ring {
  fill: none;
  stroke: rgba(165, 180, 252, 0.5);
  stroke-width: 1.2;
  transform-origin: center;
  animation: iotNodeRing 2.8s ease-out infinite;
}

.iot-svg .iot-node--b .iot-node-ring {
  animation-delay: 0.45s;
}
.iot-svg .iot-node--c .iot-node-ring {
  animation-delay: 0.9s;
}
.iot-svg .iot-node--d .iot-node-ring {
  animation-delay: 1.35s;
}

@keyframes iotNodeRing {
  0% {
    opacity: 0.85;
    transform: scale(0.85);
  }
  70% {
    opacity: 0;
    transform: scale(1.9);
  }
  100% {
    opacity: 0;
    transform: scale(1.9);
  }
}

.iot-legend {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-dim);
}

.iot-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.iot-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px var(--cyan);
}

.iot-legend span:nth-child(2) i {
  background: var(--indigo);
  box-shadow: 0 0 14px var(--indigo);
}
.iot-legend span:nth-child(3) i {
  background: var(--emerald);
  box-shadow: 0 0 14px var(--emerald);
}

.globe-hint {
  position: relative;
  z-index: 2;
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0.85;
  text-align: center;
}

@media (max-width: 640px) {
  .globe-hint {
    font-size: 9px;
  }
}

/* Platform showcase — compact 3D icons + copy */
.platform-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.showcase-card {
  display: grid;
  grid-template-columns: minmax(0, 88px) minmax(0, 1fr);
  gap: clamp(12px, 2vw, 18px);
  align-items: center;
  padding: clamp(16px, 2.5vw, 22px);
  overflow: hidden;
}

.showcase-card::after {
  content: '';
  position: absolute;
  right: -20%;
  bottom: -40%;
  width: 55%;
  height: 90%;
  background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.12), transparent 65%);
  pointer-events: none;
}

.showcase-visual {
  position: relative;
  width: 100%;
  max-width: 88px;
  min-height: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-scene {
  width: 100%;
  max-width: 88px;
  transform-style: preserve-3d;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.4s;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.5));
}

.showcase-scene svg {
  width: 100%;
  height: auto;
  display: block;
}

.showcase-scene--mobile {
  transform: rotateX(6deg) rotateY(-12deg) translateZ(0);
}

.showcase-scene--web {
  transform: rotateX(8deg) rotateY(10deg) translateZ(0);
}

.showcase-scene--cloud {
  transform: rotateX(7deg) rotateY(-8deg) translateZ(0);
}

.showcase-scene--fw {
  transform: rotateX(8deg) rotateY(11deg) translateZ(0);
}

.showcase-card:hover .showcase-scene--mobile {
  transform: rotateX(4deg) rotateY(-8deg) translateY(-2px) scale(1.02);
  filter: drop-shadow(0 12px 20px rgba(34, 211, 238, 0.2));
}

.showcase-card:hover .showcase-scene--web {
  transform: rotateX(6deg) rotateY(6deg) translateY(-2px) scale(1.02);
  filter: drop-shadow(0 12px 20px rgba(99, 102, 241, 0.18));
}

.showcase-card:hover .showcase-scene--cloud {
  transform: rotateX(5deg) rotateY(-5deg) translateY(-2px) scale(1.02);
  filter: drop-shadow(0 12px 20px rgba(52, 211, 153, 0.18));
}

.showcase-card:hover .showcase-scene--fw {
  transform: rotateX(6deg) rotateY(8deg) translateY(-2px) scale(1.02);
  filter: drop-shadow(0 12px 20px rgba(251, 146, 60, 0.2));
}

.showcase-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 17px);
  font-weight: 700;
  margin-bottom: 6px;
  color: #f1f5f9;
  letter-spacing: 0.04em;
}

.showcase-copy p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .platform-showcase {
    grid-template-columns: 1fr;
  }

  .showcase-card {
    grid-template-columns: minmax(0, 72px) minmax(0, 1fr);
    text-align: left;
    gap: 14px;
  }

  .showcase-card h3 {
    justify-content: flex-start;
  }

  .showcase-visual {
    max-width: 72px;
  }

  .showcase-scene {
    max-width: 72px;
    margin-inline: 0;
  }
}

@media (max-width: 520px) {
  .showcase-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }

  .showcase-card h3 {
    justify-content: center;
  }

  .showcase-visual,
  .showcase-scene {
    max-width: 64px;
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-scene,
  .showcase-card:hover .showcase-scene--mobile,
  .showcase-card:hover .showcase-scene--web,
  .showcase-card:hover .showcase-scene--cloud,
  .showcase-card:hover .showcase-scene--fw {
    transform: none;
    filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.4));
  }
}

.hero-card {
  position: relative;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.75));
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-line);
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12), transparent 65%);
  pointer-events: none;
}

.hero-card h2 {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 700;
  margin-bottom: 10px;
  color: #f1f5f9;
}

.hero-card .hero-note {
  font-size: 14px;
  color: var(--text-muted);
}

.hero-card .full-width {
  width: 100%;
  margin: 18px 0 12px;
  min-height: 52px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* 3D-style SVG icons in cards */
.icon-3d {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: block;
}

.icon-3d svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(34, 211, 238, 0.2));
  transition: transform 0.3s ease, filter 0.3s;
}

.card:hover .icon-3d svg {
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 10px 20px rgba(34, 211, 238, 0.35));
}

/* Sections */
.section {
  margin-top: clamp(40px, 7vw, 64px);
}

.section-alt {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.25));
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(26px, 5vw, 40px) var(--pad);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  margin-bottom: 12px;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.section-lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 40rem;
  margin-bottom: 26px;
}

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

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

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

.card {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  font-size: 14px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s, box-shadow 0.35s;
  transform-style: preserve-3d;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.2), transparent 50%, rgba(99, 102, 241, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}

.card:hover {
  transform: translateY(-8px) rotateX(2deg);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 40px rgba(34, 211, 238, 0.08);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card p {
  color: var(--text-muted);
}

.hardware-card h3 {
  flex-wrap: wrap;
  align-items: flex-start;
  line-height: 1.25;
}

.hardware-card ul {
  margin-top: 12px;
  padding-left: 18px;
}

.hardware-card li {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.hardware-card li::marker {
  color: var(--cyan);
}

.hardware-sub {
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--text-muted);
}

.json-link {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-dim);
}

code {
  display: inline-block;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(3, 7, 18, 0.9);
  border: 1px solid var(--border);
  color: var(--cyan);
  font-size: 11px;
  word-break: break-all;
}

.about-text {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 42rem;
}

.footer {
  margin-top: 56px;
  padding: 28px var(--pad) 40px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

.footer p + p {
  margin-top: 8px;
}

.footer a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text,
  .hero-desc {
    margin-inline: auto;
  }

  .hero-typewriter {
    text-align: center;
  }

  .hero-title-lg,
  .hero-title-accent {
    text-align: center;
  }

  .hero-cta,
  .hero-stats {
    justify-content: center;
  }

  .iot-svg {
    max-height: min(210px, 44vw);
    max-width: 100%;
  }

  .iot-stage {
    max-width: 520px;
    margin-inline: auto;
  }

  .iot-legend {
    justify-content: center;
  }

  .hero-card {
    max-width: 460px;
    margin-inline: auto;
    text-align: center;
  }

  .card h3 {
    justify-content: center;
    flex-wrap: wrap;
  }

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

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

@media (max-width: 640px) {
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-main {
    justify-content: space-between;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    font-size: 12px;
  }

  .logo-block {
    justify-content: center;
  }

  .globe-3d-rotor {
    animation: none;
    transform: rotateX(calc(12deg + var(--gy))) rotateY(calc(-18deg + var(--gx))) translateZ(10px);
  }

  .iot-stage:hover .globe-3d-rotor {
    transform: rotateX(calc(11deg + var(--gy))) rotateY(calc(-17deg + var(--gx))) translateZ(12px) scale(1.02);
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .card:hover {
    transform: translateY(-4px);
  }
}

/* ===== Pre-release gate — dark glass ===== */
.smeiot-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 100dvh;
  box-sizing: border-box;
  overscroll-behavior: none;
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(12px);
}

.smeiot-gate-overlay[hidden] {
  display: none !important;
}

.smeiot-gate-dialog {
  width: 100%;
  max-width: 460px;
  max-height: min(92vh, 640px);
  overflow-y: auto;
  padding: 30px 28px 26px;
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
  border: 1px solid var(--border-glow);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55), 0 0 50px rgba(34, 211, 238, 0.1);
}

.smeiot-gate-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}

.smeiot-gate-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
  margin-bottom: 14px;
}

.smeiot-gate-lead,
.smeiot-gate-note {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.smeiot-gate-lead strong,
.smeiot-gate-note strong {
  color: #e2e8f0;
}

.smeiot-gate-hi {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 10px;
  padding: 12px 14px;
  background: rgba(34, 211, 238, 0.08);
  border-radius: 12px;
  border-left: 3px solid var(--cyan);
}

.smeiot-gate-tagline {
  font-size: 13px;
  font-style: italic;
  color: var(--cyan);
  font-weight: 600;
  margin-bottom: 22px;
}

.smeiot-gate-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.smeiot-gate-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  background: rgba(3, 7, 18, 0.75);
  color: var(--text);
}

.smeiot-gate-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}

.smeiot-gate-input::placeholder {
  color: var(--text-dim);
}

.smeiot-gate-err {
  font-size: 13px;
  color: #f87171;
  margin-bottom: 12px;
}

.smeiot-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.smeiot-gate-btn-secondary,
.smeiot-gate-btn-primary {
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
}

.smeiot-gate-btn-secondary {
  background: rgba(51, 65, 85, 0.5);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.smeiot-gate-btn-secondary:hover {
  background: rgba(51, 65, 85, 0.8);
}

.smeiot-gate-btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-dim));
  color: #030712;
}

.smeiot-gate-btn-primary:hover {
  filter: brightness(1.06);
}

@media (max-width: 480px) {
  .smeiot-gate-dialog {
    padding: 24px 20px 22px;
  }

  .smeiot-gate-actions {
    flex-direction: column-reverse;
  }

  .smeiot-gate-btn-secondary,
  .smeiot-gate-btn-primary {
    width: 100%;
  }
}
