:root {
  --bg: #f7f8fa;
  --text: #1c1f2a;
  --muted: #6f7481;
  --line: rgba(28, 31, 42, 0.12);
  --line-soft: rgba(28, 31, 42, 0.08);
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --accent: #5d79d8;
  --accent-soft: rgba(93, 121, 216, 0.1);
  --shadow-1: 0 8px 18px rgba(28, 31, 42, 0.06);
  --shadow-2: 0 14px 28px rgba(28, 31, 42, 0.08);
  --shadow-3: 0 20px 38px rgba(28, 31, 42, 0.1);
  --radius-3xl: 36px;
  --radius-2xl: 30px;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-lg: 0 24px 44px rgba(54, 68, 112, 0.12);
  --shadow-md: 0 14px 28px rgba(54, 68, 112, 0.1);
  --transition: 220ms ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
button, input, textarea, select {
  font-family: "IBM Plex Sans Arabic", "Tajawal", sans-serif;
}

body {
  font-family: "IBM Plex Sans Arabic", "Tajawal", sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  min-height: 100vh;
  position: relative;
}

.bg-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
}

.bg-ambient::before {
  content: "";
  position: absolute;
  width: 42vmax;
  height: 42vmax;
  top: -18vmax;
  inset-inline-start: -10vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 121, 216, 0.08), rgba(93, 121, 216, 0));
  filter: blur(28px);
  opacity: 0.18;
  animation: ambientFloat 28s ease-in-out infinite alternate;
}

.bg-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(28, 31, 42, 0.04) 0.45px, transparent 0.45px);
  background-size: 3px 3px;
  opacity: 0.08;
}

@keyframes ambientFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(5vw, 4vh, 0) scale(1.04);
  }
}

.section { padding: 34px 0; }
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-inline: 16px;
  box-sizing: border-box;
}
.hidden { display: none !important; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  text-align: center;
  padding-top: 56px;
  padding-bottom: 18px;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2rem, 4.3vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 14px;
}

.lead {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.9;
}

.hero-byline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 12px;
  color: var(--muted);
}

.hero-byline-text {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.6;
}

.hero-byline-link {
  display: inline-flex;
  line-height: 0;
  border-radius: 4px;
  transition: opacity var(--transition), transform var(--transition);
}

.hero-byline-link:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.hero-byline-link:focus-visible {
  outline: 2px solid rgba(93, 121, 216, 0.45);
  outline-offset: 3px;
}

.hero-byline-logo {
  display: block;
  width: auto;
  height: 16px;
  object-fit: contain;
  opacity: 0.88;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: rgba(93, 121, 216, 0.25);
  box-shadow: 0 8px 16px rgba(93, 121, 216, 0.2);
}

.btn-soft {
  background: rgba(255, 255, 255, 0.72);
  color: #2b3352;
  border-color: var(--line);
}

.btn-light {
  background: rgba(255, 255, 255, 0.9);
  color: #1f2747;
  border-color: rgba(255, 255, 255, 0.8);
}

.panel {
  background: var(--panel);
  border: 1px solid rgba(28, 31, 42, 0.08);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2);
  padding: 28px;
}

.panel + .panel { margin-top: 20px; }

.main .container {
  position: relative;
}

.main .container::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  inset-inline-end: -120px;
  top: 40px;
  background: radial-gradient(circle, rgba(28, 31, 42, 0.04), rgba(28, 31, 42, 0.01) 58%, transparent 72%);
  filter: blur(10px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.main .container > * {
  position: relative;
  z-index: 1;
}

.stage {
  position: relative;
  border-radius: var(--radius-3xl);
  padding: 30px;
  box-shadow: 0 20px 34px rgba(28, 31, 42, 0.08);
  background: #ffffff;
  border: 1px solid rgba(28, 31, 42, 0.1);
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(28, 31, 42, 0.04);
}

.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.stage-title-wrap h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.stage-title-wrap p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 640px;
}

