/* =========================================================
   Amala Marketing Site — Shared Styles
   Design tokens derived from Flutter mobile-app theme
   ========================================================= */

:root {
  /* Brand */
  --brand-primary: #4A5BC2;
  --brand-primary-light: #667EEA;
  --brand-deep: #4242D4;
  --brand-teal: #029CC0;
  --brand-gradient: linear-gradient(135deg, #4A5BC2 0%, #667EEA 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(74, 91, 194, 0.08) 0%, rgba(102, 126, 234, 0.04) 100%);

  /* Surfaces */
  --bg-page: #F0F2F5;
  --bg-muted: #E6EAF2;
  --surface: #FFFFFF;
  --surface-alt: #FAFBFE;

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #2D3142;
  --text-muted: #6B7280;
  --text-on-brand: #FFFFFF;

  /* Accent palette (from app) */
  --accent-teal: #00B894;
  --accent-pink: #E84393;
  --accent-amber: #FFC107;
  --accent-blue: #0984E3;
  --accent-orange: #E17055;
  --accent-purple: #6C5CE7;

  /* Borders */
  --border-subtle: rgba(26, 26, 26, 0.08);
  --border-strong: rgba(26, 26, 26, 0.14);

  /* Radii */
  --radius-pill: 100px;
  --radius-card: 18px;
  --radius-chip: 12px;
  --radius-sm: 8px;

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(26, 26, 26, 0.05), 0 1px 4px rgba(26, 26, 26, 0.02);
  --shadow-lift: 0 18px 40px rgba(74, 91, 194, 0.18), 0 4px 12px rgba(74, 91, 194, 0.08);
  --shadow-sticky: 0 6px 20px rgba(26, 26, 26, 0.06);

  /* Layout */
  --container: 1200px;
  --container-narrow: 960px;
  --section-pad-y: clamp(4rem, 8vw, 7rem);
  --gutter: clamp(1rem, 3vw, 2rem);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 700ms;
}

/* ---------------------------------------------------------
   Reset & Base
   --------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.55;
  font-size: 16px;
  font-feature-settings: "kern", "liga", "calt";
  overflow-x: hidden;
  min-height: 100vh;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

a:hover {
  color: var(--brand-primary-light);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  line-height: 1.2;
  color: var(--text-primary);
  font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1em; color: var(--text-secondary); }

/* ---------------------------------------------------------
   Layout helpers
   --------------------------------------------------------- */

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - (var(--gutter) * 2), var(--container-narrow));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-pad-y);
  position: relative;
}

.section--muted {
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(74, 91, 194, 0.09), transparent 72%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(2, 156, 192, 0.07), transparent 70%),
    var(--bg-muted);
  position: relative;
  isolation: isolate;
}

/* Hairline gradient dividers at top and bottom of muted sections */
.section--muted::before,
.section--muted::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(74, 91, 194, 0.22) 30%,
    rgba(2, 156, 192, 0.22) 70%,
    transparent 100%
  );
}
.section--muted::before { top: 0; }
.section--muted::after  { bottom: 0; }

.eyebrow {
  display: inline-block;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  background: rgba(74, 91, 194, 0.08);
  border: 1px solid rgba(74, 91, 194, 0.18);
  color: var(--brand-primary);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  max-width: 42ch;
  margin-bottom: 1rem;
}

.section-lead {
  max-width: 56ch;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.section--centered {
  text-align: center;
}

.section--centered .section-title,
.section--centered .section-lead {
  margin-inline: auto;
}

/* ---------------------------------------------------------
   Header / Nav
   --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 242, 245, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border-subtle);
  box-shadow: var(--shadow-sticky);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 14px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav-brand img {
  height: 34px;
  width: auto;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--surface);
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}

.lang-switch:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  transform: translateY(-1px);
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand-gradient);
  color: var(--text-on-brand);
  box-shadow: var(--shadow-lift);
}

.btn--primary:hover {
  color: var(--text-on-brand);
  transform: translateY(-2px);
  box-shadow: 0 22px 48px rgba(74, 91, 194, 0.25), 0 6px 14px rgba(74, 91, 194, 0.12);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.btn--ghost:hover {
  color: var(--brand-primary);
  border-color: var(--brand-primary);
  transform: translateY(-2px);
}

.btn--on-brand {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text-on-brand);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn--on-brand:hover {
  color: var(--text-on-brand);
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Store badges */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: var(--radius-card);
  background: #111;
  color: #fff;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur) var(--ease-out),
              box-shadow var(--dur) var(--ease-out);
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.16);
}

.store-btn:hover {
  background: #222;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.22);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-btn-text small {
  font-size: 0.68rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.store-btn-text strong {
  font-size: 1.02rem;
  font-weight: 700;
}

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(102, 126, 234, 0.35), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(2, 156, 192, 0.18), transparent 60%),
    var(--bg-page);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 80px;
  background: radial-gradient(ellipse at 50% 100%, rgba(74, 91, 194, 0.08) 0%, transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
}

