/* HomeyTron: ألوان هوية الشركة (كحلي، أزرق، سماوي، أصفر اللمبة) متوزعة: أقسام كحلي وأقسام فاتحة دافية،
   الأزرق للزراير بس، والأصفر للتمييز. الخطوط: IBM Plex Sans Arabic + Outfit */
:root {
  --navy: #070A1A;
  --navy-2: #0E1638;
  --navy-3: #16204A;
  --blue: #2575FE;
  --blue-2: #1A5FD8;
  --cyan: #6BD9F0;
  --gold: #FFD27A;        /* أصفر اللمبة في الهوية */
  --gold-2: #E9B64F;
  --paper: #F5F2EC;       /* فاتح دافي */
  --paper-2: #ECE7DE;
  --white: #FFFFFF;
  --radius: 22px;
  --font-ar: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-en: "Outfit", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* ألوان القسم الفاتح (الافتراضي) */
  --s-bg: var(--paper);
  --s-text: #0E1638;
  --s-text-2: #4A5372;
  --s-card: var(--white);
  --s-border: rgba(14, 22, 56, .09);
  --s-hi: var(--blue);
  --s-shadow: 0 18px 50px rgba(14, 22, 56, .10);
}
/* القسم الكحلي */
.dark {
  --s-bg: var(--navy);
  --s-text: #FFFFFF;
  --s-text-2: #A9B4D6;
  --s-card: rgba(22, 32, 74, .55);
  --s-border: rgba(107, 217, 240, .14);
  --s-hi: var(--gold);
  --s-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--navy); color: var(--s-text); font-family: var(--font-ar); line-height: 1.75; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
html[lang="en"] body { font-family: var(--font-en); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--s-text-2); }

