@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Manrope:wght@500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #14231f;
  --muted: #62756d;
  --paper: #f5f8f4;
  --surface: #ffffff;
  --line: #dfe9e3;
  --green: #17624f;
  --green-soft: #ebf5f0;
  --gold: #b58945;
  --gold-soft: #fff6e7;
  --shadow: 0 26px 70px rgba(17, 45, 35, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans Arabic', sans-serif;
  line-height: 1.85;
}

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

a {
  color: var(--green);
}

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(22, 61, 50, 0.08);
  background: rgba(245, 248, 244, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(23, 98, 79, 0.18);
}

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.94rem;
}

.links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    radial-gradient(circle at 14% 16%, rgba(139, 210, 177, 0.3) 0%, rgba(139, 210, 177, 0.1) 16%, transparent 32%),
    linear-gradient(135deg, #f6faf7 0%, #edf5f0 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -130px -220px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(23, 98, 79, 0.06);
  filter: blur(30px);
}

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

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0 0 18px;
  letter-spacing: 0;
  line-height: 1.2;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

h3 {
  font-size: 1.2rem;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.18rem;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 18px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  box-shadow: 0 18px 30px rgba(20, 35, 31, 0.14);
}

.store-badge small {
  display: block;
  font-size: 0.66rem;
  opacity: 0.8;
  font-weight: 500;
}

.store-apple {
  background: linear-gradient(135deg, #0d0d0f 0%, #1d1d22 50%, #3a3a42 100%);
}

.store-google {
  background: linear-gradient(135deg, #438d51 0%, #3a7d4d 100%);
}

.store-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1rem;
}

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

.button,
.version-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid var(--green);
  background: var(--green);
  color: #fff;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover,
.version-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(23, 98, 79, 0.16);
}

.button.secondary {
  background: transparent;
  color: var(--green);
}

.button.full {
  width: 100%;
}

.hero-pills {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pills li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(23, 98, 79, 0.06);
  border: 1px solid rgba(23, 98, 79, 0.12);
  color: var(--green);
  font-weight: 600;
  font-size: 0.86rem;
}

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

.phone-frame {
  position: relative;
  width: min(360px, 90vw);
  background: linear-gradient(180deg, #d8eee1 0%, #fefefe 100%);
  border: 12px solid #161b1c;
  border-radius: 36px;
  padding: 16px 12px 10px;
  box-shadow: 0 30px 60px rgba(18, 32, 28, 0.15);
}

.phone-notch {
  width: 128px;
  height: 22px;
  margin: 0 auto 14px;
  border-radius: 0 0 18px 18px;
  background: #121b1a;
}

.phone-screen {
  padding: 14px 12px 12px;
  border-radius: 26px;
  background: linear-gradient(180deg, #f4f8f6 0%, #edf3f0 100%);
}

.screen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}

.balance-card {
  padding: 16px 14px 12px;
  margin-top: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(23, 98, 79, 0.92), rgba(34, 127, 101, 0.88));
  color: white;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.72rem;
}

.balance-card strong {
  display: block;
  margin: 10px 0 0;
  font-size: 2.1rem;
  line-height: 1;
  font-family: Manrope, sans-serif;
}

.balance-card small {
  opacity: 0.8;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mini-tile,
.list-card,
.show-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(17, 45, 35, 0.06);
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(17, 45, 35, 0.06);
}

.mini-tile {
  padding: 12px 10px;
}

.mini-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
}

.mini-tile strong {
  display: block;
  margin-top: 4px;
  font-size: 1.08rem;
}

.list-card {
  margin-top: 12px;
  padding: 12px 10px 6px;
}

.list-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
}

.entry {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 2px;
}

