/* =====================================================================
   Drahmi Landing Page Stylesheet
   Design: Drahmi-LandingPage.png
   Supports EN / FR / AR (RTL via logical CSS properties)
   ===================================================================== */

@font-face {
  font-family: 'Bricolage Grotesque';
  src: local('Bricolage Grotesque'),
       url('assets/fonts/BricolageGrotesque.ttf') format('truetype-variations'),
       url('assets/fonts/BricolageGrotesque.ttf') format('truetype');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep:        #01594D;
  --deep-dark:   #001f18;
  --forest:      #005848;
  --forest-lt:   #007060;
  --mint:        #39FE9A;
  --mint-hover:  #1df590;
  --mint-glow:   rgba(0, 232, 128, 0.22);
  --pale:        #DCF7EA;
  --wash:        #F4F8F6;
  --cream:       #F7F2EB;
  --ink:         #0b211c;
  --muted:       #4e6860;
  --line:        #d6e2dd;
  --white:       #ffffff;
  --head:        'Bricolage Grotesque', 'Poppins', system-ui, sans-serif;
  --body:        'Inter', system-ui, sans-serif;
  --head-ar:     'Cairo', 'Poppins', Tahoma, sans-serif;
  --wrap:        1240px;
  --r-xl:        36px;
  --r-lg:        28px;
  --r-md:        20px;
  --r-sm:        12px;
  --r-full:      9999px;
  --tr:          .2s cubic-bezier(.16,1,.3,1);
  --tr-slow:     .38s cubic-bezier(.16,1,.3,1);
}

html[lang=ar], html[dir=rtl] { --head: var(--head-ar); --body: var(--head-ar); }

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { font-family: var(--body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4 { font-family: var(--head); line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.section-pad { padding-block: 96px; }
.center { text-align: center; max-width: 740px; margin-inline: auto; }
.center p { margin-top: 16px; font-size: 1.08rem; color: var(--muted); line-height: 1.65; }
.eyebrow { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--mint); margin-bottom: 12px; display: block; }
.eyebrow.dk { color: var(--forest); }
.badge { display: inline-flex; align-items: center; background: var(--mint); color: var(--deep); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: var(--r-full); margin-inline-start: 7px; vertical-align: middle; }

.skip-link { position: absolute; top: -100px; inset-inline-start: 16px; background: var(--mint); color: var(--deep); padding: 10px 18px; border-radius: 8px; font-weight: 700; z-index: 200; transition: top .2s; }
.skip-link:focus { top: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 26px; border-radius: var(--r-full); font-weight: 600; font-size: .95rem; white-space: nowrap; transition: transform var(--tr), background var(--tr), box-shadow var(--tr); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-mint { background: var(--mint); color: var(--deep); box-shadow: 0 8px 24px var(--mint-glow); }
.btn-mint:hover { background: var(--mint-hover); box-shadow: 0 12px 28px rgba(0,232,128,.35); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.3); color: var(--white); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.55); }
.btn-forest { background: var(--forest); color: var(--white); }
.btn-forest:hover { background: var(--deep); }
.btn-outline { border: 1.5px solid var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--wash); }

/* Nav */
.nav-band { position: sticky; top: 0; z-index: 100; background: var(--deep); border-bottom: 1px solid rgba(255,255,255,.07); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.brand-mark { width: 32px; height: 32px; }
.brand-word { font-family: var(--head); font-size: 1.45rem; font-weight: 700; letter-spacing: -.035em; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { color: rgba(255,255,255,.82); font-size: .93rem; font-weight: 500; transition: color var(--tr); }
.nav-links a:hover { color: var(--mint); }
.nav-end { display: flex; align-items: center; gap: 12px; }
.lang-wrap { position: relative; }
.lang-btn { display: flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: var(--r-sm); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: var(--white); font-size: .85rem; font-weight: 600; transition: background var(--tr); }
.lang-btn:hover { background: rgba(255,255,255,.14); }
.lang-chev { width: 14px; height: 14px; transition: transform var(--tr); }
.lang-btn[aria-expanded=true] .lang-chev { transform: rotate(180deg); }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: var(--deep); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-sm); padding: 6px; min-width: 130px; box-shadow: 0 16px 36px rgba(0,0,0,.32); z-index: 101; }
.lang-menu[hidden] { display: none; }
.lang-menu li button { width: 100%; text-align: start; padding: 8px 12px; border-radius: 6px; font-size: .88rem; color: rgba(255,255,255,.82); transition: background var(--tr), color var(--tr); }
.lang-menu li button:hover, .lang-menu li button[aria-selected=true] { background: rgba(255,255,255,.12); color: var(--mint); }
.nav-toggle { display: none; color: var(--white); padding: 8px; }
@media (max-width: 880px) {
  .nav-links { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--deep); flex-direction: column; align-items: flex-start; padding: 20px 24px; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: block; }
  .nav-end .btn-ghost { display: none; }
}

