/* ==========================================================================
   RitmAI Hub — landing page layout & motion
   ========================================================================== */

.ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: glowDrift 18s ease-in-out infinite alternate;
}

.ambient__glow--a {
  width: min(620px, 70%);
  height: min(620px, 70%);
  top: -12%;
  inset-inline-end: -8%;
  background: radial-gradient(circle, rgba(101, 116, 255, 0.34), transparent 68%);
}

.ambient__glow--b {
  width: min(520px, 60%);
  height: min(520px, 60%);
  bottom: 8%;
  inset-inline-start: -10%;
  background: radial-gradient(circle, rgba(77, 227, 255, 0.22), transparent 70%);
  animation-delay: -6s;
}

.ambient__glow--c {
  width: min(440px, 50%);
  height: min(440px, 50%);
  top: 42%;
  inset-inline-end: 18%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16), transparent 70%);
  animation-delay: -11s;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 18%, transparent 72%);
  opacity: 0.55;
}

.ambient__noise {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes glowDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2%, -3%, 0) scale(1.06); }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: height 0.25s var(--ease), background 0.25s var(--ease),
    border-color 0.25s var(--ease), backdrop-filter 0.25s;
  border-bottom: 1px solid transparent;
  background: rgba(6, 8, 22, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  --header-h: 64px;
  background: rgba(6, 8, 22, 0.78);
  border-bottom-color: var(--border-soft);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__en {
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fff, var(--brand-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand__fa {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-inline-start: auto;
  margin-inline-end: 0.8rem;
}

.nav-desktop a {
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--text-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  place-items: center;
  gap: 5px;
  flex-direction: column;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  padding: 0.8rem 1.2rem 1.2rem;
  background: rgba(8, 12, 28, 0.96);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(16px);
}

.mobile-nav nav {
  display: grid;
  gap: 0.35rem;
}

.mobile-nav a {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.mobile-nav .btn {
  margin-top: 0.4rem;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(2.4rem, 5vw, 4.2rem) 0 2.2rem;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  color: var(--brand-cyan);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
  letter-spacing: -0.01em;
}

.hero__brand-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.hero__brand-en {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero__brand-fa {
  color: var(--text-secondary);
  font-weight: 600;
}

.hero__brand-wave {
  width: 42px;
  height: 14px;
  background:
    radial-gradient(circle at 20% 50%, var(--brand-cyan) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 50%, var(--brand-blue) 0 2px, transparent 3px),
    radial-gradient(circle at 80% 50%, var(--brand-purple) 0 2px, transparent 3px);
  position: relative;
}

.hero__brand-wave::before {
  content: "";
  position: absolute;
  inset: 5px 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand-cyan), var(--brand-blue), transparent);
  border-radius: 999px;
  animation: wavePulse 2.8s ease-in-out infinite;
}

@keyframes wavePulse {
  0%, 100% { opacity: 0.45; transform: scaleX(0.85); }
  50% { opacity: 1; transform: scaleX(1); }
}

.hero__title {
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  max-width: 16ch;
  margin-bottom: 1rem;
}

.hero__lead {
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  max-width: 42ch;
  margin-bottom: 1.6rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero__badges li {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.03);
}

.hero__visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero__orbit {
  position: absolute;
  inset: 8%;
  z-index: 0;
}

.hero__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(77, 227, 255, 0.18);
  animation: orbitSpin 28s linear infinite;
}

.hero__ring--2 {
  inset: 12%;
  border-color: rgba(101, 116, 255, 0.2);
  animation-duration: 40s;
  animation-direction: reverse;
}

.hero__ring--3 {
  inset: 24%;
  border-color: rgba(168, 85, 247, 0.16);
  animation-duration: 52s;
}

.hero__dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-cyan);
  box-shadow: 0 0 16px var(--brand-cyan);
  animation: orbitSpin 18s linear infinite;
}

.hero__dot--1 { top: 8%; inset-inline-start: 48%; }
.hero__dot--2 {
  bottom: 18%;
  inset-inline-end: 14%;
  background: var(--brand-blue);
  box-shadow: 0 0 16px var(--brand-blue);
  animation-duration: 24s;
  animation-direction: reverse;
}
.hero__dot--3 {
  top: 42%;
  inset-inline-start: 10%;
  background: var(--brand-purple);
  box-shadow: 0 0 16px var(--brand-purple);
  animation-duration: 32s;
}

.hero__pulse {
  position: absolute;
  inset: 34%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 227, 255, 0.22), transparent 70%);
  animation: pulseSoft 4.5s ease-in-out infinite;
}

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

