/* ===========================================================
   Xunche — marketing site
   Brand palette pulled 1:1 from lib/core/theme/app_colors.dart
   =========================================================== */

@font-face {
  font-family: 'XuncheEnglish';
  src: url('../fonts/english.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: 'XuncheKurdish';
  src: url('../fonts/kurdish.ttf') format('truetype');
  font-weight: 400 800;
  font-display: swap;
}

:root {
  /* brand */
  --green: #105448;
  --emerald: #207760;
  --dark-green: #08352a;
  --night-green: #04150f;
  --gold: #f68428;
  --light-gold: #f5c467;
  --dark-gold: #9b6925;
  --cream: #f5f3ef;
  --soft-cream: #e8e4dc;
  --bg-light: #fff9f0;

  /* feature accents (from CardColors) */
  --c-prayer: #2edede;
  --c-kids: #df0f7e;
  --c-adhkar: #27ae60;
  --c-garden: #1abc9c;
  --c-treasure: #3d5ec9;
  --c-hajj: #08352a;
  --c-umrah: #27ae60;
  --c-stories: #41d4af;

  /* text */
  --ink: #2d3436;
  --ink-muted: #636e72;
  --ink-on-dark: #fbf0dc;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 45px -20px rgba(8, 53, 42, 0.35);
  --shadow-card: 0 12px 30px -14px rgba(16, 84, 72, 0.28);
  --container: 1180px;

  --font-en: 'XuncheEnglish', system-ui, sans-serif;
  --font-ku: 'XuncheKurdish', system-ui, sans-serif;
  --font: var(--font-en);
}

html.lang-ku,
html.lang-ar {
  --font: var(--font-ku);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #fff9f0;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  opacity: 1;
  transition: opacity 0.2s ease;
}

/* Set by an inline head script before first paint, removed by app.js the
   moment the correct language's text is in place — hides the hard-coded
   Kurdish markup so visitors never see it flash before their own language
   swaps in. */
html.i18n-pending body {
  opacity: 0;
  visibility: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

section {
  position: relative;
}

/* ---------- decorative geometric pattern ---------- */
.pattern-bg {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23105448' stroke-width='1' opacity='0.09'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 84px;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 240, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(16, 84, 72, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dark-green);
  flex-shrink: 0;
}

.brand img {
  height: 42px;
  width: 42px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--emerald));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-nav a:hover {
  opacity: 1;
  color: var(--emerald);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  position: relative;
}

.lang-current {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--soft-cream);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark-green);
  box-shadow: 0 4px 10px -6px rgba(16, 84, 72, 0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.lang-current:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px -8px rgba(16, 84, 72, 0.35);
}

.lang-current:active {
  transform: scale(0.97);
}

.lang-current img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.lang-current .chev {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg);
  transition: transform 0.2s;
  margin-top: -3px;
}

.lang-switch.open .lang-current .chev {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 8px;
  min-width: 168px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.18s ease;
}

.lang-switch.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  background: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-align: start;
  transition: background 0.18s, transform 0.18s;
}

.lang-menu button:hover {
  background: var(--cream);
  transform: translateX(2px);
}

html[dir='rtl'] .lang-menu button:hover {
  transform: translateX(-2px);
}

.lang-menu img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--soft-cream);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--dark-green);
  position: relative;
  transition: 0.2s;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.btn:active {
  transform: translateY(-2px) scale(0.96);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--emerald), var(--dark-green));
  color: #fff;
  box-shadow: 0 14px 30px -12px rgba(16, 84, 72, 0.55);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-ghost {
  background: #fff;
  color: var(--dark-green);
  border: 1.5px solid var(--soft-cream);
}

/* ---------- store badges ---------- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f1113;
  color: #fff;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 12px 26px -14px rgba(0, 0, 0, 0.5);
}

.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.55);
}

.store-badge:active {
  transform: translateY(-1px) scale(0.96);
}

.store-badge svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.store-badge:hover svg {
  transform: scale(1.12);
}

.store-badge .badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: start;
}

.store-badge .badge-text small {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  opacity: 0.85;
  text-transform: uppercase;
  font-family: var(--font-en);
}

.store-badge .badge-text strong {
  font-size: 1.02rem;
  font-weight: 700;
  font-family: var(--font-en);
}

/* ---------- hero ---------- */
.hero {
  padding-block: 60px 90px;
  overflow: hidden;
}

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

