:root {
  --ivory: #f6f0e6;
  --ivory-deep: #ece3d6;
  --paper: #fffdf8;
  --charcoal: #24292d;
  --muted: #6f716f;
  --blue: #66829a;
  --blue-dark: #526e86;
  --blue-soft: #dbe5ec;
  --line: rgba(36, 41, 45, .12);
  --shadow: 0 24px 70px rgba(55, 58, 60, .11);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--charcoal); background: var(--ivory); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { font-family: Tahoma, "Segoe UI", Arial, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 110px 0; position: relative; }
.section-tinted { background: rgba(255, 253, 248, .55); border-block: 1px solid var(--line); }
.skip-link { position: fixed; inset-inline-start: 16px; top: -80px; z-index: 999; background: var(--charcoal); color: white; padding: 12px 18px; border-radius: 12px; }
.skip-link:focus { top: 14px; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 240, 230, .88); backdrop-filter: blur(18px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 30px rgba(40, 44, 46, .05); }
.nav-wrap { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand img { width: 174px; height: 44px; object-fit: cover; object-position: center; mix-blend-mode: multiply; }
.desktop-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 600; color: #535a5f; }
.desktop-nav a { position: relative; padding: 8px 0; }
.desktop-nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 1px; height: 1px; background: var(--blue); transform: scaleX(0); transition: transform .25s; }
.desktop-nav a:hover::after, .desktop-nav a:focus-visible::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.language-switch, .footer-language button { border: 1px solid var(--line); background: rgba(255,255,255,.45); color: var(--charcoal); border-radius: 999px; min-width: 76px; padding: 10px 14px; cursor: pointer; font-weight: 700; transition: .25s; }
.language-switch:hover, .footer-language button:hover { border-color: var(--blue); color: var(--blue-dark); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 13px; background: transparent; cursor: pointer; }
.mobile-nav { padding: 2px 20px 18px; border-top: 1px solid var(--line); }
.mobile-nav a { display: block; padding: 11px 0; font-weight: 700; }