.entry + .entry {
  border-top: 1px solid rgba(17, 45, 35, 0.06);
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.green { background: #1ca26d; }
.dot.gold { background: #d7a14d; }

.entry strong,
.entry b {
  font-size: 0.8rem;
}

.entry small {
  color: var(--muted);
}

.entry .plus {
  color: #1d8d5b;
}

.entry .minus {
  color: #b1574f;
}

.section {
  padding: 78px 0;
}

.section.alt {
  background: #edf3ed;
}

.section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(17, 45, 35, 0.04);
}

.feature-card {
  background: linear-gradient(180deg, #fff 0%, #f7faf8 100%);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  margin-bottom: 12px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 1.3rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.platform-switcher {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 16px 0 28px;
}

.platform-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.platform-btn.is-active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.download-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 12px 26px rgba(17, 45, 35, 0.04);
}

.download-card.hidden {
  display: none;
}

.platform-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.platform-badge.ios { background: rgba(25, 118, 210, 0.12); color: #1263d1; }
.platform-badge.android { background: rgba(41, 155, 74, 0.12); color: #0d8d3c; }
.platform-badge.windows { background: rgba(31, 111, 196, 0.12); color: #0f5eb5; }
.platform-badge.mac { background: rgba(108, 119, 134, 0.12); color: #4a4e59; }
.platform-badge.linux { background: rgba(247, 191, 62, 0.12); color: #a06b10; }

.version-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.version-button {
  flex: 1 1 130px;
  min-height: 42px;
  font-size: 0.9rem;
}

.showcase-section {
  background: linear-gradient(180deg, rgba(245, 248, 244, 0) 0%, rgba(237, 243, 237, 0.45) 100%);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr;
  gap: 18px;
  align-items: stretch;
}

.showcase-card {
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(17, 45, 35, 0.06);
  box-shadow: 0 18px 26px rgba(17, 45, 35, 0.04);
}

.device-preview {
  height: 100%;
  min-height: 320px;
  border-radius: 20px;
  padding: 16px 14px 18px;
}

.dark-preview {
  background: linear-gradient(180deg, #172a25 0%, #0d1b18 100%);
  color: white;
}

.light-preview {
  background: linear-gradient(180deg, #f9fbfa 0%, #edf7f2 100%);
  border: 1px solid rgba(17, 45, 35, 0.08);
}

.device-topbar,
.mini-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.balance-panel {
  margin-top: 18px;
  padding: 16px 14px 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #1d7c63 0%, #145a4b 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.8);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
}

.chip.green {
  background: rgba(255,255,255,0.14);
  color: white;
}

.chip.muted {
  background: rgba(23, 98, 79, 0.08);
  color: var(--green);
}

.balance-panel strong {
  display: block;
  margin-top: 14px;
  font-size: 2.2rem;
  line-height: 1.1;
  font-family: Manrope, sans-serif;
}

.balance-panel small {
  opacity: 0.8;
}

.mini-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.mini-panel {
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
}

.mini-panel span {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.68rem;
}

.mini-panel strong {
  display: block;
  margin-top: 8px;
  font-size: 1.04rem;
}

.history-list {
  margin-top: 12px;
  padding-top: 8px;
}

.history-row,
.person-row,
.invoice-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

.history-row + .history-row,
.person-row + .person-row,
.invoice-row + .invoice-row {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.light-preview .history-row + .history-row,
.light-preview .person-row + .person-row,
.light-preview .invoice-row + .invoice-row {
  border-top: 1px solid rgba(17, 45, 35, 0.08);
}

.point {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.point.green { background: #1aa36c; }
.point.gold { background: #d69d3e; }

.history-row strong,
.person-row strong,
.invoice-row strong {
  display: block;
  line-height: 1.2;
}

.history-row small,
.person-row small,
.invoice-row small {
  color: rgba(255,255,255,0.7);
}

.light-preview .history-row small,
.light-preview .person-row small,
.light-preview .invoice-row small {
  color: var(--muted);
}

.safe {
  color: #1a9a68;
}

.danger {
  color: #c76a5f;
}

.neutral {
  color: #7f8d89;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #126d5a, #1a8a71);
  color: white;
  font-weight: 700;
}

.avatar.alt { background: linear-gradient(135deg, #d69a3b, #c87a38); }
.avatar.alt2 { background: linear-gradient(135deg, #6c7d8d, #4e6477); }

.person-row,
.invoice-row {
  grid-template-columns: 40px 1fr auto;
  padding: 10px 0;
}

.invoice-card {
  margin-top: 18px;
}

.invoice-row {
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.invoice-row strong {
  margin-bottom: 4px;
}

.showcase-card .device-preview {
  min-height: 0;
}

.faq {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

summary {
  cursor: pointer;
  font-weight: 700;
}

summary::marker {
  color: var(--gold);
}

details p {
  color: var(--muted);
  max-width: 850px;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .hero-grid,
  .grid,
  .download-grid,
  .screen-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 640px);
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .links {
    gap: 12px;
    justify-content: flex-start;
  }

  .hero {
    padding-top: 60px;
  }

  .store-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .store-badge {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #edf5f1;
    --muted: #b0c3ba;
    --paper: #0f201b;
    --surface: #172d28;
    --line: #2a4039;
    --green: #9ae0c4;
    --green-soft: rgba(154, 224, 196, 0.08);
    --gold: #e5c17a;
    --gold-soft: rgba(229, 193, 122, 0.1);
    --shadow: none;
  }

  .topbar {
    background: rgba(15, 32, 27, 0.82);
  }

  .hero {
    background: radial-gradient(circle at 12% 12%, rgba(71, 128, 112, 0.3) 0%, transparent 26%), linear-gradient(135deg, #10221d 0%, #19382f 100%);
  }

  .card,
  .download-card,
  .show-card,
  .mini-tile,
  .list-card {
    background: #17332b;
    border-color: var(--line);
  }

  .button {
    color: #0d1b17;
  }

  .button.secondary {
    color: var(--green);
  }

  .platform-btn {
    color: var(--ink);
  }
}