/* Hero */
.hero { background: var(--deep); color: var(--white); padding-top: 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: flex-end; }
.hero-copy { padding-bottom: 80px; }
.hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); font-weight: 800; line-height: .97; letter-spacing: -.04em; }
.hero h1 .mint { display: block; color: var(--mint); }
.hero-lead { margin-top: 24px; margin-bottom: 36px; font-size: 1.1rem; line-height: 1.62; color: rgba(255,255,255,.82); max-width: 44ch; }
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; align-items: flex-start; margin-bottom: 10%;}
.hero-visual img { width: 100%; max-width: 510px; filter: drop-shadow(0 32px 64px rgba(0,0,0,.42)); transition: transform var(--tr-slow); }
.hero-visual:hover img { transform: translateY(-8px); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-copy { padding-bottom: 0; } }

/* Bento Grid */
.bento-section { padding-block: 100px 90px; }
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.bcard { border-radius: var(--r-lg); padding: 26px; min-height: 380px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid var(--line); background: var(--wash); transition: transform var(--tr), box-shadow var(--tr); overflow: hidden; position: relative; }
.bcard:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,51,40,.07); }
.bcard-mint { background: var(--mint); border-color: var(--mint); color: var(--deep); }
.balance-box { background: rgba(0,51,40,.1); border-radius: var(--r-md); padding: 16px 18px; }
.balance-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: .78rem; }
.active-pill { background: var(--deep); color: var(--mint); font-size: .7rem; font-weight: 700; padding: 2px 9px; border-radius: var(--r-full); }
.balance-amount { font-family: var(--head); font-size: 1.55rem; font-weight: 700; color: var(--deep); letter-spacing: -.02em; }
.bcard-mint h3 { color: var(--deep); margin-top: 4px; }
.bcard-mint p { color: rgba(0,51,40,.82); margin-top: 5px; font-size: .93rem; }
.bcard-dark { background: var(--deep); border-color: var(--deep); color: var(--white); }
.bcard-dark h3 { font-size: 1.3rem; }
.bcard-dark p { color: rgba(255,255,255,.78); margin-top: 8px; font-size: .93rem; }
.action-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.chip-btn { display: flex; align-items: center; gap: 8px; background: var(--white); border: none; border-radius: var(--r-full); padding: 10px 16px 10px 10px; font-size: .88rem; font-weight: 600; color: var(--deep); transition: background var(--tr), transform var(--tr), box-shadow var(--tr); box-shadow: 0 1px 4px rgba(0,0,0,.06); white-space: nowrap; }
.chip-btn:hover { background: #f0fdf8; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,51,40,.12); }
.chip-btn img { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; display: block; background: var(--deep); border-radius: 50%; padding: 4px; box-sizing: border-box; filter: brightness(0) invert(1); }
.bcard-photo { padding: 0; border: 0; background: #0e201a; position: relative; overflow: hidden; }
.bcard-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-lg); display: block; }
.bcard-photo-label { position: absolute; bottom: 0; inset-inline: 0; padding: 22px 22px 24px; background: linear-gradient(to top, rgba(0,20,14,.82) 0%, rgba(0,20,14,.55) 60%, transparent 100%); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.bcard-photo-label h3 { color: var(--white); font-size: 1.15rem; font-weight: 700; margin: 0 0 5px; }
.bcard-photo-label p { color: rgba(255,255,255,.85); font-size: .88rem; line-height: 1.45; margin: 0; }
.receipt-preview { background: var(--white); border-radius: var(--r-md); padding: 16px 18px; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,51,40,.05); }
.receipt-row { display: flex; align-items: center; justify-content: space-between; padding: 5px 0; font-size: .84rem; color: var(--muted); }
.receipt-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; color: var(--ink); }
.receipt-row.fee-free { color: #039855; font-weight: 600; }
.card-label { margin-top: 22px; }
.card-label h3 { margin-bottom: 5px; }
.card-label p { font-size: .93rem; color: var(--muted); }
@media (max-width: 1020px) { .bento-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bento-grid { grid-template-columns: 1fr; } .bcard { min-height: 280px; } }

/* Feature Matrix */
.features-section { padding-block: 90px 100px; }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ftile { background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; display: flex; flex-direction: column; min-height: 190px; transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr); }
.ftile:hover { transform: translateY(-3px); border-color: #b8d4ca; box-shadow: 0 12px 28px rgba(0,51,40,.05); }
.fic { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 16px; color: var(--forest); }
.fic img { width: 22px; height: 22px; }
.ftile h3 { margin-bottom: 8px; }
.ftile p { font-size: .93rem; color: var(--muted); line-height: 1.5; }
.ftile-focal { grid-column: 2; grid-row: 2; background: var(--cream); border-color: #e3d9cc; justify-content: center; align-items: center; text-align: center; padding: 36px 28px; }
.ftile-focal h2 { font-size: clamp(1.6rem, 2.5vw, 2.1rem); font-weight: 700; color: var(--deep); line-height: 1.18; }
.ftile-focal p { margin-top: 12px; font-size: 1rem; color: rgba(0,51,40,.75); }
@media (max-width: 920px) { .fgrid { grid-template-columns: 1fr 1fr; } .ftile-focal { grid-column: 1/-1; grid-row: auto; } }
@media (max-width: 520px) { .fgrid { grid-template-columns: 1fr; } }

/* Steps */
.steps-section { padding-block: 100px; background: var(--wash); }
.steps-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.steps-hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.steps-sub { color: var(--muted); margin-bottom: 14px; font-size: .95rem; }
.acc-list { border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); transition: background var(--tr); }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 18px; padding: 20px 0; text-align: start; cursor: pointer; border: none; background: transparent; }
.acc-step { font-size: .74rem; font-weight: 700; background: var(--pale); color: var(--forest); padding: 3px 10px; border-radius: var(--r-full); white-space: nowrap; transition: all var(--tr); }
.acc-item.open .acc-step { background: var(--mint); color: var(--deep); }
.acc-btn h3 { flex: 1; font-size: 1.18rem; transition: color var(--tr); }
.acc-item.open .acc-btn h3 { color: var(--forest); }
.acc-pm { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--forest); font-weight: 700; font-size: 1.4rem; line-height: 1; transition: transform var(--tr), background var(--tr), border-color var(--tr); }
.acc-item.open .acc-pm { background: var(--mint); border-color: var(--mint); color: var(--deep); transform: rotate(45deg); }
.acc-body { display: none; padding-inline-start: 72px; padding-bottom: 22px; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.acc-item.open .acc-body { display: block; }

/* Steps Visual & Phone Presentation */
.steps-visual { 
  background-color: var(--deep); 
  background-image: url('assets/background.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: var(--r-xl); 
  padding: 56px 36px 0; 
  display: flex; 
  flex-direction: column; 
  justify-content: flex-end; 
  align-items: center; 
  box-shadow: 0 28px 60px rgba(0,51,40,.18); 
  position: relative; 
  overflow: hidden; 
  min-height: 520px; 
}

.steps-visual::before {
  content: "";
  position: absolute;
  top: 36%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 224, 143, 0.16) 0%, rgba(10, 80, 58, 0.08) 50%, transparent 72%);
  filter: blur(44px);
  pointer-events: none;
}