.hero-copy h1 {
  margin-bottom: 0.5em;
}

.hero-copy .hero-lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 54ch;
  margin-bottom: 1.75rem;
}

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

.hero-image {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-stack .phone {
  position: absolute;
  width: 58%;
  max-width: 260px;
  /* per-phone offset tokens consumed by the float keyframe so all three
     phones breathe together while keeping their static translate+rotate */
  --tx: 0%;
  --ty: 0%;
  --rot: 0deg;
  transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
  animation: float-stack 6s ease-in-out infinite;
}

.phone-stack .phone:nth-child(1) {
  --tx: -42%; --ty: 4%; --rot: -6deg;
  z-index: 1; opacity: 0.9;
  animation-delay: -2s;
}
.phone-stack .phone:nth-child(2) {
  z-index: 3;
  animation-delay: 0s;
}
.phone-stack .phone:nth-child(3) {
  --tx: 42%; --ty: 4%; --rot: 6deg;
  z-index: 2; opacity: 0.9;
  animation-delay: -4s;
}

.phone {
  background: #0F1120;
  border-radius: 38px;
  padding: 10px;
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(255,255,255,0.04) inset;
  overflow: hidden;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
}

/* Composes each phone's static offset + rotation with the float */
@keyframes float-stack {
  0%, 100% {
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) translateY(0);
  }
  50% {
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) translateY(-12px);
  }
}

/* Trust strip — modern minimalist: gradient icon tile + label, no chip wrapper */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  align-items: center;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid transparent;
  border-image: linear-gradient(
      to right,
      transparent 0%,
      rgba(74, 91, 194, 0.18) 20%,
      rgba(2, 156, 192, 0.18) 80%,
      transparent 100%
    ) 1;
}

.trust-strip .item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.2;
  transition: transform var(--dur) var(--ease-out);
}

.trust-strip .item:hover {
  transform: translateY(-1px);
}

.trust-strip .item:hover .icon {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(74, 91, 194, 0.22);
}

.trust-strip .item .icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--brand-gradient);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(74, 91, 194, 0.16);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  position: relative;
}

.trust-strip .item .icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 50%);
  pointer-events: none;
}

.trust-strip .item .icon svg { width: 15px; height: 15px; position: relative; z-index: 1; }

/* Per-tone gradient accent on the icon tile */
.trust-strip .item[data-tone="teal"]   .icon { background: linear-gradient(135deg, #029CC0 0%, #00B894 100%); box-shadow: 0 4px 10px rgba(0, 184, 148, 0.22); }
.trust-strip .item[data-tone="indigo"] .icon { background: var(--brand-gradient);                                box-shadow: 0 4px 10px rgba(74, 91, 194, 0.22); }
.trust-strip .item[data-tone="amber"]  .icon { background: linear-gradient(135deg, #F59E0B 0%, #E17055 100%);   box-shadow: 0 4px 10px rgba(225, 112, 85, 0.22); }

/* ---------------------------------------------------------
   Stats
   --------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  text-align: center;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.stat-value {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}

.stat-label {
  color: var(--text-muted);
  margin-top: 0.35rem;
  font-size: 0.92rem;
}

/* ---------------------------------------------------------
   Features (alternating grid)
   --------------------------------------------------------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.feature:nth-child(even) .feature-media { order: 2; }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature-media { order: 0; }
}

.feature-media {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

/* Glowing colored blob behind the phone — per-feature accent */
.feature-media::before {
  content: "";
  position: absolute;
  inset: 10% 10%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    var(--feat-glow, rgba(74, 91, 194, 0.28)) 0%,
    transparent 62%
  );
  filter: blur(18px);
  opacity: 0.9;
  animation: blob-breathe 10s ease-in-out infinite;
}

/* Soft decorative ring */
.feature-media::after {
  content: "";
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed var(--feat-ring, rgba(74, 91, 194, 0.18));
  z-index: -1;
  animation: slow-spin 60s linear infinite;
}

/* Feature phone with breathing + tilt */
.feature-media .phone {
  max-width: 260px;
  width: 70%;
  transform: rotate(var(--feat-tilt, -4deg));
  animation: feature-float 7s ease-in-out infinite;
}

/* Alternate tilt on even features */
.feature:nth-child(even) .feature-media .phone {
  --feat-tilt: 4deg;
}

@keyframes feature-float {
  0%, 100% { transform: rotate(var(--feat-tilt, -4deg)) translateY(0); }
  50%      { transform: rotate(var(--feat-tilt, -4deg)) translateY(-10px); }
}

@keyframes blob-breathe {
  0%, 100% { transform: scale(1);    opacity: 0.9; }
  50%      { transform: scale(1.08); opacity: 1; }
}

@keyframes slow-spin {
  to { transform: rotate(360deg); }
}

/* Floating decorative chips around the phone */
.feature-media .deco {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lift);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  z-index: 2;
  animation: deco-float 5s ease-in-out infinite;
  will-change: transform;
}

.feature-media .deco svg { width: 14px; height: 14px; flex-shrink: 0; }

.feature-media .deco[data-pos="tl"] { top: 8%;  left: 2%;  animation-delay: -1s; }
.feature-media .deco[data-pos="tr"] { top: 6%;  right: 0;  animation-delay: -2.5s; }
.feature-media .deco[data-pos="bl"] { bottom: 12%; left: -2%;  animation-delay: -3.5s; }
.feature-media .deco[data-pos="br"] { bottom: 10%; right: 4%; animation-delay: 0s; }

.feature-media .deco .icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--deco-grad, var(--brand-gradient));
  flex-shrink: 0;
}

