:root{
    --void:#05060B;
    --deep:#0A0D18;
    --panel:#0E1220;
    --line:#1C2436;
    --blue:#3D5AFE;
    --cyan:#22D3EE;
    --violet:#A855F7;
    --white:#F5F7FF;
    --mist:#8B93A7;
    --mist-dim:#5B6479;
  }
  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    background:var(--void);
    color:var(--white);
    font-family:'Inter', sans-serif;
    overflow-x:hidden;
    cursor:none;
  }
  @media (max-width: 860px){ body{ cursor:auto; } }
  ::selection{ background:var(--blue); color:var(--white); }

  h1,h2,h3,.display{
    font-family:'Space Grotesk', sans-serif;
    letter-spacing:-0.02em;
    line-height:1.05;
  }
  .mono{
    font-family:'JetBrains Mono', monospace;
    letter-spacing:0.08em;
  }

  a{color:inherit; text-decoration:none;}

  /* ---------- custom cursor ---------- */
  #cursor-dot, #cursor-ring{
    position:fixed; top:0; left:0; pointer-events:none; z-index:9999;
    border-radius:50%; transform:translate(-50%,-50%);
  }
  #cursor-dot{ width:6px; height:6px; background:var(--cyan); }
  #cursor-ring{ width:34px; height:34px; border:1px solid rgba(34,211,238,0.45); transition:width .2s,height .2s,border-color .2s,background .2s; }
  .cursor-active #cursor-ring{ width:56px; height:56px; background:rgba(61,90,254,0.08); border-color:var(--blue); }
  @media (max-width: 860px){ #cursor-dot,#cursor-ring{ display:none; } }

  /* ---------- boot overlay ---------- */
  #boot{
    position:fixed; inset:0; z-index:10000; background:var(--void);
    display:flex; align-items:center; justify-content:center; flex-direction:column;
  }
  #boot .mono{ color:var(--cyan); font-size:13px; }
  #boot-lines{ width:min(480px,86vw); }
  #boot-lines p{ opacity:0; margin-bottom:8px; font-size:12.5px; color:var(--mist); }
  #boot-lines p .ok{ color:var(--cyan); }
  #boot-bar{ height:2px; width:100%; background:var(--line); margin-top:18px; position:relative; overflow:hidden; }
  #boot-bar span{ position:absolute; inset:0; width:0%; background:linear-gradient(90deg,var(--blue),var(--cyan)); }

  /* ---------- background grid / glow ---------- */
  #bgcanvas{ position:fixed; inset:0; z-index:0; opacity:0.5; }
  .glow-blob{ position:fixed; border-radius:50%; filter:blur(120px); z-index:0; pointer-events:none; }
  .glow-blue{ width:560px; height:560px; background:rgba(61,90,254,0.20); top:-120px; left:-160px; }
  .glow-violet{ width:640px; height:640px; background:rgba(168,85,247,0.14); bottom:-200px; right:-200px; }

  main{ position:relative; z-index:1; }

  /* ---------- nav ---------- */
  nav{
    position:fixed; top:0; left:0; right:0; z-index:100;
    display:flex; align-items:center; justify-content:space-between;
    padding:20px clamp(20px,5vw,64px);
    backdrop-filter:blur(14px);
    background:rgba(5,6,11,0.55);
    border-bottom:1px solid rgba(255,255,255,0.06);
  }
  .logo{ font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:20px; letter-spacing:0.02em; display:flex; align-items:center; gap:10px;}
  .logo .dot{ width:7px; height:7px; border-radius:50%; background:var(--cyan); box-shadow:0 0 12px var(--cyan); }
  .navlinks{ display:flex; gap:22px; align-items:center; }
  .navlinks a{ font-size:13.5px; color:var(--mist); transition:color .25s; position:relative; }
  .navlinks a:hover{ color:var(--white); }
  @media (max-width: 1080px){ .navlinks{ display:none; } }
  .btn{
    font-family:'Inter',sans-serif; font-weight:600; font-size:13.5px;
    padding:11px 22px; border-radius:8px; display:inline-flex; align-items:center; gap:8px;
    cursor:none;
  }
  @media (max-width:860px){ .btn{ cursor:pointer; } }
  .btn-primary{
    background:linear-gradient(135deg,var(--blue),var(--cyan));
    color:#05060B; border:none;
  }
  .btn-ghost{ border:1px solid var(--line); color:var(--white); background:rgba(255,255,255,0.02);}
  .btn-ghost:hover{ border-color:var(--cyan); }

  /* ---------- hero ---------- */
  .hero{
    min-height:100vh; display:flex; align-items:center;
    padding:150px clamp(20px,5vw,64px) 80px;
    position:relative;
  }
  .hero-grid{ display:grid; grid-template-columns:1.15fr 0.85fr; gap:60px; width:100%; align-items:center; }
  @media (max-width:980px){ .hero-grid{ grid-template-columns:1fr; } }

  .eyebrow{
    display:inline-flex; align-items:center; gap:8px;
    font-size:11.5px; color:var(--cyan); margin-bottom:22px;
    padding:6px 12px; border:1px solid rgba(34,211,238,0.25); border-radius:100px;
    background:rgba(34,211,238,0.05);
  }
  .eyebrow .pulse{ width:6px; height:6px; border-radius:50%; background:var(--cyan); box-shadow:0 0 8px var(--cyan); animation:pulse 1.6s infinite; }
  @keyframes pulse{ 0%,100%{opacity:1;} 50%{opacity:.3;} }

  .hero h1{
    font-size:clamp(40px,6vw,76px); font-weight:700;
    background:linear-gradient(180deg,#fff 40%,rgba(255,255,255,0.65));
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }
  .hero h1 .accent{
    background:linear-gradient(135deg,var(--blue),var(--cyan) 60%,var(--violet));
    -webkit-background-clip:text; background-clip:text; color:transparent;
  }
  .hero p.sub{ margin-top:26px; font-size:17px; color:var(--mist); max-width:520px; line-height:1.65; }
  .hero-ctas{ display:flex; gap:14px; margin-top:38px; flex-wrap:wrap; }

  /* HUD panel */
  .hud{
    background:linear-gradient(180deg, rgba(14,18,32,0.9), rgba(10,13,24,0.9));
    border:1px solid var(--line); border-radius:16px; padding:22px;
    backdrop-filter:blur(20px);
    box-shadow:0 0 0 1px rgba(255,255,255,0.02), 0 30px 80px rgba(0,0,0,0.5);
  }
  .hud-head{ display:flex; justify-content:space-between; align-items:center; padding-bottom:14px; border-bottom:1px solid var(--line); margin-bottom:16px; }
  .hud-head span{ font-size:11px; color:var(--mist-dim); }
  .hud-dots{ display:flex; gap:6px; }
  .hud-dots i{ width:7px; height:7px; border-radius:50%; display:block; }
  .hud-dots i:nth-child(1){ background:#F87171; }
  .hud-dots i:nth-child(2){ background:#FBBF24; }
  .hud-dots i:nth-child(3){ background:#34D399; }
  .hud-row{ display:flex; justify-content:space-between; align-items:baseline; padding:10px 0; border-bottom:1px dashed var(--line); }
  .hud-row:last-child{ border-bottom:none; }
  .hud-row .label{ font-size:12.5px; color:var(--mist); }
  .hud-row .value{ font-family:'Space Grotesk',sans-serif; font-size:24px; font-weight:600; }
  .hud-row .value small{ font-size:13px; color:var(--cyan); font-weight:500; margin-left:2px; }
  .hud-bar{ height:4px; border-radius:4px; background:var(--line); margin-top:10px; overflow:hidden; }
  .hud-bar span{ display:block; height:100%; background:linear-gradient(90deg,var(--blue),var(--cyan)); border-radius:4px; }

  /* ---------- section shell ---------- */
  section{ padding:120px clamp(20px,5vw,64px); position:relative; }
  .section-head{ max-width:640px; margin-bottom:64px; }
  .kicker{ font-size:11.5px; color:var(--cyan); margin-bottom:14px; display:block; }
  .section-head h2{ font-size:clamp(28px,4vw,44px); font-weight:600; }
  .section-head p{ color:var(--mist); margin-top:16px; font-size:16px; line-height:1.65; }

  /* ---------- intro strip ---------- */
  .intro{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:60px; align-items:start; }
  @media (max-width:900px){ .intro{ grid-template-columns:1fr; } }
  .intro-stat{ display:flex; flex-direction:column; gap:4px; padding:20px 0; border-top:1px solid var(--line); }
  .intro-stat .n{ font-family:'Space Grotesk',sans-serif; font-size:32px; font-weight:600; color:var(--white); }
  .intro-stat .n span{ color:var(--cyan); }
  .intro-stat .l{ font-size:12.5px; color:var(--mist-dim); }
  .intro-stats-grid{ display:grid; grid-template-columns:1fr 1fr; gap:0 30px; }

  /* ---------- services ---------- */
  .svc-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
  @media (max-width:980px){ .svc-grid{ grid-template-columns:1fr 1fr; } }
  @media (max-width:640px){ .svc-grid{ grid-template-columns:1fr; } }
  .svc-card{
    background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:28px;
    position:relative; overflow:hidden; transition:transform .35s, border-color .35s;
  }
  .svc-card::before{
    content:''; position:absolute; inset:0; opacity:0; transition:opacity .35s;
    background:radial-gradient(300px circle at var(--mx,50%) var(--my,0%), rgba(34,211,238,0.12), transparent 60%);
  }
  .svc-card:hover{ transform:translateY(-4px); border-color:rgba(34,211,238,0.35); }
  .svc-card:hover::before{ opacity:1; }
  .svc-num{ font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--mist-dim); }
  .svc-icon{ width:38px; height:38px; border-radius:9px; background:linear-gradient(135deg, rgba(61,90,254,0.18), rgba(34,211,238,0.12)); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; margin:16px 0 18px; font-size:17px; }
  .svc-card h3{ font-size:18px; font-weight:600; margin-bottom:10px; }
  .svc-card p{ font-size:13.5px; color:var(--mist); line-height:1.6; }

  /* ---------- portfolio ---------- */
  .filters{ display:flex; gap:10px; margin-bottom:36px; flex-wrap:wrap; }
  .filter-pill{ font-size:12.5px; padding:8px 16px; border-radius:100px; border:1px solid var(--line); color:var(--mist); }
  .filter-pill.active{ color:var(--void); background:var(--cyan); border-color:var(--cyan); }
  .port-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
  @media (max-width:980px){ .port-grid{ grid-template-columns:1fr 1fr; } }
  @media (max-width:640px){ .port-grid{ grid-template-columns:1fr; } }
  .port-card{ border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--panel); }
  .port-thumb{ height:180px; position:relative; overflow:hidden; }
  .port-thumb .g1{ position:absolute; inset:0; }
  .port-body{ padding:20px; }
  .port-tag{ font-size:10.5px; color:var(--cyan); text-transform:uppercase; letter-spacing:.08em; }
  .port-body h3{ font-size:16px; font-weight:600; margin:8px 0 6px; }
  .port-body p{ font-size:13px; color:var(--mist); line-height:1.6; }

  /* ---------- process ---------- */
  .process-list{ display:flex; flex-direction:column; }
  .proc-item{ display:grid; grid-template-columns:90px 1fr; gap:28px; padding:36px 0; border-top:1px solid var(--line); align-items:center; }
  .proc-item:last-child{ border-bottom:1px solid var(--line); }
  .proc-num{ font-family:'Space Grotesk',sans-serif; font-size:32px; color:var(--mist-dim); }
  .proc-item.inview .proc-num{ color:var(--cyan); }
  .proc-title{ font-size:20px; font-weight:600; margin-bottom:6px; }
  .proc-desc{ font-size:14.5px; color:var(--mist); max-width:680px; line-height:1.6; }
  .proc-row-inner{ display:flex; justify-content:space-between; align-items:center; gap:20px; width:100%; }
  .proc-row-inner > *:first-child{ flex:1; min-width:0; }
  @media (max-width:700px){ .proc-row-inner{ flex-direction:column; align-items:flex-start; } .proc-item{ padding:28px 0; } }

  /* ---------- tech stack ---------- */
  .tech-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
  @media (max-width:900px){ .tech-grid{ grid-template-columns:repeat(2,1fr); } }
  .tech-chip{ border:1px solid var(--line); border-radius:12px; padding:20px; background:var(--panel); }
  .tech-chip .t-label{ font-family:'JetBrains Mono',monospace; font-size:11px; color:var(--mist-dim); }
  .tech-chip .t-name{ font-size:16px; font-weight:600; margin-top:8px; font-family:'Space Grotesk',sans-serif; }
  .tech-chip .t-role{ font-size:12px; color:var(--mist); margin-top:4px; }

  /* ---------- chatbot preview ---------- */
  .chat-wrap{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
  @media (max-width:900px){ .chat-wrap{ grid-template-columns:1fr; } }
  .chat-window{ border:1px solid var(--line); border-radius:16px; background:var(--panel); overflow:hidden; }
  .chat-head{ padding:16px 20px; border-bottom:1px solid var(--line); display:flex; align-items:center; gap:10px; }
  .chat-head .avatar{ width:26px; height:26px; border-radius:8px; background:linear-gradient(135deg,var(--blue),var(--violet)); }
  .chat-head .name{ font-size:13.5px; font-weight:600; }
  .chat-head .status{ font-size:11px; color:var(--cyan); margin-left:auto; display:flex; align-items:center; gap:6px; }
  .chat-body{ padding:22px 20px; display:flex; flex-direction:column; gap:14px; min-height:260px; }
  .bubble{ max-width:78%; padding:12px 15px; border-radius:12px; font-size:13.5px; line-height:1.55; }
  .bubble.bot{ background:rgba(255,255,255,0.04); border:1px solid var(--line); align-self:flex-start; border-bottom-left-radius:2px; }
  .bubble.user{ background:linear-gradient(135deg,var(--blue),var(--cyan)); color:#05060B; align-self:flex-end; border-bottom-right-radius:2px; font-weight:500; }
  .chat-input{ padding:14px 20px; border-top:1px solid var(--line); display:flex; gap:10px; align-items:center; }
  .chat-input .field{ flex:1; font-size:13px; color:var(--mist-dim); }

  /* ---------- testimonials ---------- */
  .test-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
  @media (max-width:980px){ .test-grid{ grid-template-columns:1fr; } }
  .test-card{ border:1px solid var(--line); border-radius:14px; padding:26px; background:var(--panel); }
  .test-card .quote{ font-size:14px; color:var(--white); line-height:1.7; opacity:.9; }
  .test-foot{ display:flex; align-items:center; gap:12px; margin-top:20px; }
  .test-avatar{ width:36px; height:36px; border-radius:50%; background:linear-gradient(135deg,var(--violet),var(--blue)); }
  .test-name{ font-size:13px; font-weight:600; }
  .test-role{ font-size:11.5px; color:var(--mist-dim); }

  /* ---------- final cta ---------- */
  .cta-final{
    text-align:center; border-radius:24px; border:1px solid var(--line);
    padding:90px 40px; background:radial-gradient(600px circle at 50% 0%, rgba(61,90,254,0.15), transparent 60%), var(--panel);
    margin:0 clamp(20px,5vw,64px);
  }
  .cta-final h2{ font-size:clamp(28px,4vw,46px); }
  .cta-final p{ color:var(--mist); margin:18px auto 34px; max-width:480px; }

  footer{ padding:70px clamp(20px,5vw,64px) 40px; border-top:1px solid var(--line); margin-top:60px; }
  .foot-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:60px; }
  @media (max-width:800px){ .foot-grid{ grid-template-columns:1fr 1fr; } }
  .foot-col h4{ font-size:12px; color:var(--mist-dim); margin-bottom:16px; letter-spacing:.06em; }
  .foot-col a{ display:block; font-size:13.5px; color:var(--mist); margin-bottom:10px; }
  .foot-col a:hover{ color:var(--white); }
  .foot-bottom{ display:flex; justify-content:space-between; font-size:12px; color:var(--mist-dim); flex-wrap:wrap; gap:10px; }

  .reveal{ opacity:0; transform:translateY(30px); }

  @media (prefers-reduced-motion: reduce){
    *{ animation:none !important; transition:none !important; }
  }

/* ================= shared additions for sub-pages ================= */

/* page hero (non-home pages) */
.page-hero{
  padding:150px clamp(20px,5vw,64px) 70px;
  border-bottom:1px solid var(--line);
}
.breadcrumb{ font-size:11.5px; color:var(--mist-dim); margin-bottom:20px; display:flex; gap:8px; align-items:center; }
.breadcrumb a{ color:var(--mist); }
.breadcrumb a:hover{ color:var(--cyan); }
.page-hero h1{ font-size:clamp(34px,5vw,58px); font-weight:700; max-width:760px; }
.page-hero p.sub{ margin-top:20px; font-size:16px; color:var(--mist); max-width:560px; line-height:1.7; }

/* category tag row on services page */
.cat-nav{ display:flex; gap:10px; flex-wrap:wrap; margin-top:30px; }
.cat-nav a{ font-size:12px; padding:8px 14px; border:1px solid var(--line); border-radius:100px; color:var(--mist); }
.cat-nav a:hover{ color:var(--white); border-color:var(--cyan); }

/* services detail blocks */
.svc-detail{ display:grid; grid-template-columns:280px 1fr; gap:40px; padding:56px 0; border-top:1px solid var(--line); }
.svc-detail:last-child{ border-bottom:1px solid var(--line); }
@media (max-width:820px){ .svc-detail{ grid-template-columns:1fr; gap:20px; } }
.svc-detail .sd-head{ position:sticky; top:110px; align-self:start; }
.svc-detail .sd-num{ font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--cyan); }
.svc-detail h3{ font-size:24px; font-weight:600; margin-top:10px; }
.sd-list{ display:grid; grid-template-columns:1fr 1fr; gap:12px 24px; }
@media (max-width:560px){ .sd-list{ grid-template-columns:1fr; } }
.sd-item{ border:1px solid var(--line); border-radius:10px; padding:16px 18px; background:var(--panel); font-size:13.5px; color:var(--mist); display:flex; align-items:center; gap:10px; }
.sd-item::before{ content:'—'; color:var(--cyan); }

/* pricing */
.pricing-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; align-items:stretch; }
@media (max-width:980px){ .pricing-grid{ grid-template-columns:1fr; } }
.price-card{ border:1px solid var(--line); border-radius:16px; padding:32px 28px; background:var(--panel); display:flex; flex-direction:column; }
.price-card.featured{ border-color:var(--cyan); background:linear-gradient(180deg, rgba(34,211,238,0.06), var(--panel) 40%); position:relative; }
.price-card.featured::before{ content:'MOST CHOSEN'; position:absolute; top:-12px; left:28px; font-family:'JetBrains Mono',monospace; font-size:10px; background:var(--cyan); color:var(--void); padding:4px 10px; border-radius:100px; letter-spacing:.08em; }
.price-tier{ font-size:12px; color:var(--mist-dim); font-family:'JetBrains Mono',monospace; text-transform:uppercase; }
.price-name{ font-size:26px; font-weight:600; margin:10px 0 6px; font-family:'Space Grotesk',sans-serif; }
.price-desc{ font-size:13.5px; color:var(--mist); margin-bottom:24px; }
.price-list{ display:flex; flex-direction:column; gap:12px; margin-bottom:28px; flex:1; }
.price-list li{ list-style:none; font-size:13.5px; color:var(--white); display:flex; gap:10px; align-items:flex-start; }
.price-list li::before{ content:'✓'; color:var(--cyan); font-weight:700; flex-shrink:0; }

/* blog */
.blog-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media (max-width:980px){ .blog-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .blog-grid{ grid-template-columns:1fr; } }
.blog-card{ border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--panel); display:flex; flex-direction:column; }
.blog-thumb{ height:150px; }
.blog-body{ padding:22px; flex:1; display:flex; flex-direction:column; }
.blog-meta{ font-size:11px; color:var(--mist-dim); font-family:'JetBrains Mono',monospace; margin-bottom:10px; }
.blog-body h3{ font-size:16px; font-weight:600; margin-bottom:10px; line-height:1.4; }
.blog-body p{ font-size:13px; color:var(--mist); line-height:1.6; flex:1; }
.blog-read{ font-size:12.5px; color:var(--cyan); margin-top:16px; }