/* ===== الأزرار ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 28px rgba(37, 117, 254, .35); }
.btn-primary:hover { background: var(--blue-2); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 28px rgba(255, 210, 122, .30); }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .35); color: #fff; backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .5px; color: var(--s-hi); background: color-mix(in srgb, var(--s-hi) 12%, transparent); border: 1px solid color-mix(in srgb, var(--s-hi) 30%, transparent); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
h1, h2, h3 { line-height: 1.3; font-weight: 700; color: var(--s-text); }
h1 { font-size: clamp(38px, 6vw, 72px); }
h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 8px; }
.grad { color: var(--s-hi); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--s-text-2); max-width: 620px; margin: 18px 0 30px; }

/* ===== الشريط العلوي (كحلي زجاج لما تنزل) ===== */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 50; transition: background .3s, backdrop-filter .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 10, 26, .82); backdrop-filter: blur(16px); border-color: rgba(107, 217, 240, .12); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 76px; }
.brand-logo { height: 34px; width: auto; }
.nav-links { display: flex; gap: 26px; font-size: 15px; color: rgba(255, 255, 255, .8); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a::after { content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); border-radius: 2px; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn, .menu-btn { width: 42px; height: 42px; border-radius: 50%; cursor: pointer; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; }
.lang-btn { font-family: var(--font-en); font-weight: 700; font-size: 13px; }
.menu-btn { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s; }
.menu-btn.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ===== الواجهة ===== */
.hero { --s-text: #fff; --s-text-2: rgba(255, 255, 255, .8); --s-hi: var(--gold); position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; background: var(--navy); }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); animation: heroZoom 18s ease-in-out infinite alternate; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(7, 10, 26, .92) 0%, rgba(7, 10, 26, .65) 45%, rgba(7, 10, 26, .15) 100%), linear-gradient(0deg, var(--navy) 0%, transparent 30%); }
html[dir="ltr"] .hero-media::after { background: linear-gradient(90deg, rgba(7, 10, 26, .92) 0%, rgba(7, 10, 26, .65) 45%, rgba(7, 10, 26, .15) 100%), linear-gradient(0deg, var(--navy) 0%, transparent 30%); }
@keyframes heroZoom { to { transform: scale(1.14); } }
.hero-inner { position: relative; }
.hero-text { max-width: 700px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { list-style: none; display: flex; gap: 34px; margin-top: 48px; }
.hero-stats b { display: block; font-family: var(--font-en); font-size: 34px; font-weight: 800; color: var(--gold); }
.hero-stats span { font-size: 14px; color: rgba(255, 255, 255, .7); }

/* ===== الأقسام ===== */
.section { padding: 110px 0; position: relative; background: var(--s-bg); color: var(--s-text); }
.section.dark { background: radial-gradient(900px 500px at 90% 0%, rgba(37, 117, 254, .16), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(255, 210, 122, .06), transparent 60%), var(--navy); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-text p { color: var(--s-text-2); font-size: 17px; margin-bottom: 22px; }
.split-media { position: relative; }
.split-media > img { border-radius: var(--radius); box-shadow: var(--s-shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.float-card { position: absolute; bottom: -24px; inset-inline-end: -16px; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 18px; background: var(--navy); color: #fff; box-shadow: 0 18px 40px rgba(7, 10, 26, .35); animation: bob 4s ease-in-out infinite; }
.float-card img { width: 44px; }
.float-card b { display: block; color: var(--gold); }
.float-card span { font-size: 13px; color: #A9B4D6; }
@keyframes bob { 50% { transform: translateY(-8px); } }

.checks { list-style: none; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 34px; }
.checks li::before { content: "✓"; position: absolute; inset-inline-start: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--navy); background: var(--gold); }

/* الكروت */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 30px; border-radius: var(--radius); background: var(--s-card); border: 1px solid var(--s-border); transition: transform .35s var(--ease), border-color .3s; }
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.card p { color: var(--s-text-2); font-size: 15px; }
.card-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; background: rgba(255, 210, 122, .12); border: 1px solid rgba(255, 210, 122, .28); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* جارفس */
.split-rev .jarvis-stage { order: 2; }
.jarvis-stage { position: relative; }
.jarvis-photo { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--s-shadow); }
.jarvis-float { position: absolute; width: 150px; top: -46px; inset-inline-start: -30px; filter: drop-shadow(0 0 30px rgba(37, 117, 254, .55)); animation: bob 3.5s ease-in-out infinite; }
.sticker-row { display: flex; justify-content: center; gap: 14px; margin-top: -40px; position: relative; }
.sticker-row img { width: 76px; padding: 8px; border-radius: 20px; background: var(--navy); box-shadow: 0 10px 24px rgba(7, 10, 26, .25); transition: transform .3s var(--ease); }
.sticker-row img:hover { transform: translateY(-6px) rotate(-6deg); }
.chat-demo { display: grid; gap: 10px; margin: 8px 0 28px; max-width: 420px; }
.bubble { padding: 11px 18px; border-radius: 18px; width: fit-content; max-width: 80%; font-size: 15px; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.bubble.me { background: var(--blue); color: #fff; justify-self: start; border-end-start-radius: 6px; }
.bubble.bot { background: var(--navy); color: #fff; justify-self: end; border-end-end-radius: 6px; }
.chat-demo.play .bubble { opacity: 1; transform: none; }
.chat-demo.play .bubble:nth-child(2) { transition-delay: .7s; }
.chat-demo.play .bubble:nth-child(3) { transition-delay: 1.4s; }
.chat-demo.play .bubble:nth-child(4) { transition-delay: 2.1s; }

/* المنتج */
.product { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; padding: 40px; border-radius: 28px; background: var(--s-card); border: 1px solid var(--s-border); max-width: 1000px; margin: 0 auto; }
.product-media { display: grid; place-items: center; border-radius: 22px; padding: 20px; background: radial-gradient(circle at 50% 40%, rgba(255, 210, 122, .22), transparent 65%); }
.switch-art { width: min(320px, 100%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .6)); }
.switch-art .leds circle:nth-child(odd) { animation: led 2.4s ease-in-out infinite; }
.switch-art .leds circle:nth-child(3) { animation-delay: .4s; }
.switch-art .leds circle:nth-child(5) { animation-delay: .8s; }
@keyframes led { 50% { opacity: .35; } }
.badge { display: inline-block; font-size: 12px; font-weight: 600; color: var(--cyan); background: rgba(107, 217, 240, .12); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.product-info h3 { font-family: var(--font-en); font-size: 30px; }
.product-info p { color: var(--s-text-2); margin-bottom: 18px; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--s-border); }
.price b { font-family: var(--font-en); font-size: 40px; font-weight: 800; color: var(--gold); }
.price span { color: var(--s-text-2); }

/* الخطوات */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { padding: 28px; border-radius: var(--radius); background: var(--s-card); border: 1px solid var(--s-border); box-shadow: var(--s-shadow); }
.steps b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-family: var(--font-en); font-size: 20px; color: var(--navy); background: var(--gold); margin-bottom: 18px; }
.steps p { color: var(--s-text-2); font-size: 15px; }

/* المعرض */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 16px; }
.gallery figure { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--s-border); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 16px 12px; font-size: 14px; font-weight: 600; color: #fff; background: linear-gradient(0deg, rgba(7, 10, 26, .9), transparent); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* التواصل */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-text p { color: var(--s-text-2); margin-bottom: 26px; }
.contact-list { display: grid; gap: 12px; }
.contact-list a { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-radius: 16px; background: var(--s-card); border: 1px solid var(--s-border); transition: border-color .2s; }
.contact-list a:hover { border-color: var(--blue); }
.contact-list span { color: var(--s-text-2); }
.contact-list b { font-family: var(--font-en); }
.contact-form { display: grid; gap: 14px; padding: 30px; border-radius: 26px; background: var(--navy); color: #fff; box-shadow: 0 24px 60px rgba(7, 10, 26, .25); }
.contact-form label { display: grid; gap: 6px; font-size: 14px; color: #A9B4D6; }
.contact-form input, .contact-form textarea { font: inherit; color: #fff; background: rgba(255, 255, 255, .06); border: 1px solid rgba(107, 217, 240, .16); border-radius: 14px; padding: 13px 16px; outline: none; transition: border-color .2s, background .2s; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); background: rgba(255, 210, 122, .06); }

/* الفوتر */
.footer { padding: 50px 0 40px; background: var(--navy-2); color: #A9B4D6; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer-logo { height: 38px; width: auto; margin-bottom: 6px; }
.footer .slogan { color: var(--gold); font-weight: 600; }
.footer .muted { color: #6E7AA3; }

/* حركة الظهور */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ===== الموبايل ===== */
@media (max-width: 960px) {
  .nav-links { position: fixed; top: 76px; inset-inline: 16px; flex-direction: column; gap: 4px; padding: 14px; border-radius: 20px; background: rgba(7, 10, 26, .96); backdrop-filter: blur(16px); border: 1px solid rgba(107, 217, 240, .14); opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-10px); transition: opacity .25s, transform .25s, visibility .25s; }
  .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
  .nav-links a { padding: 12px 14px; border-radius: 12px; }
  .nav-links a::after { display: none; }
  .menu-btn { display: flex; }
  .nav-actions .btn-sm { display: none; }
  .split, .contact, .product { grid-template-columns: 1fr; gap: 40px; }
  .split-rev .jarvis-stage { order: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}
@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 26px; }
  .product { padding: 24px; }
  .jarvis-float { width: 100px; top: -30px; }
  .sticker-row img { width: 62px; }
  .float-card { inset-inline-end: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .bubble { opacity: 1; transform: none; }
}
