/* ramDevX — complete visual system overhaul. Keeps existing page structure and behaviours. */
:root {
  --paper:#f7f8fc; --paper-2:#eef1f8; --surface:#fff; --surface-2:#f5f7fb;
  --ink:#111a31; --ink-2:#34405a; --muted:#69758d; --line:#e3e8f1;
  --primary:#4263eb; --primary-hover:#304fd0; --primary-soft:#edf1ff;
  --panel:#0b1020; --panel-2:#121b32; --on-panel:#f5f7ff; --muted-on-panel:#a8b2c8;
  --radius-sm:10px; --radius:16px; --radius-lg:24px; --radius-xl:34px;
  --shadow-sm:0 4px 16px rgba(18,29,57,.055); --shadow-lg:0 24px 70px rgba(18,29,57,.13);
  --container:1240px; --gutter:clamp(18px,4vw,42px); --header-h:82px;
  --font-display:"Manrope","IBM Plex Sans Arabic",system-ui,sans-serif; --font-body:"Manrope","IBM Plex Sans Arabic",system-ui,sans-serif;
}
html[data-theme="dark"] {
  --paper:#080d19; --paper-2:#0d1424; --surface:#111a2c; --surface-2:#172238;
  --ink:#f2f5ff; --ink-2:#d0d8e9; --muted:#9aa8c0; --line:#253149;
  --primary:#8ba3ff; --primary-hover:#a7b8ff; --primary-soft:rgba(139,163,255,.13);
  --panel:#070b15; --panel-2:#111a2b; --on-panel:#f5f7ff; --muted-on-panel:#a8b2c8;
  --shadow-sm:0 4px 18px rgba(0,0,0,.2); --shadow-lg:0 28px 80px rgba(0,0,0,.42);
}
html { scroll-behavior:smooth; scroll-padding-top:110px; }
body { background:var(--paper); color:var(--ink); font-family:var(--font-body); font-size:15px; line-height:1.7; letter-spacing:-.012em; -webkit-font-smoothing:antialiased; }
::selection { background:rgba(89,117,255,.22); }
.container { width:min(var(--container),calc(100% - 2 * var(--gutter))); }
img { max-width:100%; }
a { text-decoration:none; }
button,input,select,textarea { font:inherit; }
:focus-visible { outline:3px solid color-mix(in srgb,var(--primary) 65%,transparent); outline-offset:3px; }

/* Navigation */
.site-header { position:sticky; top:0; z-index:100; height:auto; min-height:var(--header-h); background:color-mix(in srgb,var(--surface) 86%,transparent); border-bottom:1px solid color-mix(in srgb,var(--line) 75%,transparent); backdrop-filter:blur(22px) saturate(160%); -webkit-backdrop-filter:blur(22px) saturate(160%); transition:box-shadow .25s ease,background .25s ease; }
.site-header.is-scrolled { box-shadow:0 10px 35px rgba(12,20,42,.08); }
.site-header__bar { min-height:var(--header-h); gap:24px; }
.site-nav { gap:clamp(14px,2vw,28px); }
.site-nav > a:not(.button),.nav-menu__link { color:var(--ink-2); font-size:13px; font-weight:650; transition:color .2s ease; }
.site-nav > a:not(.button):hover,.nav-menu__link:hover,.site-nav [aria-current="page"] { color:var(--primary); }
.site-nav__cta { display:none!important; }
.site-header__actions { gap:9px; }
.header-chip { border:1px solid var(--line); border-radius:999px; padding:8px 13px; font-size:12px; font-weight:700; background:var(--surface); }
.icon-btn { width:42px; height:42px; border:1px solid var(--line); border-radius:50%; background:var(--surface); color:var(--ink); transition:transform .2s,border-color .2s,background .2s; }
.icon-btn:hover { transform:translateY(-2px); border-color:var(--primary); background:var(--primary-soft); }
.site-header__cta { border-radius:999px; padding-inline:19px; }
.nav-menu__panel { border:1px solid var(--line); border-radius:0 0 24px 24px; box-shadow:var(--shadow-lg); background:var(--surface); }
.menu-panel { padding-block:24px; }
.menu-item { border:1px solid var(--line); border-radius:15px; padding:12px; background:var(--surface); transition:transform .2s,border-color .2s,box-shadow .2s; }
.menu-item:hover { transform:translateY(-3px); border-color:color-mix(in srgb,var(--primary) 45%,var(--line)); box-shadow:var(--shadow-sm); }
.menu-item__logo { border-radius:12px; }
.menu-item__text b { font-size:14px; }
.menu-item__text small,.menu-item__text em { color:var(--muted); }