.mini-ai-pill {
  border: 1px solid rgba(93, 121, 216, 0.24);
  background: rgba(93, 121, 216, 0.06);
  color: #445ba4;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}

.mini-ai-pill:hover {
  background: rgba(93, 121, 216, 0.1);
  border-color: rgba(93, 121, 216, 0.34);
}

.mini-ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: categoryIndex;
}

.category-tile {
  counter-increment: categoryIndex;
  position: relative;
  border: 1px solid rgba(28, 31, 42, 0.1);
  border-radius: var(--radius-lg);
  background: #ffffff;
  min-height: 146px;
  padding: 16px 15px;
  text-align: right;
  cursor: pointer;
  display: grid;
  align-content: start;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
  overflow: hidden;
}

.category-tile::before {
  content: counter(categoryIndex, decimal-leading-zero);
  font-size: 0.68rem;
  color: #7f88aa;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 10px;
}

.category-icon {
  width: 34px;
  height: 34px;
  color: #5d79d8;
  margin: 0 auto 13px;
  display: block;
  flex-shrink: 0;
}

.category-name {
  font-size: 0.97rem;
  font-weight: 600;
  color: #2f375c;
  line-height: 1.45;
  text-align: center;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(28, 31, 42, 0.04);
  pointer-events: none;
  opacity: 0.9;
}

.category-tile:hover {
  transform: translateY(-4px) scale(1.018);
  border-color: rgba(93, 121, 216, 0.3);
  box-shadow: 0 16px 26px rgba(28, 31, 42, 0.11);
}

.category-tile.active {
  background: #ffffff;
  border-color: rgba(93, 121, 216, 0.6);
  box-shadow:
    0 0 0 2px rgba(93, 121, 216, 0.18) inset,
    0 14px 24px rgba(28, 31, 42, 0.09);
}

.category-tile.active .category-icon {
  color: #4f6dcf;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  opacity: 0.94;
}

.action-card {
  border-radius: var(--radius-2xl);
  padding: 22px;
  min-height: 220px;
  border: 1px solid rgba(28, 31, 42, 0.08);
  box-shadow: var(--shadow-1);
  position: relative;
  overflow: hidden;
  display: grid;
  transition: transform var(--transition), box-shadow var(--transition);
}

.action-card-dark {
  background:
    radial-gradient(140% 120% at 14% 10%, rgba(255, 255, 255, 0.022), transparent 60%),
    linear-gradient(165deg, #202739 0%, #1f2537 72%, #1e2435 100%);
  color: #f7f8ff;
}

.action-card-dark p { color: rgba(230, 236, 255, 0.8); }

.action-card-dark:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 20px rgba(15, 20, 33, 0.18);
}

.action-card-dark .btn-light {
  background: rgba(255, 255, 255, 0.98);
  color: #151d2f;
  border-color: rgba(255, 255, 255, 0.94);
}

.action-card-visual {
  position: absolute;
  top: 18px;
  left: 20px;
  width: 140px;
  height: 102px;
  overflow: visible;
  isolation: isolate;
  z-index: 2;
  pointer-events: none;
}

.action-card-visual,
.action-card-visual::before,
.action-card-visual::after {
  background-size: cover;
  background-position: center;
  pointer-events: none;
}

.action-card-visual {
  background-image:
    linear-gradient(180deg, rgba(20, 25, 38, 0.02), rgba(20, 25, 38, 0.16) 64%, rgba(20, 25, 38, 0.3)),
    url("images/1.webp");
  width: 112px;
  height: 84px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  opacity: 0.95;
  transform: rotate(0deg);
  box-shadow: 0 16px 34px rgba(9, 13, 22, 0.08);
}

.action-card-visual::before,
.action-card-visual::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 15px;
}

.action-card-visual::before {
  width: 98px;
  height: 74px;
  top: 16px;
  left: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-image:
    linear-gradient(180deg, rgba(20, 25, 38, 0.05), rgba(20, 25, 38, 0.24) 70%, rgba(20, 25, 38, 0.4)),
    url("images/2.webp");
  transform: rotate(2.5deg);
  box-shadow: 0 14px 28px rgba(9, 13, 22, 0.07);
  opacity: 0.82;
  z-index: -1;
}

