/* ── HERO SECTION ── */
#hero {
  background:
    radial-gradient(ellipse 110% 55% at 50% 105%, rgba(29,119,40,0.48) 0%, transparent 58%),
    radial-gradient(ellipse 70% 35% at 50% -5%,  rgba(41,168,58,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 25% at 20% 50%,  rgba(29,119,40,0.08) 0%, transparent 60%),
    var(--g900);
  background-image:
    radial-gradient(ellipse 110% 55% at 50% 105%, rgba(29,119,40,0.48) 0%, transparent 58%),
    radial-gradient(ellipse 70% 35% at 50% -5%,  rgba(41,168,58,0.12) 0%, transparent 55%),
    radial-gradient(ellipse 40% 25% at 20% 50%,  rgba(29,119,40,0.08) 0%, transparent 60%),
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, auto, auto, 28px 28px;
  padding: 120px 6% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Decorative rings */
.hero-rings { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-ring {
  position: absolute;
  border-radius: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hero-ring-1 { width: 520px;  height: 520px;  top: 76%; border: 1px solid rgba(123,217,141,0.1);  }
.hero-ring-2 { width: 780px;  height: 780px;  top: 76%; border: 1px solid rgba(123,217,141,0.05); }
.hero-ring-3 { width: 1060px; height: 1060px; top: 76%; border: 1px solid rgba(123,217,141,0.02); }

/* Hero text */
.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(123,217,141,0.08);
  border: 1px solid rgba(123,217,141,0.2);
  color: var(--g300);
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 400;
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--g300);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2.4s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-content h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--g300);
  display: block;
  position: relative;
}
.hero-content h1 em::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(to left, transparent, rgba(123,217,141,0.55), transparent);
  border-radius: 1px;
}

.hero-sub {
  color: rgba(255,255,255,0.52);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
  max-width: 520px;
  margin-bottom: 2.25rem;
}

.hero-btns {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

.btn-solid {
  background: var(--white);
  color: var(--g800);
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.92rem;
  font-family: 'ThmanyahSerif', sans-serif;
  transition: transform 0.15s, box-shadow 0.15s;
  display: inline-block;
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.35); }

.btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.65);
  font-weight: 400;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.92rem;
  font-family: 'ThmanyahSerif', sans-serif;
  border: 1px solid rgba(255,255,255,0.15);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  display: inline-block;
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.38); background: rgba(255,255,255,0.05); }

/* ── IPHONE MOCKUP ── */
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0px) rotate(0.25deg); }
  50%       { transform: translateY(-14px) rotate(-0.25deg); }
}
@keyframes fcA {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-9px); }
}
@keyframes fcB {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(10px); }
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.iphone-scene {
  position: relative;
  z-index: 1;
  margin-bottom: -40px;
}

.iphone-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(29,119,40,0.22) 0%, transparent 68%);
  pointer-events: none;
}

.iphone-btns-vol {
  position: absolute;
  left: -3.5px;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}
.iphone-btns-vol span {
  display: block;
  width: 3.5px;
  background: #303030;
  border-radius: 2px 0 0 2px;
}
.iphone-btns-vol span:nth-child(1) { height: 28px; }
.iphone-btns-vol span:nth-child(2) { height: 40px; }
.iphone-btns-vol span:nth-child(3) { height: 40px; }

.iphone-btn-power {
  position: absolute;
  right: -3.5px;
  top: 148px;
  width: 3.5px;
  height: 68px;
  background: #303030;
  border-radius: 0 2px 2px 0;
  z-index: 2;
}

.iphone {
  width: 300px;
  background: linear-gradient(160deg, #2A2A2A 0%, #181818 100%);
  border-radius: 54px;
  padding: 10px;
  position: relative;
  box-shadow:
    0 0 0 0.5px rgba(255,255,255,0.13),
    0 0 0 1px rgba(0,0,0,0.7),
    0 60px 120px rgba(0,0,0,0.8),
    0 20px 40px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.09),
    inset 0 -1px 0 rgba(0,0,0,0.5);
}

.iphone-screen {
  background: var(--white);
  border-radius: 46px;
  overflow: hidden;
  height: 618px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.iphone-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(148deg, rgba(255,255,255,0.055) 0%, transparent 42%);
  pointer-events: none;
  z-index: 50;
  border-radius: inherit;
}

.iphone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 30px;
  background: #000;
  border-radius: 22px;
  z-index: 20;
}

/* ── App UI inside screen ── */
.app-statusbar {
  height: 54px;
  background: var(--g800);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 18px 8px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  direction: ltr;
}
.app-sb-time {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  font-family: -apple-system, sans-serif;
}
.app-sb-icons { display: flex; align-items: center; gap: 5px; }
.app-sb-icons svg { width: 13px; height: 13px; fill: rgba(255,255,255,0.8); }

.app-topbar {
  background: var(--g800);
  padding: 4px 14px 14px;
  flex-shrink: 0;
  direction: rtl;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.app-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}
.app-org-group { display: flex; align-items: center; gap: 6px; }
.app-org-name { font-size: 0.69rem; font-weight: 700; color: var(--white); }
.app-role-badge {
  background: var(--g700);
  color: var(--white);
  font-size: 0.43rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
}
.app-topbar-actions { display: flex; align-items: center; gap: 10px; }
.app-topbar-actions i { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1; }
.app-topbar-sub { font-size: 0.48rem; color: rgba(255,255,255,0.38); }