.steps-visual-top {
  position: absolute;
  top: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 5;
}

.steps-badge {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--mint);
  text-transform: uppercase;
}

.steps-indicators {
  display: flex;
  gap: 6px;
  align-items: center;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.22);
  transition: all var(--tr);
  cursor: pointer;
}

.step-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.step-dot.active {
  background: var(--mint);
  width: 22px;
}

.steps-phone-frame {
  position: relative;
  width: 100%;
  max-width: 330px;
  height: 430px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 2;
}

.steps-screen {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(18px) scale(0.96);
  width: 100%;
  max-width: 330px;
  height: auto;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

.steps-screen.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0) scale(1);
}

@media (max-width: 880px) { 
  .steps-grid { grid-template-columns: 1fr; }
  .steps-visual { min-height: 480px; }
  .steps-phone-frame { height: 380px; }
}

/* Flow Section & 3D Carousel */
.flow-section { 
  padding-block: 100px 90px; 
  background: var(--deep); 
  color: var(--white); 
  overflow: hidden;
  position: relative;
}

.flow-section .center p { 
  color: rgba(255,255,255,.75); 
}

.flow-tabs { 
  display: flex; 
  gap: 8px; 
  justify-content: center; 
  flex-wrap: wrap; 
  margin: 36px auto 28px; 
  background: rgba(255,255,255,.06); 
  padding: 6px; 
  border-radius: var(--r-full); 
  width: fit-content; 
  max-width: 100%; 
  border: 1px solid rgba(255,255,255,.08);
}