.action-card-visual::after {
  display: none;
}

.action-card-light {
  background:
    radial-gradient(120% 90% at 88% 8%, rgba(93, 121, 216, 0.09), transparent 56%),
    #ffffff;
  box-shadow: var(--shadow-1);
  padding: 24px;
}

.ai-badge {
  display: inline-flex;
  align-self: start;
  justify-self: start;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #3f56a8;
  border: 1px solid rgba(93, 121, 216, 0.26);
  background: rgba(93, 121, 216, 0.12);
  border-radius: 999px;
  padding: 4px 9px;
}

.ai-orb {
  position: absolute;
  inset-inline-end: -26px;
  top: -24px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 121, 216, 0.16), rgba(93, 121, 216, 0));
  filter: blur(3px);
  opacity: 0.5;
  pointer-events: none;
  animation: aiOrbFloat 16s ease-in-out infinite alternate;
}

.action-card-body {
  display: grid;
  gap: 10px;
  align-content: end;
}

.action-card-body h3 {
  font-size: 1.22rem;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.action-card-body p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.action-card-light .action-card-body {
  gap: 13px;
}

.action-card-light .action-card-body h3 {
  line-height: 1.34;
}

.action-card-light .action-card-body p {
  line-height: 1.8;
}

.action-card-light .action-card-body .btn-soft {
  background: rgba(93, 121, 216, 0.14);
  color: #283e82;
  border-color: rgba(93, 121, 216, 0.34);
  box-shadow: 0 6px 12px rgba(93, 121, 216, 0.08);
}

.action-card-light .action-card-body .btn-soft:hover {
  background: rgba(93, 121, 216, 0.2);
  border-color: rgba(93, 121, 216, 0.42);
}

@keyframes aiOrbFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(-4px, 5px, 0) scale(1.04);
  }
}

.trust-strip {
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid rgba(28, 31, 42, 0.08);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(28, 31, 42, 0.05);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.trust-item {
  text-align: center;
  padding: 14px 16px;
  font-size: 0.87rem;
  color: #59617d;
}

.portfolio-proof {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 28px 30px;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(28, 31, 42, 0.08);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(93, 121, 216, 0.07), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #f8f9fc 100%);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  position: relative;
}

.portfolio-proof-copy {
  display: grid;
  gap: 12px;
  justify-items: start;
  position: relative;
  z-index: 1;
}

.portfolio-proof-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #5d6b93;
}

.portfolio-proof h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.portfolio-proof-lead {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.8;
}

.portfolio-proof-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  text-decoration: none;
}

.portfolio-proof-cta-arrow {
  display: inline-block;
  transition: transform 220ms ease;
}

.portfolio-proof-cta:hover .portfolio-proof-cta-arrow {
  transform: translateX(-3px);
}

.portfolio-proof-visual {
  position: relative;
  min-height: 168px;
  display: grid;
  place-items: center;
}

.portfolio-shot {
  position: absolute;
  width: min(78%, 220px);
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  background-size: cover;
  background-position: center top;
  border: 1px solid rgba(28, 31, 42, 0.1);
  box-shadow: 0 16px 32px rgba(28, 31, 42, 0.12);
}

.portfolio-shot--back {
  background-image:
    linear-gradient(180deg, rgba(20, 25, 38, 0.04), rgba(20, 25, 38, 0.22)),
    url("images/2.webp");
  transform: translate(-18%, 8%) rotate(-4deg);
  opacity: 0.88;
}

.portfolio-shot--front {
  background-image:
    linear-gradient(180deg, rgba(20, 25, 38, 0.02), rgba(20, 25, 38, 0.18)),
    url("images/1.webp");
  transform: translate(14%, -4%) rotate(3deg);
  z-index: 1;
}

.portfolio-proof-chip {
  position: absolute;
  bottom: 8px;
  inset-inline-start: 8%;
  z-index: 2;
  font-size: 0.74rem;
  font-weight: 700;
  color: #2b3352;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(28, 31, 42, 0.1);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 8px 18px rgba(28, 31, 42, 0.1);
  animation: portfolioChipFloat 5.5s ease-in-out infinite alternate;
}

