:root {
  color-scheme: dark;
  --bg: #08090c;
  --text: #f1f3f8;
  --muted: #9aa3b2;
  --faint: #7f8797;
  --border: rgba(255, 255, 255, 0.08);
  --max-width: 1120px;
  --radius-lg: 26px;
  --radius-md: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue",
    Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1000px 620px at 76% -12%, rgba(99, 102, 241, 0.16), transparent 62%),
    radial-gradient(820px 560px at 4% 6%, rgba(45, 212, 191, 0.055), transparent 60%),
    radial-gradient(820px 560px at 96% 64%, rgba(217, 70, 239, 0.05), transparent 60%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: rgba(129, 140, 248, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid rgba(165, 180, 252, 0.85);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 10px;
  background: #eef1f8;
  color: #0b0c10;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 14px;
}

/* ===== Header ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 9, 12, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #d946ef 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 6px 18px -6px rgba(124, 58, 237, 0.65);
}

.brand-mark svg {
  width: 16px;
  height: 16px;
}

.site-nav {
  display: flex;
  gap: 4px;
}

.site-nav a {
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

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

.lang-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.lang-switch button {
  appearance: none;
  min-width: 30px;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-switch button:hover {
  color: var(--text);
}

.lang-switch button[aria-pressed="true"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.lang-switch button:focus-visible {
  outline-offset: 1px;
}

/* ===== Hero ===== */

.hero {
  position: relative;
  padding: clamp(72px, 10vw, 128px) 0 clamp(64px, 8vw, 104px);
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 12%, transparent 74%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 12%, transparent 74%);
}

.hero::after {
  content: "";
  position: absolute;
  top: 2%;
  left: 50%;
  width: min(880px, 120%);
  height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(129, 140, 248, 0.16), transparent 72%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #4ade80;
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(2.15rem, 6.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.text-gradient {
  background: linear-gradient(100deg, #7dd3fc 0%, #a5b4fc 42%, #e879f9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 16.5px);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-note {
  color: var(--faint);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

/* ===== Button ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #a855f7 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 14px 34px -14px rgba(124, 58, 237, 0.8);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 20px 44px -16px rgba(124, 58, 237, 0.9);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.25s var(--ease);
}

.btn:hover svg {
  transform: translateY(2px);
}

/* ===== Products ===== */

.products {
  position: relative;
  padding: 8px 0 clamp(72px, 9vw, 120px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-eyebrow {
  margin-bottom: 10px;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-note {
  max-width: 300px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

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

/* ===== Card ===== */

.card {
  --accent: #818cf8;
  --accent-rgb: 129, 140, 248;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s ease,
    background-color 0.35s ease,
    box-shadow 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.7), transparent);
  opacity: 0.35;
  transition: opacity 0.35s ease;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-rgb), 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.024));
  box-shadow:
    0 24px 48px -24px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(var(--accent-rgb), 0.06),
    0 24px 64px -32px rgba(var(--accent-rgb), 0.4);
}

.card:hover::before,
.card:focus-visible::before {
  opacity: 1;
}

.card:focus-visible {
  outline-color: rgba(var(--accent-rgb), 0.7);
}

.card__glow {
  position: absolute;
  top: -160px;
  right: -140px;
  z-index: -1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22), transparent 65%);
  filter: blur(10px);
  opacity: 0.5;
  transition: opacity 0.4s ease;
}

.card:hover .card__glow,
.card:focus-visible .card__glow {
  opacity: 1;
}

.card__watermark {
  position: absolute;
  right: -48px;
  bottom: -54px;
  z-index: -1;
  width: 190px;
  height: 190px;
  color: var(--accent);
  opacity: 0.035;
  transform: rotate(-8deg);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}

.card:hover .card__watermark,
.card:focus-visible .card__watermark {
  opacity: 0.075;
  transform: rotate(-4deg) scale(1.04);
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 15px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.35s var(--ease), background-color 0.35s ease;
}

.icon-tile svg {
  width: 26px;
  height: 26px;
}

.card:hover .icon-tile,
.card:focus-visible .icon-tile {
  transform: scale(1.06) rotate(-3deg);
  background: rgba(var(--accent-rgb), 0.14);
}

.card:hover .icon-tile svg,
.card:focus-visible .icon-tile svg {
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.35));
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.platform::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.9);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.7);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  padding-bottom: 26px;
}