.ftab { 
  padding: 10px 22px; 
  border-radius: var(--r-full); 
  font-size: .92rem; 
  font-weight: 600; 
  color: rgba(255,255,255,.75); 
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--tr); 
}

.ftab:hover {
  color: var(--white);
  background: rgba(255,255,255,.08);
}

.ftab[aria-selected=true] { 
  background: var(--mint); 
  color: var(--deep); 
  box-shadow: 0 4px 18px rgba(0, 224, 143, 0.32);
}

/* 3D Carousel Stage */
.flow-carousel-wrap {
  position: relative;
  width: 100%;
  max-width: 1380px;
  margin: 16px auto 0;
  padding-block: 10px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1600px;
}

.flow-carousel {
  position: relative;
  width: 100%;
  height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  outline: none;
}

/* Ambient emerald glow behind active card */
.flow-carousel::before {
  content: "";
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, 80vw);
  height: min(460px, 55vw);
  background: radial-gradient(ellipse at center, rgba(0, 224, 143, 0.15) 0%, rgba(10, 80, 58, 0.08) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  filter: blur(48px);
}

/* Individual Slides */
.flow-slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(300px, 34vw, 475px);
  max-width: 90vw;
  aspect-ratio: 2044 / 2804;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), 
              opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), 
              filter 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, filter;
  outline: none;
  border-radius: 28px;
}

.flow-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
  border-radius: 28px;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.45));
}

/* Positions matching howmoneymoves.png */

/* Center active card */
.flow-slide[data-pos="0"] {
  transform: translate3d(-50%, -50%, 0) scale(1) rotateY(0deg) rotateZ(0deg);
  z-index: 10;
  opacity: 1;
  pointer-events: auto;
  cursor: default;
  filter: drop-shadow(0 28px 65px rgba(0, 0, 0, 0.55));
}

/* Left card (tilted inward in 3D perspective) */
.flow-slide[data-pos="-1"] {
  transform: translate3d(calc(-50% - clamp(230px, 26vw, 360px)), -50%, -70px) scale(0.85) rotateY(24deg) rotateZ(-3deg);
  z-index: 5;
  opacity: 0.85;
  filter: brightness(0.92) drop-shadow(0 16px 36px rgba(0, 0, 0, 0.38));
}

.flow-slide[data-pos="-1"]:hover {
  opacity: 0.98;
  filter: brightness(1) drop-shadow(0 20px 44px rgba(0, 0, 0, 0.45));
  transform: translate3d(calc(-50% - clamp(230px, 26vw, 360px)), -50%, -50px) scale(0.87) rotateY(20deg) rotateZ(-2deg);
}

/* Right card (tilted inward in 3D perspective) */
.flow-slide[data-pos="1"] {
  transform: translate3d(calc(-50% + clamp(230px, 26vw, 360px)), -50%, -70px) scale(0.85) rotateY(-24deg) rotateZ(3deg);
  z-index: 5;
  opacity: 0.85;
  filter: brightness(0.92) drop-shadow(0 16px 36px rgba(0, 0, 0, 0.38));
}