@keyframes pulseSoft {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

.hero__image {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  height: auto;
  aspect-ratio: 1400 / 875;
  object-fit: contain;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 42%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 42%, transparent 78%);
  filter: drop-shadow(0 20px 50px rgba(77, 227, 255, 0.12));
}

.hero__fallback {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  aspect-ratio: 1;
}

.hero__fallback-core {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.35), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(77, 227, 255, 0.45), rgba(101, 116, 255, 0.15) 55%, transparent 72%);
  box-shadow: 0 0 60px rgba(77, 227, 255, 0.25);
}

.hero__fallback-wave {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  animation: orbitSpin 36s linear infinite;
}

/* ── Ticker ─────────────────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  margin-bottom: 1rem;
  max-width: 100%;
  contain: paint;
}

.ticker__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  padding: 0.85rem 0;
  animation: tickerMove 48s linear infinite;
}

.ticker__track span {
  color: var(--text-mute);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}

.ticker__track span::before {
  content: "◆";
  margin-inline-end: 0.75rem;
  color: rgba(77, 227, 255, 0.45);
  font-size: 0.55rem;
  vertical-align: middle;
}

@keyframes tickerMove {
  to { transform: translateX(50%); }
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.section {
  padding: clamp(3.2rem, 7vw, 5.5rem) 0;
}

.section__head {
  max-width: 46rem;
  margin-bottom: 2.2rem;
}

.section__eyebrow {
  color: var(--brand-cyan);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
}

.section__head h2 {
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  margin-bottom: 0.7rem;
}

.section__lead {
  color: var(--text-secondary);
  font-size: 1.02rem;
  max-width: 48ch;
}

/* ── Products ───────────────────────────────────────────────────────────── */
.products__layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.infra-panel {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}

.infra-panel__inner {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  background: rgba(12, 16, 36, 0.72);
  backdrop-filter: blur(10px);
}

.infra-panel__title {
  font-weight: 800;
  font-size: 0.95rem;
}

.infra-panel__note {
  font-size: 0.75rem;
  color: var(--text-mute);
  margin-top: -0.4rem;
}

.infra-card {
  padding: 0.85rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 0.45rem;
}

.infra-card__top {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  align-items: center;
}

.infra-card h3 {
  font-size: 0.95rem;
}

.infra-card__fa {
  font-size: 0.8rem;
  color: var(--text-mute);
}

.infra-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 100%;
  padding: 1.05rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
  --mx: 50%;
  --my: 30%;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--mx) var(--my),
    color-mix(in srgb, var(--card-accent) 18%, transparent),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--card-accent) 45%, var(--border-soft));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px color-mix(in srgb, var(--card-accent) 20%, transparent);
}

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

.product-card--featured {
  border-color: color-mix(in srgb, var(--card-accent) 40%, var(--border-soft));
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--card-accent) 14%, transparent), transparent 50%),
    var(--surface-strong);
}

.product-card--creative .media-tags {
  opacity: 0.75;
  transform: translateY(2px);
  transition: opacity 0.28s, transform 0.28s;
}

.product-card--creative:hover .media-tags,
.product-card--creative:focus-within .media-tags {
  opacity: 1;
  transform: translateY(0);
}

.product-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1;
}

.product-card__num {
  font-size: 0.8rem;
  font-weight: 800;
  color: color-mix(in srgb, var(--card-accent) 80%, #fff);
  opacity: 0.9;
}

.product-card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-accent) 28%, transparent);
  position: relative;
  z-index: 1;
  transition: transform 0.3s var(--ease);
}

.product-card:hover .product-card__icon {
  transform: translateY(-2px) scale(1.04);
}

.product-card__brand {
  font-size: 1.08rem;
  position: relative;
  z-index: 1;
}

.product-card__name {
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.product-card__tagline {
  font-size: 0.9rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--card-accent) 55%, var(--text-primary));
  position: relative;
  z-index: 1;
}

.product-card__desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  position: relative;
  z-index: 1;
}

.media-tags,
.conn-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  position: relative;
  z-index: 1;
}

.media-tags li,
.conn-chips li {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 30%, var(--border-soft));
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.15);
}

.conn-chips {
  opacity: 0.65;
  transition: opacity 0.25s;
}

.product-card:hover .conn-chips,
.product-card:focus-within .conn-chips {
  opacity: 1;
}

.product-card__action {
  margin-top: 0.35rem;
  position: relative;
  z-index: 1;
}

/* ── How it works ───────────────────────────────────────────────────────── */
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: none;
}

