:root {
  --ink: #07151c;
  --ink-soft: #123040;
  --foam: #e8f3f5;
  --mist: #b7d5db;
  --teal: #1aa6b2;
  --teal-deep: #0e6f7a;
  --amber: #f0b429;
  --amber-hot: #ffcf5c;
  --paper: #f4f8f9;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: 0 24px 60px rgba(4, 18, 24, 0.35);
  --radius: 22px;
  --font-display: "Syne", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--foam);
  font-family: var(--font-body);
  background: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 50;
  background: var(--amber);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(4, 16, 24, 0.72), transparent);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -0.03em;
}

.brand em {
  font-style: italic;
  font-weight: 800;
}

.brand em.soft {
  color: var(--amber);
}

.brand .with-mi {
  font-style: normal;
  font-weight: 500;
  font-size: 0.58em;
  letter-spacing: -0.01em;
  color: rgba(232, 243, 245, 0.7);
  margin-left: 0.2em;
  vertical-align: middle;
}

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

.nav a {
  color: rgba(232, 243, 245, 0.82);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a:hover {
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--amber-hot), var(--amber));
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(240, 180, 41, 0.28);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(100px, 14vh, 140px) clamp(18px, 4vw, 48px) clamp(40px, 7vh, 72px);
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(26, 166, 178, 0.35), transparent 55%),
    radial-gradient(900px 500px at 10% 90%, rgba(240, 180, 41, 0.18), transparent 50%),
    linear-gradient(160deg, #041018 0%, #0b2a36 42%, #123d48 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
  animation: drift 28s linear infinite;
}

@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(56px); }
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-slogan {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  letter-spacing: -0.03em;
  color: var(--amber);
  text-shadow: 0 8px 28px rgba(240, 180, 41, 0.28);
  animation: slogan-in 0.9s ease both;
}

@keyframes slogan-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.joker-visual {
  position: relative;
  margin: 0;
  justify-self: end;
  width: min(100%, 560px);
  animation: floaty 9s ease-in-out infinite;
}

.joker-hand {
  width: 100%;
  height: auto;
  border-radius: 18px;
  display: block;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

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

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

  .joker-visual {
    justify-self: center;
    order: -1;
    width: min(100%, 420px);
    margin-bottom: 8px;
  }
}

.hero-brands {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  margin: 0 0 28px;
}

.hero-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 9vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  margin: 0;
}

.hero-brand em {
  font-style: italic;
  font-weight: 800;
}

.hero-brand em.soft {
  color: var(--amber);
}

.hero-plus {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: rgba(232, 243, 245, 0.4);
  line-height: 1;
}

.hero-mi-logo {
  width: min(240px, 48vw);
  height: auto;
  border-radius: 8px;
  background: #000;
  padding: 8px 12px;
}

.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0;
  max-width: none;
}

.hero-kicker {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

.hero-uses {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.15em;
  display: grid;
  gap: 4px;
  border-left: 2px solid rgba(255, 255, 255, 0.22);
  padding-left: 0.9em;
}

.hero-uses li {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  color: rgba(232, 243, 245, 0.88);
}

.hero-uses li::before {
  display: none;
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 42ch;
  color: rgba(232, 243, 245, 0.72);
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 400;
}

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

.section {
  padding: clamp(56px, 9vw, 100px) clamp(18px, 4vw, 48px);
}

.section-alt {
  background:
    linear-gradient(180deg, #0a1f28 0%, #0d2732 100%);
}

.section-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--mist);
}

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

.product {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.product:hover {
  transform: translateY(-6px);
  border-color: rgba(26, 166, 178, 0.55);
  background: rgba(255, 255, 255, 0.055);
}

.product-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  flex: none;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(26, 166, 178, 0.16);
  color: #9de4eb;
}

.tag-store {
  background: rgba(240, 180, 41, 0.16);
  color: #ffd56a;
}

.tag-demo {
  background: rgba(120, 220, 160, 0.14);
  color: #9eecc0;
}

.product h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.product p {
  margin: 0;
  color: rgba(232, 243, 245, 0.78);
  flex: 1;
}

.product code {
  font-size: 0.86rem;
  color: var(--amber-hot);
  word-break: break-all;
}

.product-demo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-demo img,
.qr-link img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  flex: none;
}

.qr-link {
  display: block;
  flex: none;
  transition: transform 0.2s ease;
}

.qr-link:hover {
  transform: scale(1.04);
}

.product-demo-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.demo-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mist);
}

.demo-download {
  color: var(--amber-hot);
  font-weight: 700;
  font-size: 0.98rem;
  word-break: break-all;
}

.demo-download:hover {
  color: #fff;
  text-decoration: underline;
}

.demo-hint {
  font-size: 0.88rem;
  color: rgba(232, 243, 245, 0.7);
}

.demo-steps {
  margin: 0 0 22px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}

.demo-steps ol {
  margin: 0;
  padding-left: 1.2rem;
  color: rgba(232, 243, 245, 0.86);
}

.demo-steps li + li {
  margin-top: 0.45rem;
}

.demo-connect-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.product-actions .btn {
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
}

.site-footer {
  padding: 28px clamp(18px, 4vw, 48px) 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  color: var(--mist);
  font-size: 0.92rem;
}

.site-footer a {
  color: #fff;
  font-weight: 650;
}

.site-footer a:hover {
  color: var(--amber);
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    background: #041018;
  }

  .hero {
    min-height: auto;
    padding-top: 28px;
  }

  .nav .btn {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
