/* ============================================================
   ZHALBYRAK — Full Styles (Premium Flutter-like)
   Works with your provided HTML structure.
   ============================================================ */

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

html, body { height: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #160A2B;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
p { margin: 0; }

/* -------------------- Tokens -------------------- */
:root {
  --bg: #F6F4FF;
  --surface: #FFFFFF;
  --surface2: rgba(255,255,255,0.76);
  --text: #160A2B;
  --muted: rgba(22, 10, 43, 0.62);
  --border: rgba(22, 10, 43, 0.08);

  --brandPurple: #2C015D;
  --brandBlue: #18A9FF;

  --heroA: #FF5AA5;
  --heroB: #7A39FF;

  --green: #2ECC71;
  --yellow: #F1C40F;
  --red: #FF4D5E;
  --blue: #3B82F6;
  --purple: #8B5CF6;
  --gold: #F59E0B;

  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 22px;
  --r-sm: 16px;
  --r-xs: 12px;

  --sh-1: 0 10px 26px rgba(44, 1, 93, 0.08);
  --sh-2: 0 18px 50px rgba(44, 1, 93, 0.12);
  --sh-3: 0 26px 80px rgba(44, 1, 93, 0.14);

  --container: 1120px;
  --gutter: clamp(16px, 4vw, 24px);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --t: 160ms var(--ease);
}

/* -------------------- Background Layer (your .bg markup) -------------------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg);
  overflow: hidden;
}

.bg__grid {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background-image:
    linear-gradient(to right, rgba(44,1,93,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(44,1,93,0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at 50% 30%, #000 35%, transparent 70%);
}

.bg__blob {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(22px);
  opacity: 0.65;
  transform: translateZ(0);
}

.bg__blob--1 {
  left: -220px;
  top: -240px;
  background: radial-gradient(circle at 30% 30%, rgba(255,90,165,0.55), transparent 60%),
              radial-gradient(circle at 70% 70%, rgba(122,57,255,0.40), transparent 65%);
}

.bg__blob--2 {
  right: -260px;
  top: 20px;
  background: radial-gradient(circle at 40% 35%, rgba(122,57,255,0.55), transparent 60%),
              radial-gradient(circle at 70% 75%, rgba(24,169,255,0.30), transparent 65%);
}

.bg__blob--3 {
  left: 12%;
  bottom: -320px;
  width: 680px;
  height: 680px;
  opacity: 0.50;
  background: radial-gradient(circle at 50% 45%, rgba(44,1,93,0.22), transparent 65%),
              radial-gradient(circle at 35% 35%, rgba(255,90,165,0.22), transparent 70%);
}

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

main { padding-top: 18px; }

/* -------------------- Header (Flutter-like pill) -------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px 0 0;
  background: transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 12px 14px;
  border-radius: var(--r-lg);

  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(22, 10, 43, 0.06);
  box-shadow: var(--sh-1);

  position: relative;
  overflow: hidden;
}

.header__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 160px at 20% 0%, rgba(255,255,255,0.85), transparent 60%);
  pointer-events: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  box-shadow: 0 12px 22px rgba(44,1,93,0.12);
}

.brand__logoFallback {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: none;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--heroA), var(--heroB));
}

.brand__name {
  font-weight: 900;
  letter-spacing: 0.5px;
  font-size: 18px;
  line-height: 1;
  color: var(--brandBlue);
}

.brand__tag {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

/* -------------------- Language pill -------------------- */
.lang {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(122,57,255,0.10), rgba(255,90,165,0.08));
  border: 1px solid rgba(122, 57, 255, 0.16);
  box-shadow: 0 10px 24px rgba(44,1,93,0.06);
}

.lang__btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 12px;
  color: rgba(22, 10, 43, 0.55);
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t);
}

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

.lang__btn[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  box-shadow: 0 12px 24px rgba(44, 1, 93, 0.12);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;

  transition: transform var(--t), box-shadow var(--t), filter var(--t), background var(--t);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(44, 1, 93, 0.12);
}

.btn:active {
  transform: translateY(0px);
  box-shadow: 0 10px 22px rgba(44,1,93,0.10);
  filter: brightness(0.98);
}

.btn--primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, rgba(255, 90, 165, 0.95), rgba(122, 57, 255, 0.95));
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(540px 160px at 15% 0%, rgba(255,255,255,0.28), transparent 58%);
  pointer-events: none;
}

.btn--ghost {
  background: rgba(255,255,255,0.70);
  border: 1px solid rgba(22,10,43,0.10);
  color: var(--brandPurple);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.92);
}

.btn--compact { padding: 10px 12px; font-size: 12px; }

/* Link (used in CTA note) */
.link {
  color: var(--brandPurple);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(44,1,93,0.25);
  text-underline-offset: 3px;
}