.feature-media .deco[data-tone="teal"]    .icon { background: linear-gradient(135deg, #029CC0, #00B894); }
.feature-media .deco[data-tone="amber"]   .icon { background: linear-gradient(135deg, #FFC107, #E17055); }
.feature-media .deco[data-tone="pink"]    .icon { background: linear-gradient(135deg, #E84393, #FD79A8); }
.feature-media .deco[data-tone="purple"]  .icon { background: linear-gradient(135deg, #6C5CE7, #A29BFE); }
.feature-media .deco[data-tone="blue"]    .icon { background: linear-gradient(135deg, #0984E3, #74B9FF); }
.feature-media .deco[data-tone="indigo"]  .icon { background: var(--brand-gradient); }

@keyframes deco-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(2deg); }
}

/* Per-feature tones — set on the parent .feature */
.feature[data-tone="indigo"] .feature-media { --feat-glow: rgba(74, 91, 194, 0.32);  --feat-ring: rgba(74, 91, 194, 0.22); }
.feature[data-tone="amber"]  .feature-media { --feat-glow: rgba(225, 112, 85, 0.26); --feat-ring: rgba(225, 112, 85, 0.22); }
.feature[data-tone="teal"]   .feature-media { --feat-glow: rgba(0, 184, 148, 0.26);  --feat-ring: rgba(0, 184, 148, 0.22); }
.feature[data-tone="pink"]   .feature-media { --feat-glow: rgba(232, 67, 147, 0.26); --feat-ring: rgba(232, 67, 147, 0.22); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .feature-media::before,
  .feature-media::after,
  .feature-media .phone,
  .feature-media .deco {
    animation: none !important;
  }
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.feature-badge .icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-chip);
  display: grid;
  place-items: center;
  background: rgba(74, 91, 194, 0.10);
  color: var(--brand-primary);
}

.feature h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 0.5rem;
}

.feature-copy p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.feature-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"),
    var(--brand-gradient);
  background-size: 12px 12px, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  box-shadow: 0 2px 6px rgba(74, 91, 194, 0.25);
}

/* ---------------------------------------------------------
   Categories grid
   --------------------------------------------------------- */

.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.cat-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--cat-tint, rgba(74, 91, 194, 0.08));
  filter: blur(8px);
  z-index: 0;
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}

.cat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-chip);
  display: grid;
  place-items: center;
  background: var(--cat-tint, rgba(74, 91, 194, 0.10));
  color: var(--cat-color, var(--brand-primary));
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.cat-icon svg {
  width: 32px;
  height: 32px;
  color: inherit;
  fill: currentColor;
}

/* Hidden SVG sprite container — always visually hidden but accessible to <use> refs */
.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.cat-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.cat-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Category tints */
.cat-card[data-tone="indigo"] { --cat-tint: rgba(74, 91, 194, 0.10); --cat-color: var(--brand-primary); }
.cat-card[data-tone="teal"]   { --cat-tint: rgba(0, 184, 148, 0.12);  --cat-color: var(--accent-teal); }
.cat-card[data-tone="orange"] { --cat-tint: rgba(225, 112, 85, 0.12); --cat-color: var(--accent-orange); }
.cat-card[data-tone="purple"] { --cat-tint: rgba(108, 92, 231, 0.12); --cat-color: var(--accent-purple); }

/* Mobile: center the icon + text stack inside each category card */
@media (max-width: 640px) {
  .cat-card {
    text-align: center;
  }
  .cat-card .cat-icon {
    margin-inline: auto;
  }
}

/* ---------------------------------------------------------
   How it works (steps)
   --------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem 1.75rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  inset-inline-start: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lift);
  font-size: 1.1rem;
}

.step h3 {
  margin-top: 0.25rem;
  font-size: 1.2rem;
}

.step p { color: var(--text-muted); margin: 0; }

/* ---------------------------------------------------------
   Download block
   --------------------------------------------------------- */

.download {
  background: var(--brand-gradient);
  color: #fff;
  border-radius: calc(var(--radius-card) + 6px);
  padding: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.download::before {
  content: "";
  position: absolute;
  inset: -60% auto auto -10%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}

.download::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(2, 156, 192, 0.28), transparent 60%);
  pointer-events: none;
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) {
  .download-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .download-grid .store-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .download-grid .store-btn {
    width: 100%;
    justify-content: flex-start;
  }
  .download-grid .store-btn-text {
    align-items: flex-start;
    text-align: start;
  }
  .download-grid .qr-panel { justify-items: center; max-width: 360px; margin-inline: auto; }
}

.download h2 { color: #fff; }
.download p { color: rgba(255,255,255,0.9); }

.download .eyebrow {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}

.qr-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.qr-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 1.25rem;
  text-align: center;
  color: var(--text-primary);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  transition: transform var(--dur) var(--ease-out);
}

.qr-card:hover { transform: translateY(-4px); }

.qr-card .qr {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 6px;
  margin-bottom: 0.75rem;
}

.qr-card .qr canvas,
.qr-card .qr svg,
.qr-card .qr img {
  width: 100%;
  height: 100%;
  max-width: 160px;
  max-height: 160px;
}

.qr-card .qr-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.qr-card .qr-label svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------
   Agency band
   --------------------------------------------------------- */

.agency-band {
  background: var(--surface);
  border-radius: var(--radius-card);
  padding: 2rem 2.25rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
  flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.agency-band h3 { margin-bottom: 0.25rem; font-size: 1.25rem; }
.agency-band p { margin: 0; color: var(--text-muted); }

.agency-band-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-chip);
  background: rgba(2, 156, 192, 0.12);
  color: var(--brand-teal);
  display: grid;
  place-items: center;
}