/* about */
.about-grid{ display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
@media (max-width:900px){ .about-grid{ grid-template-columns:1fr; } }
.value-list{ display:flex; flex-direction:column; }
.value-item{ padding:22px 0; border-top:1px solid var(--line); display:grid; grid-template-columns:50px 1fr; gap:18px; }
.value-item:last-child{ border-bottom:1px solid var(--line); }
.value-item .vi-num{ font-family:'Space Grotesk',sans-serif; color:var(--mist-dim); font-size:20px; }
.value-item h4{ font-size:15.5px; font-weight:600; margin-bottom:4px; }
.value-item p{ font-size:13px; color:var(--mist); line-height:1.6; }
.team-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (min-width:1100px){ .team-grid{ grid-template-columns:repeat(4,1fr); } }
@media (max-width:780px){ .team-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .team-grid{ grid-template-columns:1fr; } }

/* hero badge chips (about page etc.) */
.badge-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:28px; }
.badge-chip{ font-size:12px; padding:8px 15px; border-radius:100px; border:1px solid var(--line); color:var(--mist); background:rgba(255,255,255,0.02); display:inline-flex; align-items:center; gap:7px; }
.badge-chip::before{ content:''; width:5px; height:5px; border-radius:50%; background:var(--cyan); box-shadow:0 0 6px var(--cyan); }
html[dir="rtl"] .badge-row{ direction:rtl; }