.app-body {
  background: var(--g50);
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  direction: rtl;
}

.app-section { padding: 10px 10px 0; }
.app-section-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.app-section-title { font-size: 0.71rem; font-weight: 700; color: var(--tp); }

.app-newbtn {
  background: var(--g700);
  color: var(--white);
  border-radius: 7px;
  padding: 5px 9px;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}
.app-newbtn i { font-size: 11px; line-height: 1; }

.app-card {
  background: var(--white);
  border-radius: 8px;
  padding: 9px 11px;
  flex-shrink: 0;
  border: 0.5px solid var(--border);
  margin-bottom: 6px;
}
.app-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 5px;
}
.app-card-title {
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--tp);
  flex: 1;
}
.app-badge {
  font-size: 0.44rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  margin-right: 4px;
}
.app-badge-active { background: rgba(29,119,40,0.1);  color: var(--g700); }
.app-badge-done   { background: rgba(24,37,26,0.08);  color: var(--tp); }

.app-card-meta { display: flex; flex-direction: column; gap: 3px; margin-bottom: 7px; }
.app-card-row { display: flex; align-items: center; gap: 4px; }
.app-card-row i { font-size: 9px; color: var(--tm); flex-shrink: 0; line-height: 1; }
.app-card-row span { font-size: 0.53rem; color: var(--tm); }

.app-stats { display: flex; gap: 5px; }
.app-pill {
  font-size: 0.47rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.app-pill-total { background: rgba(122,158,130,0.1);  color: var(--ts); }
.app-pill-sent  { background: rgba(29,119,40,0.1);    color: var(--g700); }
.app-pill-coll  { background: rgba(0,81,9,0.08);      color: #005109; }

.app-quick-row { display: flex; gap: 6px; padding: 6px 10px 0; }
.app-quick-tile {
  flex: 1;
  border-radius: 8px;
  padding: 9px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-quick-tile-green { background: rgba(0,81,9,0.08); }
.app-quick-tile-blue  { background: rgba(26,107,196,0.08); }
.app-quick-tile-green i { font-size: 16px; color: #005109; line-height: 1; }
.app-quick-tile-blue  i { font-size: 16px; color: #1A6BC4; line-height: 1; }
.app-quick-tile-green .app-quick-label { font-size: 0.51rem; font-weight: 600; color: #005109; }
.app-quick-tile-blue  .app-quick-label { font-size: 0.51rem; font-weight: 600; color: #1A6BC4; }

.app-stats-section { padding: 8px 10px 0; }
.app-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.app-stat-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: 8px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.app-stat-icon-wrap {
  width: 26px; height: 26px;
  background: var(--g50);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.app-stat-icon-wrap i { font-size: 14px; color: var(--g700); line-height: 1; }
.app-stat-value { font-size: 0.82rem; font-weight: 700; color: var(--tp); line-height: 1; }
.app-stat-label { font-size: 0.45rem; color: var(--tm); line-height: 1.3; }

.app-home {
  height: 26px;
  background: var(--g50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: auto;
}
.app-home-bar {
  width: 80px; height: 3px;
  background: var(--tp);
  border-radius: 2px;
  opacity: 0.16;
}

/* ── Float cards ── */
.fc {
  position: absolute;
  background: rgba(15, 26, 18, 0.90);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(123,217,141,0.15);
  border-radius: 14px;
  z-index: 30;
  direction: rtl;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
}
.fc-progress {
  width: 152px;
  padding: 14px 15px;
  top: 68px;
  right: -92px;
  animation: fcA 4.5s ease-in-out 2s infinite;
}
.fc-notif {
  width: 164px;
  padding: 12px 14px;
  bottom: 110px;
  left: -78px;
  animation: fcB 5s ease-in-out 2.5s infinite;
}
.fc-lbl {
  font-size: 0.5rem;
  font-weight: 500;
  color: rgba(123,217,141,0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.fc-big {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 9px;
}
.fc-bar {
  height: 3px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
}
.fc-bar-fill {
  height: 100%;
  background: linear-gradient(to left, var(--g300), var(--g600));
  border-radius: 2px;
  animation: barGrow 1.2s cubic-bezier(0.22,1,0.36,1) 2.2s both;
  transform-origin: right;
}
.fc-info-sub { font-size: 0.5rem; color: rgba(255,255,255,0.38); }

/* ── Hero entrance animations ── */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroPhone {
  from { opacity: 0; transform: translateY(48px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-content .hero-eyebrow { animation: heroFade 0.6s cubic-bezier(0.22,1,0.36,1) 0.1s both; }
.hero-content h1             { animation: heroUp  0.75s cubic-bezier(0.22,1,0.36,1) 0.2s  both; }
.hero-content .hero-sub      { animation: heroUp  0.75s cubic-bezier(0.22,1,0.36,1) 0.32s both; }
.hero-content .hero-btns     { animation: heroUp  0.75s cubic-bezier(0.22,1,0.36,1) 0.42s both; }
.iphone-scene                { animation: heroPhone 1s  cubic-bezier(0.22,1,0.36,1) 0.3s  both; }