.flow-slide[data-pos="1"]:hover {
  opacity: 0.98;
  filter: brightness(1) drop-shadow(0 20px 44px rgba(0, 0, 0, 0.45));
  transform: translate3d(calc(-50% + clamp(230px, 26vw, 360px)), -50%, -50px) scale(0.87) rotateY(-20deg) rotateZ(2deg);
}

/* Far Left (hidden / transitioning off) */
.flow-slide[data-pos="-2"] {
  transform: translate3d(calc(-50% - clamp(400px, 46vw, 680px)), -50%, -180px) scale(0.68) rotateY(34deg) rotateZ(-5deg);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

/* Far Right (hidden / transitioning off) */
.flow-slide[data-pos="2"] {
  transform: translate3d(calc(-50% + clamp(400px, 46vw, 680px)), -50%, -180px) scale(0.68) rotateY(-34deg) rotateZ(5deg);
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

/* RTL Support for Arabic */
[dir="rtl"] .flow-slide[data-pos="-1"] {
  transform: translate3d(calc(-50% + clamp(230px, 26vw, 360px)), -50%, -70px) scale(0.85) rotateY(-24deg) rotateZ(3deg);
}
[dir="rtl"] .flow-slide[data-pos="-1"]:hover {
  transform: translate3d(calc(-50% + clamp(230px, 26vw, 360px)), -50%, -50px) scale(0.87) rotateY(-20deg) rotateZ(2deg);
}
[dir="rtl"] .flow-slide[data-pos="1"] {
  transform: translate3d(calc(-50% - clamp(230px, 26vw, 360px)), -50%, -70px) scale(0.85) rotateY(24deg) rotateZ(-3deg);
}
[dir="rtl"] .flow-slide[data-pos="1"]:hover {
  transform: translate3d(calc(-50% - clamp(230px, 26vw, 360px)), -50%, -50px) scale(0.87) rotateY(20deg) rotateZ(-2deg);
}
[dir="rtl"] .flow-slide[data-pos="-2"] {
  transform: translate3d(calc(-50% + clamp(400px, 46vw, 680px)), -50%, -180px) scale(0.68) rotateY(-34deg) rotateZ(5deg);
}
[dir="rtl"] .flow-slide[data-pos="2"] {
  transform: translate3d(calc(-50% - clamp(400px, 46vw, 680px)), -50%, -180px) scale(0.68) rotateY(34deg) rotateZ(-5deg);
}

/* Nav Chevrons */
.flow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  width: 50px;
  height: 50px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tr);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.flow-arrow:hover {
  background: var(--mint);
  color: var(--deep);
  border-color: var(--mint);
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 224, 143, 0.3);
}

.flow-prev { left: clamp(8px, 2vw, 24px); }
.flow-next { right: clamp(8px, 2vw, 24px); }

[dir="rtl"] .flow-prev {
  left: auto;
  right: clamp(8px, 2vw, 24px);
  transform: translateY(-50%) scaleX(-1);
}
[dir="rtl"] .flow-prev:hover {
  transform: translateY(-50%) scaleX(-1) scale(1.08);
}
[dir="rtl"] .flow-next {
  right: auto;
  left: clamp(8px, 2vw, 24px);
  transform: translateY(-50%) scaleX(-1);
}
[dir="rtl"] .flow-next:hover {
  transform: translateY(-50%) scaleX(-1) scale(1.08);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 900px) {
  .flow-carousel {
    height: 580px;
  }
  .flow-slide {
    width: clamp(280px, 44vw, 400px);
  }
}

