/* ══════════════════════════════════════════
   RiskTech Website — Light Theme
   ══════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #1565C0;
  --blue-lt: #1976D2;
  --green:   #2E7D32;
  --bg:      #F8FAFC;
  --bg-alt:  #EFF4FB;
  --card:    #FFFFFF;
  --border:  #DDE3ED;
  --text:    #0D1B2A;
  --muted:   #5A6A7E;
  --radius:  16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248,250,252,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.nav-brand img { width: 70px; height: 70px; border-radius: 10px; }
.nav-controls { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: border-color 0.2s, background 0.2s;
}
.lang-toggle:hover { border-color: var(--blue); background: var(--bg-alt); }

.nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue-lt); }

/* ── HERO ── */
.hero {
  max-width: 1100px;
  margin: auto;
  padding: 80px 24px 70px;
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-content { flex: 1; }

.badge {
  display: inline-block;
  background: #E3F0FF;
  color: var(--blue);
  border: 1px solid #BDDCFF;
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-sub {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 16px rgba(21,101,192,0.25);
}
.btn-primary svg { width: 20px; height: 20px; }
.btn-primary:hover { background: var(--blue-lt); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--blue); background: var(--bg-alt); }

/* ── PHONE MOCKUP ── */
.hero-phone { flex-shrink: 0; }
.phone-frame {
  width: 240px;
  height: 480px;
  border-radius: 36px;
  border: 6px solid #CBD5E1;
  background: #fff;
  box-shadow: 0 32px 64px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
  overflow: hidden;
}
.phone-screen { width: 100%; height: 100%; overflow: hidden; position: relative; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.screen-placeholder {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--muted);
}
.screen-placeholder img { width: 150px; height: 150px; }
.screen-placeholder span { font-size: 0.9rem; }

/* ── SECTIONS SHARED ── */
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: auto; }
.section-inner > h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
  color: var(--text);
}
.section-sub {
  color: var(--muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
  font-size: 1rem;
}

/* ── FEATURES ── */
.features { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--blue);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(21,101,192,0.1);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #E3F0FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--blue);
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.feature-card p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }

/* ── SOUNDS ── */
.sounds { background: var(--bg-alt); }
.sounds-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.sound-pill {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  cursor: default;
}
.sound-pill:hover {
  background: #E3F0FF;
  border-color: var(--blue);
  transform: translateY(-2px);
}

/* ── SCREENSHOTS ── */
.screenshots { background: var(--bg); }
.screenshots-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.ss-frame {
  width: 200px;
  height: 400px;
  border-radius: 28px;
  border: 3px solid var(--border);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 12px 36px rgba(0,0,0,0.08);
}
.ss-frame img { width: 100%; height: 100%; object-fit: cover; }
.ss-hint { text-align: center; color: var(--muted); font-size: 0.82rem; }
.ss-hint code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.8rem;
}

/* ── HOW IT WORKS ── */
.how { background: var(--bg-alt); }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}
.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(21,101,192,0.3);
}
.step-body h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.step-body p { color: var(--muted); font-size: 0.9rem; }
.step-arrow { font-size: 1.8rem; color: var(--border); align-self: center; padding-bottom: 24px; }
@media (max-width: 600px) { .step-arrow { display: none; } }

/* ── TECH ── */
.tech { background: var(--bg); }
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}
.tech-chips span {
  background: #E3F0FF;
  border: 1px solid #BDDCFF;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}
.tech-cards {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.tech-card {
  background: #E3F0FF;
  border: 1px solid #BDDCFF;
  border-radius: 14px;
  padding: 20px 24px;
  max-width: 280px;
  text-align: center;
}
.tech-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.tech-card-desc {
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.55;
}

/* ── DOWNLOAD ── */
.download {
  background: linear-gradient(135deg, #EFF6FF 0%, #E3F0FF 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.download .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.dl-icon {
  width: 80px;
  height: 80px;
 
  margin-bottom: 8px;
}
.download h2 { font-size: 2rem; font-weight: 900; color: var(--text); }
.download .section-inner > p { color: var(--muted); font-size: 1rem; }
.dl-req { font-size: 0.85rem !important; color: #94A3B8 !important; }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  padding: 16px 40px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 16px 0 8px;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 6px 24px rgba(46,125,50,0.3);
}
.btn-download svg { width: 22px; height: 22px; }
.btn-download:hover { background: #388E3C; transform: translateY(-2px); }

.dl-note {
  max-width: 480px;
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  line-height: 1.6;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}
footer img { width: 28px; height: 28px; border-radius: 8px; opacity: 0.6; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { flex-direction: column; text-align: center; padding: 50px 20px 40px; gap: 40px; }
  .hero-sub { margin: 0 auto 28px; }
  .hero-actions { justify-content: center; }
  .hero-phone { order: -1; }
  .phone-frame { width: 200px; height: 400px; }
}

/* ── RTL overrides for Arabic ── */
[dir="rtl"] .step-arrow { transform: scaleX(-1); }

/* ── IMAGE MODAL ── */
#img-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
}
#img-modal.open { display: flex; }
.modal-box {
  position: relative;
  background: var(--card);
  border-radius: 20px;
  padding: 16px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  cursor: default;
  animation: modalPop 0.22s ease;
}
@keyframes modalPop {
  from { transform: scale(0.88); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.modal-box img {
  width: 100%;
  border-radius: 14px;
  display: block;
}
#modal-caption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--bg-alt);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
}
.modal-close:hover { background: var(--border); }

/* clickable cursor on screenshot frames */
.ss-frame { cursor: zoom-in; }