.button { min-height: 51px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid transparent; border-radius: 15px; font-weight: 800; font-size: 14px; cursor: pointer; transition: transform .25s, background .25s, box-shadow .25s, border-color .25s; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(102, 130, 154, .3); outline-offset: 3px; }
.button-small { min-height: 43px; padding: 0 18px; }
.button-primary { background: var(--charcoal); color: white; box-shadow: 0 10px 25px rgba(36,41,45,.15); }
.button-primary:hover { background: #111517; }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.42); }
.button-secondary:hover { border-color: var(--blue); }
.button-whatsapp { color: var(--blue-dark); border-color: rgba(102,130,154,.35); background: var(--blue-soft); }

.hero { min-height: auto; display: flex; align-items: center; overflow: hidden; padding: 58px 0 72px; }
.hero-glow { position: absolute; width: 700px; height: 700px; border-radius: 50%; right: -220px; top: -260px; background: radial-gradient(circle, rgba(102,130,154,.24), transparent 67%); pointer-events: none; }
html[dir="rtl"] .hero-glow { right: auto; left: -220px; }
.hero-grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 42px; }
.eyebrow { margin: 0 0 18px; color: var(--blue-dark); font-size: 12px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(50px, 6vw, 82px); line-height: .98; letter-spacing: -.055em; margin-bottom: 26px; max-width: 700px; }
html[lang="ar"] h1 { letter-spacing: -.02em; line-height: 1.14; }
.hero-text { font-size: 18px; color: #595d5e; max-width: 610px; margin-bottom: 27px; }
.price-line { display: flex; gap: 10px; align-items: baseline; margin-bottom: 25px; color: var(--muted); }
.price-line strong { color: var(--blue-dark); font-size: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.microcopy { color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.product-stage { position: relative; }
.browser-card { border: 1px solid rgba(255,255,255,.9); border-radius: 26px; overflow: hidden; background: white; box-shadow: var(--shadow); transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); transition: transform .4s; }
html[dir="rtl"] .browser-card { transform: perspective(1200px) rotateY(2deg) rotateX(1deg); }
.browser-card:hover, html[dir="rtl"] .browser-card:hover { transform: none; }
.browser-card img { width: 100%; aspect-ratio: 1.77; object-fit: cover; object-position: top left; }
.browser-bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 16px; background: #f9f7f3; border-bottom: 1px solid #ebe6dd; }
.browser-bar span { width: 8px; height: 8px; background: #c4c1bb; border-radius: 50%; }
.browser-bar small { margin-inline: auto; color: #8b8b86; font-size: 10px; }
.floating-note { position: absolute; bottom: -22px; inset-inline-start: -24px; display: flex; align-items: center; gap: 10px; background: var(--paper); padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 15px 35px rgba(50,54,56,.12); font-size: 13px; font-weight: 800; }
.status-dot { width: 9px; height: 9px; background: #73927a; border-radius: 50%; box-shadow: 0 0 0 5px rgba(115,146,122,.14); }

.trust-strip { border-block: 1px solid var(--line); background: rgba(255,255,255,.3); }
.trust-grid { min-height: 88px; display: grid; grid-template-columns: repeat(3,1fr); align-items: center; text-align: center; color: #5d6263; font-size: 13px; font-weight: 800; }
.trust-grid span + span { border-inline-start: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
h2 { font-size: clamp(38px, 5vw, 62px); line-height: 1.06; letter-spacing: -.045em; margin-bottom: 24px; }
html[lang="ar"] h2 { letter-spacing: -.015em; line-height: 1.2; }
.about-copy > p { font-size: 19px; color: #555b5e; max-width: 720px; }
.about-points { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 35px; }
.about-points div { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.35); }
.about-points strong, .about-points span { display: block; }
.about-points span { margin-top: 6px; color: var(--muted); font-size: 13px; }
.section-heading.centered { max-width: 720px; text-align: center; margin: 0 auto 55px; }
.section-heading.centered p:last-child { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feature-card { min-height: 225px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,253,248,.75); transition: transform .3s, box-shadow .3s, border-color .3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(55,58,60,.08); border-color: rgba(102,130,154,.35); }
.feature-number { display: block; color: var(--blue); font-size: 12px; font-weight: 900; margin-bottom: 34px; }
.feature-card h3 { font-size: 20px; line-height: 1.25; margin-bottom: 10px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 14px; }
.package-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; margin-bottom: 50px; }
.package-heading > p { color: var(--muted); font-size: 17px; }
.package-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; max-width: 900px; margin-inline: auto; }
.package-card { padding: 35px; min-height: 355px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.38); display: flex; flex-direction: column; }
.package-card.featured { background: var(--charcoal); color: white; transform: translateY(-12px); box-shadow: var(--shadow); }
.package-label { color: var(--blue); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.package-card h3 { font-size: 31px; margin: 18px 0 12px; }
.package-card > p:not(.package-label):not(.package-price) { color: var(--muted); }
.package-card.featured > p:not(.package-label):not(.package-price) { color: #c7c7c3; }
.package-price { font-size: 18px; font-weight: 800; margin: auto 0 24px; }
.text-link { color: var(--blue-dark); font-weight: 900; }
.featured .text-link { color: #b8ccdc; }
.video-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: center; }
.video-copy p:last-child { color: var(--muted); font-size: 17px; }
.video-placeholder { aspect-ratio: 16/9; min-height: 360px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(145deg, rgba(102,130,154,.16), rgba(255,253,248,.78)); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; box-shadow: inset 0 0 70px rgba(255,255,255,.55); }
.play-button { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: var(--charcoal); color: white; padding-inline-start: 4px; margin-bottom: 22px; box-shadow: 0 12px 28px rgba(36,41,45,.18); }
.video-placeholder strong { font-size: 20px; }
.video-placeholder small { color: var(--muted); margin-top: 7px; }
.contact-section { overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: start; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); font-size: 17px; max-width: 500px; }
.contact-whatsapp { margin-top: 35px; display: inline-flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: var(--blue-soft); color: var(--blue-dark); }
.contact-whatsapp > span { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(82,110,134,.2); background: rgba(255,255,255,.52); border-radius: 13px; }
.contact-whatsapp strong, .contact-whatsapp small { display: block; }
.contact-whatsapp small { opacity: .77; margin-top: 2px; }
.contact-form { padding: 38px; background: var(--paper); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 17px; }
.contact-form input, .contact-form textarea { width: 100%; display: block; border: 1px solid var(--line); background: #fbf8f2; border-radius: 13px; margin-top: 7px; padding: 13px 15px; color: var(--charcoal); transition: border-color .2s, background .2s; }
.contact-form input { height: 50px; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); background: white; }
.form-submit { width: 100%; border: 0; }
.form-note, .form-status { text-align: center; color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.form-status { color: var(--blue-dark); font-weight: 800; }
.site-footer { padding: 65px 0 24px; background: #202529; color: #eff0ed; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3,1fr); gap: 50px; }
.footer-brand img { width: 155px; height: 40px; object-fit: cover; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand p { color: #afb3b3; max-width: 280px; margin-top: 18px; font-size: 14px; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; font-size: 14px; color: #bdc0c0; }
.footer-grid strong { color: white; margin-bottom: 8px; }
.footer-grid a:hover { color: white; }
.footer-language button { color: white; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.footer-bottom { margin-top: 55px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; color: #909596; font-size: 12px; }
.floating-whatsapp { position: fixed; z-index: 45; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 9px; padding: 10px 17px 10px 10px; border-radius: 999px; background: #238b57; color: white; box-shadow: 0 12px 35px rgba(22,96,59,.3); font-size: 13px; font-weight: 900; transition: transform .25s, background .25s, box-shadow .25s; }
.floating-whatsapp:hover { transform: translateY(-3px); background: #187747; box-shadow: 0 16px 40px rgba(22,96,59,.38); }
.whatsapp-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: white; color: #238b57; font-size: 17px; line-height: 1; }
html[dir="rtl"] .floating-whatsapp { right: auto; left: 22px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Checkout page */
.checkout-page { min-height: 100vh; background: radial-gradient(circle at 85% 5%, rgba(102,130,154,.18), transparent 28%), var(--ivory); }
.checkout-header { border-bottom: 1px solid var(--line); background: rgba(246,240,230,.88); backdrop-filter: blur(18px); }
.checkout-nav { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.checkout-nav-actions { display: flex; align-items: center; gap: 18px; }
.checkout-back { color: var(--muted); font-size: 13px; font-weight: 800; }
.checkout-back:hover { color: var(--blue-dark); }
.checkout-main { padding: 72px 0 95px; }
.checkout-shell { display: grid; grid-template-columns: .78fr 1.22fr; gap: 72px; align-items: start; }
.checkout-intro { position: sticky; top: 45px; }
.checkout-intro h1 { font-size: clamp(45px, 5.2vw, 72px); }
.checkout-intro > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.checkout-assurance { display: grid; gap: 10px; margin-top: 36px; }
.checkout-assurance span { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.35); }
.checkout-assurance b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark); font-size: 11px; }
.checkout-assurance small { font-size: 13px; font-weight: 800; }
.checkout-form { border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow); padding: 38px; }
.checkout-fieldset { padding: 0; margin: 0 0 36px; border: 0; }
.checkout-fieldset legend, .checkout-details h2 { width: 100%; font-size: 21px; font-weight: 900; margin-bottom: 18px; letter-spacing: -.02em; }
.checkout-options { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.checkout-option { position: relative; cursor: pointer; }
.checkout-option input { position: absolute; opacity: 0; pointer-events: none; }
.option-content { height: 100%; min-height: 210px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fbf8f2; transition: border-color .2s, box-shadow .2s, transform .2s, background .2s; }
.checkout-option:hover .option-content { transform: translateY(-2px); border-color: rgba(102,130,154,.45); }
.checkout-option input:checked + .option-content { border-color: var(--blue-dark); background: rgba(219,229,236,.56); box-shadow: 0 0 0 3px rgba(102,130,154,.12); }
.checkout-option input:focus-visible + .option-content { outline: 3px solid rgba(102,130,154,.3); outline-offset: 3px; }
.option-content small, .option-content strong { display: block; }
.option-content small { color: var(--blue-dark); text-transform: uppercase; font-size: 10px; font-style: normal; font-weight: 900; letter-spacing: .1em; }
html[lang="ar"] .option-content small { letter-spacing: 0; }
.option-content strong { font-size: 26px; margin-top: 5px; }
.option-content > b { margin: auto 0 13px; font-size: 15px; }
.option-content em { color: var(--muted); font-size: 12px; font-style: normal; }
.checkout-details { padding-top: 31px; border-top: 1px solid var(--line); }
.checkout-details label { display: block; margin-bottom: 17px; font-size: 13px; font-weight: 800; }
.checkout-details input, .checkout-details textarea { width: 100%; display: block; margin-top: 7px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fbf8f2; color: var(--charcoal); }
.checkout-details input { height: 50px; }
.checkout-details textarea { resize: vertical; }
.confirmation-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #f8f4ed; }
.confirmation-actions[hidden] { display: none; }
.confirmation-actions small { grid-column: 1 / -1; text-align: center; color: var(--muted); font-size: 11px; }
.checkout-submit { width: 100%; border: 0; }
.checkout-footer { padding: 25px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.checkout-footer .container { display: flex; justify-content: space-between; gap: 20px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }
@media (max-width: 980px) {
  .desktop-nav, .desktop-cta { display: none; }
  .menu-button { display: block; }
  .hero { min-height: auto; padding: 52px 0 68px; }
  .hero-grid, .about-grid, .video-grid, .contact-grid { grid-template-columns: 1fr; gap: 55px; }
  .hero-grid { gap: 40px; }
  .hero-copy { max-width: 720px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .package-heading { grid-template-columns: 1fr; gap: 10px; }
  .footer-grid { grid-template-columns: 1.5fr repeat(2,1fr); }
  .footer-language { grid-column: 2; }
  .checkout-shell { grid-template-columns: 1fr; gap: 45px; }
  .checkout-intro { position: static; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .section { padding: 78px 0; }
  .nav-wrap { min-height: 70px; }
  .brand img { width: 137px; height: 36px; }
  .language-switch { min-width: 65px; padding: 8px 11px; }
  .hero { padding: 42px 0 62px; }
  .hero-grid { gap: 36px; }
  h1 { font-size: clamp(43px, 13vw, 62px); }
  h2 { font-size: 40px; }
  .hero-text { font-size: 16px; }
  .hero-actions .button { width: 100%; }
  .browser-card { border-radius: 18px; transform: none; }
  .browser-card img { aspect-ratio: 1.38; }
  .floating-note { inset-inline-start: 12px; bottom: -27px; max-width: calc(100% - 24px); }
  .trust-grid { grid-template-columns: 1fr; padding: 18px 0; gap: 0; }
  .trust-grid span { padding: 9px; }
  .trust-grid span + span { border-inline-start: 0; border-top: 1px solid var(--line); }
  .about-points, .feature-grid, .package-grid, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .about-points { gap: 10px; }
  .feature-card { min-height: 205px; }
  .package-card.featured { transform: none; }
  .video-placeholder { min-height: 0; width: 100%; }
  .contact-form { padding: 24px 18px; }
  .footer-language { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 10px; }
  .floating-whatsapp span:last-child { display: none; }
  .floating-whatsapp { width: 50px; height: 50px; padding: 0; justify-content: center; border-radius: 50%; right: 15px; bottom: 15px; }
  html[dir="rtl"] .floating-whatsapp { left: 15px; }
  .checkout-nav { min-height: 70px; }
  .checkout-nav-actions { gap: 10px; }
  .checkout-back { display: none; }
  .checkout-main { padding: 52px 0 70px; }
  .checkout-intro h1 { font-size: 43px; }
  .checkout-form { padding: 23px 17px; }
  .checkout-options { grid-template-columns: 1fr; }
  .confirmation-actions { grid-template-columns: 1fr; }
  .confirmation-actions small { grid-column: auto; }
  .option-content { min-height: 180px; }
  .checkout-footer .container { flex-direction: column; }
}
