:root{
  --bg:#f6f8fb;
  --bg-soft:#fbfcfe;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --text:#111827;
  --muted:#667085;
  --line:#d7dde5;
  --primary:#2563eb;
  --primary-soft:#eef4ff;
  --accent:#d1ddf5;
  --shadow:0 18px 40px rgba(15,23,42,.08);
  --shadow-soft:0 10px 24px rgba(15,23,42,.05);
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:"IBM Plex Sans Arabic", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:linear-gradient(180deg,#fbfcfe 0%, #f6f8fb 100%);
  color:var(--text);
  line-height:1.8;
  overflow-x:hidden;
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
select,
textarea{
  font:inherit;
}

.container{
  width:min(1180px, calc(100% - 32px));
  margin-inline:auto;
}

/* =========================
   Generic
========================= */
.section{
  padding:88px 0;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:48px;
  padding:0 20px;
  border:none;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  transition:.2s ease;
}

.btn-primary{
  background:var(--text);
  color:#fff;
  box-shadow:0 12px 24px rgba(17,24,39,.16);
}

.btn-primary:hover{
  transform:translateY(-1px);
}

/* =========================
   Header
========================= */
.site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.82);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(215,221,229,.72);
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}

.home-header-inner{
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.home-header-side{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand{
  display:inline-flex;
  align-items:center;
}

.brand-logo{
  height:36px;
  width:auto;
}

.login-mini-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:74px;
  height:38px;
  padding:0 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--text);
  font-size:13px;
  font-weight:800;
  transition:.2s ease;
  box-shadow:var(--shadow-soft);
}

.login-mini-btn:hover{
  background:var(--text);
  color:#fff;
}

/* =========================
   Header dropdown menu
========================= */
.header-pages-menu{
  position:relative;
  z-index:1200;
}

.header-pages-checkbox{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.header-pages-toggle{
  width:42px;
  height:42px;
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-soft);
  cursor:pointer;
  transition:.2s ease;
}

.header-pages-toggle span{
  width:18px;
  height:2px;
  border-radius:999px;
  background:var(--text);
  transition:.2s ease;
}

.header-pages-toggle:hover{
  background:var(--text);
}

.header-pages-toggle:hover span{
  background:#fff;
}

.header-pages-checkbox:checked + .header-pages-toggle{
  background:var(--text);
  border-color:var(--text);
}

.header-pages-checkbox:checked + .header-pages-toggle span{
  background:#fff;
}

.header-pages-dropdown{
  position:absolute;
  top:calc(100% + 12px);
  right:0;
  min-width:220px;
  padding:10px;
  border-radius:20px;
  background:#fff;
  border:1px solid rgba(215,221,229,.95);
  box-shadow:0 22px 42px rgba(15,23,42,.10);
  display:none;
  gap:8px;
}

.header-pages-checkbox:checked + .header-pages-toggle + .header-pages-dropdown{
  display:grid;
}

.header-pages-dropdown a{
  min-height:44px;
  display:flex;
  align-items:center;
  padding:0 14px;
  border-radius:14px;
  color:var(--text);
  font-size:14px;
  font-weight:700;
  transition:.2s ease;
}

.header-pages-dropdown a:hover{
  background:var(--surface-2);
}

.header-pages-dropdown a.is-current{
  background:var(--text);
  color:#fff;
}

/* =========================
   Hero
========================= */
.home-hero-simple{
  min-height:calc(92vh - 72px);
  display:flex;
  align-items:center;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(209,221,245,.30), transparent 18%),
    radial-gradient(circle at 82% 26%, rgba(223,231,255,.38), transparent 22%),
    radial-gradient(circle at 50% 85%, rgba(238,242,247,.92), transparent 18%),
    linear-gradient(180deg,#fbfcfe 0%, #f6f8fb 100%);
}

.home-hero-simple::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 78% 74%, rgba(255,255,255,.74), transparent 24%),
    radial-gradient(circle at 12% 76%, rgba(255,255,255,.65), transparent 18%);
}