.hero-copy > .eyebrow,
.hero-copy > .lead,
.hero-copy > .store-badges,
.hero-copy > .hero-note {
  opacity: 0;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-copy > .eyebrow {
  animation-delay: 0.05s;
}

.hero-copy > .lead {
  animation-delay: 0.42s;
}

.hero-copy > .store-badges {
  animation-delay: 0.54s;
}

.hero-copy > .hero-note {
  animation-delay: 0.64s;
}

.hero-visual {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.hero-visual.loaded {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > .eyebrow,
  .hero-copy > .lead,
  .hero-copy > .store-badges,
  .hero-copy > .hero-note {
    opacity: 1;
    animation: none;
  }

  .hero-visual {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.hero .blob.b1 {
  width: 480px;
  height: 480px;
  background: var(--light-gold);
  opacity: 0.35;
  top: -160px;
  inset-inline-end: -140px;
}

.hero .blob.b2 {
  width: 380px;
  height: 380px;
  background: var(--emerald);
  opacity: 0.18;
  bottom: -140px;
  inset-inline-start: -120px;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(246, 132, 40, 0.12);
  color: var(--dark-gold);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.14;
  color: var(--dark-green);
  margin: 0 0 20px;
  font-weight: 800;
}

/* The gradient must live on the innermost text-bearing element — an
   ancestor's background-clip:text does not reach glyphs painted inside
   nested inline-block word spans, so it goes on .word-inner, not .accent. */
.hero h1 .accent .word-inner {
  background: linear-gradient(120deg, var(--gold), var(--dark-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: 1.14rem;
  color: var(--ink-muted);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-note {
  margin-top: 20px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-note::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual .frame {
  position: relative;
  width: min(360px, 86%);
  aspect-ratio: 3/4;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 6px solid #fff;
  transform: rotate(-2deg);
}

.hero-visual .float-card {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dark-green);
}

.hero-visual .float-card.fc1 {
  top: 8%;
  inset-inline-start: -6%;
}

.hero-visual .float-card.fc2 {
  bottom: 10%;
  inset-inline-end: -8%;
}

.hero-visual .float-card .dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ---------- section heading ---------- */
.section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 52px;
  position: relative;
  z-index: 1;
}

.section-head .eyebrow {
  background: rgba(32, 119, 96, 0.12);
  color: var(--emerald);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--dark-green);
  margin: 0 0 14px;
  font-weight: 800;
}

.section-head p {
  color: var(--ink-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

/* ---------- about ---------- */
.about {
  padding-block: 90px;
  background: #fff;
}

.about .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-media {
  position: relative;
}

.about-media .reveal-media {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.about-media .badge-float {
  position: absolute;
  bottom: -22px;
  inset-inline-end: -22px;
  background: var(--dark-green);
  color: #fff;
  border-radius: 20px;
  padding: 18px 22px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.about-media .badge-float strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--light-gold);
}

.about-media .badge-float span {
  font-size: 0.78rem;
  opacity: 0.85;
}

.about-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--dark-green);
  font-weight: 800;
  margin: 0 0 18px;
}

.about-copy p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink-muted);
  margin: 0 0 18px;
}

.about-copy .pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--cream);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark-green);
  transition: transform 0.25s, background 0.25s, box-shadow 0.25s;
}

.pillar:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.pillar .ic {
  font-size: 1.2rem;
  flex-shrink: 0;
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pillar:hover .ic {
  transform: scale(1.2) rotate(-6deg);
}

/* ---------- features ---------- */
.features {
  padding-block: 90px;
}

.feature-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid rgba(16, 84, 72, 0.06);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -16px rgba(16, 84, 72, 0.32);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.12) rotate(-6deg);
}

.icon-svg {
  width: 28px;
  height: 28px;
  overflow: visible;
}

.feature-card h3 {
  font-size: 1.08rem;
  color: var(--dark-green);
  margin: 0 0 10px;
  font-weight: 700;
}

