/* =========================================================
   DigiPlus Consulting — Design System
   Palette drawn from brand mark: electric blue + signal orange
   on a warm off-white field, echoing the logo's node/circuit
   motif throughout as the site's signature device.
   ========================================================= */

:root{
  --cream:        #FFF8F5;
  --white:        #FFFFFF;
  --panel:        #F4EEFF10; /* unused fallback */
  --ink:          #0B1130;
  --slate:        #5C6178;
  --slate-soft:   #8489A0;
  --line:         rgba(11,17,48,0.10);
  --line-strong:  rgba(11,17,48,0.16);

  --blue:         #1F48FF;
  --blue-dim:     #3559FE;
  --blue-deep:    #0A1140;
  --blue-deeper:  #070C2E;

  --orange:       #F46530;
  --orange-light: #FF914D;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-soft: 0 20px 60px -25px rgba(10,17,64,0.35);
  --shadow-tight: 0 8px 24px -12px rgba(10,17,64,0.3);

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  --container: 1220px;
  --nav-h: 84px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html[dir="rtl"] body{ direction:rtl; }

body{
  margin:0;
  font-family:var(--font-body);
  color:var(--ink);
  background:var(--cream);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input,textarea,select{ font-family:inherit; }

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 28px;
}

h1,h2,h3,h4{
  font-family:var(--font-display);
  line-height:1.08;
  margin:0;
  letter-spacing:-0.01em;
}

.eyebrow{
  font-family:var(--font-mono);
  font-size:12.5px;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--blue);
  display:inline-flex;
  align-items:center;
  gap:10px;
}
.eyebrow::before{
  content:"";
  width:22px; height:1px;
  background:var(--orange);
  display:inline-block;
}
[dir="rtl"] .eyebrow::before{ display:none; }
[dir="rtl"] .eyebrow::after{
  content:"";
  width:22px; height:1px;
  background:var(--orange);
  display:inline-block;
}

.lead{
  font-size:19px;
  line-height:1.6;
  color:var(--slate);
  max-width:56ch;
}

/* focus visibility */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{
  outline:2px solid var(--orange);
  outline-offset:3px;
  border-radius:4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
}

/* =========================== NAV =========================== */
.nav{
  position:fixed; top:0; left:0; right:0; z-index:1000;
  height:var(--nav-h);
  display:flex; align-items:center;
  background:rgba(255,248,245,0.82);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  transition:box-shadow .3s ease, background .3s ease;
}
.nav.is-scrolled{ box-shadow:0 6px 30px -18px rgba(10,17,64,0.4); }
.nav .container{ display:flex; align-items:center; justify-content:space-between; gap:24px; }

.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ height:38px; width:auto; }
.brand-fallback{ font-family:var(--font-display); font-weight:700; font-size:20px; }

