:root{
  --bg:#f8fafc;
  --surface:#ffffff;
  --surface-2:#eef4ff;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --primary:#0b5cff;
  --primary-dark:#0847c9;
  --secondary:#14b8a6;
  --success:#16a34a;
  --warning:#f59e0b;
  --danger:#dc2626;
  --neutral:#475569;
  --shadow:0 18px 70px rgba(15,23,42,.08);
  --radius:24px;
  --radius-md:18px;
  --radius-sm:12px;
  --container:min(1180px, calc(100vw - 32px));
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Tahoma, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(11,92,255,.08), transparent 38%),
    radial-gradient(circle at left center, rgba(20,184,166,.08), transparent 34%),
    var(--bg);
  color:var(--text);
  direction:rtl;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
button,input,textarea,select{font:inherit}
code{font-family:Consolas, monospace;background:#eff6ff;padding:2px 6px;border-radius:8px}
.container{width:var(--container);margin-inline:auto}
.app-shell{min-height:100dvh;display:flex;flex-direction:column}
main{flex:1}
.topbar{
  position:sticky;top:0;z-index:50;
  backdrop-filter:blur(16px);
  background:rgba(255,255,255,.78);
  border-bottom:1px solid rgba(226,232,240,.8)
}
.topbar-inner{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:20px;
  align-items:center;
  min-height:82px;
}
.brand img{height:52px;width:auto}
.main-nav{
  display:flex;align-items:center;gap:8px;justify-content:center;flex-wrap:wrap
}
.main-nav a{
  padding:10px 16px;border-radius:999px;color:var(--muted);font-weight:700;transition:.2s
}
.main-nav a:hover,.main-nav a.is-active{background:#eff6ff;color:var(--primary)}
.topbar-actions{display:flex;align-items:center;gap:10px}
.primary-btn,.ghost-btn,.inline-link{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  border-radius:14px;padding:12px 18px;font-weight:700;transition:.2s;border:none;cursor:pointer
}
.primary-btn{background:linear-gradient(135deg,var(--primary),#1f8fff);color:#fff;box-shadow:0 14px 34px rgba(11,92,255,.22)}
.primary-btn:hover{transform:translateY(-1px);box-shadow:0 18px 42px rgba(11,92,255,.28)}
.ghost-btn{background:#fff;color:var(--text);border:1px solid var(--line)}
.ghost-btn:hover{border-color:#bfd5ff;background:#f8fbff}
.primary-btn.small,.ghost-btn.small{padding:9px 14px;border-radius:12px;font-size:.92rem}
.primary-btn.large,.ghost-btn.large{padding:14px 22px}
.inline-link{padding:0;border-radius:0;color:var(--primary);background:transparent}
.inline-link:hover{text-decoration:underline}
.full{width:100%}

.mobile-nav-toggle{
  display:none;border:none;background:#fff;border:1px solid var(--line);border-radius:14px;width:48px;height:48px;padding:10px;cursor:pointer
}
.mobile-nav-toggle span{display:block;height:2px;background:var(--text);margin:5px 0;border-radius:10px}

.hero-section{padding:34px 0 30px}
.hero-grid{
  display:grid;grid-template-columns:1.02fr .98fr;gap:26px;align-items:center
}
.hero-copy,.hero-visual,.content-card,.surface-block,.auth-card,.feature-card,.price-card,.product-card,.lawyer-card,.testimonial-card,.timeline-card,.installer-card,.category-card,.stat-card{
  background:rgba(255,255,255,.94);border:1px solid rgba(226,232,240,.9);box-shadow:var(--shadow)
}
.hero-copy{
  border-radius:34px;padding:42px;position:relative;overflow:hidden
}
.hero-copy::after{
  content:"";position:absolute;inset:auto -80px -80px auto;width:220px;height:220px;
  background:radial-gradient(circle, rgba(11,92,255,.18), transparent 65%)
}
.hero-copy h1{font-size:clamp(2rem,4vw,3.7rem);margin:14px 0 16px;line-height:1.15}
.hero-lead{font-size:1.08rem;line-height:2;color:var(--muted);max-width:68ch}
.eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  color:var(--primary);font-weight:800;font-size:.9rem;letter-spacing:.02em
}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:24px}
.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:28px}
.hero-stats article{
  border:1px solid var(--line);border-radius:20px;padding:16px;background:#f8fbff
}
.hero-stats strong{display:block;font-size:1.55rem}
.hero-stats span{display:block;color:var(--muted);margin-top:5px;font-size:.95rem}
.hero-visual{border-radius:34px;padding:18px;position:relative;min-height:540px;display:flex;align-items:center;justify-content:center}
.hero-visual img{width:100%;border-radius:26px}
.floating-card{
  position:absolute;left:22px;bottom:22px;width:min(320px, 78%);
  background:rgba(255,255,255,.97);border:1px solid rgba(255,255,255,.75);padding:18px;border-radius:22px;box-shadow:0 20px 50px rgba(15,23,42,.14)
}
.metric-pill,.soft-badge,.verified-mark,.status-badge{
  display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:8px 12px;font-size:.83rem;font-weight:800
}
.metric-pill,.soft-badge{background:#eff6ff;color:var(--primary)}
.verified-mark{background:#dcfce7;color:#166534}
.status-badge.success{background:#dcfce7;color:#166534}
.status-badge.warning{background:#fff7ed;color:#b45309}
.status-badge.danger{background:#fee2e2;color:#b91c1c}
.status-badge.neutral{background:#f1f5f9;color:#334155}

.section-heading{
  display:flex;align-items:end;justify-content:space-between;gap:16px;margin-bottom:20px
}
.section-heading h2{margin:6px 0 0;font-size:clamp(1.4rem,2vw,2rem)}
.section-heading.tight{margin-bottom:14px}
.surface-block,.content-card,.auth-card,.price-card,.stat-card{border-radius:30px;padding:28px}
.surface-block{margin:28px auto;padding:30px}
.feature-grid,.category-grid,.product-grid,.lawyer-grid,.testimonial-grid,.mini-grid{
  display:grid;gap:18px
}
.feature-grid{grid-template-columns:repeat(4,1fr)}
.feature-card{padding:24px;border-radius:24px}
.feature-card h3{margin:0 0 10px}
.feature-card p{margin:0;color:var(--muted);line-height:1.9}
.category-grid{grid-template-columns:repeat(2,1fr)}
.category-card{
  border-radius:26px;padding:16px;display:grid;grid-template-columns:210px 1fr;gap:18px;align-items:center
}
.category-card img{height:170px;width:100%;object-fit:cover;border-radius:20px}
.category-card h3{margin:0 0 8px}
.category-card p{margin:0;color:var(--muted);line-height:1.9}
.product-grid{grid-template-columns:repeat(3,1fr)}
.product-card{border-radius:28px;overflow:hidden;display:flex;flex-direction:column}
.product-card.tall .product-body{display:flex;flex-direction:column;gap:14px}
.product-card img{height:200px;object-fit:cover}
.product-card.tall img{height:220px}
.product-body{padding:20px}
.product-body h3{margin:12px 0 10px;font-size:1.12rem}
.product-body p{margin:0;color:var(--muted);line-height:1.85}
.price-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px}
.price-line strong{font-size:1.15rem}
.price-line del{color:#94a3b8}
.card-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.feature-list{margin:0;padding:0 18px 0 0;display:grid;gap:8px}
.feature-list li{line-height:1.85;color:#24324a}
.product-meta,.meta-row,.split-line,.lawyer-badges,.lawyer-pricing,.row-badges,.installer-meta,.hero-actions,.profile-facts{
  display:flex;flex-wrap:wrap;gap:12px
}
.product-meta,.meta-row,.muted,.lawyer-meta p,.timeline-content p,.content-card p,.mini-notice p,.hint,.done-panel .profile-facts span,.installer-meta span{
  color:var(--muted)
}

.lawyer-grid{grid-template-columns:repeat(2,1fr)}
.lawyer-grid.dense{grid-template-columns:repeat(2,1fr)}
.lawyer-card{border-radius:28px;padding:22px;display:grid;grid-template-columns:112px 1fr;gap:18px;align-items:start}
.lawyer-card.vertical{grid-template-columns:1fr}
.lawyer-avatar{width:112px;height:112px;border-radius:24px;object-fit:cover}
.lawyer-avatar.large{width:132px;height:132px}
.lawyer-meta h3{margin:0}
.lawyer-specialty-list{margin-top:8px;padding:12px;border-radius:16px;background:#f8fbff;border:1px solid #e6edf8}
.lawyer-pricing strong{font-size:1.08rem}

.testimonial-grid{grid-template-columns:repeat(3,1fr)}
.testimonial-card{border-radius:28px;padding:22px}
.testimonial-head{display:flex;align-items:center;gap:14px;margin-bottom:12px}
.testimonial-head img{width:62px;height:62px;border-radius:18px}
.faq-list{display:grid;gap:14px}
.faq-item{
  background:#fff;border:1px solid var(--line);border-radius:20px;padding:0 18px;box-shadow:var(--shadow)
}
.faq-item summary{list-style:none;padding:20px 0;font-weight:800;cursor:pointer}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item p{margin:0 0 18px;line-height:1.95;color:var(--muted)}
.cta-section{padding:28px 0 44px}
.cta-box{
  background:linear-gradient(135deg,#0f172a,#0b5cff);
  color:#fff;border-radius:34px;padding:34px;display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;box-shadow:0 22px 70px rgba(11,92,255,.24)
}
.cta-box p{color:rgba(255,255,255,.82);line-height:1.9}
.page-hero{padding:28px 0}
.page-hero.compact .container,.auth-section .auth-grid,.form-shell .case-form,.kyc-shell .content-card{
  background:rgba(255,255,255,.94);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:32px;padding:28px
}
.page-hero.compact h1{margin:.35rem 0 .65rem;font-size:clamp(1.8rem,3vw,2.7rem)}
.page-hero.compact p{margin:0;line-height:1.95;color:var(--muted)}
.filter-bar{
  display:flex;flex-wrap:wrap;gap:12px;align-items:center;
  margin:0 0 20px;background:#fff;border:1px solid var(--line);padding:14px;border-radius:22px;box-shadow:var(--shadow)
}
.filter-bar select,.filter-bar input{
  min-width:180px;padding:13px 14px;border-radius:14px;border:1px solid var(--line);background:#fbfdff
}
.auth-section{padding:34px 0}
.auth-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:22px;align-items:stretch}
.auth-copy{
  background:linear-gradient(160deg,#0f172a,#0b5cff);color:#fff;border-radius:32px;padding:34px;box-shadow:0 20px 70px rgba(11,92,255,.18)
}
.auth-copy p,.auth-copy .eyebrow{color:rgba(255,255,255,.88)}
.demo-box{
  display:grid;gap:8px;margin-top:22px;padding:16px;border-radius:20px;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.12)
}
.auth-card h2{margin-top:0}
.auth-card form{display:grid;gap:14px}
input[type=text],input[type=number],input[type=file],textarea,select{
  width:100%;padding:14px 16px;border-radius:16px;border:1px solid var(--line);background:#fbfdff;color:var(--text)
}
textarea{min-height:150px;resize:vertical;line-height:1.9}
label{display:block;margin-bottom:8px;font-weight:800}
.hint{margin-top:14px}
.otp-input{text-align:center;letter-spacing:.25em;font-size:1.6rem;font-weight:900}
.form-shell{padding-bottom:28px}
.case-form{display:grid;gap:22px}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.field-full{grid-column:1/-1}
.sticky-actions{
  display:flex;gap:12px;flex-wrap:wrap;padding-top:10px;border-top:1px dashed var(--line)
}
.dashboard-hero .container{display:grid;gap:10px}
.dashboard-cards{
  display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:18px auto 24px
}
.stat-card{padding:22px;border-radius:24px}
.stat-card strong{display:block;font-size:1.9rem}
.stat-card span{display:block;color:var(--muted);margin-top:6px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.dashboard-layout{align-items:start}
.stack{display:grid;gap:20px}
.table-like{display:grid;gap:12px}
.table-row{
  display:flex;justify-content:space-between;gap:14px;align-items:center;
  border:1px solid var(--line);padding:16px;border-radius:18px;background:#fbfdff
}
.table-row strong,.timeline-content h3,.mini-lawyer strong,.mini-product strong{display:block}
.table-row span,.mini-lawyer span,.mini-product span{color:var(--muted);font-size:.95rem}
.empty-state{color:var(--muted);margin:8px 0}
.notice{
  width:var(--container);margin:18px auto 0;padding:14px 16px;border-radius:16px;font-weight:700;border:1px solid transparent
}
.notice.success{background:#dcfce7;color:#166534;border-color:#bbf7d0}
.notice.warning{background:#fff7ed;color:#b45309;border-color:#fed7aa}
.notice.danger{background:#fee2e2;color:#b91c1c;border-color:#fecaca}
.notice.info,.notice.neutral{background:#f1f5f9;color:#334155;border-color:#e2e8f0}
.notice-stack{display:grid;gap:12px}
.mini-notice{
  padding:14px;border-radius:18px;background:#f8fbff;border:1px solid var(--line)
}
.case-layout{display:grid;grid-template-columns:1.05fr .95fr;gap:20px}
.long-text{line-height:2.05}
.file-list,.chat-thread,.timeline-list{display:grid;gap:12px}
.file-item,.timeline-card{
  border:1px solid var(--line);border-radius:20px;background:#fbfdff;padding:0 16px
}
.file-item summary{list-style:none;padding:16px 0;cursor:pointer;display:flex;justify-content:space-between;gap:10px;align-items:center}
.file-item summary::-webkit-details-marker{display:none}
.file-item div{padding:0 0 16px}
.chat-bubble{
  max-width:100%;padding:14px 16px;border-radius:18px;background:#f8fbff;border:1px solid var(--line)
}
.chat-bubble.ai{background:#eefcfb;border-color:#99f6e4}
.chat-bubble.lawyer{background:#eef5ff;border-color:#bfdbfe}
.chat-bubble strong{display:block;margin-bottom:6px}
.chat-bubble p{margin:0 0 6px;line-height:1.95}
.progress-block{display:grid;gap:10px;margin-top:20px}
.progress-bar{height:10px;border-radius:999px;background:#e2e8f0;overflow:hidden}
.progress-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--secondary),var(--primary));border-radius:999px}
.analysis-grid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:16px}
.mini-lawyer,.mini-product{
  display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid var(--line);border-radius:18px;padding:14px;background:#fbfdff
}
.mini-lawyer img{width:54px;height:54px;border-radius:16px}
.timeline-list{position:relative}
.timeline-card{display:grid;grid-template-columns:18px 1fr;gap:12px;padding:18px}
.timeline-dot{width:14px;height:14px;border-radius:999px;background:var(--primary);margin-top:8px}
.timeline-content p{margin:.35rem 0}
.pricing-bands,.pricing-group,.mini-grid{display:grid;gap:18px}
.mini-grid{grid-template-columns:repeat(2,1fr)}
.price-card{border-radius:24px;padding:22px}
.price-card.highlight{background:linear-gradient(180deg,#eef6ff,#ffffff)}
.price-card h3{margin-top:0}
.price-card p{line-height:1.9}
.cta-box h2,.content-card h2,.auth-copy h1,.installer-card h1{margin-top:0}
.kyc-shell{padding-bottom:28px}
.stepper{
  display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px
}
.step{
  display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);padding:16px;border-radius:20px;color:var(--muted);font-weight:800
}
.step span{
  width:36px;height:36px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:#f1f5f9;color:#334155
}
.step.active{border-color:#bfd5ff;color:var(--primary);background:#eef6ff}
.step.done{border-color:#bbf7d0;background:#ecfdf5;color:#166534}
.step.done span{background:#dcfce7;color:#166534}
.done-panel{display:grid;gap:14px}
.profile-facts{display:grid;grid-template-columns:1fr;gap:10px;padding:16px;background:#f8fbff;border-radius:20px;border:1px solid var(--line)}
.installer-screen{
  min-height:100dvh;display:grid;place-items:center;padding:24px;background:
   radial-gradient(circle at 20% 10%, rgba(11,92,255,.18), transparent 30%),
   radial-gradient(circle at 80% 0%, rgba(20,184,166,.2), transparent 28%),
   #f3f7ff
}
.installer-card{
  width:min(920px,calc(100vw - 28px));padding:34px;border-radius:34px
}
.installer-card ol{margin:10px 0 0;padding-right:18px;display:grid;gap:8px}
.installer-meta{margin:14px 0 18px}
.site-footer{
  margin-top:36px;border-top:1px solid var(--line);background:#fff
}
.footer-grid{
  display:grid;grid-template-columns:1.3fr .8fr .8fr .9fr;gap:20px;padding:32px 0
}
.footer-grid h4,.footer-grid h3{margin:0 0 12px}
.footer-grid p,.footer-grid a,.footer-grid span{display:block;color:var(--muted);line-height:1.9}
.footer-bottom{border-top:1px solid var(--line)}
.footer-bottom-inner{
  display:flex;justify-content:space-between;gap:12px;align-items:center;padding:14px 0;color:var(--muted);font-size:.92rem
}

@media (max-width: 1100px){
  .hero-grid,.auth-grid,.case-layout,.two-col,.cta-box{grid-template-columns:1fr}
  .feature-grid{grid-template-columns:repeat(2,1fr)}
  .product-grid{grid-template-columns:repeat(2,1fr)}
  .lawyer-grid,.testimonial-grid,.footer-grid{grid-template-columns:1fr 1fr}
  .dashboard-cards{grid-template-columns:repeat(2,1fr)}
  .category-grid{grid-template-columns:1fr}
}
@media (max-width: 820px){
  .topbar-inner{grid-template-columns:auto auto auto}
  .main-nav{
    position:fixed;inset:82px 14px auto 14px;display:none;flex-direction:column;align-items:stretch;
    background:#fff;border:1px solid var(--line);border-radius:24px;padding:16px;box-shadow:var(--shadow)
  }
  .main-nav.is-open{display:flex}
  .mobile-nav-toggle{display:inline-block}
  .topbar-actions{display:none}
  .hero-copy,.hero-visual,.page-hero.compact .container,.auth-card,.auth-copy,.content-card,.surface-block,.installer-card{padding:22px}
  .hero-visual{min-height:auto}
  .hero-stats,.feature-grid,.product-grid,.testimonial-grid,.lawyer-grid,.dashboard-cards,.mini-grid,.form-grid{grid-template-columns:1fr}
  .category-card{grid-template-columns:1fr}
  .lawyer-card{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
}
@media (max-width: 560px){
  :root{--container:min(100vw - 22px, 1000px)}
  .hero-copy h1{font-size:2rem}
  .hero-actions,.card-actions,.sticky-actions,.filter-bar,.row-badges,.split-line{flex-direction:column;align-items:stretch}
  .hero-stats article,.table-row,.mini-lawyer,.mini-product{padding:14px}
  .table-row,.mini-lawyer,.mini-product{align-items:flex-start}
  .cta-box{padding:24px}
}