/* Buttons and controls */
.button { min-height:46px; border-radius:999px; padding:0 22px; font-weight:750; letter-spacing:-.015em; box-shadow:none; transition:transform .2s ease,box-shadow .2s ease,background .2s ease; }
.button:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(54,85,210,.2); }
.button--primary { background:linear-gradient(115deg,#5275f4,#6858df); color:#fff; border:0; }
.button--primary:hover { background:linear-gradient(115deg,#4265e6,#5949d0); }
.button--ghost { border:1px solid var(--line-strong,var(--line)); background:var(--surface); color:var(--ink); }
.button--sm { min-height:40px; padding-inline:17px; font-size:12px; }
.button--lg { min-height:54px; padding-inline:27px; }
input,select,textarea,.search-box { border-radius:13px; }
input,select,textarea { background:var(--surface); border-color:var(--line); color:var(--ink); }
input:focus,select:focus,textarea:focus { border-color:var(--primary); box-shadow:0 0 0 4px var(--primary-soft); }

/* Global sections and headings */
.section { padding-block:clamp(68px,8vw,116px); }
.section--tint { background:var(--paper-2); }
.section-head { max-width:760px; margin:0 auto clamp(34px,5vw,58px); text-align:center; }
.section-head h2,.approach__head h2 { font-family:var(--font-display); font-size:clamp(30px,4vw,50px); line-height:1.1; letter-spacing:-.045em; font-weight:750; color:var(--ink); }
.section-head p,.approach__head p { max-width:650px; margin:17px auto 0; color:var(--muted); font-size:clamp(15px,1.5vw,17px); line-height:1.8; }
h1,h2,h3,h4 { text-wrap:balance; }
p { text-wrap:pretty; }

/* Homepage hero */
.hero,.home-hero,.hero-section { position:relative; overflow:hidden; }
.hero { padding-block:clamp(64px,8vw,112px); background:radial-gradient(ellipse at 78% 42%,rgba(82,105,235,.15),transparent 36%),linear-gradient(135deg,#0a1021 0%,#101a35 54%,#171d42 100%); color:#f7f8ff; }
.hero:before { content:""; position:absolute; width:520px; height:520px; border:1px solid rgba(255,255,255,.08); border-radius:50%; right:-180px; top:-250px; box-shadow:0 0 0 55px rgba(255,255,255,.018),0 0 0 110px rgba(255,255,255,.014); pointer-events:none; }
.hero .container { position:relative; }
.hero h1 { max-width:720px; font-family:var(--font-display); font-size:clamp(44px,6.6vw,78px); line-height:.99; letter-spacing:-.06em; font-weight:800; color:#fff; }
.hero .lead { max-width:650px; margin-top:24px; color:#b9c4dc; font-size:clamp(16px,1.6vw,19px); line-height:1.8; }
.hero__eyebrow,.hero__announcement { display:inline-flex; align-items:center; gap:9px; border:1px solid rgba(255,255,255,.16); border-radius:999px; padding:8px 14px; background:rgba(255,255,255,.07); color:#dce4ff; font-size:12px; font-weight:700; }
.hero__actions { gap:12px; margin-top:30px; }
.hero .button--ghost { color:#fff; background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.22); }
.hero__stack { margin-top:38px; color:#93a1bf; font-size:11px; }
.hero__stack ul { gap:9px; }
.hero__stack li { border:1px solid rgba(255,255,255,.12); border-radius:999px; padding:5px 10px; color:#d2d9eb; background:rgba(255,255,255,.045); }
.hero__visual { min-width:0; }
.showcase { border:1px solid rgba(255,255,255,.15); border-radius:24px; padding:12px; background:rgba(255,255,255,.07); box-shadow:0 35px 90px rgba(0,0,0,.35); backdrop-filter:blur(16px); }
.showcase__tabs { gap:6px; }
.showcase__tab { border-radius:13px; padding:9px; background:transparent; color:#dce4ff; }
.showcase__tab[aria-selected="true"] { background:rgba(255,255,255,.13); box-shadow:inset 0 0 0 1px rgba(255,255,255,.13); }
.showcase__tab small { color:#aab7d2; }
.showcase__stage { border-radius:17px; overflow:hidden; background:#e8edf6; }
.device { border-radius:12px; overflow:hidden; box-shadow:0 18px 48px rgba(5,10,25,.25); }
.device__bar { background:#f8f9fc; color:#566078; }
.device img { display:block; width:100%; height:auto; }
.showcase__caption { color:#e5eaff; padding:13px 6px 3px; }
.showcase__caption a { color:#fff; font-weight:700; }

/* Product cards and catalogue */
.pcard-grid,.products-grid,.services { gap:18px; }
.pcard,.product-card,.pcard-grid > * { border:1px solid var(--line); border-radius:22px; background:var(--surface); box-shadow:var(--shadow-sm); overflow:hidden; transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease; }
.pcard:hover,.product-card:hover,.pcard-grid > *:hover { transform:translateY(-6px); border-color:color-mix(in srgb,var(--primary) 35%,var(--line)); box-shadow:var(--shadow-lg); }
.pcard__media,.pcard__visual { background:linear-gradient(145deg,var(--surface-2),var(--paper-2)); padding:20px; }
.pcard__media img,.pcard__visual img { border-radius:12px; }
.pcard__body,.pcard__content { padding:23px; }
.pcard h3,.product-card h3 { font-family:var(--font-display); font-size:22px; letter-spacing:-.035em; }
.pcard p,.product-card p { color:var(--muted); line-height:1.75; }
.next-product { border:1px solid var(--line); border-radius:22px; padding:clamp(20px,3vw,30px); background:linear-gradient(120deg,var(--surface),var(--primary-soft)); }

/* Service, process, foundations */
.service,.foundation,.approach__list li { border:1px solid var(--line); border-radius:20px; background:var(--surface); padding:25px; box-shadow:var(--shadow-sm); }
.service { transition:transform .22s,border-color .22s,box-shadow .22s; }
.service:hover { transform:translateY(-4px); border-color:color-mix(in srgb,var(--primary) 40%,var(--line)); box-shadow:var(--shadow-lg); }
.service__icon,.approach__icon { width:48px; height:48px; border-radius:15px; display:grid; place-items:center; background:var(--primary-soft); color:var(--primary); }
.service h3,.approach__list h3 { font-size:18px; letter-spacing:-.025em; }
.service p,.approach__list p { color:var(--muted); }
.service--domains { border-radius:24px; background:var(--panel); color:#fff; }
.service--domains p { color:#b4bfd4; }
.fields li { border:1px solid var(--line); border-radius:999px; background:var(--surface); padding:9px 15px; font-size:12px; font-weight:650; }
.approach__list { gap:13px; }
.approach__list li { display:flex; gap:16px; }

/* Product detail pages */
.product-hero,.product-hero__inner,.product-page-hero { position:relative; overflow:hidden; }
.product-hero { padding-block:clamp(58px,7vw,100px); background:radial-gradient(ellipse at 85% 35%,color-mix(in srgb,var(--accent) 20%,transparent),transparent 38%),linear-gradient(135deg,#0a1021,#111b35); color:#fff; }
.product-hero h1,.product-hero__title { color:#fff; font-family:var(--font-display); font-size:clamp(40px,5.8vw,68px); line-height:1.02; letter-spacing:-.055em; }
.product-hero p,.product-hero .lead { color:#b9c4dc; }
.product-hero .button--ghost { color:#fff; border-color:rgba(255,255,255,.25); background:rgba(255,255,255,.07); }
.product-hero img { border-radius:18px; box-shadow:0 28px 70px rgba(0,0,0,.28); }
.product-subnav,.product-subnav__inner { background:var(--surface); border-bottom:1px solid var(--line); }
.product-feature,.feature-card,.workflow-card,.stage-card,.audience-card { border:1px solid var(--line); border-radius:20px; background:var(--surface); box-shadow:var(--shadow-sm); }
.product-section h2,.product-content h2 { font-family:var(--font-display); font-size:clamp(29px,4vw,44px); line-height:1.12; letter-spacing:-.04em; }
.product-section p,.product-content p { color:var(--muted); }

/* Account, admin, transfer, domains and form surfaces */
.account-shell,.admin-shell,.domain-shell,.transfer-shell { border-radius:24px; }
.account-card,.admin-card,.domain-card,.transfer-card,.panel,.form-card { border:1px solid var(--line); border-radius:20px; background:var(--surface); box-shadow:var(--shadow-sm); }
.account-card,.admin-card,.domain-card,.transfer-card,.form-card { padding:clamp(18px,3vw,28px); }
table { border-collapse:separate; border-spacing:0; width:100%; overflow:hidden; border:1px solid var(--line); border-radius:14px; }
th { background:var(--surface-2); color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.07em; }
th,td { padding:13px 15px; border-bottom:1px solid var(--line); }
tr:last-child td { border-bottom:0; }

/* Contact + footer */
.contact-section,.contact { position:relative; overflow:hidden; background:radial-gradient(ellipse at 85% 15%,rgba(90,105,235,.2),transparent 35%),linear-gradient(135deg,#0a1020,#111b36); color:#fff; padding-block:clamp(65px,8vw,105px); }
.contact h2,.contact h3 { color:#fff; font-family:var(--font-display); letter-spacing:-.04em; }
.contact p { color:#b5c0d6; }
.contact .form-card,.contact form { background:#fff; color:#111a31; border-radius:22px; }
.site-footer { background:#070b15; color:#eaf0ff; border-top:1px solid rgba(255,255,255,.08); padding-top:70px; }
.site-footer p { color:#9eabc4; }
.footer-col h3 { color:#fff; font-size:12px; text-transform:uppercase; letter-spacing:.1em; }
.footer-col a { color:#aeb9d0; transition:color .2s,transform .2s; }
.footer-col a:hover { color:#fff; transform:translateX(3px); }
.social-row a { width:40px; height:40px; border:1px solid rgba(255,255,255,.14); border-radius:50%; color:#dce5ff; background:rgba(255,255,255,.05); }
.social-row a:hover { background:#fff; color:#10182d; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.1); color:#8290aa; }
.floating-contact { filter:drop-shadow(0 8px 20px rgba(0,0,0,.2)); }

/* Motion: restrained, accessible and progressively enhanced */
@media (prefers-reduced-motion:no-preference) {
  .section:not(.hero) .section-head,.section:not(.hero) .pcard-grid > *, .section:not(.hero) .services > *, .section:not(.hero) .approach__list > * { animation:rise-in .65s both; animation-timeline:view(); animation-range:entry 0% entry 22%; }
  @keyframes rise-in { from { opacity:.35; transform:translateY(18px); } to { opacity:1; transform:translateY(0); } }
}

/* Tablet and mobile: navigation, cards, typography and touch targets are rebuilt deliberately. */
@media (max-width: 980px) {
  :root { --header-h:72px; }
  .site-header__bar { gap:12px; }
  .site-header__cta { display:none!important; }
  .site-nav { gap:15px; }
  .hero h1 { font-size:clamp(42px,7vw,64px); }
  .hero__visual { margin-top:32px; }
  .pcard-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  :root { --gutter:18px; --header-h:66px; }
  body { font-size:14px; }
  .site-header { min-height:66px; }
  .site-header__bar { min-height:66px; }
  .site-header__actions { margin-inline-start:auto; gap:7px; }
  .header-chip { padding:7px 10px; font-size:11px; }
  .icon-btn { width:39px; height:39px; }
  .nav-toggle { display:grid!important; }
  .site-nav { position:fixed!important; inset-block-start:66px!important; inset-inline:0!important; width:100%!important; max-height:calc(100dvh - 66px); overflow-y:auto; padding:18px var(--gutter) 26px!important; background:var(--surface)!important; border-top:1px solid var(--line); box-shadow:0 22px 45px rgba(10,18,40,.14); display:none; flex-direction:column; align-items:stretch; gap:5px!important; }
  .site-nav.is-open,.site-nav[data-open="true"] { display:flex!important; }
  .site-nav > a:not(.button),.nav-menu__link { display:flex; align-items:center; min-height:48px; padding:0 13px; border-radius:12px; font-size:15px; }
  .site-nav > a:not(.button):hover,.nav-menu__link:hover { background:var(--surface-2); }
  .nav-menu { display:grid; grid-template-columns:1fr auto; align-items:center; }
  .nav-menu__link { grid-column:1; }
  .nav-menu__toggle { grid-column:2; grid-row:1; width:44px; height:44px; }
  .nav-menu__panel { position:static!important; grid-column:1/-1; width:100%; max-height:none; border:0; border-radius:14px; box-shadow:none; background:var(--surface-2); }
  .menu-panel { width:100%; padding:12px; }
  .menu-grid { grid-template-columns:1fr!important; gap:8px; }
  .menu-item { padding:10px; }
  .menu-foot { display:grid; gap:8px; }
  .menu-foot a { padding:10px; }
  .section { padding-block:64px; }
  .section-head { text-align:start; margin-bottom:30px; }
  .section-head h2,.approach__head h2 { font-size:clamp(29px,8vw,38px); }
  .section-head p,.approach__head p { margin-inline:0; font-size:15px; }
  .hero { padding-block:58px 48px; }
  .hero h1 { font-size:clamp(42px,11vw,58px); line-height:1.02; }
  .hero .lead { margin-top:18px; font-size:15px; }
  .hero__actions { display:grid; grid-template-columns:1fr; gap:10px; }
  .hero__actions .button { width:100%; justify-content:center; }
  .hero__stack { margin-top:25px; }
  .hero__stack ul { flex-wrap:wrap; }
  .showcase { padding:8px; border-radius:18px; }
  .showcase__tabs { display:flex; overflow-x:auto; padding-bottom:7px; scrollbar-width:thin; }
  .showcase__tab { flex:0 0 auto; min-width:130px; }
  .showcase__tab img { width:24px; height:24px; }
  .showcase__tab small { font-size:10px; }
  .showcase__caption { display:grid; gap:5px; font-size:12px; }
  .pcard-grid,.products-grid { grid-template-columns:1fr!important; gap:14px; }
  .pcard,.product-card { border-radius:18px; }
  .pcard__body,.pcard__content { padding:19px; }
  .next-product { display:grid; gap:15px; padding:20px; }
  .next-product .button { width:100%; }
  .services { grid-template-columns:1fr!important; gap:12px; }
  .service { padding:20px; border-radius:17px; }
  .service--domains { gap:18px; }
  .service__search .search-box { display:grid; grid-template-columns:1fr; gap:9px; }
  .service__search .button { width:100%; }
  .fields { gap:8px; }
  .fields li { padding:8px 12px; }
  .approach__list li { padding:18px; }
  .product-hero { padding-block:52px 45px; }
  .product-hero h1,.product-hero__title { font-size:clamp(38px,10vw,54px); }
  .product-hero .hero__actions,.product-hero__actions { display:grid; grid-template-columns:1fr; }
  .product-hero .button { width:100%; }
  .product-hero img { border-radius:13px; }
  .product-subnav { overflow-x:auto; }
  .product-subnav__inner { min-width:max-content; }
  .account-card,.admin-card,.domain-card,.transfer-card,.form-card { padding:17px; border-radius:16px; }
  .table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  table { min-width:620px; }
  .contact { padding-block:58px; }
  .contact .form-card,.contact form { padding:18px; }
  .footer-grid { grid-template-columns:1fr 1fr!important; gap:28px 18px; }
  .footer-about { grid-column:1/-1; }
  .footer-bottom { display:flex; flex-wrap:wrap; gap:12px; padding-block:18px; font-size:11px; }
}
@media (max-width: 390px) {
  .header-chip { font-size:10px; padding:6px 8px; }
  .site-header__actions { gap:5px; }
  .icon-btn { width:36px; height:36px; }
  .hero h1 { font-size:40px; }
  .footer-grid { grid-template-columns:1fr!important; }
}
html[dir="rtl"] body { letter-spacing:0; }
html[dir="rtl"] .footer-col a:hover { transform:translateX(-3px); }


/* Refined typography system — Manrope + IBM Plex Sans Arabic */
:root {
  --font-display: "Manrope", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "Manrope", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
body { font-family: var(--font-body); font-weight: 450; letter-spacing: -0.018em; }
h1, h2, h3, h4, .hero h1, .product-hero h1, .product-hero__title {
  font-family: var(--font-display); font-weight: 750; letter-spacing: -0.045em;
  font-feature-settings: "kern" 1, "liga" 1;
}
button, input, select, textarea { font-family: var(--font-body); }
body.rtl, body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4,
body.rtl .hero h1, body.rtl .product-hero h1, body.rtl .product-hero__title {
  font-family: "IBM Plex Sans Arabic", "Manrope", system-ui, sans-serif;
  letter-spacing: 0;
}
body.rtl { font-weight: 450; line-height: 1.85; }
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4 { font-weight: 650; line-height: 1.4; }
@media (max-width: 640px) {
  body { letter-spacing: -0.012em; }
  h1, .hero h1, .product-hero h1, .product-hero__title { letter-spacing: -0.035em; }
  body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4 { letter-spacing: 0; }
}