/* faq list (reuses value-item look with Q/A styling) */
.faq-list{ display:flex; flex-direction:column; }
.faq-item{ padding:24px 0; border-top:1px solid var(--line); display:grid; grid-template-columns:44px 1fr; gap:18px; }
.faq-item:last-child{ border-bottom:1px solid var(--line); }
.faq-item .fi-mark{ font-family:'Space Grotesk',sans-serif; color:var(--cyan); font-size:18px; font-weight:600; }
.faq-item h4{ font-size:15.5px; font-weight:600; margin-bottom:8px; }
.faq-item p{ font-size:13.5px; color:var(--mist); line-height:1.65; max-width:640px; }
html[dir="rtl"] .faq-item{ direction:rtl; }
.team-card{ border:1px solid var(--line); border-radius:14px; padding:22px; background:var(--panel); text-align:center; }
.team-avatar{ width:64px; height:64px; border-radius:50%; margin:0 auto 16px; background:linear-gradient(135deg,var(--blue),var(--violet)); }
.team-card h4{ font-size:14.5px; font-weight:600; }
.team-card span{ font-size:12px; color:var(--mist-dim); }

/* contact form */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:60px; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.field-group{ display:flex; flex-direction:column; gap:8px; margin-bottom:16px; }
.field-group label{ font-size:12px; color:var(--mist); font-family:'JetBrains Mono',monospace; letter-spacing:.04em; }
.field-group input, .field-group select, .field-group textarea{
  background:var(--panel); border:1px solid var(--line); border-radius:9px; padding:12px 14px;
  color:var(--white); font-family:'Inter',sans-serif; font-size:13.5px; outline:none; transition:border-color .2s;
  width:100%;
}
.field-group input:focus, .field-group select:focus, .field-group textarea:focus{ border-color:var(--cyan); }
.field-group textarea{ resize:vertical; min-height:110px; }
.contact-info{ display:flex; flex-direction:column; gap:26px; }
.info-item{ display:flex; gap:16px; align-items:flex-start; }
.info-icon{ width:38px; height:38px; border-radius:9px; background:linear-gradient(135deg, rgba(61,90,254,0.18), rgba(34,211,238,0.12)); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.info-item h4{ font-size:14px; font-weight:600; margin-bottom:4px; }
.info-item p{ font-size:13px; color:var(--mist); }

/* portfolio page problem/solution card */
.case-card{ border:1px solid var(--line); border-radius:16px; padding:30px; background:var(--panel); }
.case-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:20px; }
@media (max-width:780px){ .case-grid{ grid-template-columns:1fr; } }
.case-col{ border-top:1px solid var(--line); padding-top:14px; }
.case-col span{ font-size:11px; color:var(--cyan); font-family:'JetBrains Mono',monospace; }
.case-col p{ font-size:13.5px; color:var(--mist); margin-top:8px; line-height:1.6; }

