/* Radio Utility Family — radio.asis.sh */
:root {
  --ink: #1d1d1f;
  --ink-2: #515154;
  --ink-3: #86868b;
  --line: #e3e3e8;
  --paper: #ffffff;
  --paper-2: #f5f5f7;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

  /* per-app themes */
  --fx-a: #2f4a17; --fx-b: #6f9a2b; --fx-accent: #b6e05a;
  --icom-a: #071a33; --icom-b: #1f6fb8; --icom-accent: #5cc8ff;
  --lab599-a: #0c0c0d; --lab599-b: #3a3a3e; --lab599-accent: #ff4d4f;
  --xiegu-a: #062a35; --xiegu-b: #0f5a68; --xiegu-accent: #6ff0df;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.55 var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #0a84ff; outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .h1 { font-family: var(--display); letter-spacing: -0.022em; line-height: 1.08; margin: 0; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; letter-spacing: -0.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand b { font-weight: 700; }
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav__gh { padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; }

/* ---------- Hero carousel ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.hero__stage { position: relative; display: grid; }
.slide {
  grid-area: 1 / 1;
  padding: 72px 0 132px;
  background:
    radial-gradient(1100px 500px at 78% 40%, var(--b) 0%, transparent 62%),
    linear-gradient(160deg, var(--a), var(--a));
  opacity: 0; visibility: hidden;
  transition: opacity .7s ease, visibility .7s;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide[data-theme="fx"] { --a: var(--fx-a); --b: var(--fx-b); --accent: var(--fx-accent); }
.slide[data-theme="icom"] { --a: var(--icom-a); --b: var(--icom-b); --accent: var(--icom-accent); }
.slide[data-theme="lab599"] { --a: var(--lab599-a); --b: var(--lab599-b); --accent: var(--lab599-accent); }
.slide[data-theme="xiegu"] { --a: var(--xiegu-a); --b: var(--xiegu-b); --accent: var(--xiegu-accent); }

.slide__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 40px; min-height: 400px; }
.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.slide h1, .slide .h1 { font-size: clamp(42px, 6.4vw, 76px); font-weight: 800; }
.slide__pitch { font-size: clamp(18px, 2vw, 22px); line-height: 1.45; color: rgba(255, 255, 255, 0.86); max-width: 33ch; margin: 18px 0 30px; }
.slide__meta { margin: 18px 0 0; font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }

.slide__art { position: relative; display: grid; place-items: center; }
.slide__art::before, .slide__art::after {
  content: ""; position: absolute; inset: 50% auto auto 50%;
  width: 420px; height: 420px; margin: -210px 0 0 -210px;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent);
  animation: ring 4s ease-out infinite;
  opacity: 0;
}
.slide__art::after { animation-delay: 2s; }
.slide__art img {
  position: relative; width: min(360px, 80%);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
  transform: translateY(16px) scale(.94); opacity: 0;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .9s;
}
.slide.is-active .slide__art img { transform: none; opacity: 1; animation: bob 6s ease-in-out .9s infinite; }
@keyframes ring { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 24px; border-radius: 999px;
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: transform .15s ease, background .2s, box-shadow .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.btn--ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .45); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.is-soon { opacity: .6; cursor: default; font-weight: 500; }
.is-soon:hover { transform: none; background: none; }

/* App switcher (floating pill over the hero) */
.switcher {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; gap: 6px; padding: 6px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.switcher button {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 16px 6px 6px; border: 0; border-radius: 999px;
  background: transparent; color: rgba(255, 255, 255, .8);
  font: 600 14px var(--font); cursor: pointer;
  transition: background .25s, color .25s;
}
.switcher button img { width: 34px; height: 34px; border-radius: 9px; }
.switcher button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.switcher button[aria-selected="true"] { background: #fff; color: var(--ink); }
.switcher button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: rgba(0, 0, 0, .35); transform-origin: left; transform: scaleX(0);
  animation: progress 6.5s linear forwards;
}
.switcher button.restart::after { animation: none; }
.hero.is-paused .switcher button::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

/* ---------- Intro ---------- */
.intro { text-align: center; padding: 96px 0 48px; }
.intro h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
.intro p { max-width: 40ch; margin: 18px auto 0; font-size: clamp(19px, 2vw, 23px); color: var(--ink-2); line-height: 1.45; }

/* ---------- App grid ---------- */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; padding-bottom: 104px; }
.card {
  position: relative; display: flex; gap: 26px; align-items: flex-start;
  padding: 34px; border-radius: var(--radius);
  background: var(--paper-2);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, background .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(500px 220px at 0% 0%, var(--tint), transparent 70%);
  opacity: .55; transition: opacity .3s;
}
.card[data-theme="fx"] { --tint: #dfeec2; --hi: #4c7a12; }
.card[data-theme="icom"] { --tint: #cfe6fb; --hi: #1666b0; }
.card[data-theme="lab599"] { --tint: #f6d3d3; --hi: #c4161c; }
.card[data-theme="xiegu"] { --tint: #c9f1ec; --hi: #0b7a74; }
.card:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 22px 50px rgba(0, 0, 0, .09); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; }
.card__body { display: flex; flex-direction: column; align-self: stretch; min-width: 0; flex: 1; }
.card__links { margin-top: auto; }
.card__icon { flex: none; width: 112px; height: 112px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .18)); transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card__icon { transform: rotate(-4deg) scale(1.05); }
.card h3 { font-size: 26px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card__radios { margin: 6px 0 12px; font-size: 14px; font-weight: 600; color: var(--hi); }
.card p { margin: 0; color: var(--ink-2); }
.badge { font: 700 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--hi); padding: 5px 8px; border-radius: 6px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 16px 0 20px; }
.tags li { font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.card__links { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; }
.card__links a { color: var(--hi); }
.card__links .dl { margin-left: auto; color: #fff; background: var(--ink); padding: 7px 16px; border-radius: 999px; }
.card__links .dl:hover { text-decoration: none; background: var(--hi); }
.soon { color: var(--ink-3); font-weight: 500; }

/* ---------- Better together ---------- */
.together { background: var(--ink); color: #fff; padding: 104px 0; text-align: center; }
.together h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 800; }
.together .lead { max-width: 46ch; margin: 18px auto 60px; font-size: 20px; color: rgba(255, 255, 255, .7); }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; text-align: left; }
.perk { padding: 32px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.perk svg { width: 44px; height: 44px; fill: none; stroke: #6ff0df; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }
.perk:nth-child(1) svg { stroke: #b6e05a; }
.perk:nth-child(2) svg { stroke: #5cc8ff; }
.perk:nth-child(3) svg { stroke: #ff6b6d; }
.perk h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.perk p { margin: 0; color: rgba(255, 255, 255, .68); font-size: 16px; }

/* ---------- Download strip ---------- */
.strip { display: flex; align-items: center; gap: 32px; margin-block: 88px; padding: 36px 40px; border-radius: var(--radius); background: var(--paper-2); }
.strip__icons { display: flex; flex: none; }
.strip__icons img { width: 60px; height: 60px; margin-left: -14px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .18)); transition: transform .3s; }
.strip__icons img:first-child { margin-left: 0; }
.strip:hover .strip__icons img { transform: translateY(-4px); }
.strip:hover .strip__icons img:nth-child(2) { transition-delay: .05s; }
.strip:hover .strip__icons img:nth-child(3) { transition-delay: .1s; }
.strip:hover .strip__icons img:nth-child(4) { transition-delay: .15s; }
.strip h2 { font-size: 26px; font-weight: 700; }
.strip p { margin: 4px 0 0; color: var(--ink-2); }
.strip .btn { margin-left: auto; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--ink-3); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer nav a { color: var(--ink-2); }
.fine { margin-top: 18px; font-size: 12.5px; line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .apps { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav a:not(.nav__gh) { display: none; }
  .slide { padding: 40px 0 120px; }
  .slide__inner { grid-template-columns: 1fr; text-align: center; min-height: 0; gap: 8px; }
  .slide__art { order: -1; }
  .slide__art img { width: 190px; }
  .slide__art::before, .slide__art::after { width: 260px; height: 260px; margin: -130px 0 0 -130px; }
  .slide__pitch { margin-inline: auto; }
  .cta { justify-content: center; }
  .switcher button { padding: 5px; }
  .switcher button span { display: none; }
  .card { flex-direction: column; padding: 28px; gap: 18px; }
  .card__icon { width: 88px; height: 88px; }
  .strip { flex-direction: column; text-align: center; padding: 32px 24px; gap: 18px; }
  .strip .btn { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