@keyframes portfolioChipFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-proof-chip {
    animation: none;
  }
  .portfolio-proof-cta:hover .portfolio-proof-cta-arrow {
    transform: none;
  }
}

#recommended-section,
#all-themes-section {
  margin-top: 10px;
}

.trust-item + .trust-item {
  border-inline-start: 1px solid rgba(28, 31, 42, 0.08);
}

.panel-head {
  margin-bottom: 18px;
}

.panel-head h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.95rem);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}

.panel-head p { color: var(--muted); line-height: 1.7; }

.panel-head.split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

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

.theme-grid {
  display: grid;
  gap: 16px;
}

.theme-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theme-card {
  border: 1px solid rgba(28, 31, 42, 0.1);
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition:
    transform 250ms ease,
    border-color 250ms ease,
    box-shadow 250ms ease;
  box-shadow: 0 6px 20px rgba(28, 31, 42, 0.06);
}

.theme-card:hover {
  transform: translateY(-4px);
  border-color: rgba(93, 121, 216, 0.3);
  box-shadow: 0 16px 36px rgba(28, 31, 42, 0.1);
}

.theme-card:hover .theme-image {
  transform: scale(1.04);
}

.theme-card:hover .theme-image-overlay {
  opacity: 1;
}

.theme-card:hover .theme-badge {
  transform: translateY(-1px);
}

.theme-card:hover .theme-btn-primary {
  box-shadow: 0 8px 22px rgba(93, 121, 216, 0.35);
}

.theme-image-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f3f7;
}

.theme-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 250ms ease;
}

.theme-image-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(20, 25, 38, 0) 40%,
    rgba(20, 25, 38, 0.22) 100%
  );
  opacity: 0.55;
  transition: opacity 250ms ease;
}

.theme-body {
  padding: 14px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.theme-badge-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 2px;
}

.theme-badge {
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #4a5f9f;
  background: rgba(93, 121, 216, 0.1);
  border: 1px solid rgba(93, 121, 216, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1.45;
  transition: transform 250ms ease;
}

.theme-badge--faza {
  color: #344d94;
  background: rgba(93, 121, 216, 0.16);
  border-color: rgba(93, 121, 216, 0.34);
}

.theme-category-badge {
  display: none;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #4d5468;
  background: rgba(28, 31, 42, 0.05);
  border: 1px solid rgba(28, 31, 42, 0.1);
  border-radius: 999px;
  padding: 4px 10px;
  line-height: 1.45;
}

.theme-name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  margin: 0;
  color: var(--text);
}

.theme-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.theme-badge-strip .theme-usage-pill {
  align-self: center;
}

.theme-usage-pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 500;
  color: #5c6370;
  letter-spacing: 0.01em;
  background: rgba(28, 31, 42, 0.045);
  border: 1px solid rgba(28, 31, 42, 0.07);
  border-radius: 999px;
  padding: 5px 12px;
  line-height: 1.4;
}

.theme-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.theme-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 250ms ease,
    transform 250ms ease,
    box-shadow 250ms ease;
  box-shadow: 0 5px 16px rgba(93, 121, 216, 0.28);
}

.theme-btn-primary:hover {
  background: #4d6acb;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(93, 121, 216, 0.38);
}

.theme-btn-label {
  flex: 0 1 auto;
}

.theme-btn-arrow {
  font-size: 0.95em;
  opacity: 0.92;
  line-height: 1;
}

.theme-microcopy {
  display: block;
  text-align: center;
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.88;
  line-height: 1.45;
}

.theme-btn-secondary {
  display: block;
  text-align: center;
  padding: 8px 14px;
  background: rgba(93, 121, 216, 0.04);
  color: #4a5f9f;
  border: 1px solid rgba(93, 121, 216, 0.18);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 250ms ease, border-color 250ms ease;
}

.theme-btn-secondary:hover {
  background: rgba(93, 121, 216, 0.09);
  border-color: rgba(93, 121, 216, 0.32);
}