.home-hero-shell{
  position:relative;
  z-index:1;
  display:flex;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.home-hero-content{
  width:min(860px,100%);
  display:grid;
  justify-items:center;
}

.home-hero-content h1{
  margin:0 0 10px;
  font-size:clamp(38px,6vw,74px);
  line-height:1.04;
  letter-spacing:-0.04em;
  color:var(--text);
  font-weight:800;
}

.home-hero-content p{
  margin:0 0 26px;
  font-size:clamp(17px,2vw,22px);
  line-height:1.8;
  color:var(--muted);
  font-weight:600;
}

.activity-squares{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:8px;
}

.activity-square{
  position:relative;
  min-height:164px;
  padding:22px 18px;
  border-radius:28px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(215,221,229,.95);
  box-shadow:0 16px 34px rgba(15,23,42,.05);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow:hidden;
}

.activity-square::before{
  content:"";
  position:absolute;
  inset:auto auto 0 0;
  width:100%;
  height:3px;
  background:linear-gradient(90deg,var(--primary),#c7d6ee);
  opacity:0;
  transition:.22s ease;
}

.activity-square:hover{
  transform:translateY(-4px);
  border-color:#cfd8e5;
  box-shadow:0 22px 42px rgba(15,23,42,.08);
}

.activity-square:hover::before{
  opacity:1;
}

.activity-square strong{
  font-size:18px;
  font-weight:800;
  color:var(--text);
}

.activity-icon{
  width:58px;
  height:58px;
  border-radius:18px;
  position:relative;
  background:linear-gradient(180deg,#ffffff,#f3f6fb);
  border:1px solid #d9dfe7;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}

/* service */
.activity-icon-service::before,
.activity-icon-service::after{
  content:"";
  position:absolute;
  background:#111827;
  border-radius:999px;
}
.activity-icon-service::before{
  width:26px;
  height:4px;
  top:18px;
  left:16px;
}
.activity-icon-service::after{
  width:18px;
  height:4px;
  top:30px;
  left:16px;
}

/* products */
.activity-icon-products::before,
.activity-icon-products::after{
  content:"";
  position:absolute;
  border:2px solid #111827;
}
.activity-icon-products::before{
  width:24px;
  height:18px;
  top:20px;
  left:16px;
  border-radius:6px;
}
.activity-icon-products::after{
  width:10px;
  height:10px;
  top:13px;
  left:23px;
  border-bottom:none;
  border-radius:8px 8px 0 0;
}

/* profile */
.activity-icon-profile::before,
.activity-icon-profile::after{
  content:"";
  position:absolute;
  background:#111827;
}
.activity-icon-profile::before{
  width:16px;
  height:16px;
  border-radius:50%;
  top:14px;
  left:21px;
}
.activity-icon-profile::after{
  width:24px;
  height:10px;
  border-radius:999px 999px 6px 6px;
  top:34px;
  left:17px;
}

.hero-soft-visual{
  width:100%;
  max-width:420px;
  margin-top:24px;
  display:grid;
  gap:10px;
  justify-items:center;
}

.hero-soft-line{
  display:block;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(209,221,245,.28),rgba(255,255,255,.88),rgba(209,221,245,.28));
  box-shadow:0 10px 24px rgba(15,23,42,.04);
}

.hero-soft-line.line-a{
  width:100%;
  height:10px;
}

.hero-soft-line.line-b{
  width:72%;
  height:8px;
}

.hero-soft-line.line-c{
  width:48%;
  height:6px;
}

/* =========================
   Idea Section
========================= */
.rassmy-idea-section{
  padding-top:42px;
  padding-bottom:86px;
  background:transparent;
}

.idea-head{
  text-align:center;
  margin-bottom:36px;
}

.idea-head h2{
  margin:0;
  font-size:clamp(30px,4vw,42px);
  line-height:1.15;
  color:var(--text);
}

.idea-steps{
  position:relative;
  display:flex;
  gap:18px;
  align-items:flex-end;
}

.idea-steps::before{
  content:"";
  position:absolute;
  right:8%;
  left:8%;
  top:58px;
  height:1px;
  background:linear-gradient(
    90deg,
    rgba(209,221,245,0),
    rgba(209,221,245,.95),
    rgba(209,221,245,0)
  );
  z-index:0;
}

.idea-step-card{
  position:relative;
  z-index:1;
  flex:1;
  min-height:196px;
  padding:22px 22px 24px;
  border-radius:28px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(215,221,229,.95);
  box-shadow:0 16px 34px rgba(15,23,42,.05);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:right;
  overflow:hidden;
}

.idea-step-card::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:3px;
  background:linear-gradient(90deg,var(--primary),#c7d6ee);
  opacity:.9;
}

.idea-step-card.step-02{
  transform:translateY(-22px);
}

.idea-step-card.step-03{
  transform:translateY(-44px);
}

.idea-step-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:58px;
  height:38px;
  padding:0 14px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--text);
  font-size:13px;
  font-weight:800;
  box-shadow:var(--shadow-soft);
}

.idea-step-card p{
  margin:18px 0 0;
  font-size:22px;
  line-height:1.75;
  font-weight:700;
  color:var(--text);
}

/* =========================
   Launched sites section
========================= */
.launched-sites-section{
  padding-top:0;
  padding-bottom:92px;
}

.launched-sites-head{
  text-align:center;
  margin-bottom:28px;
}

.launched-sites-head h2{
  margin:0;
  font-size:clamp(30px,4vw,42px);
  line-height:1.15;
  color:var(--text);
}

.launched-sites-slider{
  overflow:hidden;
  direction:ltr;
  mask-image:linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image:linear-gradient(to left, transparent, #000 8%, #000 92%, transparent);
}

.launched-sites-track{
  display:flex;
  width:max-content;
  gap:18px;
  animation:launchedSitesScroll 32s linear infinite;
}

.launched-sites-slider:hover .launched-sites-track{
  animation-play-state:paused;
}

.launched-sites-group{
  display:flex;
  gap:18px;
}

.launched-site-card{
  width:280px;
  min-width:280px;
  padding:20px;
  border-radius:26px;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(215,221,229,.95);
  box-shadow:0 16px 34px rgba(15,23,42,.05);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:14px;
  direction:rtl;
  text-align:right;
}

.launched-site-card h3{
  margin:0;
  font-size:20px;
  line-height:1.3;
  color:var(--text);
}

.launched-site-brand{
  display:flex;
  align-items:center;
  gap:10px;
}

.launched-site-icon{
  width:36px;
  height:36px;
  border-radius:50%;
  background:var(--text);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:800;
  flex:0 0 36px;
}

.launched-site-store{
  color:var(--text);
  font-size:14px;
  font-weight:700;
}

.launched-site-note{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.9;
  min-height:52px;
}

.launched-site-btn{
  min-height:34px;
  padding:0 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  color:var(--text);
  font-size:13px;
  font-weight:800;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:.2s ease;
}

.launched-site-btn:hover{
  background:var(--text);
  color:#fff;
}

@keyframes launchedSitesScroll{
  from{
    transform:translateX(0);
  }
  to{
    transform:translateX(-50%);
  }
}

/* =========================
   Closing Section
========================= */
.home-closing-section{
  padding-top:12px;
  padding-bottom:96px;
}

.home-closing-card{
  max-width:760px;
  margin-inline:auto;
  padding:34px 28px;
  border-radius:30px;
  text-align:center;
  background:
    radial-gradient(circle at top right, rgba(209,221,245,.18), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,252,.96) 100%);
  border:1px solid rgba(215,221,229,.95);
  box-shadow:0 18px 34px rgba(15,23,42,.05);
}

.home-closing-card h2{
  margin:0 0 10px;
  font-size:clamp(28px,4vw,40px);
  line-height:1.15;
  color:var(--text);
}

.home-closing-card p{
  margin:0 0 22px;
  color:var(--muted);
  font-size:16px;
  line-height:1.95;
}

.home-closing-card .btn{
  min-width:170px;
}

/* =========================
   Footer
========================= */
.site-footer{
  padding:18px 0 28px;
}

.footer-inner{
  display:flex;
  justify-content:center;
  text-align:center;
}

.footer-inner p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

/* =========================
   Responsive
========================= */
@media (max-width:860px){
  .idea-steps{
    flex-direction:column;
    align-items:stretch;
  }

  .idea-steps::before{
    display:none;
  }

  .idea-step-card.step-02,
  .idea-step-card.step-03{
    transform:none;
  }
}

@media (max-width:720px){
  .section{
    padding:74px 0;
  }

  .idea-step-card{
    min-height:auto;
  }

  .idea-step-card p{
    font-size:19px;
  }

  .launched-sites-section{
    padding-bottom:78px;
  }

  .launched-site-card{
    width:250px;
    min-width:250px;
    border-radius:22px;
  }

  .home-closing-card{
    padding:28px 20px;
    border-radius:24px;
  }

  .header-pages-dropdown{
    min-width:200px;
  }
}

@media (max-width:640px){
  .container{
    width:min(100% - 24px, 1180px);
  }

  .home-header-inner{
    min-height:66px;
  }

  .home-header-side{
    gap:10px;
  }

  .brand-logo{
    height:30px;
    width:auto;
  }

  .login-mini-btn{
    min-width:66px;
    height:34px;
    font-size:12px;
    padding:0 12px;
  }

  .header-pages-toggle{
    width:38px;
    height:38px;
    border-radius:12px;
  }

  .header-pages-dropdown{
    top:calc(100% + 10px);
    min-width:185px;
    padding:8px;
    border-radius:16px;
  }

  .header-pages-dropdown a{
    min-height:40px;
    padding:0 12px;
    font-size:13px;
  }

  .home-hero-simple{
    min-height:calc(86vh - 66px);
    padding:18px 0 28px;
  }

  .home-hero-content h1{
    font-size:clamp(32px,10vw,46px);
  }

  .home-hero-content p{
    font-size:16px;
    margin-bottom:22px;
  }

  .activity-squares{
    grid-template-columns:1fr;
    gap:14px;
  }

  .activity-square{
    min-height:132px;
    border-radius:24px;
  }

  .activity-square strong{
    font-size:16px;
  }

  .launched-sites-head h2{
    font-size:30px;
  }

  .launched-site-card{
    width:230px;
    min-width:230px;
    padding:16px;
  }

  .launched-site-card h3{
    font-size:18px;
  }

  .launched-site-note{
    font-size:13px;
    min-height:48px;
  }

  .home-closing-card h2{
    font-size:30px;
  }

  .home-closing-card p{
    font-size:15px;
  }

  .home-closing-card .btn{
    width:100%;
  }
}