/* -------------------- Hero -------------------- */
.hero { margin-top: 12px; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(16px, 4vw, 28px);
  align-items: center;
}

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

.hero__content { min-width: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(22,10,43,0.08);
  box-shadow: 0 14px 30px rgba(44,1,93,0.08);
  color: rgba(22,10,43,0.74);
  font-weight: 900;
  font-size: 12px;
}

.pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--heroA), var(--heroB));
  box-shadow: 0 10px 22px rgba(255,90,165,0.25);
}

.hero__title {
  margin: 14px 0 10px;
  font-size: clamp(30px, 5.3vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.3px;
  color: var(--brandPurple);
  font-weight: 950;
}

.gradText {
  background: linear-gradient(135deg, var(--heroA), var(--heroB));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0 0 16px;
  font-size: clamp(14px, 2.2vw, 16px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

/* Meta cards under hero */
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.metaCard {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(22,10,43,0.08);
  border-radius: 20px;
  padding: 14px 14px;
  box-shadow: var(--sh-1);
  position: relative;
  overflow: hidden;
}

.metaCard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 160px at 20% 0%, rgba(255,90,165,0.10), transparent 60%),
              radial-gradient(500px 160px at 80% 0%, rgba(122,57,255,0.10), transparent 60%);
  pointer-events: none;
}

.metaCard__label {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 900;
  color: rgba(22,10,43,0.55);
}

.metaCard__value {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-weight: 950;
  color: var(--brandPurple);
}

/* -------------------- Phone Mock -------------------- */
.hero__visual {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.phone {
  width: min(360px, 100%);
  border-radius: 44px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(22,10,43,0.10);
  box-shadow: var(--sh-3);
  overflow: hidden;
  position: relative;
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 360px at 20% 0%, rgba(255,90,165,0.12), transparent 60%),
              radial-gradient(900px 360px at 80% 0%, rgba(122,57,255,0.12), transparent 60%);
  pointer-events: none;
}

.phone__top {
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(22,10,43,0.06);
}

.phone__notch {
  width: 120px;
  height: 18px;
  border-radius: 999px;
  background: rgba(22,10,43,0.12);
}

.phone__screen {
  padding: 14px;
  position: relative;
  z-index: 1;
}

/* Screen cards mimic Flutter: soft & rounded */
.screenCard {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(22,10,43,0.06);
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(44,1,93,0.08);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.screenCard::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 160px at 20% 0%, rgba(255,90,165,0.08), transparent 60%),
              radial-gradient(500px 160px at 80% 0%, rgba(122,57,255,0.08), transparent 60%);
  pointer-events: none;
}

.screenCard--header { margin-bottom: 12px; }
.screenCard--footer { margin-top: 12px; }

.screenCard__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 999px;
  font-weight: 950;
  font-size: 12px;
  border: 1px solid rgba(22,10,43,0.06);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 10px 18px rgba(44,1,93,0.08);
}

.chip--purple {
  background: linear-gradient(135deg, rgba(255,90,165,0.10), rgba(122,57,255,0.12));
}

.chip--gold {
  background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(255,255,255,0.70));
}

.screenCard__title {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  font-weight: 950;
  color: var(--brandPurple);
}

.progress {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(22,10,43,0.08);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.progress__bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--heroA), var(--heroB));
}

/* grid of mini cards in phone */
.screenGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.screenCard__kicker {
  position: relative;
  z-index: 1;
  font-size: 12px;
  font-weight: 900;
  color: rgba(22,10,43,0.62);
}

.screenCard__stat {
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 950;
  color: var(--brandPurple);
  margin-top: 4px;
}

.screenCard__hint {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(22,10,43,0.55);
}