.theme-pay-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(28, 31, 42, 0.06);
}

.theme-pay-caption {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--muted);
  opacity: 0.85;
  letter-spacing: 0.02em;
}

.theme-pay-chip {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #5a6278;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(28, 31, 42, 0.1);
  border-radius: 6px;
  padding: 3px 8px;
  line-height: 1.3;
}

.theme-pay-logo {
  display: block;
  height: 20px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  object-position: center;
  border-radius: 6px;
}

.theme-support-hint {
  display: block;
  text-align: center;
  margin: 0;
  font-size: 0.64rem;
  font-weight: 500;
  color: var(--muted);
  opacity: 0.62;
  line-height: 1.45;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.theme-support-hint:hover {
  opacity: 0.9;
  color: #5c6478;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.theme-support-hint:focus-visible {
  outline: 2px solid rgba(93, 121, 216, 0.38);
  outline-offset: 3px;
  border-radius: 4px;
}

.state {
  border: 1px dashed rgba(28, 31, 42, 0.2);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 26px;
  text-align: center;
  box-shadow: var(--shadow-1);
}

.state h3 { margin-bottom: 6px; }
.state p { color: var(--muted); }

.skeleton-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(28, 31, 42, 0.08);
  background: rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.skeleton-image,
.skeleton-line {
  background: linear-gradient(90deg, #f2f3f7 25%, #e9ebf1 50%, #f2f3f7 75%);
  background-size: 200% 100%;
  animation: loading 1.2s linear infinite;
}

.skeleton-image { aspect-ratio: 16 / 10; }
.skeleton-body { padding: 14px; }
.skeleton-line { height: 10px; border-radius: 8px; margin-bottom: 8px; }
.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-60 { width: 60%; }

@keyframes loading {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

.panel-head.ai-panel-head {
  margin-bottom: 10px;
}

.ai-panel-head {
  text-align: center;
  max-width: 420px;
  margin-inline: auto;
  margin-bottom: 10px;
}

.ai-panel-head h2 {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  margin-bottom: 6px;
}

.ai-panel-lead {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.ai-assistant-identity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ai-assistant-avatar {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  object-fit: contain;
  flex-shrink: 0;
}

.ai-assistant-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #445ba4;
  background: rgba(93, 121, 216, 0.1);
  border: 1px solid rgba(93, 121, 216, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
}

.ai-wrap {
  display: grid;
  gap: 10px;
  max-width: min(480px, 100%);
  margin-inline: auto;
}

.ai-chat-wrap {
  width: 100%;
}

.ai-chat-bar {
  width: 100%;
}

.ai-chat-field {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  padding-block: 5px;
  padding-inline: 8px;
  border-radius: 999px;
  border: 1px solid rgba(28, 31, 42, 0.12);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(28, 31, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.ai-chat-field:focus-within {
  border-color: rgba(93, 121, 216, 0.42);
  box-shadow:
    0 1px 2px rgba(28, 31, 42, 0.05),
    0 0 0 3px var(--accent-soft);
}

.ai-chat-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 8px 10px;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
}

.ai-chat-input::placeholder {
  color: #8b93a8;
}

.ai-chat-input:focus {
  outline: none;
}

.ai-send-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition);
  box-shadow: 0 2px 8px rgba(93, 121, 216, 0.28);
}

.ai-send-btn:hover {
  transform: scale(1.04);
  background: #4d6acb;
}

.ai-send-btn:active {
  transform: scale(0.97);
}

.ai-send-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ai-send-icon {
  width: 18px;
  height: 18px;
  transform: scaleX(-1);
}

.ai-sparkle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.88;
}

.ai-sparkle-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.ai-loading-premium {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(93, 121, 216, 0.18);
  background: rgba(93, 121, 216, 0.06);
  font-size: 0.88rem;
  font-weight: 500;
  color: #425499;
  text-align: center;
  line-height: 1.5;
}

.ai-loading-premium:not(.hidden) {
  animation: aiPremiumPulse 2.4s ease-in-out infinite;
}

@keyframes aiPremiumPulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

.ai-loading-premium-text {
  letter-spacing: 0.01em;
}

.ai-loading-premium-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-loading-premium-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  animation: fazaDot 1.05s ease-in-out infinite;
}

.ai-loading-premium-dots i:nth-child(2) {
  animation-delay: 0.14s;
}

.ai-loading-premium-dots i:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes fazaDot {
  0%, 80%, 100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.ai-chat-field.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

.ai-faza-results {
  margin-top: 22px;
}

.ai-faza-results-head {
  margin-bottom: 14px;
}

.ai-faza-results-title {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.ai-faza-results--deck {
  margin-top: 0;
  padding-top: 22px;
  border-top: 1px solid rgba(28, 31, 42, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.ai-faza-results-head--deck {
  margin-bottom: 14px;
  padding-inline: 22px;
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}

.ai-result-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding-block: 8px 18px;
  padding-inline: 0;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 22px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(28, 31, 42, 0.22) transparent;
}

.ai-result-scroll::-webkit-scrollbar {
  height: 5px;
}

.ai-result-scroll::-webkit-scrollbar-thumb {
  background: rgba(28, 31, 42, 0.22);
  border-radius: 999px;
}

.ai-result-grid-horizontal {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  padding-inline: 22px;
  box-sizing: border-box;
}

.ai-result-grid-horizontal .theme-card {
  flex: 0 0 auto;
  width: min(340px, calc(100vw - 56px));
  min-width: min(300px, calc(100vw - 48px));
  max-width: 380px;
  scroll-snap-align: start;
}

.ai-result-error {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed rgba(180, 90, 90, 0.32);
  border-radius: var(--radius-md);
  background: rgba(180, 90, 90, 0.05);
  font-size: 0.88rem;
  color: #6b3d3d;
  text-align: center;
}

.ai-result-error--deck {
  margin-top: 14px;
  margin-inline: auto;
  max-width: 560px;
  width: calc(100% - 44px);
}

/* —— Faza full-screen modal —— */
.faza-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  pointer-events: none;
  visibility: hidden;
}

.faza-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.faza-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 22, 32, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.faza-modal.is-open .faza-modal-backdrop {
  opacity: 1;
}

.faza-modal-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  height: min(92dvh, 900px);
  max-height: min(92dvh, 900px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .faza-modal-shell {
    align-items: center;
    padding: 24px;
  }
}

.faza-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-height: min(92dvh, 900px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(28, 31, 42, 0.09);
  border-radius: 22px;
  box-shadow:
    0 4px 24px rgba(28, 31, 42, 0.06),
    0 28px 70px rgba(24, 32, 52, 0.18);
  overflow: hidden;
  transform: translateY(22px) scale(0.92);
  opacity: 0;
  transition:
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.faza-modal.is-open .faza-modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.faza-modal-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(28, 31, 42, 0.05);
  color: #4a5164;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.faza-modal-close:hover {
  background: rgba(28, 31, 42, 0.09);
}

.faza-modal-close:active {
  transform: scale(0.96);
}

.faza-modal-header-glow {
  position: absolute;
  top: -40px;
  left: 50%;
  width: min(92%, 560px);
  height: 160px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 30%, rgba(93, 121, 216, 0.14) 0%, rgba(93, 121, 216, 0) 68%);
  pointer-events: none;
  z-index: 0;
  animation: fazaHeaderGlow 10s ease-in-out infinite alternate;
}

@keyframes fazaHeaderGlow {
  from {
    opacity: 0.65;
    transform: translateX(-50%) scale(1);
  }
  to {
    opacity: 0.95;
    transform: translateX(-50%) scale(1.04);
  }
}

.faza-modal-scroll {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.faza-modal-inner {
  padding: 44px 22px 28px;
  max-width: 560px;
  margin-inline: auto;
}

.faza-modal-header {
  text-align: center;
  margin-bottom: 8px;
}

.faza-modal-title {
  font-size: clamp(1.15rem, 2.6vw, 1.42rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--text);
}

.faza-modal-subtitle {
  margin: 0 auto;
  max-width: 26rem;
}

.faza-modal-chat {
  margin-top: 6px;
}

.faza-modal-chat-inner {
  max-width: 100%;
}

.faza-stagger {
  opacity: 0;
  transform: translateY(14px);
}

.faza-modal.is-open .faza-stagger {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.58s cubic-bezier(0.22, 1, 0.36, 1) var(--faza-d, 0ms),
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1) var(--faza-d, 0ms);
}

.ai-faza-results:not(.hidden) {
  animation: fazaResultsReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

body.faza-modal-open {
  overflow: hidden;
}

body.faza-modal-open .main {
  filter: blur(7px);
  transition: filter 0.45s ease;
}

@media (max-width: 767px) {
  .faza-modal-shell {
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: 0;
    align-items: stretch;
  }

  .faza-modal-panel {
    border-radius: 0;
    max-height: none;
    height: 100%;
    box-shadow: none;
  }

  .faza-modal-inner {
    padding: 48px 18px calc(24px + env(safe-area-inset-bottom, 0));
  }

  .faza-modal-close {
    top: calc(10px + env(safe-area-inset-top, 0));
    inset-inline-end: calc(10px + env(safe-area-inset-right, 0));
  }

  .ai-faza-results-head--deck {
    padding-inline: 18px;
  }

  .ai-result-scroll {
    scroll-padding-inline: 18px;
  }

  .ai-result-grid-horizontal {
    padding-inline: 18px;
    gap: 16px;
  }

  .ai-result-grid-horizontal .theme-card {
    width: min(300px, calc(100vw - 36px));
    min-width: min(268px, calc(100vw - 32px));
    max-width: 340px;
  }

  .ai-result-error--deck {
    padding-inline: 18px;
    width: calc(100% - 36px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .faza-modal-panel,
  .faza-modal-backdrop,
  .faza-stagger,
  .ai-faza-results:not(.hidden),
  .faza-modal-header-glow,
  .ai-loading-premium:not(.hidden) {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .faza-modal.is-open .faza-modal-panel {
    transform: none;
    opacity: 1;
  }

  .faza-modal.is-open .faza-stagger {
    opacity: 1;
    transform: none;
  }
}

.theme-card--faza-pick {
  border-color: rgba(93, 121, 216, 0.38);
  box-shadow:
    0 0 0 1px rgba(93, 121, 216, 0.14),
    0 8px 24px rgba(93, 121, 216, 0.12);
}

.theme-card--faza-pick:hover {
  border-color: rgba(93, 121, 216, 0.46);
}

.footer {
  padding-top: 10px;
  padding-bottom: 34px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .action-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; border-radius: var(--radius-xl); }
  .trust-item + .trust-item {
    border-inline-start: none;
    border-top: 1px solid rgba(28, 31, 42, 0.08);
  }
  .portfolio-proof {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .portfolio-proof-copy {
    justify-items: center;
  }
  .portfolio-proof-names {
    justify-content: center;
  }
  .portfolio-proof-visual {
    min-height: 150px;
    order: -1;
  }
  .result-grid,
  .theme-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
  }
  .section { padding: 16px 0; }
  .hero {
    padding-top: 24px;
    padding-bottom: 10px;
  }
  .hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 8px;
  }
  .lead {
    font-size: 0.94rem;
    line-height: 1.7;
  }
  .hero-byline {
    margin-top: 10px;
    gap: 4px;
  }
  .hero-byline-text {
    font-size: 0.62rem;
  }
  .hero-byline-logo {
    height: 14px;
  }
  .panel,
  .stage { padding: 16px; border-radius: 20px; }
  .stage-head {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 14px;
  }
  .mini-ai-pill {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .category-tile {
    min-height: 120px;
    padding: 12px 10px;
  }
  .category-tile::before {
    font-size: 0.62rem;
    margin-bottom: 8px;
  }
  .category-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 10px;
  }
  .category-name {
    font-size: 0.9rem;
  }
  .action-grid {
    margin-top: 12px;
    gap: 12px;
    grid-template-columns: 1fr;
  }
  .action-card {
    min-height: 156px;
    padding: 14px;
  }
  .action-card-light {
    order: 1;
  }
  .action-card-dark {
    order: 2;
  }
  .action-card-body {
    gap: 8px;
    text-align: center;
    align-content: start;
  }
  .action-card-body h3 {
    font-size: 1rem;
    line-height: 1.35;
  }
  .action-card-body p {
    font-size: 0.84rem;
    line-height: 1.6;
  }
  .action-card .btn {
    width: 100%;
    padding: 10px 14px;
  }
  .action-card-light .ai-badge {
    justify-self: center;
    font-size: 0.66rem;
    padding: 3px 8px;
    margin-bottom: 2px;
  }
  .action-card-light .action-card-body {
    gap: 8px;
  }
  .action-card-dark .action-card-visual {
    position: relative;
    top: auto;
    left: auto;
    width: 84px;
    height: 64px;
    margin: 0 auto 8px;
  }
  .action-card-dark .action-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  .action-card-dark .action-card-body h3 {
    order: 1;
    width: 100%;
  }
  .action-card-dark .action-card-body p {
    order: 2;
    width: 100%;
  }
  .action-card-dark .action-card-body .btn {
    order: 3;
    width: 100%;
    margin-top: 2px;
  }
  .action-card-dark .action-card-visual::before {
    width: 72px;
    height: 54px;
    top: 10px;
    left: 18px;
  }
  .action-card-dark .action-card-body h3 {
    font-size: 0.96rem;
  }
  .action-card-dark .action-card-body p {
    font-size: 0.8rem;
    line-height: 1.55;
  }
  .trust-strip {
    margin-top: 12px;
  }
  .trust-item {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
  .portfolio-proof {
    padding: 18px 16px;
    margin-top: 14px;
    gap: 14px;
  }
  .portfolio-proof h2 {
    font-size: 1.28rem;
  }
  .portfolio-proof-lead {
    font-size: 0.9rem;
    line-height: 1.7;
  }
  .portfolio-proof-names li {
    font-size: 0.72rem;
    padding: 4px 9px;
  }
  .portfolio-proof-cta {
    width: 100%;
    justify-content: center;
  }
  .portfolio-proof-visual {
    min-height: 128px;
  }
  .portfolio-shot {
    width: min(58%, 168px);
  }
  .portfolio-proof-chip {
    font-size: 0.68rem;
    padding: 5px 10px;
    bottom: 2px;
  }
  .main .container::before {
    width: 180px;
    height: 180px;
    inset-inline-end: 0;
    top: 24px;
  }
  .ai-orb {
    inset-inline-end: 0;
    top: 0;
    width: 84px;
    height: 84px;
  }
  .bg-ambient::before {
    width: 34vmax;
    height: 34vmax;
    inset-inline-start: -4vmax;
    top: -12vmax;
  }
  .result-grid,
  .theme-grid.compact { grid-template-columns: 1fr; }
  .panel-head.split {
    flex-direction: column;
    align-items: stretch;
  }
  .panel-head.split .btn { width: 100%; }
  .footer-content {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .ai-chat-field {
    min-height: 44px;
    padding-block: 4px;
    padding-inline: 6px;
  }
  .ai-chat-input {
    font-size: 0.86rem;
    padding: 7px 8px;
  }
  .ai-send-btn {
    width: 34px;
    height: 34px;
  }
  .ai-send-icon {
    width: 16px;
    height: 16px;
  }
}

/* Floating WhatsApp (below modal z-index) */
.wa-float {
  position: fixed;
  z-index: 1500;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  left: calc(20px + env(safe-area-inset-left, 0px));
  right: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.28);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.38);
}

.wa-float:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.95);
  outline-offset: 2px;
}

.wa-float-icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 768px) {
  .wa-float {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: calc(14px + env(safe-area-inset-left, 0px));
    width: 42px;
    height: 42px;
  }

  .wa-float-icon {
    width: 20px;
    height: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float {
    transition: none;
  }

  .wa-float:hover {
    transform: none;
  }
}
