/* TopDent website + web shop — shared design system (RTL/LTR via logical properties). */
:root {
  --navy: #2C4782; --navy-2: #1E3160; --ink: #0E1A36; --sky: #5AABDF; --sky-2: #8CC9EE; --ice: #EAF4FC;
  --gold: #F5B82E; --mint: #10B981; --coral: #EF4444; --violet: #6D5DF6;
  --bg: #F5F8FC; --card: #FFFFFF; --line: #E3EAF4; --muted: #6B7A99;
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow: 0 10px 30px rgba(30, 49, 96, .08); --shadow-lg: 0 24px 60px rgba(30, 49, 96, .16);
  --font: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
html[lang="en"] { --font: 'Plus Jakarta Sans', 'Cairo', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; }
.hide { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 800; transition: transform .25s var(--ease), box-shadow .25s, background .25s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--navy), var(--sky)); color: #fff; box-shadow: 0 10px 24px rgba(44, 71, 130, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(44, 71, 130, .45); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px rgba(245, 184, 46, .35); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(8px); }
.btn-line { border: 1.5px solid var(--line); background: #fff; }
.btn-line:hover { border-color: var(--sky); color: var(--navy); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; transition: background .2s; position: relative; }
.icon-btn:hover { background: rgba(44,71,130,.08); }
.badge { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.badge.pop { animation: pop .5s var(--ease); }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- language switch ---------- */
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(44,71,130,.08); border: 1px solid rgba(44,71,130,.12); direction: ltr; }
.lang button { padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; color: var(--muted); transition: all .25s; }
.lang button.on { background: var(--navy); color: #fff; }
.nav:not(.solid).on-dark .lang, footer .lang { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.nav:not(.solid).on-dark .lang button, footer .lang button { color: rgba(255,255,255,.75); }
.nav:not(.solid).on-dark .lang button.on, footer .lang button.on { background: #fff; color: var(--navy); }

/* ---------- nav (website) ---------- */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 50; transition: background .35s, box-shadow .35s, padding .35s; padding: 18px 0; }
.nav .container { display: flex; align-items: center; gap: 18px; }
.nav.solid { background: rgba(255,255,255,.86); backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 6px 30px rgba(30,49,96,.08); padding: 10px 0; }
.nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; }
.nav .brand img { height: 46px; transition: height .35s; }
.nav.solid .brand img { height: 38px; }
.nav .brand b { color: var(--navy); } .nav .brand span { color: var(--sky); }
.nav .links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav .links a { padding: 8px 14px; border-radius: 999px; font-weight: 700; color: var(--ink); opacity: .8; transition: all .2s; }
.nav .links a:hover { opacity: 1; background: rgba(44,71,130,.07); }
.nav:not(.solid).on-dark .links a, .nav:not(.solid).on-dark .brand b { color: #fff; }
.nav .menu-btn { display: none; }
@media (max-width: 900px) {
  .nav .links { position: fixed; inset: 64px 12px auto 12px; flex-direction: column; background: #fff; padding: 10px; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s var(--ease); }
  .nav .links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav .links a { color: var(--ink) !important; }
  .nav .menu-btn { display: inline-grid; margin-inline-start: auto; }
  .nav .cta-text { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 700px at 85% 10%, rgba(90,171,223,.55), transparent 60%), radial-gradient(900px 600px at 0% 100%, rgba(109,93,246,.35), transparent 60%), linear-gradient(160deg, #142552, #2C4782 55%, #23407A); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.4vw, 68px); line-height: 1.15; margin: 14px 0; font-weight: 900; letter-spacing: -.5px; }
.hero h1 .hl { background: linear-gradient(90deg, #fff, var(--sky-2), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 1.6vw, 20px); color: rgba(255,255,255,.82); max-width: 560px; }
.hero .pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-weight: 700; font-size: 14px; }
.hero .pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: ping 1.8s infinite; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .stats { display: flex; gap: 34px; margin-top: 42px; flex-wrap: wrap; }
.hero .stats b { display: block; font-size: 34px; font-weight: 900; }
.hero .stats span { color: rgba(255,255,255,.7); font-size: 14px; }
.hero-art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.hero-art .ring { position: absolute; inset: 6%; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.25); animation: spin 40s linear infinite; }
.hero-art .ring.r2 { inset: 18%; border-style: solid; border-color: rgba(255,255,255,.12); animation-duration: 25s; animation-direction: reverse; }
.hero-art .glow { position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle, rgba(140,201,238,.55), transparent 65%); filter: blur(10px); animation: breathe 5s ease-in-out infinite; }
.logo-anim { position: relative; width: 52%; aspect-ratio: 1452 / 1702; filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.logo-anim img { position: absolute; inset: 0; width: 100%; height: 100%; }
.logo-anim .l { animation: inL 1s var(--ease) .2s both; } .logo-anim .r { animation: inR 1s var(--ease) .2s both; }
.logo-anim .t { animation: inTooth 1.1s cubic-bezier(.34,1.56,.64,1) .9s both; transform-origin: 50% 65%; }
.logo-anim .x { animation: inText .8s var(--ease) 1.2s both; }
.logo-anim .s { -webkit-mask: linear-gradient(110deg, transparent 35%, #000 50%, transparent 65%) 0 0/300% 100%; mask: linear-gradient(110deg, transparent 35%, #000 50%, transparent 65%) 0 0/300% 100%; animation: shine 3.5s ease-in-out 2s infinite; filter: brightness(2.2); opacity: .5; }
.float-card { position: absolute; background: rgba(255,255,255,.95); color: var(--ink); border-radius: var(--r); padding: 10px 14px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; animation: floaty 6s ease-in-out infinite; }
.float-card img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: var(--ice); }
.float-card small { display: block; color: var(--muted); font-weight: 700; font-size: 12px; }
.float-card.f1 { top: 8%; inset-inline-start: -4%; } .float-card.f2 { bottom: 14%; inset-inline-end: -6%; animation-delay: -2s; } .float-card.f3 { bottom: -2%; inset-inline-start: 10%; animation-delay: -4s; }
.scroll-hint { position: absolute; bottom: 26px; inset-inline: 0; margin: auto; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.5); border-radius: 20px; }
.scroll-hint::after { content: ''; position: absolute; top: 8px; inset-inline: 0; margin: auto; width: 4px; height: 8px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s infinite; }
@media (max-width: 900px) { .hero .container { grid-template-columns: 1fr; text-align: center; } .hero .actions, .hero .stats { justify-content: center; } .hero p.lead { margin-inline: auto; } .hero-art { max-width: 420px; margin: auto; width: 100%; } .float-card { font-size: 12px; } }

/* ---------- sections ---------- */
section { padding: 96px 0; position: relative; }
.eyebrow { color: var(--sky); font-weight: 900; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; }
.h2 { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.2; font-weight: 900; margin: 8px 0 14px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

.marquee { overflow: hidden; padding: 22px 0; background: #fff; border-block: 1px solid var(--line); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 16px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
html[dir="ltr"] .marquee .track { animation-direction: reverse; }
.marquee a { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-weight: 800; white-space: nowrap; transition: all .2s; }
.marquee a:hover { border-color: var(--sky); color: var(--navy); transform: translateY(-2px); }
.marquee img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fff; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; position: relative; overflow: hidden; }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature::after { content: ''; position: absolute; inset-inline-end: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--c, var(--sky)); opacity: .08; transition: transform .5s var(--ease); }
.feature:hover::after { transform: scale(1.6); }
.feature .ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--sky)) 14%, transparent); color: var(--c, var(--sky)); margin-bottom: 16px; }
.feature .ic svg { width: 28px; height: 28px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } section { padding: 70px 0; } }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cat { position: relative; aspect-ratio: 1.1; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, var(--ice), #fff); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; transition: transform .35s var(--ease), box-shadow .35s; }
.cat img { position: absolute; inset: 10% 10% 30%; width: 80%; height: 60%; object-fit: contain; transition: transform .5s var(--ease); }
.cat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat:hover img { transform: scale(1.08) rotate(-2deg); }
.cat b { position: relative; font-size: 15px; line-height: 1.3; }
.cat small { position: relative; color: var(--muted); font-weight: 700; }

.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about .visual { position: relative; aspect-ratio: 1; border-radius: var(--r-xl); background: linear-gradient(160deg, var(--navy), var(--sky)); overflow: hidden; display: grid; place-items: center; }
.about .visual img.big { width: 46%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.3)); animation: floaty 7s ease-in-out infinite; }
.about .visual .chip { position: absolute; background: #fff; border-radius: var(--r); padding: 12px 16px; font-weight: 900; box-shadow: var(--shadow-lg); }
.about .visual .chip b { display: block; font-size: 26px; color: var(--navy); }
.about ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.about li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.about li svg { color: var(--mint); margin-top: 3px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 26px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; inset-inline-start: 22px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--gold); color: var(--ink); box-shadow: 0 8px 20px rgba(245,184,46,.4); }
.step h3 { margin: 10px 0 6px; } .step p { margin: 0; color: rgba(255,255,255,.7); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 18px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.dark { background: linear-gradient(160deg, #142552, var(--navy)); color: #fff; }
.dark .muted { color: rgba(255,255,255,.7); }

.cta-band { border-radius: var(--r-xl); padding: 56px; background: radial-gradient(600px 300px at 90% 0%, rgba(245,184,46,.35), transparent 60%), linear-gradient(135deg, var(--navy), var(--sky)); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; overflow: hidden; position: relative; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(26px, 3vw, 40px); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 34px; text-align: center; } }

.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.contact a, .contact div.card { background: #fff; border-radius: var(--r-lg); padding: 24px; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; transition: transform .3s var(--ease); }
.contact a:hover { transform: translateY(-4px); }
.contact .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--ice); color: var(--navy); display: grid; place-items: center; flex: none; }
.contact small { color: var(--muted); font-weight: 700; display: block; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

footer.site { background: #0F1C3D; color: rgba(255,255,255,.75); padding: 56px 0 26px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
footer.site h4 { color: #fff; margin: 0 0 12px; }
footer.site a { display: block; padding: 4px 0; opacity: .8; } footer.site a:hover { opacity: 1; color: var(--sky-2); }
footer.site .copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 20px; font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 800px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }

/* ---------- product cards (site + shop) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.pcard { position: relative; background: #fff; border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pcard .media { position: relative; aspect-ratio: 1; background: linear-gradient(160deg, var(--ice), #fff); display: grid; place-items: center; overflow: hidden; }
.pcard .media img { width: 82%; height: 82%; object-fit: contain; transition: transform .5s var(--ease); }
.pcard:hover .media img { transform: scale(1.07); }
.pcard .tags { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.tagb { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--navy); color: #fff; }
.tagb.gold { background: var(--gold); color: var(--ink); } .tagb.mint { background: var(--mint); } .tagb.gray { background: #8A94AD; }
.pcard .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard .brand { color: var(--sky); font-weight: 800; font-size: 12px; }
.pcard .name { font-weight: 800; font-size: 15px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard .price { font-weight: 900; color: var(--navy); font-size: 17px; margin-top: auto; }
.pcard .price small { color: var(--muted); font-weight: 700; font-size: 12px; }
.pcard .add { position: absolute; bottom: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px rgba(44,71,130,.35); transition: transform .25s var(--ease), background .25s; }
.pcard .add:hover { transform: scale(1.1) rotate(90deg); background: var(--sky); }
.skel { background: linear-gradient(90deg, #eef2f8 25%, #f7f9fc 50%, #eef2f8 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-lg); }

/* ---------- keyframes ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .8; } }
@keyframes floaty { 50% { transform: translateY(-14px); } }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(16,185,129,0); } 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); } }
@keyframes inL { from { transform: translateX(-60%) rotate(-6deg); opacity: 0; } }
@keyframes inR { from { transform: translateX(60%) rotate(6deg); opacity: 0; } }
@keyframes inTooth { from { transform: scale(.1); opacity: 0; } }
@keyframes inText { from { transform: translateY(-30%); opacity: 0; filter: blur(8px); } }
@keyframes shine { 0% { -webkit-mask-position: 150% 0; mask-position: 150% 0; } 60%, 100% { -webkit-mask-position: -50% 0; mask-position: -50% 0; } }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
@keyframes marquee { to { transform: translateX(50%); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes pop { 40% { transform: scale(1.4); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

/* ---------- toast ---------- */
.toasts { position: fixed; bottom: 22px; inset-inline: 0; display: grid; justify-items: center; gap: 8px; z-index: 200; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow-lg); animation: fadeUp .35s var(--ease); max-width: calc(100% - 32px); }
.toast.err { background: var(--coral); } .toast.ok { background: var(--mint); }