.resultRow {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.badge {
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  border: 1px solid rgba(22,10,43,0.08);
  background: rgba(255,255,255,0.88);
}

.badge--red { background: rgba(255,77,94,0.14); }
.badge--yellow { background: rgba(241,196,15,0.18); }
.badge--green { background: rgba(46,204,113,0.16); }
.badge--blue { background: rgba(59,130,246,0.16); }
.badge--purple { background: rgba(139,92,246,0.16); }

/* floating cards around phone */
.floatCard {
  position: absolute;
  width: 180px;
  border-radius: 22px;
  padding: 12px 12px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(22,10,43,0.08);
  box-shadow: var(--sh-2);
  backdrop-filter: blur(10px);
}

.floatCard__title {
  font-weight: 950;
  color: var(--brandPurple);
}

.floatCard__text {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(22,10,43,0.60);
  line-height: 1.35;
}

.floatCard--1 { left: -14px; top: 38px; }
.floatCard--2 { right: -14px; bottom: 46px; }

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

/* -------------------- Sections -------------------- */
.section { padding: 42px 0; }

.section__head {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section__title {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 950;
  color: var(--brandPurple);
  margin: 0;
}

.section__subtitle {
  color: var(--muted);
  line-height: 1.55;
  max-width: 68ch;
}

/* Feature cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

.card {
  position: relative;
  border-radius: var(--r-md);
  padding: 18px 18px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(22,10,43,0.08);
  box-shadow: var(--sh-1);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(255,90,165,0.10), transparent 60%),
    radial-gradient(600px 200px at 80% 0%, rgba(122,57,255,0.10), transparent 60%);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(44,1,93,0.14);
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,90,165,0.16), rgba(122,57,255,0.14));
  box-shadow: 0 14px 26px rgba(44,1,93,0.10);
  position: relative;
  z-index: 1;
}

.card__title {
  margin: 12px 0 6px;
  font-weight: 950;
  color: var(--brandPurple);
  position: relative;
  z-index: 1;
}

.card__text {
  color: rgba(22,10,43,0.62);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.step {
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(22,10,43,0.08);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--sh-1);
  position: relative;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(650px 220px at 25% 0%, rgba(24,169,255,0.10), transparent 60%);
  pointer-events: none;
}

.step__num {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 950;
  color: #fff;
  background: linear-gradient(135deg, var(--heroA), var(--heroB));
  box-shadow: 0 14px 26px rgba(255,90,165,0.18);
  position: relative;
  z-index: 1;
}

.step__title {
  margin-top: 10px;
  font-weight: 950;
  color: var(--brandPurple);
  position: relative;
  z-index: 1;
}

.step__text {
  margin-top: 6px;
  color: rgba(22,10,43,0.62);
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

/* CTA (Download section) */
.cta {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;

  background: linear-gradient(135deg, rgba(255,90,165,0.14), rgba(122,57,255,0.14));
  border: 1px solid rgba(22,10,43,0.08);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-2);
  padding: clamp(18px, 3vw, 24px);
  overflow: hidden;
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,0.20) 50%, transparent 62%);
  transform: rotate(8deg);
  opacity: 0.65;
  pointer-events: none;
}

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

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__title {
  margin: 0 0 12px;
  font-size: clamp(22px, 3.6vw, 32px);
  font-weight: 950;
  color: var(--brandPurple);
}

.cta__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.cta__note {
  margin-top: 12px;
  color: rgba(22,10,43,0.62);
}

/* right side blocks */
.cta__side {
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.miniStats {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(22,10,43,0.08);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  padding: 14px;
}

.miniStats__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(22,10,43,0.06);
}

.miniStats__row:last-child { border-bottom: 0; }

.miniStats__label {
  color: rgba(22,10,43,0.62);
  font-weight: 900;
}

.miniStats__val {
  font-weight: 950;
  color: var(--brandPurple);
}

.ctaBadge {
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(22,10,43,0.08);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  padding: 14px;
}

.ctaBadge__title {
  font-weight: 950;
  color: var(--brandPurple);
}

.ctaBadge__text {
  margin-top: 6px;
  color: rgba(22,10,43,0.62);
  line-height: 1.5;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.95em;
  background: rgba(22,10,43,0.06);
  border: 1px solid rgba(22,10,43,0.08);
  padding: 2px 6px;
  border-radius: 10px;
}

/* -------------------- Footer -------------------- */
.footer { padding: 20px 0 34px; }

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;

  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(22,10,43,0.08);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: 16px;
}

@media (max-width: 720px) {
  .footer__inner { flex-direction: column; }
}

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

.footer__mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 950;
  color: #fff;
  background: linear-gradient(135deg, var(--heroA), var(--heroB));
  box-shadow: 0 14px 26px rgba(44,1,93,0.12);
}

.footer__name {
  font-weight: 950;
  color: var(--brandPurple);
}

.footer__tag {
  color: rgba(22,10,43,0.60);
  font-size: 12px;
  margin-top: 2px;
}

.footer__small {
  margin-top: 10px;
  color: rgba(22,10,43,0.60);
  font-size: 12px;
}

.footer__right {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer__link {
  color: var(--brandPurple);
  font-weight: 950;
  text-decoration: underline;
  text-decoration-color: rgba(44,1,93,0.25);
  text-underline-offset: 3px;
}

/* -------------------- Safety net: avoid old nav pill look -------------------- */
nav ul, nav ol { list-style: none; padding: 0; margin: 0; }
nav a { border-radius: 0; background: transparent; padding: 0; border: 0; }

/* -------------------- Mobile fine tuning -------------------- */
@media (max-width: 520px) {
  .header__inner { padding: 10px 12px; gap: 10px; }
  .brand__name { font-size: 16px; }
  .brand__tag { max-width: 44vw; }
  .btn { padding: 10px 12px; font-size: 12px; }
  .phone { width: min(360px, 92vw); }
}