/* case list grid (portfolio page) */
.case-list{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
@media (max-width:860px){ .case-list{ grid-template-columns:1fr; } }

/* ================= language switch + mobile nav ================= */
.lang-switch{ display:flex; gap:3px; margin-left:6px; align-items:center; }
.lang-btn{ background:transparent; border:1px solid var(--line); color:var(--mist); font-size:10.5px; padding:5px 7px; border-radius:6px; cursor:none; font-family:'JetBrains Mono',monospace; }
@media (max-width:860px){ .lang-btn{ cursor:pointer; } }
.lang-btn.active{ color:var(--void); background:var(--cyan); border-color:var(--cyan); }
.lang-btn:hover{ border-color:var(--cyan); }

.nav-toggle{ display:none; background:none; border:1px solid var(--line); color:var(--white); width:38px; height:38px; border-radius:8px; font-size:16px; }
@media (max-width:1080px){
  .nav-toggle{ display:block; }
  .navlinks{
    display:none; position:fixed; top:70px; left:0; right:0; background:var(--void);
    border-bottom:1px solid var(--line); flex-direction:column; gap:0; padding:10px 24px 20px;
    z-index:99;
  }
  .navlinks.open{ display:flex; }
  .navlinks a{ padding:14px 0; border-bottom:1px solid var(--line); }
  .lang-switch{ margin:14px 0 0; }
}

/* ---------- RTL support ---------- */
html[dir="rtl"] body{ font-family:'Inter','Noto Kufi Arabic',sans-serif; }
html[dir="rtl"] .mono{ direction:ltr; unicode-bidi:embed; }
html[dir="rtl"] .navlinks{ flex-direction:row-reverse; }
html[dir="rtl"] .hero-ctas, html[dir="rtl"] .foot-bottom, html[dir="rtl"] .filters,
html[dir="rtl"] .hud-row, html[dir="rtl"] .info-item, html[dir="rtl"] .value-item,
html[dir="rtl"] .form-row{ direction:rtl; }
html[dir="rtl"] .breadcrumb{ flex-direction:row-reverse; justify-content:flex-end; }
html[dir="rtl"] .sd-item::before{ content:''; }
html[dir="rtl"] .sd-item::after{ content:'—'; color:var(--cyan); margin-inline-start:6px; }
html[dir="rtl"] .price-list li::before{ content:''; }
html[dir="rtl"] .price-list li::after{ content:'✓'; color:var(--cyan); font-weight:700; }

/* ================= marquee ticker ================= */
.marquee-wrap{ overflow:hidden; border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:22px 0; }
.marquee-track{ display:flex; gap:0; width:max-content; animation:marquee 32s linear infinite; }
.marquee-track span{ font-family:'JetBrains Mono',monospace; font-size:13px; color:var(--mist); padding:0 28px; white-space:nowrap; display:flex; align-items:center; gap:28px; }
.marquee-track span::after{ content:'✦'; color:var(--cyan); font-size:10px; }
@keyframes marquee{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
html[dir="rtl"] .marquee-track{ animation-direction:reverse; }

/* ================= quick-fix band ================= */
.fix-band{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:50px; align-items:center; background:var(--panel); border:1px solid var(--line); border-radius:20px; padding:50px clamp(24px,4vw,56px); }
@media (max-width:900px){ .fix-band{ grid-template-columns:1fr; } }
.fix-chip-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
@media (max-width:560px){ .fix-chip-grid{ grid-template-columns:1fr; } }
.fix-chip{ border:1px solid var(--line); border-radius:10px; padding:14px 16px; background:var(--deep); font-size:13px; display:flex; align-items:center; gap:10px; }
.fix-chip .ic{ color:var(--cyan); font-size:15px; }

/* ================= subscriptions page ================= */
.sub-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
@media (max-width:980px){ .sub-grid{ grid-template-columns:1fr; } }
.task-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; }
@media (max-width:900px){ .task-grid{ grid-template-columns:1fr 1fr; } }
.task-chip{ border:1px solid var(--line); border-radius:12px; padding:20px; background:var(--panel); text-align:center; }
.task-chip .ic{ font-size:22px; margin-bottom:10px; }
.task-chip h4{ font-size:13.5px; font-weight:600; margin-bottom:6px; }
.task-chip p{ font-size:12px; color:var(--mist); line-height:1.5; }

/* ================= image fallback thumbs ================= */
.img-fallback{ position:relative; width:100%; height:100%; overflow:hidden; }
.img-fallback img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.avatar-fallback{ position:relative; overflow:hidden; }
.avatar-fallback img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

/* ================= theme toggle button ================= */
.theme-toggle{
  width:38px; height:38px; border-radius:8px; border:1px solid var(--line);
  background:rgba(255,255,255,0.02); color:var(--white); margin-left:10px;
  display:flex; align-items:center; justify-content:center; font-size:14px;
  cursor:none;
}
@media (max-width:860px){ .theme-toggle{ cursor:pointer; } }
.theme-toggle:hover{ border-color:var(--cyan); }
.theme-toggle .icon-sun{ display:none; }
.theme-toggle .icon-moon{ display:block; }
html[data-theme="light"] .theme-toggle .icon-sun{ display:block; }
html[data-theme="light"] .theme-toggle .icon-moon{ display:none; }
@media (max-width:900px){ .theme-toggle{ margin:14px 0 0; } }

/* =====================================================================
   LIGHT THEME
   ===================================================================== */
html[data-theme="light"]{
  --void:#F4F6FB;
  --deep:#FFFFFF;
  --panel:#FFFFFF;
  --line:#E3E7F0;
  --blue:#3D5AFE;
  --cyan:#0891B2;
  --violet:#7C3AED;
  --white:#10131C;
  --mist:#54607A;
  --mist-dim:#8A93AC;
}
html[data-theme="light"] body{
  background:var(--void);
}
html[data-theme="light"] nav{
  background:rgba(244,246,251,0.75);
  border-bottom:1px solid rgba(16,19,28,0.07);
}
html[data-theme="light"] .navlinks{ background:var(--void); }
html[data-theme="light"] .btn-ghost{
  background:rgba(16,19,28,0.02);
}
html[data-theme="light"] .hero h1{
  background:linear-gradient(180deg,#10131C 40%,rgba(16,19,28,0.68));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
html[data-theme="light"] .hud{
  box-shadow:0 0 0 1px rgba(16,19,28,0.03), 0 24px 60px rgba(16,19,28,0.10);
}
html[data-theme="light"] .bubble.bot{
  background:rgba(16,19,28,0.03);
}
html[data-theme="light"] .glow-blob{ opacity:0.5; }
html[data-theme="light"] ::selection{ background:var(--blue); color:#fff; }
html[data-theme="light"] .price-card.featured{
  background:linear-gradient(180deg, rgba(8,145,178,0.06), var(--panel) 40%);
}
html[data-theme="light"] .svc-card::before{
  background:radial-gradient(300px circle at var(--mx,50%) var(--my,0%), rgba(8,145,178,0.08), transparent 60%);
}
html[data-theme="light"] .eyebrow{ background:rgba(8,145,178,0.06); }
html[dir="rtl"][data-theme="light"] body{ font-family:'Inter','Noto Kufi Arabic',sans-serif; }

/* Floating chat widget styles moved to assets/chat.css (kept as its own
   file per project convention - see that file). */

/* ================= why-us band ================= */
.why-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media (max-width:900px){ .why-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .why-grid{ grid-template-columns:1fr; } }
.why-card{ border:1px solid var(--line); border-radius:14px; padding:28px 24px; background:var(--panel); }
.why-card .icon{ width:42px; height:42px; border-radius:10px; background:linear-gradient(135deg, rgba(61,90,254,0.18), rgba(34,211,238,0.12)); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:18px; margin-bottom:18px; }
.why-card h3{ font-size:16px; font-weight:600; margin-bottom:10px; }
.why-card p{ font-size:13px; color:var(--mist); line-height:1.6; }

/* ================= comparison table ================= */
.compare-wrap{ overflow-x:auto; border:1px solid var(--line); border-radius:14px; background:var(--panel); }
.compare-table{ width:100%; border-collapse:collapse; min-width:640px; }
.compare-table th, .compare-table td{ padding:16px 20px; text-align:left; border-bottom:1px solid var(--line); font-size:13.5px; }
.compare-table th{ font-family:'Space Grotesk',sans-serif; font-size:14px; color:var(--white); font-weight:600; }
.compare-table td:first-child, .compare-table th:first-child{ color:var(--mist); font-size:13px; white-space:nowrap; }
.compare-table td:not(:first-child), .compare-table th:not(:first-child){ text-align:center; }
.compare-table tbody tr:last-child td{ border-bottom:none; }
.compare-table .yes{ color:var(--cyan); font-weight:700; }
.compare-table .no{ color:var(--mist-dim); }
.compare-table th.featured-col{ color:var(--cyan); }
html[dir="rtl"] .compare-table th, html[dir="rtl"] .compare-table td{ text-align:right; }
html[dir="rtl"] .compare-table td:not(:first-child), html[dir="rtl"] .compare-table th:not(:first-child){ text-align:center; }

/* ================= guarantee / trust band ================= */
.guarantee-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
@media (max-width:900px){ .guarantee-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .guarantee-grid{ grid-template-columns:1fr; } }
.guarantee-card{ text-align:center; padding:26px 18px; }
.guarantee-card .icon{ width:46px; height:46px; margin:0 auto 16px; border-radius:12px; background:linear-gradient(135deg, rgba(61,90,254,0.18), rgba(34,211,238,0.12)); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:19px; }
.guarantee-card h4{ font-size:14.5px; font-weight:600; margin-bottom:8px; }
.guarantee-card p{ font-size:12.5px; color:var(--mist); line-height:1.6; }

/* ================= stat highlight strip ================= */
.stat-strip{ display:grid; grid-template-columns:repeat(4,1fr); border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--panel); }
@media (max-width:760px){ .stat-strip{ grid-template-columns:1fr 1fr; } }
.stat-strip .cell{ padding:26px 20px; border-right:1px solid var(--line); }
.stat-strip .cell:last-child{ border-right:none; }
@media (max-width:760px){ .stat-strip .cell:nth-child(2n){ border-right:none; } .stat-strip .cell{ border-bottom:1px solid var(--line); } .stat-strip .cell:nth-last-child(-n+2){ border-bottom:none; } }
.stat-strip .n{ font-family:'Space Grotesk',sans-serif; font-size:28px; font-weight:600; color:var(--cyan); }
.stat-strip .l{ font-size:12px; color:var(--mist-dim); margin-top:6px; }

/* ================= blog article extras ================= */
.article-meta-bar{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; max-width:820px; margin:0 auto 8px; font-size:12.5px; color:var(--mist-dim); }
.article-meta-bar span{ display:flex; align-items:center; gap:6px; }
.author-box{ max-width:820px; margin:48px auto 0; padding:24px; border:1px solid var(--line); border-radius:14px; background:var(--panel); display:flex; gap:16px; align-items:flex-start; }
.author-box .test-avatar{ width:44px; height:44px; flex-shrink:0; }
.author-box h4{ font-size:14.5px; font-weight:600; margin-bottom:4px; }
.author-box p{ font-size:13px; color:var(--mist); line-height:1.6; }
.share-row{ display:flex; gap:10px; align-items:center; max-width:820px; margin:28px auto; flex-wrap:wrap; }
.share-row .lbl{ font-size:12px; color:var(--mist-dim); font-family:'JetBrains Mono',monospace; letter-spacing:.06em; }
.share-btn{ font-size:12.5px; padding:8px 15px; border-radius:100px; border:1px solid var(--line); color:var(--mist); background:rgba(255,255,255,0.02); }
.share-btn:hover{ border-color:var(--cyan); color:var(--white); }
.newsletter-band{ max-width:820px; margin:0 auto; padding:30px; border:1px solid var(--line); border-radius:14px; background:linear-gradient(135deg, rgba(61,90,254,0.08), rgba(34,211,238,0.05)); display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap; }
.newsletter-band h4{ font-size:16px; font-weight:600; margin-bottom:6px; }
.newsletter-band p{ font-size:13px; color:var(--mist); }
.toc-box{ max-width:820px; margin:0 auto 32px; padding:18px 22px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.toc-box .lbl{ font-size:11px; color:var(--mist-dim); font-family:'JetBrains Mono',monospace; letter-spacing:.08em; margin-bottom:10px; display:block; }

/* =========================================================
   Home selected-work image ratio fix
   Source images are 800 x 600 (4:3).
   Keep this scoped to the home #work section so the full
   portfolio page can keep its own card presentation.
   ========================================================= */
#work .port-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#work .port-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}

#work .port-thumb img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

#work .port-body {
  flex: 1 1 auto;
}

@media (max-width: 980px) {
  #work .port-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #work .port-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