.feature-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- why / value props ---------- */
.why {
  padding-block: 90px;
  background: linear-gradient(180deg, var(--dark-green) 0%, var(--night-green) 100%);
  color: #fff;
  overflow: hidden;
}

.why .pattern-bg {
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23F5C467' stroke-width='1'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3C/g%3E%3C/svg%3E");
}

.why .section-head .eyebrow {
  background: rgba(245, 196, 103, 0.15);
  color: var(--light-gold);
}

.why .section-head h2 {
  color: #fff;
}

.why .section-head p {
  color: rgba(255, 255, 255, 0.75);
}

.value-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  backdrop-filter: blur(6px);
  transition: transform 0.3s, background 0.3s, border-color 0.3s;
}

.value-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(245, 196, 103, 0.4);
}

.value-card .num {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--light-gold);
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  display: block;
}

.value-card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  font-weight: 700;
}

.value-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

/* ---------- download banner ---------- */
.download {
  padding-block: 100px;
  text-align: center;
}

.download .container {
  position: relative;
  z-index: 1;
}

.download-card {
  background: linear-gradient(120deg, var(--emerald), var(--green) 55%, var(--dark-green));
  border-radius: 36px;
  padding: 64px 40px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.download-card .pattern-bg {
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='84' viewBox='0 0 84 84'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1'%3E%3Cpath d='M42 2 L82 42 L42 82 L2 42 Z'/%3E%3Ccircle cx='42' cy='42' r='20'/%3E%3C/g%3E%3C/svg%3E");
}

.download-card .logo-mark {
  width: 74px;
  height: 74px;
  margin-inline: auto;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.download-card .logo-mark .reveal-media {
  border-radius: 20px;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.35);
}

/* The default green curtain would vanish against this card's own green
   background — use gold instead so the wipe still reads clearly. */
.download-card .reveal-curtain {
  background: linear-gradient(135deg, var(--light-gold), var(--gold) 65%, var(--dark-gold));
}

.download-card h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}

.download-card p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto 34px;
  position: relative;
  z-index: 1;
}

.download-card .store-badges {
  justify-content: center;
  position: relative;
  z-index: 1;
}

.download-card .store-badge {
  background: #fff;
  color: var(--dark-green);
}

.download-card .store-badge.apple svg path {
  fill: var(--dark-green);
}

/* ---------- contact ---------- */
.contact {
  padding-block: 90px;
  background: var(--cream);
}

.contact-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.contact-copy h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--dark-green);
  font-weight: 800;
  margin: 0 0 14px;
}