.card__kicker {
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.card__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.card__desc {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag-list li {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #c3c9d6;
  font-size: 12px;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card__domain {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}

.card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  font-size: 13px;
  font-weight: 600;
}

.card__cta svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}

.card:hover .card__cta svg,
.card:focus-visible .card__cta svg {
  transform: translate(2px, -2px);
}

.card--steplisten {
  --accent: #2dd4bf;
  --accent-rgb: 45, 212, 191;
}

.card--tapshell {
  --accent: #4ade80;
  --accent-rgb: 74, 222, 128;
}

.card--wemqtt {
  --accent: #fbbf24;
  --accent-rgb: 251, 191, 36;
}

.card--rapiddrift {
  --accent: #f472b6;
  --accent-rgb: 244, 114, 182;
}

/* ===== About ===== */

.about {
  padding-bottom: clamp(80px, 10vw, 128px);
}

.about-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(620px 320px at 0% 0%, rgba(99, 102, 241, 0.13), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  overflow: hidden;
}

.about-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.55), transparent);
}

.about-intro h2 {
  margin-top: 14px;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.3;
}

.about-body p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.9;
}

.about-body p:last-of-type {
  margin-bottom: 0;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 30px;
}

.stat {
  padding-right: 30px;
}

.stat + .stat {
  padding-left: 30px;
  border-left: 1px solid var(--border);
}

.stat strong {
  display: block;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.stat span {
  color: var(--faint);
  font-size: 12.5px;
}

/* ===== Footer ===== */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 26px 0 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  font-weight: 600;
}

.brand-mark--sm {
  width: 24px;
  height: 24px;
  border-radius: 8px;
}

.brand-mark--sm svg {
  width: 13px;
  height: 13px;
}

.footer-copy {
  color: var(--faint);
  font-size: 12.5px;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-top:hover {
  color: var(--text);
}

.footer-top svg {
  width: 14px;
  height: 14px;
}

/* ===== Motion ===== */

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * {
    animation: rise-in 0.75s var(--ease) both;
  }

  .hero-inner > :nth-child(2) {
    animation-delay: 0.07s;
  }

  .hero-inner > :nth-child(3) {
    animation-delay: 0.14s;
  }

  .hero-inner > :nth-child(4) {
    animation-delay: 0.21s;
  }

  .status-dot {
    animation: pulse-dot 2.6s ease-out infinite;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      translate: 0 16px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }

  @keyframes pulse-dot {
    0% {
      box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45);
    }
    70% {
      box-shadow: 0 0 0 6px rgba(74, 222, 128, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
    }
  }
}

@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;
  }

  .hero-inner > * {
    animation: none;
  }
}

/* ===== Responsive ===== */

@media (max-width: 900px) {
  .about-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 76px;
  }

  .header-inner {
    height: 60px;
  }

  .header-actions {
    gap: 8px;
  }

  .site-nav a {
    padding: 8px 8px;
    font-size: 13.5px;
  }

  .lang-switch button {
    min-width: 28px;
    padding: 5px 7px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .section-note {
    max-width: none;
    margin-bottom: 0;
  }

  .card__foot {
    gap: 12px;
  }

  .stat {
    padding-right: 22px;
  }

  .stat + .stat {
    padding-left: 22px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 10px;
    margin-top: 26px;
  }

  .stat {
    padding-right: 0;
  }

  .stat + .stat {
    padding-left: 0;
    border-left: 0;
  }

  .stat strong {
    font-size: 23px;
  }

  .stat span {
    font-size: 11.5px;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .brand-name {
    display: none;
  }
}