@media (max-width: 640px) {
  .flow-section {
    padding-block: 70px 75px;
  }
  .flow-carousel {
    height: 480px;
  }
  .flow-slide {
    width: clamp(250px, 68vw, 330px);
  }
  .flow-slide[data-pos="-1"] {
    transform: translate3d(calc(-50% - clamp(140px, 36vw, 190px)), -50%, -50px) scale(0.82) rotateY(18deg) rotateZ(-2deg);
    opacity: 0.65;
  }
  .flow-slide[data-pos="1"] {
    transform: translate3d(calc(-50% + clamp(140px, 36vw, 190px)), -50%, -50px) scale(0.82) rotateY(-18deg) rotateZ(2deg);
    opacity: 0.65;
  }
  [dir="rtl"] .flow-slide[data-pos="-1"] {
    transform: translate3d(calc(-50% + clamp(140px, 36vw, 190px)), -50%, -50px) scale(0.82) rotateY(-18deg) rotateZ(2deg);
  }
  [dir="rtl"] .flow-slide[data-pos="1"] {
    transform: translate3d(calc(-50% - clamp(140px, 36vw, 190px)), -50%, -50px) scale(0.82) rotateY(18deg) rotateZ(-2deg);
  }
  .flow-arrow {
    width: 40px;
    height: 40px;
  }
}

/* Moments */
.moments-section { padding-block: 100px; }
.moments-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 52px; }
.moments-list { border-top: 1px solid var(--line); }
.mitem { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 8px; border-bottom: 1px solid var(--line); text-align: start; transition: background var(--tr); }
.mitem:hover { background: var(--wash); }
.mitem small { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 2px; }
.mitem span { font-family: var(--head); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.marr { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--forest); transition: background var(--tr), transform var(--tr); flex: none; }
.mitem[aria-selected=true] .marr { background: var(--mint); border-color: var(--mint); color: var(--deep); transform: translateX(3px); }
[dir="rtl"] .mitem[aria-selected=true] .marr { transform: translateX(-3px) rotate(180deg); }
[dir="rtl"] .marr { transform: rotate(180deg); }
.mitem[aria-selected=true] span { color: var(--forest); font-weight: 700; }

