/* Benaa website. Same colours and fonts as the app (dark theme). */

@font-face { font-family: 'Sora'; src: url('../fonts/Sora-Bold.ttf'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('../fonts/Sora-ExtraBold.ttf'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope-SemiBold.ttf'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope-Bold.ttf'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('../fonts/IBMPlexSansArabic-Bold.ttf'); font-weight: 700; font-display: swap; }

:root {
  --page: #0E1218;
  --card: #181D26;
  --card-2: #212733;
  --line: #2A3140;
  --text: #F1F4F9;
  --body: #DDE3EC;
  --grey: #9AA6BA;
  --teal: #2DD4BF;
  --teal-soft: #5EEAD4;
  --on-teal: #08211D;
  --orange: #F59E0B;
  --orange-soft: #FBBF24;
  --blue: #6EA4FF;
  --radius: 18px;
  --width: 1140px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--page);
  color: var(--body);
  font: 400 17px/1.65 'Manrope', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-soft); }
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; color: var(--text); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { color: var(--grey); }
.arabic { font-family: 'Plex Arabic', sans-serif; }

.wrap { width: min(var(--width), 100% - 40px); margin: 0 auto; }
section { padding: 90px 0; }
.section-head { max-width: 660px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.1rem; }
.tag {
  display: inline-block; margin-bottom: 14px;
  font: 700 0.78rem 'Manrope'; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal);
}
.tag.orange { color: var(--orange); }
.teal { color: var(--teal); }
.orange { color: var(--orange); }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 18, 24, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font: 800 1.3rem 'Sora'; }
.logo img { width: 34px; height: 34px; }
.logo:hover { color: var(--text); }
.logo small { font: 700 1rem 'Plex Arabic'; color: var(--grey); }
.menu { display: flex; align-items: center; gap: 6px; list-style: none; }
.menu a { color: var(--grey); font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 10px; }
.menu a:hover, .menu a.active { color: var(--text); background: var(--card); }
.menu a.button { color: var(--on-teal); }
.menu-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 12px; border: 0; cursor: pointer;
  font: 700 1rem 'Manrope'; background: var(--teal); color: var(--on-teal);
  transition: transform 0.15s, background 0.15s;
}
.button:hover { background: var(--teal-soft); color: var(--on-teal); transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.button.ghost:hover { background: var(--card); color: var(--text); }
.button.orange-button { background: var(--orange); color: #241500; }
.button.orange-button:hover { background: var(--orange-soft); color: #241500; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- hero ---------- */
.hero { padding: 80px 0 60px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -200px -10% auto auto; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.16), transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: auto auto -260px -200px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.10), transparent 65%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.hero h1 span { display: block; }
.hero .lead { font-size: 1.2rem; margin-top: 22px; max-width: 540px; }
.hero-phones { display: flex; justify-content: center; gap: 18px; }
.hero-phones .phone:nth-child(2) { margin-top: 60px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; font-size: 0.92rem; color: var(--grey); }
.badge-row span::before { content: '✓ '; color: var(--teal); font-weight: 700; }

.page-hero { padding: 80px 0 40px; }
.page-hero p { font-size: 1.15rem; margin-top: 16px; max-width: 640px; }

/* ---------- phone frame ---------- */
.phone {
  width: 230px; flex-shrink: 0;
  border-radius: 34px; padding: 8px;
  background: #05070A; border: 1px solid #2C3444;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}
.phone img { border-radius: 27px; width: 100%; aspect-ratio: 1170 / 2532; object-fit: cover; }
.phone.small { width: 200px; }

/* ---------- cards and grids ---------- */
.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; }
.icon {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 1.35rem;
  background: rgba(45, 212, 191, 0.12); color: var(--teal);
}
.icon.orange { background: rgba(245, 158, 11, 0.13); color: var(--orange); }
.icon.blue { background: rgba(110, 164, 255, 0.13); color: var(--blue); }

/* the two engines */
.engine { padding: 36px; position: relative; overflow: hidden; }
.engine.siyana { border-top: 3px solid var(--teal); }
.engine.renovate { border-top: 3px solid var(--orange); }
.engine ul { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.engine li { padding-left: 26px; position: relative; color: var(--body); font-size: 0.98rem; }
.engine li::before { content: '→'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.engine.renovate li::before { color: var(--orange); }
.engine .for { font-size: 0.9rem; margin-top: 6px; }

/* numbers strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat { text-align: center; padding: 26px 10px; }
.stat strong { display: block; font: 800 2.2rem 'Sora'; color: var(--text); }
.stat span { color: var(--grey); font-size: 0.95rem; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 24px; left: 28px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 0.95rem 'Sora'; background: var(--teal); color: var(--on-teal);
}
.step.orange-step::before { background: var(--orange); color: #241500; }
.step { padding: 72px 28px 28px; }

/* screenshot gallery */
.gallery { display: flex; gap: 24px; overflow-x: auto; padding: 10px 4px 30px; scroll-snap-type: x mandatory; }
.gallery figure { scroll-snap-align: start; flex-shrink: 0; }
.gallery figcaption { text-align: center; margin-top: 14px; font-size: 0.92rem; color: var(--grey); font-weight: 600; }

/* feature split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split + .split { margin-top: 90px; }
.split.flip .split-text { order: 2; }
.split-phones { display: flex; justify-content: center; gap: 18px; }
.checks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; color: var(--body); }
.checks li::before {
  content: '✓'; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 6px; font-size: 0.75rem; font-weight: 800;
  display: grid; place-items: center; background: rgba(45, 212, 191, 0.15); color: var(--teal);
}
.checks.orange li::before { background: rgba(245, 158, 11, 0.15); color: var(--orange); }

/* compare table */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.96rem; }
th { font: 700 0.95rem 'Sora'; color: var(--text); background: var(--card-2); }
td { color: var(--grey); background: var(--card); }
tr:last-child td { border-bottom: 0; }
td.yes { color: var(--teal); font-weight: 700; }
td.no { color: #4D5668; }
th.us, td.us { background: rgba(45, 212, 191, 0.07); }

/* team */
.person { text-align: center; padding: 34px 24px; }
.avatar {
  width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; font: 800 1.8rem 'Sora';
  background: linear-gradient(135deg, var(--teal), #0F766E); color: var(--on-teal);
}
.avatar.orange { background: linear-gradient(135deg, var(--orange), #B45309); color: #241500; }
.person .role { color: var(--teal); font-weight: 700; font-size: 0.92rem; margin: 4px 0 12px; }
.person .linkedin { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 700; font-size: 0.92rem; }

/* demo */
.demo-box { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.demo-option { display: flex; flex-direction: column; }
.demo-option .buttons { margin-top: auto; padding-top: 24px; }
.note { font-size: 0.9rem; margin-top: 12px; }
.app-frame {
  width: 390px; max-width: 100%; height: 780px; margin: 0 auto;
  border-radius: 40px; padding: 10px; background: #05070A; border: 1px solid #2C3444;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.app-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 31px; background: var(--page); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 28px; align-items: start; }
.contact-line { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line .icon { margin: 0; flex-shrink: 0; }
.contact-line strong { display: block; color: var(--text); font-family: 'Sora'; }
form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field.half { grid-template-columns: 1fr 1fr; gap: 18px; }
label { font-weight: 700; color: var(--text); font-size: 0.94rem; }
input, select, textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  background: var(--card-2); border: 1px solid #424B5E; color: var(--text);
  font: 400 1rem 'Manrope';
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 150px; resize: vertical; }
.form-message { font-weight: 700; display: none; padding: 14px 16px; border-radius: 12px; }
.form-message.ok { display: block; background: rgba(45, 212, 191, 0.12); color: var(--teal); }
.form-message.error { display: block; background: rgba(251, 146, 60, 0.12); color: #FB923C; }

/* call to action band */
.cta {
  text-align: center; padding: 60px 30px; border-radius: 26px;
  background: linear-gradient(135deg, #10302C, #181D26 55%, #3A2A0C);
  border: 1px solid var(--line);
}
.cta p { max-width: 560px; margin: 14px auto 0; font-size: 1.1rem; }
.cta .buttons { justify-content: center; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 56px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid a { color: var(--grey); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--text); }
.footer-grid p { font-size: 0.95rem; margin-top: 12px; max-width: 320px; }
.copyright { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.88rem; color: #6B7591; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid, .demo-box { grid-template-columns: 1fr; }
  .split.flip .split-text { order: 0; }
  .grid.three, .grid.four, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-phones .phone { width: 190px; }
}
@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .menu {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 14px 20px 20px;
    background: var(--page); border-bottom: 1px solid var(--line);
  }
  .menu.open { display: flex; }
  .menu a { display: block; padding: 12px; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .grid.two, .grid.three, .grid.four, .stats, .footer-grid, .field.half { grid-template-columns: 1fr; }
  .hero-phones .phone { width: 150px; border-radius: 24px; padding: 5px; }
  .hero-phones .phone img { border-radius: 20px; }
  .app-frame { height: 680px; }
}
