/* ===================================================================
   paperlessRIM — landing site styles
   =================================================================== */
:root {
  --brand: #059669;
  --brand-2: #0f766e;
  --brand-light: #10b981;
  --blue: #1d4ed8;
  --ink: #0d1b2a;
  --ink-soft: #475467;
  --line: #e6ebf0;
  --bg: #ffffff;
  --bg-alt: #f6f9f8;
  --dark: #0c1a17;
  --dark-2: #10231f;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 12px 40px rgba(13, 27, 42, .10);
  --shadow-sm: 0 4px 16px rgba(13, 27, 42, .07);
  --maxw: 1140px;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, Segoe UI, Tahoma, sans-serif;
  --display: "IBM Plex Sans Arabic", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 600; font-family: var(--font);
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  font-size: 1rem; white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(5, 150, 105, .30); }
.btn-primary:hover { background: #047857; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.section-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); }
.section-dark .btn-ghost:hover { border-color: var(--brand-light); color: var(--brand-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.2rem; }
.brand-mark { display: inline-flex; }
.brand-name strong { color: var(--brand); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-weight: 500; color: var(--ink-soft); font-size: .97rem; }
.nav a:hover { color: var(--brand); }
.nav a.btn { color: #fff; }
.nav a.btn.btn-primary:hover { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; background: var(--bg); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 600; color: var(--brand-2); background: #dff5ee;
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 700; letter-spacing: -.02em; }
.grad { background: linear-gradient(90deg, var(--brand-light), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; max-width: 34ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 22px; }
.hero-badges { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; padding: 0; margin: 0; color: var(--ink-soft); font-size: .92rem; font-weight: 500; }

/* Hero art / abstract "digital records" visual */
.hero-art { position: relative; display: flex; justify-content: center; align-items: center; min-height: 380px; }

.visual { position: relative; z-index: 1; width: 320px; height: 340px; }

.ring { position: absolute; inset: 6px; border: 2px dashed rgba(148,163,184,.35); border-radius: 50%;
  animation: spin 26s linear infinite; z-index: 0; }

.rec-card { position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; box-shadow: var(--shadow); }
.rec-back { inset: 46px 30px auto auto; width: 210px; height: 150px; transform: rotate(-6deg);
  background: linear-gradient(160deg, #f2fbf7, #e4f5ec); z-index: 1; animation: floaty 7s ease-in-out infinite; }
.rec-main { top: 74px; inset-inline-start: 18px; width: 240px; padding: 22px; z-index: 2;
  animation: floaty 6s ease-in-out infinite; }

.rec-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.rec-check { width: 42px; height: 42px; flex: 0 0 42px; display: flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, var(--brand-light), var(--brand-2));
  border-radius: 12px; box-shadow: 0 6px 16px rgba(5,150,105,.35); }
.rec-check svg { width: 22px; height: 22px; }
.rec-titles { display: flex; flex-direction: column; line-height: 1.3; }
.rec-titles b { font-family: var(--display); color: var(--ink); font-size: 1.02rem; }
.rec-titles i { font-style: normal; color: var(--ink-soft); font-size: .82rem; }

.rec-line { display: block; height: 10px; border-radius: 6px; margin-bottom: 11px;
  background: linear-gradient(90deg, #e8f3ee, #dcefe6); }
.rec-line.w-90 { width: 90%; } .rec-line.w-80 { width: 80%; } .rec-line.w-70 { width: 70%; }

.rec-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.rec-tag { font-size: .78rem; font-weight: 600; color: var(--brand-2); background: #e3f5ee;
  padding: 5px 12px; border-radius: 999px; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand-light);
  box-shadow: 0 0 0 0 rgba(16,185,129,.5); animation: pulse 2s ease-out infinite; }

.float-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px;
  font-size: .85rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
.float-chip svg { width: 17px; height: 17px; color: var(--brand); }
.chip-1 { top: 26px; inset-inline-start: 0; animation: floaty 5s ease-in-out infinite; }
.chip-2 { bottom: 22px; inset-inline-end: 4px; animation: floaty 6.5s ease-in-out infinite .6s; }

@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-14px) rotate(var(--r, 0deg)); } }
.rec-back { --r: -6deg; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 70% { box-shadow: 0 0 0 12px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
@media (prefers-reduced-motion: reduce) {
  .rec-back, .rec-main, .chip-1, .chip-2, .ring, .rec-dot { animation: none; }
}

/* ---------- Stats strip ---------- */
.stats { background: var(--dark); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 24px; }
.stats-grid > div { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: var(--brand-light); }
.stat-label { color: #b9c7c2; font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.kicker { display: inline-block; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--brand); margin-bottom: 12px; }
.kicker.light { color: var(--brand-light); }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.section-head p { font-size: 1.05rem; }

/* ---------- Product ---------- */
.product {
  display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 22px;
  padding: 40px; box-shadow: var(--shadow-sm);
}
.product-media { position: relative; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #eafaf3, #d9f4e9); border-radius: 18px; padding: 34px; }
.product-badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--brand); color: #fff;
  font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.product-logo { width: 100%; max-width: 170px; height: auto; }
.product-body h3 { font-size: 1.7rem; margin-bottom: 4px; }
.product-tag { font-weight: 600; color: var(--brand-2); margin-bottom: 14px; }
.product-points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.product-points li { position: relative; padding-inline-start: 26px; color: var(--ink-soft); }
.product-points li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand); font-weight: 700; }
.product-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.soon-card { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 24px; padding: 28px 40px; border: 1px dashed var(--line); border-radius: 18px;
  background: var(--bg-alt); }
.soon-card h3 { margin-bottom: 4px; }
.soon-card p { margin: 0; }

/* ---------- Features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .18s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  background: #eafaf3; border-radius: 14px; color: var(--brand); margin-bottom: 16px; }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.2rem; }
.feature p { margin: 0; font-size: .96rem; }

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.about-values { display: grid; gap: 16px; }
.value { background: var(--bg-alt); border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); border-radius: 12px; padding: 18px 22px; }
.value b { display: block; font-family: var(--display); color: var(--ink); margin-bottom: 2px; }
.value span { color: var(--ink-soft); font-size: .95rem; }

/* ---------- Contact ---------- */
.section-dark { background: linear-gradient(160deg, var(--dark), var(--dark-2)); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark p { color: #b9c7c2; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-ic { width: 44px; height: 44px; flex: 0 0 44px; display: flex; align-items: center; justify-content: center;
  background: rgba(16,185,129,.15); border-radius: 12px; color: var(--brand-light); }
.contact-ic svg { width: 22px; height: 22px; }
.contact-list b { display: block; color: #fff; margin-bottom: 2px; }
.contact-list a, .contact-list span > span { display: block; color: #b9c7c2; }
.contact-list a:hover { color: var(--brand-light); }

.contact-form { background: #fff; border-radius: 20px; padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 1rem; color: var(--ink); background: #fdfefe; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(5,150,105,.12); }
.form-hint { font-size: .82rem; color: var(--ink-soft); margin: 12px 0 0; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: #fff; color: var(--ink-soft); padding: 56px 0 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.footer-brand .brand { color: var(--ink); margin-bottom: 12px; }
.footer-brand p { color: var(--ink-soft); max-width: 26ch; }
.footer-col h4 { color: var(--blue); font-size: .95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--ink-soft); padding: 5px 0; font-size: .93rem; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid var(--line); padding: 20px 24px; font-size: .88rem; }
.footer-bottom a:hover { color: var(--blue); }

/* ---------- Legal page ---------- */
.legal { padding: 60px 0 80px; }
.legal-inner { max-width: 800px; margin: 0 auto; }
.legal h1 { font-size: 2.2rem; margin-bottom: 6px; }
.legal .updated { color: var(--ink-soft); font-size: .9rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.legal ul { color: var(--ink-soft); padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 600; margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner, .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .product { grid-template-columns: 1fr; text-align: center; }
  .product-points li { text-align: left; }
  .product-actions, .hero-actions, .hero-badges { justify-content: center; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 4px;
    transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--shadow); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 4px; }
  .nav a.btn { margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }
  .section { padding: 60px 0; }
  .product, .contact-form { padding: 26px; }
  .soon-card { flex-direction: column; align-items: flex-start; padding: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 460px) {
  .feature-grid, .stats-grid, .footer-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 340px; }
  .visual { transform: scale(.88); }
}

/* ---------- Scroll reveal animations ---------- */
/* Elements start hidden and animate in when they scroll into view.
   .reveal        -> rises up + fades in
   .reveal-right  -> slides in from the right (natural for our RTL layout)
   .reveal-left   -> slides in from the left
   Stagger is applied per-item via --d (transition-delay) from JS. */
.reveal, .reveal-right, .reveal-left {
  opacity: 0;
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal       { transform: translateY(34px); }
.reveal-right { transform: translateX(56px); }
.reveal-left  { transform: translateX(-56px); }

.reveal.in, .reveal-right.in, .reveal-left.in {
  opacity: 1;
  transform: none;
}

/* Lift cards a little more on hover for a "coming forward" feel. */
.product, .value, .soon-card { transition: transform .25s ease, box-shadow .25s ease; }
.product:hover, .value:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

/* Respect users who prefer no motion. */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-right, .reveal-left { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}