.agency-band-icon svg { width: 28px; height: 28px; }

.agency-band-text { flex: 1; min-width: 220px; }

/* On mobile the button wraps to its own line. Indent it so it lines up
   under the text content (past the fixed icon column + gap). */
@media (max-width: 640px) {
  .agency-band .btn {
    margin-inline-start: calc(56px + 1.5rem);
  }
}

/* ---------------------------------------------------------
   Contact
   --------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: 2.5rem;
}

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

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-card);
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-alt);
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px rgba(74, 91, 194, 0.14);
  background: var(--surface);
}

.contact-form .btn { width: fit-content; margin-top: 6px; }

@media (max-width: 640px) {
  .contact-form .btn { width: 100%; }
}

.form-status {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-height: 1.2em;
}

.form-status[data-state="ok"] { color: var(--accent-teal); }
.form-status[data-state="err"] { color: var(--accent-pink); }

.contact-info {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.contact-card {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  align-items: center;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}

.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.contact-card .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-chip);
  background: rgba(74, 91, 194, 0.10);
  color: var(--brand-primary);
  display: grid;
  place-items: center;
}

.contact-card .icon svg { width: 20px; height: 20px; }

.contact-card .label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-card .value {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 0.5rem;
}

@media (max-width: 640px) {
  .contact-info .socials { justify-content: center; }
  .contact-info .socials + p { text-align: center; }
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: transform var(--dur-fast), color var(--dur), background var(--dur), border-color var(--dur);
}

.social-btn:hover {
  color: #fff;
  background: var(--brand-gradient);
  border-color: transparent;
  transform: translateY(-2px);
}

.social-btn svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */

.site-footer {
  padding-block: 2.5rem;
  background: #0E1023;
  color: #C9CCE3;
  margin-top: clamp(3rem, 6vw, 5rem);
  border-radius: calc(var(--radius-card) + 8px) calc(var(--radius-card) + 8px) 0 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.footer-brand img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer-copy {
  font-size: 0.85rem;
  color: #8F93B5;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #C9CCE3;
  font-size: 0.88rem;
}

.footer-links a:hover { color: #fff; }

@media (max-width: 640px) {
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links { justify-content: center; }
}

/* ---------------------------------------------------------
   Reveal animation
   --------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }
.reveal[data-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------
   Utilities
   --------------------------------------------------------- */

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

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mb-1 { margin-bottom: 1rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ---------------------------------------------------------
   Small screens tweaks
   --------------------------------------------------------- */

@media (max-width: 560px) {
  .nav-brand span { display: none; }
  .nav { gap: 0.5rem; }
  .nav-actions { gap: 6px; }
  .lang-switch { padding: 7px 12px; font-size: 0.82rem; }
  .btn { padding: 12px 20px; font-size: 0.95rem; }
  .qr-panel { grid-template-columns: 1fr; }
  .agency-band { padding: 1.5rem 1.5rem; }
}
