/* HomiAPK website — one stylesheet, no framework. Logical properties keep fa (RTL) and en (LTR) in sync. */

@font-face {
  font-family: "IRANSansX";
  src: url("../fonts/iransansx-var.woff2") format("woff2-variations"), url("../fonts/iransansx-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --brand: #14b8a6;
  --brand-2: #0d9488;
  --brand-deep: #0f5f57;
  --accent: #8b5cf6;
  --accent-2: #f59e0b;
  --bg: #f7faf9;
  --bg-2: #eef5f3;
  --surface: #ffffff;
  --surface-2: #f2f7f6;
  --text: #0b1f1d;
  --muted: #4a5d5a;
  --line: rgba(11, 31, 29, 0.1);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 1px 2px rgba(11, 31, 29, 0.06), 0 12px 32px -12px rgba(11, 31, 29, 0.18);
  --shadow-lg: 0 30px 80px -30px rgba(15, 95, 87, 0.45);
  --radius: 20px;
  --radius-sm: 12px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071412;
    --bg-2: #0a1c19;
    --surface: #0e211e;
    --surface-2: #122a26;
    --text: #e7f3f1;
    --muted: #9db3af;
    --line: rgba(231, 243, 241, 0.1);
    --glass: rgba(14, 33, 30, 0.7);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 30px 80px -30px rgba(20, 184, 166, 0.35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #071412;
  --bg-2: #0a1c19;
  --surface: #0e211e;
  --surface-2: #122a26;
  --text: #e7f3f1;
  --muted: #9db3af;
  --line: rgba(231, 243, 241, 0.1);
  --glass: rgba(14, 33, 30, 0.7);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 80px -30px rgba(20, 184, 166, 0.35);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "IRANSansX", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  line-height: 1.7;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.35;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  background: var(--brand-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.header.scrolled {
  border-bottom-color: var(--line);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand span {
  direction: ltr;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
  padding: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
}

.icon-btn .icon {
  width: 20px;
  height: 20px;
}

.menu-btn {
  display: none;
}

.theme-dark-icon {
  display: none;
}

:root[data-theme="dark"] .theme-dark-icon {
  display: block;
}

:root[data-theme="dark"] .theme-light-icon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-dark-icon {
    display: block;
  }

  :root:not([data-theme="light"]) .theme-light-icon {
    display: none;
  }
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 16px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 10px 30px -10px rgba(20, 184, 166, 0.7);
}

.btn-primary:hover {
  box-shadow: 0 16px 40px -12px rgba(20, 184, 166, 0.85);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.btn-sm {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
}

.btn small {
  display: block;
  font-weight: 500;
  font-size: 0.75rem;
  opacity: 0.85;
  line-height: 1.2;
}

.btn .btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

.aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(20, 184, 166, 0.28), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(139, 92, 246, 0.22), transparent 70%),
    radial-gradient(30% 40% at 60% 70%, rgba(245, 158, 11, 0.12), transparent 70%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}

.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.55;
}

@keyframes drift {
  to {
    transform: translate3d(0, 40px, 0) scale(1.08);
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  font-size: 0.88rem;
  color: var(--muted);
  backdrop-filter: blur(8px);
}

html[dir="rtl"] .pill {
  padding: 6px 6px 6px 14px;
}

.pill b {
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 900;
  line-height: 1.3;
}

.grad {
  background: linear-gradient(120deg, var(--brand) 10%, var(--accent) 60%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin-top: 20px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted);
  max-width: 34em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.93rem;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-points .icon {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

/* ---------- phone mockup ---------- */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
}

.phone {
  position: relative;
  width: 300px;
  height: 610px;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #1e2b29, #0a1110);
  box-shadow: var(--shadow-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: rotate(-3deg);
  animation: float 7s ease-in-out infinite;
}

html[dir="rtl"] .phone {
  transform: rotate(3deg);
}

@keyframes float {
  50% {
    translate: 0 -12px;
  }
}

.screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: #f6faf9;
  color: #0b1f1d;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.6;
}

.notch {
  position: absolute;
  top: 8px;
  left: 50%;
  translate: -50% 0;
  width: 84px;
  height: 22px;
  border-radius: 20px;
  background: #0a1110;
  z-index: 3;
}

.ed-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 38px 14px 8px;
  font-weight: 700;
  font-size: 11px;
  color: #4a5d5a;
}

.ed-top i {
  display: inline-block;
  width: 18px;
  height: 6px;
  border-radius: 4px;
  background: #cfe1de;
  margin-inline-start: 4px;
}

.ed-canvas {
  flex: 1;
  margin: 0 10px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 20px -10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
}

.app-hero {
  height: 118px;
  background: linear-gradient(135deg, #f59e0b, #ef6c00);
  color: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.app-hero b {
  font-size: 17px;
  font-weight: 900;
}

.app-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.app-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.app-btns span {
  border-radius: 10px;
  padding: 7px;
  text-align: center;
  font-weight: 700;
  background: #fff3e0;
  color: #b45309;
}

.app-btns span:first-child {
  background: #ef6c00;
  color: #fff;
}

.app-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.app-card {
  border-radius: 12px;
  background: #f6f3ee;
  padding: 6px;
}

.app-card i {
  display: block;
  height: 54px;
  border-radius: 9px;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.app-card:nth-child(2) i {
  background: linear-gradient(135deg, #a7f3d0, #14b8a6);
}

.app-card b {
  display: block;
  margin-top: 4px;
  font-size: 11px;
}

.app-card small {
  color: #ef6c00;
  font-weight: 700;
}

.sel {
  position: absolute;
  border: 2px solid var(--brand);
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.18);
  animation: select 9s var(--ease) infinite;
}

.sel::after {
  content: attr(data-a);
  position: absolute;
  top: -20px;
  inset-inline-start: -2px;
  padding: 0 7px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
  animation: selname 9s steps(1) infinite;
}

@keyframes select {
  0%,
  28% {
    inset: 6px 6px auto 6px;
    height: 112px;
  }
  33%,
  61% {
    inset: 128px 10px auto 10px;
    height: 36px;
  }
  66%,
  100% {
    inset: 172px 10px auto 10px;
    height: 104px;
  }
}

@keyframes selname {
  0% {
    content: attr(data-a);
  }
  33% {
    content: attr(data-b);
  }
  66% {
    content: attr(data-c);
  }
}

.ed-tools {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 10px 8px 16px;
  font-size: 9.5px;
  color: #4a5d5a;
  text-align: center;
}

.ed-tools span::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto 2px;
  border-radius: 7px;
  background: #e2eeec;
}

.ed-tools span:first-child {
  color: var(--brand-2);
  font-weight: 700;
}

.ed-tools span:first-child::before {
  background: var(--brand);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.85rem;
  max-width: 250px;
  line-height: 1.6;
  animation: float 6s ease-in-out infinite;
}

.float-card .badge-ic {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #fff;
  flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.float-card .badge-ic .icon {
  width: 20px;
  height: 20px;
}

.float-card b {
  display: block;
  font-size: 0.9rem;
}

.float-card small {
  color: var(--muted);
}

.fc-1 {
  top: 40px;
  inset-inline-start: -10px;
  animation-delay: -2s;
}

.fc-2 {
  bottom: 120px;
  inset-inline-end: -24px;
  animation-delay: -4s;
}

.fc-2 .badge-ic {
  background: linear-gradient(135deg, var(--accent), #5b21b6);
}

.fc-3 {
  bottom: 20px;
  inset-inline-start: 10px;
}

.fc-3 .badge-ic {
  background: linear-gradient(135deg, var(--accent-2), #c2410c);
}

/* ---------- sections ---------- */

section {
  padding: 96px 0;
  position: relative;
}

.section-alt {
  background: var(--bg-2);
}

.head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-2);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 900;
}

.head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.stat {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat b {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.2;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

/* modes */

.modes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.mode {
  padding: 24px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.mode:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.mode h3 {
  font-size: 1.05rem;
  margin-top: 16px;
}

.mode p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.8;
}

.tile-ic {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--c1, var(--brand)), var(--c2, var(--brand-deep)));
  box-shadow: 0 10px 24px -12px var(--c1, var(--brand));
}

.tile-ic .icon {
  width: 26px;
  height: 26px;
}

.c-violet {
  --c1: #8b5cf6;
  --c2: #5b21b6;
}

.c-amber {
  --c1: #f59e0b;
  --c2: #c2410c;
}

.c-rose {
  --c1: #f43f5e;
  --c2: #9f1239;
}

.c-sky {
  --c1: #0ea5e9;
  --c2: #075985;
}

.c-lime {
  --c1: #84cc16;
  --c2: #3f6212;
}

/* bento features */

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  grid-column: span 2;
}

.card.wide {
  grid-column: span 3;
}

.card.full {
  grid-column: span 6;
}

.card h3 {
  font-size: 1.15rem;
  margin-top: 18px;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.card::before {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c1, var(--brand)) 18%, transparent), transparent 70%);
  pointer-events: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

/* assistant */

.assist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.assist-list {
  display: grid;
  gap: 18px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.assist-list li {
  display: flex;
  gap: 14px;
}

.assist-list .tile-ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.assist-list .tile-ic .icon {
  width: 22px;
  height: 22px;
}

.assist-list b {
  display: block;
  font-size: 1.02rem;
}

.assist-list li > span > span {
  display: block;
  color: var(--muted);
  font-size: 0.94rem;
}

.chat {
  padding: 20px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.chat-head .tile-ic {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.chat-head .tile-ic .icon {
  width: 20px;
  height: 20px;
}

.chat-head small {
  display: block;
  font-weight: 500;
  color: var(--brand-2);
  font-size: 0.78rem;
}

.msgs {
  display: grid;
  gap: 12px;
  padding-top: 16px;
}

.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.93rem;
  line-height: 1.75;
  opacity: 0;
  translate: 0 10px;
  transition: opacity 0.5s var(--ease), translate 0.5s var(--ease);
}

.chat.play .msg {
  opacity: 1;
  translate: 0 0;
}

.chat.play .msg:nth-child(2) {
  transition-delay: 0.6s;
}

.chat.play .msg:nth-child(3) {
  transition-delay: 1.4s;
}

.chat.play .msg:nth-child(4) {
  transition-delay: 2.1s;
}

.chat.play .msg:nth-child(5) {
  transition-delay: 2.9s;
}

.msg.me {
  justify-self: end;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  border-end-end-radius: 6px;
}

.msg.bot {
  justify-self: start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-end-start-radius: 6px;
}

.msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.msg-actions span {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface);
}

.msg-actions span:first-child {
  background: var(--brand);
  border-color: transparent;
  color: #fff;
}

/* steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
}

.step {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.step::before {
  counter-increment: step;
  content: counter(step, var(--counter, decimal));
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

html[lang="fa"] .step::before {
  --counter: persian;
}

.step h3 {
  font-size: 1.12rem;
  margin-top: 18px;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* compare */

.compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.compare th,
.compare td {
  padding: 16px 20px;
  text-align: start;
  border-bottom: 1px solid var(--line);
}

.compare thead th {
  background: var(--surface-2);
  font-size: 0.92rem;
}

.compare thead th:nth-child(2) {
  color: var(--brand-2);
}

.compare tr:last-child td,
.compare tr:last-child th {
  border-bottom: 0;
}

.compare td {
  color: var(--muted);
}

.yes,
.no {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.yes {
  color: var(--brand-2);
}

.no {
  color: #e11d48;
}

.yes .icon,
.no .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}

/* download */

.downloads {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.dl {
  padding: 32px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.dl.main {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(60% 100% at 0% 100%, rgba(139, 92, 246, 0.14), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-lg);
}

.dl-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dl-head h3 {
  font-size: 1.35rem;
}

.dl-head small {
  color: var(--muted);
  font-size: 0.9rem;
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.meta div {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.meta dt {
  font-size: 0.8rem;
  color: var(--muted);
}

.meta dd {
  margin: 0;
  font-weight: 800;
}

.hash {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
  direction: ltr;
  text-align: left;
  font-family: ui-monospace, Consolas, monospace;
}

.install {
  margin: 22px 0 0;
  padding-inline-start: 1.3em;
  color: var(--muted);
  font-size: 0.93rem;
}

.install li + li {
  margin-top: 4px;
}

.soon {
  display: inline-block;
  margin-inline-start: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
  vertical-align: middle;
}

:root[data-theme="dark"] .soon {
  color: #fbbf24;
}

/* roadmap */

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.road {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line));
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.road h3 {
  font-size: 1rem;
  margin-top: 12px;
}

.road p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.road .tile-ic {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.road .tile-ic .icon {
  width: 22px;
  height: 22px;
}

/* faq */

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  transition: transform 0.3s var(--ease);
  color: var(--brand);
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 22px 20px;
  color: var(--muted);
}

/* cta + footer */

.cta {
  padding: 64px 32px;
  border-radius: 32px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(139, 92, 246, 0.55), transparent 60%),
    radial-gradient(60% 120% at 100% 100%, rgba(245, 158, 11, 0.35), transparent 60%),
    linear-gradient(135deg, #0d9488, #0f5f57);
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 900;
}

.cta p {
  margin: 14px auto 0;
  max-width: 36em;
  opacity: 0.9;
}

.cta .btn {
  margin-top: 28px;
  background: #fff;
  color: var(--brand-deep);
}

.footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.foot a:hover {
  color: var(--text);
}

/* reveal */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .modes {
    grid-template-columns: repeat(3, 1fr);
  }

  .roadmap {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .assist,
  .downloads {
    grid-template-columns: 1fr;
  }

  .stage {
    min-height: 560px;
  }

  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .card,
  .card.wide {
    grid-column: span 1;
  }

  .card.full {
    grid-column: span 2;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .nav-links {
    position: absolute;
    top: 68px;
    inset-inline: 12px;
    flex-direction: column;
    padding: 10px;
    border-radius: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 16px;
  }

  .menu-btn {
    display: inline-grid;
  }

  .nav-tools {
    margin-inline-start: auto;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  section {
    padding: 72px 0;
  }

  .hero {
    padding: 36px 0 80px;
  }

  .modes,
  .bento,
  .roadmap {
    grid-template-columns: 1fr;
  }

  .card.full {
    grid-column: span 1;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .phone {
    width: 268px;
    height: 550px;
  }

  .float-card {
    display: none;
  }

  .fc-1 {
    display: flex;
    top: 0;
    inset-inline-start: 0;
  }

  .nav-tools .btn {
    display: none;
  }

  .dl {
    padding: 24px;
  }

  .compare th,
  .compare td {
    padding: 12px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .msg {
    opacity: 1;
    transform: none;
    translate: none;
  }
}