.contact-copy p {
  color: var(--ink-muted);
  line-height: 1.75;
  font-size: 1.02rem;
  margin: 0 0 26px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  color: var(--dark-green);
  border: 1.5px solid var(--soft-cream);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-email:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.contact-email .ic {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--emerald);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-row {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.social-row a {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--cream);
  border: 1.5px solid var(--soft-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.social-row a:hover {
  transform: translateY(-3px) rotate(-4deg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.social-row a:active {
  transform: translateY(-1px) scale(0.94);
}

.social-row img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-row a:hover img {
  transform: scale(1.15);
}

.contact-illustration {
  display: flex;
  justify-content: center;
}

.contact-illustration .reveal-media {
  width: min(260px, 100%);
  aspect-ratio: 3/4;
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

/* ---------- footer ---------- */
.site-footer {
  padding-block: 40px 34px;
  text-align: center;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--soft-cream), transparent);
  margin-bottom: 34px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--dark-green);
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.footer-brand img {
  height: 30px;
  width: 30px;
}

.site-footer .tagline {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin: 0 0 18px;
}

.site-footer .copyright {
  color: var(--ink-muted);
  font-size: 0.82rem;
  opacity: 0.8;
  margin: 0;
}

.privacy-wrap {
  display: inline-block;
  white-space: nowrap;
}

.privacy-link {
  display: inline;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--soft-cream);
  transition: color 0.2s;
}

.privacy-link:hover {
  color: var(--emerald);
  text-decoration-color: currentColor;
}

/* ---------- film-grain overlay ---------- */
@keyframes grainShift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  10% {
    transform: translate(-2%, -3%);
  }
  20% {
    transform: translate(-4%, 2%);
  }
  30% {
    transform: translate(2%, -4%);
  }
  40% {
    transform: translate(-2%, 5%);
  }
  50% {
    transform: translate(-4%, 2%);
  }
  60% {
    transform: translate(3%, 0);
  }
  70% {
    transform: translate(0, 3%);
  }
  80% {
    transform: translate(-3%, 0);
  }
  90% {
    transform: translate(2%, 2%);
  }
}

.grain-overlay {
  position: fixed;
  inset: -20px;
  z-index: 250;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grainShift 1.4s steps(8) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .grain-overlay {
    animation: none;
  }
}

/* ---------- scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--light-gold), var(--emerald));
  z-index: 300;
  transform-origin: 0 0;
  pointer-events: none;
}

/* ---------- reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  filter: blur(6px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

/* Images with a curtain wrapper animate themselves — the generic
   fade/blur/scale above would double up with the wipe, so cancel it here. */
[data-reveal].reveal-media {
  opacity: 1;
  transform: none;
  filter: none;
  transition: none;
}

/* ---------- curtain-wipe image reveal ---------- */
.reveal-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.reveal-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.reveal-curtain {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg, var(--emerald), var(--dark-green) 65%, var(--gold));
  transform-origin: right;
  transition: transform 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}

html[dir='rtl'] .reveal-curtain {
  transform-origin: left;
}

.reveal-media.in-view .reveal-curtain,
.reveal-media.in-view img,
.hero-visual.loaded .reveal-media .reveal-curtain,
.hero-visual.loaded .reveal-media img {
  transform: scale(1);
}

.reveal-media.in-view .reveal-curtain,
.hero-visual.loaded .reveal-media .reveal-curtain {
  transform: scaleX(0);
}

/* ---------- word-mask text reveal ---------- */
.word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.word-inner {
  display: inline-block;
  will-change: transform;
}

.section-head h2 .word-inner,
.about-copy h2 .word-inner,
.download-card h2 .word-inner,
.contact-copy h2 .word-inner {
  transform: translateY(115%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-head.in-view h2 .word-inner,
.about-copy.in-view h2 .word-inner,
.download-card.in-view h2 .word-inner,
.contact-card.in-view .contact-copy h2 .word-inner {
  transform: translateY(0);
}

@keyframes heroWordIn {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.hero-copy h1 .word-inner {
  transform: translateY(100%);
  animation: heroWordIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-media img {
    transform: none !important;
    transition: none !important;
  }

  .reveal-curtain {
    display: none;
  }

  .word-inner {
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- count-up numbers ---------- */
[data-count-to] {
  font-variant-numeric: tabular-nums;
}

/* ---------- gentle parallax ---------- */
.hero .blob,
.hero-visual .frame {
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .hero .blob,
  .hero-visual .frame {
    transform: none !important;
  }

  .scroll-progress {
    display: none;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero .lead {
    margin-inline: auto;
  }

  .hero-note {
    justify-content: center;
  }

  .store-badges {
    justify-content: center;
  }

  .about .container {
    grid-template-columns: 1fr;
  }

  .about-media {
    max-width: 380px;
    margin-inline: auto;
  }

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

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

  .contact-card {
    grid-template-columns: 1fr;
    padding: 40px 28px;
  }

  .contact-illustration {
    order: -1;
  }

  .contact-illustration .reveal-media {
    width: 200px;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    background: var(--bg-light);
    flex-direction: column;
    padding: 30px 24px;
    gap: 8px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s ease;
    align-items: stretch;
    height: calc(100vh - 76px);
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .main-nav a {
    padding: 14px 4px;
    border-bottom: 1px solid var(--soft-cream);
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .about-media .badge-float {
    inset-inline-end: 8px;
    bottom: -18px;
    padding: 12px 16px;
  }

  .contact-card {
    padding: 30px 20px;
  }

  .download-card {
    padding: 46px 22px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-block: 40px 60px;
  }

  .hero-visual .float-card {
    display: none;
  }
}