.mpanel {
  background-color: var(--deep);
  background-image: url('assets/background.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: var(--r-xl);
  padding: 44px 38px 36px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
  box-shadow: 0 24px 56px rgba(0,51,40,.18);
  border: 1px solid rgba(0, 232, 128, 0.12);
}
.mpanel-bg {
  display: none;
}
.mword {
  position: absolute;
  top: 24px;
  inset-inline-start: 32px;
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(4.5rem, 8vw, 6.5rem);
  color: #01EA88;
  opacity: 0.2;
  line-height: 1;
  pointer-events: none;
  letter-spacing: -.03em;
  z-index: 1;
  transition: opacity .25s ease, transform .25s ease;
}
.mnotif {
  background: linear-gradient(145deg, #02c36b 0%, #00ab5c 100%);
  color: var(--white);
  border-radius: 22px;
  padding: 26px 28px;
  box-shadow: 0 20px 48px rgba(0, 25, 18, 0.35);
  position: relative;
  z-index: 2;
  margin-top: auto;
  margin-bottom: 20px;
  transition: transform .25s cubic-bezier(0.2, 0, 0, 1), opacity .25s ease;
}
.mnotif-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.mnotif-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}
.mnow {
  background: #004434;
  color: #ffffff;
  font-size: .84rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: var(--r-full);
}
.mnotif h4, .mnotif-title {
  font-family: var(--head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.mnotif p, .mnotif-desc {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}
.mtag {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #d4f5ea;
  color: #01372a;
  font-size: .95rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--r-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 22px;
  position: relative;
  z-index: 2;
  transition: transform .25s ease, opacity .25s ease;
}
.mtag-chk {
  color: #01372a;
  flex: none;
}
.mdesc {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.52;
  text-align: end;
  margin: 0;
  position: relative;
  z-index: 2;
  transition: opacity .25s ease;
}

/* Swapping transition animation */
.mpanel.is-swapping .mnotif,
.mpanel.is-swapping .mtag,
.mpanel.is-swapping .mdesc,
.mpanel.is-swapping .mword {
  opacity: 0.1;
  transform: translateY(4px);
}

@media (max-width: 880px) {
  .moments-grid { grid-template-columns: 1fr; }
  .mpanel { min-height: 440px; padding: 32px 24px 28px; }
  .mword { font-size: 4rem; }
  .mnotif { padding: 20px 22px; }
  .mnotif p, .mnotif-desc { font-size: 1.05rem; }
  .mdesc { text-align: start; }
}

/* Pricing */
.pricing-section { padding-block: 100px; background: var(--wash); }
.pricing-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: center; }
.pricing-intro { display: flex; flex-direction: column; justify-content: center; }
.billing-toggle { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-full); padding: 4px; margin: 24px 0 0; align-self: flex-start; }
.billing-toggle button { padding: 9px 22px; border-radius: var(--r-full); font-size: .9rem; font-weight: 600; color: var(--muted); transition: background var(--tr), color var(--tr); }
.billing-toggle button[aria-pressed=true] { background: var(--forest); color: var(--white); }
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.plan-card {
  background: var(--white);
  border: 1px solid #e5e9ea;
  border-radius: 28px;
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  transition: transform var(--tr), box-shadow var(--tr);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,51,40,.08); }
.plan-card.pro {
  background: radial-gradient(circle at 85% 15%, #057d4c 0%, #014328 60%, #01311d 100%);
  color: var(--white);
  border: 1px solid transparent;
  box-shadow: 0 20px 48px rgba(1, 67, 40, 0.22);
}
.plan-hd { display: flex; align-items: center; justify-content: space-between; font-size: 1.02rem; font-weight: 600; color: #4b5563; gap: 8px; }
.plan-card.pro .plan-hd { color: #ffffff; }
.plan-tag {
  font-size: .78rem;
  font-weight: 600;
  color: #1f2937;
  background: #f3f4f6;
  border: none;
  padding: 6px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.trial-pill {
  font-size: .78rem;
  font-weight: 700;
  background: #00ea88;
  color: #033a20;
  padding: 6px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.plan-price {
  font-family: var(--head);
  font-size: 3.2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-top: 20px;
  line-height: 1;
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: #111827;
}
.plan-card.pro .plan-price { color: #ffffff; }
.plan-price small { font-size: 1.15rem; font-weight: 400; letter-spacing: 0; color: #4b5563; }
.plan-card.pro .plan-price small { color: rgba(255,255,255,.8); }
.plan-per { font-size: .95rem; color: #4b5563; margin-top: 8px; margin-bottom: 24px; }
.plan-card.pro .plan-per { color: rgba(255,255,255,.8); }
.plan-divider { border: none; border-top: 1px solid #e5e7eb; margin: 0; }
.plan-divider--pro { border-top-color: rgba(255,255,255,.18); }
.plan-ul { display: flex; flex-direction: column; gap: 16px; margin: 28px 0 36px; flex: 1; }
.plan-ul li { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; line-height: 1.45; color: #374151; }
.plan-card.pro .plan-ul li { color: rgba(255,255,255,.94); }
.plan-chk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 800;
  flex: none;
  line-height: 1;
  margin-top: 2px;
}
.plan-card.pro .plan-chk { color: #ffffff; }
.plan-card .btn { width: 100%; margin-top: auto; justify-content: center; border-radius: var(--r-full); padding: 15px 24px; font-size: 1.02rem; font-weight: 600; }
.plan-card #btnGetFree { background: #034832; color: #ffffff; }
.plan-card #btnGetFree:hover { background: #023625; }
.plan-card.pro #btnStartTrial { background: #00ea88; color: #023a20; font-weight: 700; }
.plan-card.pro #btnStartTrial:hover { background: #00db7e; }
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; } .plans-grid { grid-template-columns: 1fr; } }

/* Security */
.security-section { padding-block: 100px; }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 52px; }
.sec-card { padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--r-md); transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr); }
.sec-card:hover { transform: translateY(-3px); border-color: #b8d4ca; box-shadow: 0 12px 28px rgba(0,51,40,.05); }
.sec-ic { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--wash); display: grid; place-items: center; color: var(--forest); margin-bottom: 18px; }
.sec-card h3 { margin-bottom: 8px; }
.sec-card p { color: var(--muted); font-size: .94rem; line-height: 1.52; }
@media (max-width: 760px) { .sec-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq-section { padding-block: 100px; background: var(--wash); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.faq-nav { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.faq-nav-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; color: var(--forest); transition: background var(--tr), transform var(--tr); }
.faq-nav-btn:hover { background: var(--mint); border-color: var(--mint); color: var(--deep); transform: scale(1.05); }
.faq-counter { font-family: var(--head); font-weight: 700; font-size: .98rem; }
.faq-contact { margin-top: 24px; font-size: .94rem; color: var(--muted); }
.faq-contact a { color: var(--forest); font-weight: 700; text-decoration: underline; }
.faq-card { background: var(--deep); color: var(--white); border-radius: var(--r-xl); padding: 48px 40px; min-height: 320px; display: flex; flex-direction: column; box-shadow: 0 20px 48px rgba(0,51,40,.14); }
.faq-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.faq-d-mark { width: 32px; height: 32px; background: var(--mint); color: var(--deep); border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; }
.faq-npill { background: rgba(255,255,255,.12); color: var(--mint); font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: var(--r-full); }
.faq-card h3 { font-size: clamp(1.35rem, 2.3vw, 1.85rem); font-weight: 700; margin-bottom: 16px; }
.faq-card p { color: rgba(255,255,255,.82); font-size: 1.06rem; line-height: 1.65; }
@media (max-width: 880px) { .faq-grid { grid-template-columns: 1fr; } }

/* CTA Banner */
.cta-section {
  background:
    url('assets/background2.png') center / cover no-repeat,
    radial-gradient(ellipse at 30% 50%, #01EA88 0%, #047243 100%);
  color: var(--white);
  padding-top: 80px;
  padding-bottom: 0;
  overflow: hidden;
}
.cta-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: flex-end; }
.cta-copy { padding-bottom: 80px; }
.cta-copy h1 { font-size: clamp(2.7rem, 6vw, 4.8rem); font-weight: 800; line-height: .98; letter-spacing: -.04em; }
.cta-copy p { margin: 20px 0 32px; font-size: 1.12rem; color: rgba(255,255,255,.84); max-width: 38ch; }
.stores-row { display: flex; gap: 14px; flex-wrap: wrap; }
.store-btn { display: flex; align-items: center; gap: 12px; background: #000; color: var(--white); border-radius: var(--r-sm); padding: 10px 18px; border: 1px solid rgba(255,255,255,.2); transition: transform var(--tr), background var(--tr); }
.store-btn:hover { transform: translateY(-2px); background: #111; }
.store-btn small { display: block; font-size: .62rem; letter-spacing: .04em; opacity: .85; line-height: 1; }
.store-btn b { font-family: var(--head); font-size: 1.04rem; font-weight: 700; line-height: 1.1; }
.cta-visual { display: flex; justify-content: center; align-items: flex-end; }
.cta-visual img { max-width: 440px; width: 100%; transition: transform var(--tr-slow); }
.cta-visual:hover img { transform: translateY(-8px); }
@media (max-width: 880px) { .cta-grid { grid-template-columns: 1fr; } .cta-copy { padding-bottom: 40px; } }

/* Footer */
footer { background: var(--deep-dark); color: rgba(255,255,255,.75); padding-block: 70px 36px; font-size: .93rem; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand-desc { margin-top: 14px; line-height: 1.62; max-width: 30ch; color: rgba(255,255,255,.68); }
.foot-socials { display: flex; gap: 12px; margin-top: 20px; }
.soc-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: rgba(255,255,255,.8); transition: background var(--tr), color var(--tr); }
.soc-link:hover { background: var(--mint); color: var(--deep); }
.foot-col h4 { color: var(--white); font-size: .98rem; font-weight: 700; margin-bottom: 18px; }
.foot-col ul { display: flex; flex-direction: column; gap: 11px; }
.foot-col a { color: rgba(255,255,255,.72); transition: color var(--tr); }
.foot-col a:hover { color: var(--mint); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 28px; font-size: .85rem; }
.foot-langs { display: flex; gap: 16px; }
.foot-langs button { color: rgba(255,255,255,.72); font-size: .87rem; transition: color var(--tr); }
.foot-langs button:hover, .foot-langs button.active { color: var(--mint); font-weight: 700; }
@media (max-width: 1024px) { .foot-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-top { grid-template-columns: 1fr; } .stores-row { flex-direction: column; } .hero-ctas .btn { width: 100%; } }