.how-card {
  padding: 1.2rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-soft);
  background: var(--surface);
  display: grid;
  gap: 0.55rem;
  min-height: 100%;
  transition: transform 0.25s var(--ease), border-color 0.25s;
}

.how-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 227, 255, 0.28);
}

.how-card__icon {
  color: var(--brand-cyan);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(77, 227, 255, 0.08);
  border: 1px solid rgba(77, 227, 255, 0.18);
}

.how-card__step {
  font-size: 1.4rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.22);
  line-height: 1;
}

.how-card h3 {
  font-size: 1rem;
}

.how-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ── Network ────────────────────────────────────────────────────────────── */
.network-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.network-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.25s, transform 0.25s;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
}

.network-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.network-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  flex: 1 1 auto;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #fff;
  background: color-mix(in srgb, var(--chip) 22%, rgba(10, 14, 30, 0.9));
  border: 1px solid color-mix(in srgb, var(--chip) 45%, transparent);
  white-space: normal;
  text-align: center;
}

.network-arrow {
  color: var(--text-mute);
  flex-shrink: 0;
  /* In RTL flex, source is on the right and target on the left. */
  transform: scaleX(-1);
  animation: arrowNudge 2.8s ease-in-out infinite;
}

@keyframes arrowNudge {
  0%, 100% { transform: scaleX(-1) translateX(0); opacity: 0.55; }
  50% { transform: scaleX(-1) translateX(4px); opacity: 1; }
}

.network-note {
  margin-top: 1.5rem;
  color: var(--text-secondary);
  max-width: 58ch;
  font-size: 0.98rem;
}

/* ── Final CTA ──────────────────────────────────────────────────────────── */
.cta-panel {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.4rem);
  border-radius: calc(var(--r-xl) + 4px);
  border: 1px solid rgba(77, 227, 255, 0.22);
  background:
    radial-gradient(700px 280px at 50% 0%, rgba(101, 116, 255, 0.22), transparent 60%),
    radial-gradient(500px 240px at 80% 100%, rgba(77, 227, 255, 0.12), transparent 55%),
    rgba(12, 16, 36, 0.85);
  box-shadow: var(--shadow-md);
}

.cta-panel h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.cta-panel p {
  color: var(--text-secondary);
  max-width: 42ch;
  margin: 0 auto 1.4rem;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 2.6rem 0 2.8rem;
  background: rgba(0, 0, 0, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand-en {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.footer-brand-fa {
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.footer-tagline {
  color: var(--brand-cyan);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}

.footer-copy {
  color: var(--text-mute);
  font-size: 0.9rem;
  max-width: 36ch;
}

.footer-label {
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.footer-links {
  display: grid;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-meta {
  color: var(--text-mute);
  font-size: 0.9rem;
}

.privacy-dialog {
  border: 1px solid var(--border-soft);
  border-radius: var(--r-lg);
  background: #0c1228;
  color: var(--text-primary);
  padding: 0;
  max-width: min(460px, calc(100% - 2rem));
}

.privacy-dialog::backdrop {
  background: rgba(2, 4, 12, 0.72);
}

.privacy-dialog__inner {
  padding: 1.4rem;
  display: grid;
  gap: 0.85rem;
}

.privacy-dialog__inner p {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

/* ── Reveal ─────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.how-card.reveal {
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .products__layout {
    grid-template-columns: 1fr;
  }

  .infra-panel {
    position: static;
    order: 2;
  }

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

  .infra-panel__title,
  .infra-panel__note {
    grid-column: 1 / -1;
  }

  .products-grid {
    order: 1;
  }

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

@media (max-width: 980px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-grid;
  }

  .header-actions .btn--sm {
    display: none;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: 2;
    min-height: 280px;
  }

  .hero__content {
    order: 1;
  }

  .hero__title {
    max-width: none;
  }

  .hero__cta .btn {
    width: 100%;
  }

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

  .network-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .infra-panel__inner {
    grid-template-columns: 1fr;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .hero__badges li {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 430px) {
  .product-card__desc {
    font-size: 0.82rem;
  }

  .product-card {
    padding: 0.9rem;
  }

  .network-chip {
    font-size: 0.78rem;
    padding: 0.4rem 0.65rem;
  }
}

@media (hover: none), (pointer: coarse) {
  .product-card::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .ticker__track,
  .hero__ring,
  .hero__dot,
  .hero__pulse,
  .ambient__glow,
  .network-arrow,
  .hero__brand-wave::before {
    animation: none !important;
  }
}
