:root{
    --navy:#1A162B;
    --blue1:#1E1B4B;
    --blue2:#3E38BA;
    --white:#FFFFFF;
    --silver:#C0C0C0;
    --gradient: linear-gradient(120deg, var(--blue1), var(--blue2), var(--blue1));
    --shadow: 0 10px 30px rgba(26,22,43,0.08);
    --shadow-lg: 0 25px 60px rgba(26,22,43,0.16);
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family:'Tajawal', sans-serif;
    color:var(--navy);
    background:var(--white);
    line-height:1.7;
    overflow-x:hidden;
    position:relative;
  }
  img{max-width:100%; display:block;}
  a{text-decoration:none; color:inherit;}
  ul{list-style:none;}
  section{scroll-margin-top:90px; position:relative;}
  .container{max-width:1180px; margin:0 auto; padding:0 24px;}
  .eyebrow{
    font-family:'Tajawal', sans-serif;
    font-size:14px; font-weight:800; letter-spacing:.5px;
    color:var(--blue2);
    display:inline-flex; align-items:center; gap:8px;
    margin-bottom:16px;
  }
  .eyebrow::before{content:''; width:18px; height:2px; background:var(--blue2); display:inline-block;}

  /* grain overlay */
  .grain{
    position:fixed; inset:0; z-index:9999; pointer-events:none;
    opacity:.035; mix-blend-mode:overlay;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }

  /* Header */
  header{
    position:sticky; top:0; z-index:100;
    background:rgba(255,255,255,0.85);
    backdrop-filter:blur(10px);
    transition:box-shadow .3s, background .3s;
  }
  header.scrolled{
    box-shadow:0 4px 24px rgba(26,22,43,0.08);
    background:rgba(255,255,255,0.96);
  }
  .nav-wrap{
    display:flex; align-items:center; justify-content:space-between;
    padding:16px 24px;
  }
  .logo-img{height:32px; width:auto;}
  .nav-links-desktop{align-items:center; gap:36px;}
  .nav-link{
    font-weight:500; font-size:15px; color:var(--navy);
    position:relative; padding-bottom:4px; white-space:nowrap;
  }
  .nav-link::after{
    content:''; position:absolute; right:0; bottom:0; width:0; height:2px;
    background:var(--gradient); transition:width .25s;
  }
  .nav-link:hover::after{width:100%;}
  .btn{
    display:inline-flex; align-items:center; gap:8px;
    padding:13px 28px; border-radius:50px;
    font-weight:700; font-size:15px;
    border:none; cursor:pointer; font-family:inherit;
    transition:transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
    position:relative; overflow:hidden;
  }
  .btn-primary{
    background:var(--gradient); background-size:200% auto;
    color:var(--white);
    box-shadow:0 10px 25px rgba(62,56,186,0.35);
  }
  .btn-primary:hover{transform:translateY(-3px) scale(1.02); box-shadow:0 16px 34px rgba(62,56,186,0.45); background-position:right center;}
  .btn-outline{
    background:transparent; color:var(--navy); border:1.5px solid rgba(26,22,43,0.25);
  }
  .btn-outline:hover{border-color:var(--navy); transform:translateY(-3px);}
  .lang-switch{
    display:none; align-items:center; justify-content:center;
    font-weight:700; font-size:13.5px; color:var(--blue2);
    border:1.5px solid rgba(62,56,186,.3); border-radius:50px;
    padding:7px 16px; margin-inline-start:8px; transition:.2s;
  }
  .lang-switch:hover{background:rgba(62,56,186,.08); border-color:var(--blue2);}
  @media(min-width:900px){ .lang-switch{display:inline-flex;} }
  .nav-cta{display:none;}
  @media(min-width:900px){ .nav-cta{display:inline-flex;} }
  .nav-links-desktop{display:none;}
  @media(min-width:900px){ .nav-links-desktop{display:flex;} }

  /* mobile menu */
  .burger{
    display:flex; flex-direction:column; gap:5px; background:none; border:none;
    cursor:pointer; padding:8px; z-index:200;
  }
  @media(min-width:900px){ .burger{display:none;} }
  .burger span{width:24px; height:2px; background:var(--navy); border-radius:2px; transition:.3s;}
  .burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .burger.open span:nth-child(2){opacity:0;}
  .burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
  .mobile-menu{
    max-height:0; overflow:hidden; transition:max-height .35s ease;
    background:var(--white); border-top:1px solid rgba(26,22,43,0.06);
  }
  .mobile-menu.open{max-height:280px;}
  .mobile-menu ul{display:flex; flex-direction:column; padding:10px 24px 24px;}
  .mobile-menu a{padding:14px 0; font-weight:600; border-bottom:1px solid rgba(26,22,43,0.06);}

  /* Hero */
  .hero{
    position:relative;
    padding:100px 24px 60px;
    text-align:center;
    overflow:hidden;
  }
  .hero .cursor-glow{
    position:absolute; width:480px; height:480px; border-radius:50%;
    background:radial-gradient(circle, rgba(62,56,186,0.16), transparent 70%);
    filter:blur(10px); pointer-events:none; z-index:0;
    transform:translate(-50%,-50%);
    transition:opacity .3s; opacity:0;
    top:35%; left:50%;
  }
  .star-deco{position:absolute; opacity:.5; pointer-events:none; animation:float 7s ease-in-out infinite;}
  @keyframes float{
    0%,100%{transform:translateY(0) rotate(0deg);}
    50%{transform:translateY(-18px) rotate(12deg);}
  }
  .badge{
    display:inline-flex; align-items:center; gap:10px;
    padding:9px 20px; border-radius:50px;
    border:1px solid rgba(26,22,43,0.14);
    background:rgba(255,255,255,0.6);
    font-size:14px; font-weight:600; margin-bottom:30px;
    position:relative; z-index:2;
  }
  .pulse-dot{
    width:9px; height:9px; border-radius:50%; background:#22c55e;
    position:relative;
  }
  .pulse-dot::after{
    content:''; position:absolute; inset:0; border-radius:50%;
    background:#22c55e; animation:pulse 1.8s ease-out infinite;
  }
  @keyframes pulse{
    0%{transform:scale(1); opacity:.7;}
    100%{transform:scale(2.8); opacity:0;}
  }
  .hero h1{
    position:relative; z-index:2;
    font-size:clamp(32px, 5.6vw, 58px);
    font-weight:900;
    max-width:920px; margin:0 auto 24px;
    line-height:1.35;
    color:var(--navy);
  }
  .hero h1 .highlight{
    background:linear-gradient(90deg, var(--blue1), var(--blue2), var(--blue1));
    background-size:200% auto;
    -webkit-background-clip:text; background-clip:text; color:transparent;
    animation:shine 5s linear infinite;
  }
  @keyframes shine{ to{ background-position:200% center; } }
  .hero p.sub{
    position:relative; z-index:2;
    font-size:clamp(16px, 2vw, 19px);
    max-width:680px; margin:0 auto 40px;
    color:#4a4560; font-weight:400;
  }
  .hero-ctas{position:relative; z-index:2; display:flex; gap:16px; justify-content:center; flex-wrap:wrap;}

  /* Marquee */
  .marquee-wrap{
    background:var(--navy); overflow:hidden; padding:18px 0;
    white-space:nowrap; margin-top:70px;
  }
  .marquee-track{display:inline-flex; animation:marquee 26s linear infinite;}
  .marquee-track span{
    color:rgba(255,255,255,0.85); font-size:16px; font-weight:700;
    padding:0 28px; display:inline-flex; align-items:center; gap:28px;
    font-family:'Tajawal', sans-serif;
  }
  .marquee-track span svg{opacity:.7;}
  @keyframes marquee{ from{transform:translateX(0);} to{transform:translateX(-50%);} }

  /* reveal */
  .reveal{opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease;}
  .reveal.visible{opacity:1; transform:translateY(0);}

  /* Services */
  .services{padding:110px 24px 100px;}
  .section-head{text-align:center; margin-bottom:56px;}
  .section-title{font-size:clamp(26px,4vw,40px); font-weight:800;}
  .section-sub{color:#6b6580; max-width:600px; margin:14px auto 0; font-size:17px;}

  .services-grid{
    display:grid; gap:22px; grid-template-columns:1fr;
  }
  @media(min-width:820px){
    .services-grid{grid-template-columns:1.15fr 1fr; grid-template-rows:1fr 1fr;}
  }
  .service-card{
    border-radius:24px; padding:38px 34px;
    background:var(--white);
    border:1px solid rgba(26,22,43,0.08);
    box-shadow:var(--shadow);
    transition:transform .15s ease, box-shadow .3s;
    will-change:transform;
    position:relative; overflow:hidden;
  }
  @media(min-width:820px){
    .service-card.primary{grid-row:span 2;}
  }
  .service-card:hover{box-shadow:var(--shadow-lg);}
  .service-card.primary{
    background:var(--gradient); background-size:220% 220%;
    animation:gradientMove 8s ease infinite;
    color:var(--white); border:none;
    display:flex; flex-direction:column; justify-content:center;
  }
  @keyframes gradientMove{
    0%,100%{background-position:0% 50%;}
    50%{background-position:100% 50%;}
  }
  .service-card .icon{
    width:58px; height:58px; border-radius:16px;
    display:flex; align-items:center; justify-content:center;
    margin-bottom:26px;
    background:rgba(62,56,186,0.1); color:var(--blue2);
  }
  .service-card.primary .icon{
    width:68px; height:68px;
    background:rgba(255,255,255,0.18); color:var(--white);
  }
  .service-card h3{font-size:23px; font-weight:800; margin-bottom:14px;}
  .service-card.primary h3{font-size:28px;}
  .service-card p{font-size:15.5px; opacity:.92;}
  .service-card.primary p{color:rgba(255,255,255,0.92); font-size:16.5px; max-width:380px;}
  .service-card:not(.primary) p{color:#5c5670;}
  .service-card .deco-star{
    position:absolute; bottom:-30px; left:-30px; opacity:.15;
  }
  .services-note{
    text-align:center; margin-top:50px; font-size:17px; font-weight:700;
  }

  /* Process */
  .process{padding-top:20px;}
  .process-grid{
    display:grid; grid-template-columns:repeat(5,1fr); gap:18px;
    position:relative;
  }
  .process-grid::before{
    content:'';
    position:absolute;
    top:34px; right:11%; left:11%;
    height:2px;
    background:linear-gradient(90deg, transparent, rgba(62,56,186,.35) 15%, rgba(30,27,75,.35) 50%, rgba(62,56,186,.35) 85%, transparent);
    z-index:0;
  }
  .process-step{
    background:#faf9fc;
    border:1px solid rgba(26,22,43,0.07);
    border-radius:20px;
    padding:26px 20px;
    position:relative;
    z-index:1;
    overflow:hidden;
    transition:transform .35s, box-shadow .35s, border-color .35s;
  }
  .process-step::after{
    content:'';
    position:absolute; inset:0;
    border-radius:20px;
    padding:1.5px;
    background:var(--gradient);
    -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite:xor;
    mask-composite:exclude;
    opacity:0;
    transition:opacity .35s;
    pointer-events:none;
  }
  .process-step:hover{
    transform:translateY(-8px);
    box-shadow:var(--shadow-lg);
    border-color:transparent;
  }
  .process-step:hover::after{opacity:1;}
  .process-num{
    display:flex; align-items:center; justify-content:center;
    width:52px; height:52px;
    border-radius:50%;
    background:var(--gradient);
    background-size:200% 200%;
    color:#fff;
    font-size:18px; font-weight:800;
    margin-bottom:16px;
    box-shadow:0 10px 24px rgba(62,56,186,.32);
    transition:background-position .6s, transform .35s;
  }
  .process-step:hover .process-num{
    background-position:100% 50%;
    transform:scale(1.08) rotate(-6deg);
  }
  .process-step.last .process-num{position:relative;}
  .process-step .deco-star{
    position:absolute; top:-14px; left:-14px; opacity:.12; pointer-events:none;
  }
  .process-step h3{font-size:17px; font-weight:800; margin-bottom:8px; position:relative; z-index:1;}
  .process-step p{font-size:14px; color:#5c5670; line-height:1.6; position:relative; z-index:1;}
  @media(max-width:980px){
    .process-grid{grid-template-columns:repeat(2,1fr);}
    .process-grid::before{display:none;}
  }
  @media(max-width:560px){
    .process-grid{gap:12px;}
    .process-step{padding:20px 14px;}
    .process-num{width:42px; height:42px; font-size:15px; margin-bottom:10px;}
    .process-step h3{font-size:15.5px;}
    .process-step p{font-size:13px;}
  }

  /* Trust */
  .trust{
    background:var(--navy); color:var(--white);
    padding:80px 24px; text-align:center; overflow:hidden; position:relative;
  }
  .trust p{
    position:relative; z-index:2;
    max-width:760px; margin:0 auto; font-size:clamp(18px,2.4vw,23px);
    font-weight:500; line-height:1.9;
  }
  .trust .quote-mark{
    font-size:60px; color:var(--blue2); display:block; margin-bottom:0;
    font-weight:900; line-height:1; font-family:'Tajawal',sans-serif;
  }

  /* Contact */
  .contact{padding:110px 24px; background:#fafaff; position:relative;}
  .contact-grid{
    display:grid; gap:50px; grid-template-columns:1fr;
    max-width:1020px; margin:0 auto;
  }
  @media(min-width:900px){ .contact-grid{grid-template-columns:1fr 1.1fr;} }
  .contact-info h2{font-size:clamp(28px,4vw,38px); font-weight:800; margin-bottom:18px;}
  .contact-info p{color:#5c5670; font-size:16.5px; margin-bottom:38px;}
  .direct-links{display:flex; gap:16px;}
  .direct-link{
    width:56px; height:56px; border-radius:50%; flex-shrink:0;
    display:flex; align-items:center; justify-content:center;
    background:var(--gradient); color:var(--white);
    box-shadow:0 10px 24px rgba(62,56,186,0.3);
    transition:transform .25s, box-shadow .25s;
  }
  .direct-link:hover{transform:translateY(-5px) scale(1.06); box-shadow:0 16px 32px rgba(62,56,186,0.4);}

  .form-frame{
    background:var(--gradient); background-size:200% 200%;
    animation:gradientMove 10s ease infinite;
    padding:2px; border-radius:28px; box-shadow:0 12px 28px rgba(26,22,43,0.09);
  }
  .contact-form{background:var(--white); border-radius:26px; padding:36px;}
  .field{margin-bottom:20px;}
  .field label{display:block; font-weight:700; font-size:14.5px; margin-bottom:8px;}
  .field input, .field select, .field textarea{
    width:100%; padding:13px 16px; border-radius:12px;
    border:1.5px solid rgba(26,22,43,0.14);
    font-family:'Tajawal', sans-serif; font-size:15px; color:var(--navy);
    background:#fcfcff; transition:border-color .2s;
  }
  .field input:focus, .field select:focus, .field textarea:focus{
    outline:none; border-color:var(--blue2);
  }
  .field textarea{resize:vertical; min-height:100px;}
  .submit-btn{width:100%; justify-content:center; font-size:16.5px; padding:16px;}
  .brief-trigger{
    display:block; text-align:center; margin-top:18px; font-size:14.5px; font-weight:700;
    color:var(--blue2); cursor:pointer; background:none; border:none; width:100%;
    font-family:inherit; padding:10px;
  }
  .brief-trigger:hover{text-decoration:underline;}

  /* Modal */
  .modal-overlay{
    position:fixed; inset:0; background:rgba(26,22,43,0.6);
    display:flex; align-items:center; justify-content:center;
    z-index:1000; padding:20px; opacity:0; pointer-events:none; transition:opacity .3s;
  }
  .modal-overlay.open{opacity:1; pointer-events:auto;}
  .modal-card{
    background:var(--white); border-radius:26px; max-width:640px; width:100%;
    max-height:88vh; overflow-y:auto; padding:38px; position:relative;
    transform:translateY(24px); transition:transform .3s;
    box-shadow:var(--shadow-lg);
  }
  .modal-overlay.open .modal-card{transform:translateY(0);}
  .modal-close{
    position:absolute; top:22px; left:22px; width:36px; height:36px; border-radius:50%;
    background:#f2f1fa; border:none; display:flex; align-items:center; justify-content:center;
    cursor:pointer; color:var(--navy);
  }
  .modal-card h3{font-size:24px; font-weight:800; margin-bottom:6px; padding-left:40px;}
  .modal-card > p.modal-sub{color:#6b6580; font-size:15px; margin-bottom:8px;}
  .brief-section-title{font-size:15px; font-weight:800; color:var(--blue2); margin:28px 0 14px;}
  .brief-section-title.first{margin-top:0;}
  .choice-group{display:flex; flex-wrap:wrap; gap:10px;}
  .choice{position:relative; display:inline-flex;}
  .choice input{position:absolute; opacity:0; width:100%; height:100%; cursor:pointer; margin:0;}
  .choice span{
    display:inline-block; padding:10px 18px; border-radius:50px;
    border:1.5px solid rgba(26,22,43,0.14); font-size:13.5px; font-weight:600;
    color:var(--navy); background:#fcfcff; transition:.2s; user-select:none;
  }
  .choice input:checked + span{
    background:var(--gradient); color:#fff; border-color:transparent;
  }
  .choice:hover span{border-color:var(--blue2);}

  /* Final CTA */
  .final-cta{
    text-align:center; padding:90px 24px; position:relative; overflow:hidden;
  }
  .final-cta h2{
    font-size:clamp(30px,6vw,52px); font-weight:900; margin-bottom:30px;
    position:relative; z-index:2;
  }

  /* Footer */
  footer{background:var(--navy); color:rgba(255,255,255,0.75); padding:44px 24px 30px; text-align:center;}
  footer .footer-logo{height:26px; margin:0 auto 18px; filter:brightness(0) invert(1);}
  footer .footer-links{display:flex; gap:18px; justify-content:center; margin-bottom:20px;}
  footer .footer-links a{
    width:40px; height:40px; border-radius:50%;
    background:rgba(255,255,255,0.08);
    display:flex; align-items:center; justify-content:center;
    transition:background .25s, transform .25s;
  }
  footer .footer-links a:hover{background:var(--blue2); transform:translateY(-4px);}
  footer p{font-size:13.5px;}

  /* Floating WhatsApp button */
  .floating-wa{
    position:fixed; bottom:26px; right:26px; z-index:500;
    width:60px; height:60px; border-radius:50%;
    background:var(--gradient); background-size:200% 200%;
    animation:gradientMove 8s ease infinite;
    display:flex; align-items:center; justify-content:center;
    color:#fff; box-shadow:0 12px 28px rgba(62,56,186,0.45);
    transition:transform .25s, box-shadow .25s;
  }
  .floating-wa::before{
    content:''; position:absolute; inset:0; border-radius:50%;
    background:var(--blue2); z-index:-1;
    animation:floatPulse 2.2s ease-out infinite;
  }
  @keyframes floatPulse{
    0%{transform:scale(1); opacity:.55;}
    100%{transform:scale(1.6); opacity:0;}
  }
  .floating-wa:hover{transform:translateY(-4px) scale(1.06); box-shadow:0 16px 36px rgba(62,56,186,0.55);}
  @media(max-width:600px){
    .floating-wa{width:54px; height:54px; bottom:18px; right:18px;}
  }