.nav-links{ display:flex; align-items:center; gap:6px; }
.nav-links a{
  padding:10px 16px;
  font-size:14.5px; font-weight:600;
  color:var(--ink);
  border-radius:999px;
  transition:background .2s ease, color .2s ease;
  white-space:nowrap;
}
.nav-links a:hover{ background:rgba(31,72,255,0.08); color:var(--blue); }
.nav-links a.active{ background:var(--blue); color:#fff; }

.nav-actions{ display:flex; align-items:center; gap:10px; }

.lang-switch{
  display:flex; align-items:center;
  border:1px solid var(--line-strong);
  border-radius:999px;
  padding:3px;
  font-family:var(--font-mono);
  font-size:12px;
  background:var(--white);
}
.lang-switch button{
  border:none; background:transparent;
  padding:6px 12px; border-radius:999px;
  color:var(--slate); font-weight:600;
  letter-spacing:.04em;
  transition:background .2s ease,color .2s ease;
}
.lang-switch button.active{ background:var(--ink); color:#fff; }

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 24px;
  border-radius:999px;
  font-weight:700; font-size:14.5px;
  border:1px solid transparent;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
  white-space:nowrap;
}
.btn-primary{ background:var(--blue); color:#fff; box-shadow:var(--shadow-tight); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 14px 30px -12px rgba(31,72,255,0.55); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--line-strong); }
.btn-ghost:hover{ border-color:var(--ink); }
.btn-orange{ background:var(--orange); color:#fff; box-shadow:0 10px 24px -10px rgba(244,101,48,0.6); }
.btn-orange:hover{ transform:translateY(-2px); }
.btn-light{ background:#fff; color:var(--blue-deep); }
.btn-light:hover{ transform:translateY(-2px); }

.nav-burger{
  display:none;
  width:42px; height:42px;
  border:1px solid var(--line-strong);
  border-radius:12px;
  background:var(--white);
  align-items:center; justify-content:center;
}
.nav-burger span,.nav-burger span::before,.nav-burger span::after{
  content:""; display:block; width:18px; height:2px; background:var(--ink);
  position:relative; transition:transform .25s ease, opacity .25s ease;
}
.nav-burger span::before{ position:absolute; top:-6px; }
.nav-burger span::after{ position:absolute; top:6px; }
.nav-burger.is-open span{ background:transparent; }
.nav-burger.is-open span::before{ top:0; transform:rotate(45deg); background:var(--ink); }
.nav-burger.is-open span::after{ top:0; transform:rotate(-45deg); background:var(--ink); }

.mobile-panel{
  position:fixed; inset:var(--nav-h) 0 0 0;
  background:var(--cream);
  z-index:999;
  display:none;
  flex-direction:column;
  padding:24px 28px 40px;
  gap:6px;
  overflow-y:auto;
  border-top:1px solid var(--line);
}
.mobile-panel.is-open{ display:flex; }
.mobile-panel a{
  padding:16px 6px; font-size:19px; font-weight:700;
  border-bottom:1px solid var(--line);
  font-family:var(--font-display);
}
.mobile-panel .btn{ margin-top:18px; width:100%; }

/* =========================== NODE / CIRCUIT MOTIF =========================== */
/* the signature device, echoing the logo's connected-node icon */
.node-field{ position:absolute; inset:0; overflow:hidden; pointer-events:none; }
.node-field svg{ position:absolute; }
.node-dot{ fill:var(--orange); }
.node-dot.alt{ fill:var(--blue); }
.node-line{ stroke:var(--blue); stroke-width:1.4; opacity:.35; }

.pulse{
  animation:pulse 3.4s ease-in-out infinite;
  transform-origin:center;
}
@keyframes pulse{
  0%,100%{ transform:scale(1); opacity:.9; }
  50%{ transform:scale(1.35); opacity:.4; }
}

.divider-nodes{
  display:flex; align-items:center; justify-content:center;
  gap:10px; margin:0 auto;
}
.divider-nodes .dot{ width:6px; height:6px; border-radius:50%; background:var(--orange); }
.divider-nodes .seg{ width:60px; height:1px; background:var(--line-strong); }

/* =========================== HERO =========================== */
.hero{
  position:relative;
  padding:calc(var(--nav-h) + 92px) 0 100px;
  background:var(--cream);
  overflow:hidden;
}
.hero .container{
  display:grid;
  grid-template-columns:1.05fr 0.85fr;
  gap:56px;
  align-items:center;
  position:relative;
  z-index:2;
}
.hero h1{
  font-size:clamp(40px,5.4vw,68px);
  color:var(--ink);
}
.hero h1 em{
  font-style:normal;
  color:var(--blue);
  position:relative;
}
.hero-lead{ margin-top:22px; }
.hero-cta{ display:flex; gap:14px; margin-top:36px; flex-wrap:wrap; }

.hero-stats{
  display:flex; gap:34px; margin-top:56px; flex-wrap:wrap;
}
.hero-stat b{
  display:block; font-family:var(--font-display); font-size:30px; color:var(--ink);
}
.hero-stat span{
  font-family:var(--font-mono); font-size:11.5px; letter-spacing:.06em;
  color:var(--slate-soft); text-transform:uppercase;
}

.hero-visual{
  position:relative;
  aspect-ratio:1/1.02;
  border-radius:var(--radius-lg);
  background:linear-gradient(155deg,var(--blue-deep),var(--blue-deeper) 70%);
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}
.hero-visual .tag{
  position:absolute; z-index:3;
  background:rgba(255,248,245,0.96);
  color:var(--ink);
  padding:12px 16px;
  border-radius:14px;
  font-family:var(--font-mono);
  font-size:12px;
  box-shadow:var(--shadow-tight);
  display:flex; align-items:center; gap:8px;
}
.hero-visual .tag .dot{ width:7px; height:7px; border-radius:50%; background:var(--orange); }
.hero-visual .tag.t1{ top:9%; left:8%; }
.hero-visual .tag.t2{ bottom:14%; right:8%; }
.hero-visual .tag.t3{ top:44%; right:-6%; }

/* =========================== SECTIONS =========================== */
section{ position:relative; }
.section{ padding:110px 0; }
.section.tight{ padding:80px 0; }
.section-head{ max-width:640px; margin-bottom:56px; }
.section-head h2{ font-size:clamp(30px,3.6vw,44px); margin-top:16px; }
.section-head .lead{ margin-top:16px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head.center .eyebrow{ justify-content:center; }

.section-alt{ background:var(--white); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-dark{ background:var(--blue-deep); color:#fff; }
.section-dark .slate-on-dark{ color:rgba(255,255,255,0.68); }

/* Feature / service cards */
.grid{ display:grid; gap:24px; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }

.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:32px 28px;
  transition:transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position:relative;
}
.card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-tight); border-color:transparent; }

.card-icon{
  width:52px; height:52px;
  border-radius:14px;
  background:rgba(31,72,255,0.08);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:22px;
}
.card-icon svg{ width:24px; height:24px; }
.card h3{ font-size:19px; margin-bottom:10px; }
.card p{ color:var(--slate); font-size:15px; line-height:1.65; margin:0; }
.card .card-tag{
  font-family:var(--font-mono); font-size:11px; letter-spacing:.08em;
  color:var(--orange); text-transform:uppercase; margin-bottom:14px; display:block;
}

/* Process / timeline (real sequence -> numbered markers justified) */
.process{ display:grid; grid-template-columns:repeat(4,1fr); gap:0; position:relative; }
.process::before{
  content:""; position:absolute; top:26px; left:0; right:0; height:1px;
  background:repeating-linear-gradient(90deg,var(--line-strong) 0 8px,transparent 8px 16px);
}
.process-step{ position:relative; padding-top:70px; padding-inline-end:24px; }
.process-step .num{
  position:absolute; top:0; left:0;
  width:52px; height:52px; border-radius:50%;
  background:var(--cream); border:1.5px solid var(--blue);
  display:flex; align-items:center; justify-content:center;
  font-family:var(--font-mono); font-weight:700; color:var(--blue); font-size:15px;
  z-index:2;
}
.process-step h4{ font-size:16.5px; margin-bottom:8px; }
.process-step p{ color:var(--slate); font-size:14.5px; line-height:1.6; margin:0; }

/* Logos / trust strip */
.trust-strip{
  display:flex; align-items:center; justify-content:space-between;
  gap:20px; flex-wrap:wrap;
  padding:34px 0; opacity:.8;
}
.trust-strip span{
  font-family:var(--font-mono); font-size:13px; color:var(--slate-soft);
  letter-spacing:.05em;
}

/* CTA band */
.cta-band{
  border-radius:var(--radius-lg);
  background:linear-gradient(120deg,var(--blue-deep),var(--blue-deeper));
  color:#fff;
  padding:64px;
  display:flex; align-items:center; justify-content:space-between;
  gap:40px; flex-wrap:wrap;
  position:relative; overflow:hidden;
}
.cta-band h2{ font-size:clamp(26px,3vw,36px); max-width:520px; }
.cta-band p{ color:rgba(255,255,255,0.7); margin-top:12px; max-width:480px; }

/* Footer */
.footer{ background:var(--blue-deeper); color:rgba(255,255,255,0.72); padding:76px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:40px; }
.footer .brand img{ height:34px; filter:brightness(0) invert(1); }
.footer-col h5{
  font-family:var(--font-mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase;
  color:#fff; margin-bottom:18px;
}
.footer-col ul li{ margin-bottom:12px; }
.footer-col a{ color:rgba(255,255,255,0.68); font-size:14.5px; transition:color .2s ease; }
.footer-col a:hover{ color:var(--orange-light); }
.footer-bottom{
  margin-top:60px; padding-top:24px; border-top:1px solid rgba(255,255,255,0.12);
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:13px; color:rgba(255,255,255,0.5);
}
.footer p.tag-line{ margin-top:16px; font-size:14.5px; max-width:34ch; color:rgba(255,255,255,0.6); }
.social-row{ display:flex; gap:10px; margin-top:20px; }
.social-row a{
  width:38px; height:38px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.18);
  display:flex; align-items:center; justify-content:center;
}
.social-row a:hover{ border-color:var(--orange-light); }

/* =========================== PAGE HEADER (inner pages) =========================== */
.page-header{
  padding:calc(var(--nav-h) + 70px) 0 70px;
  background:var(--cream);
  position:relative;
  overflow:hidden;
}
.page-header .container{ position:relative; z-index:2; }
.page-header h1{ font-size:clamp(34px,4.6vw,54px); margin-top:16px; }
.breadcrumb{
  font-family:var(--font-mono); font-size:12px; color:var(--slate-soft);
  margin-top:14px; display:flex; gap:8px; align-items:center;
}
.breadcrumb a{ color:var(--blue); }

/* =========================== ABOUT PAGE =========================== */
.value-row{ display:flex; gap:22px; align-items:flex-start; padding:26px 0; border-bottom:1px solid var(--line); }
.value-row:first-child{ border-top:1px solid var(--line); }
.value-row .vnum{ font-family:var(--font-mono); color:var(--orange); font-size:14px; padding-top:4px; min-width:32px; }
.value-row h4{ font-size:18px; margin-bottom:6px; }
.value-row p{ color:var(--slate); margin:0; max-width:60ch; font-size:15px; line-height:1.65; }

.stat-band{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.stat-box{ text-align:center; padding:34px 20px; border-radius:var(--radius-md); background:var(--white); border:1px solid var(--line); }
.stat-box b{ font-family:var(--font-display); font-size:38px; display:block; color:var(--blue); }
.stat-box span{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.05em; color:var(--slate-soft); text-transform:uppercase; }

.team-card{ text-align:center; }
.team-avatar{
  width:100%; aspect-ratio:1; border-radius:var(--radius-md);
  background:linear-gradient(155deg,var(--blue),var(--blue-dim));
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px; position:relative; overflow:hidden;
}
.team-avatar span{ font-family:var(--font-display); font-size:34px; color:#fff; font-weight:700; }
.team-card h4{ font-size:17px; margin-bottom:4px; }
.team-card p{ font-family:var(--font-mono); font-size:12px; color:var(--orange); text-transform:uppercase; letter-spacing:.05em; margin:0; }

/* =========================== SERVICES PAGE =========================== */
.service-block{
  display:grid; grid-template-columns:0.9fr 1.1fr; gap:60px; align-items:center;
  padding:74px 0; border-bottom:1px solid var(--line);
}
.service-block:last-child{ border-bottom:none; }
.service-block.reverse{ direction:ltr; }
.service-block.reverse .service-media{ order:2; }
.service-block.reverse .service-copy{ order:1; }
.service-media{
  aspect-ratio:4/3.2; border-radius:var(--radius-lg);
  background:var(--white); border:1px solid var(--line);
  position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.service-index{
  font-family:var(--font-display); font-size:140px; font-weight:700;
  color:rgba(31,72,255,0.08); position:absolute; top:-10px; left:10px; line-height:1;
}
.service-copy .eyebrow{ margin-bottom:16px; }
.service-copy h3{ font-size:clamp(24px,2.6vw,32px); margin-bottom:16px; }
.service-copy p{ color:var(--slate); font-size:16px; line-height:1.7; margin-bottom:22px; }
.service-list{ display:flex; flex-direction:column; gap:12px; }
.service-list li{ display:flex; gap:12px; align-items:flex-start; font-size:14.5px; color:var(--ink); }
.service-list svg{ flex:none; margin-top:2px; width:16px; height:16px; }

.pricing-note{
  border-radius:var(--radius-md); border:1px dashed var(--line-strong);
  padding:34px; display:flex; align-items:center; gap:24px; justify-content:space-between; flex-wrap:wrap;
}

/* =========================== CONTACT PAGE =========================== */
.contact-grid{ display:grid; grid-template-columns:0.85fr 1.15fr; gap:56px; }
.contact-card{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:28px; display:flex; gap:16px; align-items:flex-start; margin-bottom:16px;
}
.contact-card .card-icon{ margin-bottom:0; flex:none; }
.contact-card h4{ font-size:15.5px; margin-bottom:4px; }
.contact-card p, .contact-card a{ color:var(--slate); font-size:14.5px; margin:0; }
.contact-card a:hover{ color:var(--blue); }

.form-panel{
  background:var(--white); border:1px solid var(--line); border-radius:var(--radius-lg);
  padding:44px;
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field{ margin-bottom:20px; }
.field label{
  display:block; font-family:var(--font-mono); font-size:11.5px; letter-spacing:.06em;
  text-transform:uppercase; color:var(--slate-soft); margin-bottom:8px;
}
.field input,.field textarea,.field select{
  width:100%; padding:14px 16px; border-radius:12px; border:1px solid var(--line-strong);
  background:var(--cream); font-size:15px; color:var(--ink); transition:border-color .2s ease, background .2s ease;
}
.field input:focus,.field textarea:focus,.field select:focus{
  outline:none; border-color:var(--blue); background:#fff;
}
.field textarea{ resize:vertical; min-height:130px; }
.form-note{ font-size:12.5px; color:var(--slate-soft); margin-top:6px; }
.form-success{
  display:none; align-items:center; gap:12px; padding:16px 18px;
  background:rgba(31,72,255,0.08); border-radius:12px; margin-top:18px;
  font-size:14.5px; color:var(--blue);
}
.form-success.is-visible{ display:flex; }

.map-strip{
  margin-top:20px; border-radius:var(--radius-md); overflow:hidden; border:1px solid var(--line);
  aspect-ratio:16/6; background:var(--white); position:relative;
}

/* FAQ */
.faq-item{ border-bottom:1px solid var(--line); padding:22px 0; }
.faq-q{ display:flex; align-items:center; justify-content:space-between; cursor:pointer; gap:16px; }
.faq-q h4{ font-size:16.5px; font-weight:600; }
.faq-q .plus{ font-family:var(--font-mono); font-size:18px; color:var(--orange); transition:transform .3s ease; flex:none; }
.faq-item.is-open .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .35s ease; }
.faq-a p{ color:var(--slate); font-size:14.5px; line-height:1.65; padding-top:14px; margin:0; max-width:64ch; }

/* =========================== REVEAL ANIM =========================== */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* =========================== RESPONSIVE =========================== */
@media (max-width:1080px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .process{ grid-template-columns:repeat(2,1fr); row-gap:40px; }
  .process::before{ display:none; }
  .footer-grid{ grid-template-columns:1fr 1fr; row-gap:36px; }
  .stat-band{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:920px){
  .hero .container{ grid-template-columns:1fr; }
  .hero-visual{ max-width:480px; margin:0 auto; }
  .contact-grid{ grid-template-columns:1fr; }
  .service-block, .service-block.reverse{ grid-template-columns:1fr; }
  .service-block.reverse .service-media,.service-block.reverse .service-copy{ order:0; }
}
@media (max-width:860px){
  .nav-links{ display:none; }
  .nav-burger{ display:flex; }
  .grid-3{ grid-template-columns:1fr 1fr; }
}
@media (max-width:640px){
  .container{ padding:0 20px; }
  .grid-3,.grid-2,.grid-4{ grid-template-columns:1fr; }
  .cta-band{ padding:40px 26px; flex-direction:column; align-items:flex-start; }
  .footer-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .hero{ padding-top:calc(var(--nav-h) + 56px); }
  .section{ padding:76px 0; }
  .form-panel{ padding:28px; }
  .lang-switch{ display:none; }
  .mobile-panel .lang-switch{ display:flex; margin-top:10px; }
}
