/* ========== Base ========== */
:root{
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #475569;
  --navy: #0f172a;
  --navy2:#0b1220;
  --blue: #2563eb;
  --blue2:#1d4ed8;
  --line: rgba(15,23,42,.12);
  --shadow: 0 10px 30px rgba(2,6,23,.08);
  --radius: 14px;
  --container: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:var(--bg);
  line-height:1.6;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
h1,h2,h3{line-height:1.2; margin:0 0 12px}
p{margin:0 0 16px}
.muted{color:var(--muted)}

/* layout */
.container{
  width: min(1200px, 92%);
  margin-inline: auto;
}



/* ========== Header (sticky) ========== */
.header{
  position: fixed;     /* instead of sticky */
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;

  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.header__inner{
  height: 74px;
  display:flex;
  align-items:center;
  gap: 18px;
}

/* brand */
.brand{
  display:flex;
  align-items:center;
  min-width: 140px;
}
.brand__logo{
  height: 34px;
  width: auto;
}
.brand__logo--dark{display:none}

/* nav */
.nav{
  display:flex;
  align-items:center;
  gap: 18px;
  margin-left: auto;
}
.nav__link{
  font-size: 14px;
  letter-spacing: .2px;
  opacity: .9;
  padding: 10px 10px;
  border-radius: 10px;
  transition: background .2s ease, opacity .2s ease;
}
.nav__link:hover{
  background: rgba(255,255,255,.10);
  opacity: 1;
}

/* phone */
.phone{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  transition: background .2s ease, transform .2s ease;
  white-space: nowrap;
}
.phone:hover{background: rgba(255,255,255,.14); transform: translateY(-1px)}
.phone__icon{opacity:.9}
.phone__text{font-weight: 600; font-size: 14px}

/* hamburger (mobile) */
.navToggle{
  display:none;
  margin-left: 6px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.navToggle span{
  display:block;
  height: 2px;
  margin: 7px 10px;
  background: #fff;
  border-radius: 2px;
}

/* mobile nav panel */
.mobileNav{
  display:none;
  background: rgba(15,23,42,.98);
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobileNav__link{
  display:block;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: #fff;
  opacity:.92;
}
.mobileNav__link:hover{opacity:1}
.mobileNav__link--phone{font-weight:700}
.mobileNav--open{display:block}

/* scrolled state (white header + dark text + logo swap) */
.header--scrolled{
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(2,6,23,.08);
  
}

.header--scrolled .nav__links a{
  color: var(--text);
}

.header--scrolled .phone{
  color: var(--text);
  border-color: rgba(2,6,23,.16);
}
.header--scrolled .nav__link{color: var(--text)}
.header--scrolled .nav__link:hover{background: rgba(15,23,42,.06)}
.header--scrolled .phone{
  background: rgba(15,23,42,.06);
  color: var(--text);
}
.header--scrolled .brand__logo--light{display:none}
.header--scrolled .brand__logo--dark{display:block}
.header--scrolled .navToggle{border-color: rgba(15,23,42,.18)}
.header--scrolled .navToggle span{background: var(--text)}

/* default header on hero (dark) */
.header .nav__link,
.header .phone,
.header .phone__text{color:#fff}
.header .brand__logo--light{display:block}
.header .brand__logo--dark{display:none}

/* ========== Hero ========== */
.hero{
  position: relative;
  min-height: 74vh;
  display:flex;
  align-items:center;
  color: #fff;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 70%);
  overflow:hidden;
  padding-top: 74px;
}
.hero__bg{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 70% 30%, rgba(37,99,235,.15), transparent 60%),
    linear-gradient(to bottom, rgba(255,255,255,.06), rgba(255,255,255,0) 60%);
  pointer-events:none;
}
.hero__inner{
  position: relative;
  padding: 110px 0 92px;
}
.hero__eyebrow{
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .85;
  margin-bottom: 14px;
}
.hero__title{
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 900px;
}

.hero__subtitle{
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 28px;
  color: rgba(255,255,255,0.85);
}

.hero__trust{
  margin-top: 16px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.75);
}

.hero__lead{
  max-width: 780px;
  font-size: 18px;
  color: rgba(255,255,255,.86);
  margin-bottom: 26px;
}
.hero__cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .2px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.btn--primary{
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover{background: var(--blue2); transform: translateY(-1px)}
.btn--secondary{
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  background: rgba(255,255,255,.06);
}
.btn--secondary:hover{background: rgba(255,255,255,.10); transform: translateY(-1px)}

/* ========== Sections ========== */
.section{
  padding: 72px 0;
}
.section--alt{
  background: #f7f8fb;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section h2{
  font-size: 28px;
  margin-bottom: 10px;
}
.footer{
  border-top: 1px solid var(--line);
  padding: 26px 0;
  font-size: 14px;
}
.footer__inner{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 16px;
}
.footer__right{
  text-align:right;
  color: var(--muted);
}
.footer__right a{color: var(--muted)}
.footer__right a:hover{color: var(--text)}

/* ========== Responsive ========== */
@media (max-width: 980px){
  .nav{display:none}
  .navToggle{display:block}
  .phone{margin-left:auto}
  .hero{min-height: 68vh}
  .hero__inner{padding: 100px 0 78px}
}

@media (max-width: 560px){
  .header__inner{height: 70px}
  .brand{min-width: 120px}
  .brand__logo{height: 30px}
  .phone__text{display:none}
  .hero__inner{padding: 92px 0 66px}
  .hero__title{font-size: 34px}
  .hero__lead{font-size: 16px}
  .section{padding: 56px 0}
}

/* Force dark menu text when scrolled */
.header--scrolled .nav__links a{
  color: #0f172a !important;
}

.header--scrolled .phone{
  color: #0f172a !important;
  border-color: rgba(2,6,23,.16) !important;
}

/* ADD THIS NEW BLOCK UNDER */
#siteHeader.header--scrolled .nav__link{
  color: #0f172a !important;
}

#siteHeader.header--scrolled .phone{
  color: #0f172a !important;
  border-color: rgba(2,6,23,.16) !important;
}

/* Force correct logo + phone colors when scrolled (overrides late .header rules) */
#siteHeader.header--scrolled .brand__logo--light{ display:none !important; }
#siteHeader.header--scrolled .brand__logo--dark{ display:block !important; }

#siteHeader.header--scrolled .phone,
#siteHeader.header--scrolled .phone__text{
  color: #0f172a !important;
}

/* Services */
.services{
  display: flex;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.service{
  flex: 1 1 280px;
}

.service{
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(2,6,23,0.08);
  border-radius: 16px;
  padding: 18px 18px 16px;
}

.section--alt .service{
  background: rgba(255,255,255,0.85);
}

.service h3{
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.service p{
  margin: 0;
  color: rgba(2,6,23,0.75);
  line-height: 1.55;
}

.services__target{
  margin: 6px 0 18px;
  color: rgba(2,6,23,0.6);
  font-size: 0.95rem;
}

/* Advantages */
.advantages{
  display: flex;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.advantage{
  flex: 1 1 280px;
}

.advantage h3{
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.advantage p{
  margin: 0;
  color: rgba(2,6,23,0.75);
  line-height: 1.55;
}

/* Technologies */
.tech-list{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tech-item{
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(2,6,23,0.06);
  font-size: 0.9rem;
}

/* Contact */
.contact-intro{
  margin: 0 0 16px;
  max-width: 820px;
  color: rgba(2,6,23,0.75);
  line-height: 1.65;
}

.contact-details{
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 14px 0 18px;
}

.contact-details div{
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(2,6,23,0.08);
  border-radius: 12px;
  padding: 10px 14px;
}

.contact-checklist{
  margin: 0;
  padding-left: 18px;
  color: rgba(2,6,23,0.75);
  line-height: 1.6;
}

.contact-checklist li{
  margin: 6px 0;
}

/* Contact form */
.contact-form{
  margin-top: 28px;
  max-width: 720px;
}

.form-row{
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-row label{
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: rgba(2,6,23,0.75);
}

.form-row input,
.form-row textarea{
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(2,6,23,0.15);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-row input:focus,
.form-row textarea:focus{
  outline: none;
  border-color: #0f172a;
}

.form-note{
  font-size: 0.85rem;
  margin-top: 10px;
  color: rgba(2,6,23,0.6);
}

/* About */
.about-intro{
  max-width: 820px;
  color: rgba(2,6,23,0.8);
  line-height: 1.65;
  margin: 0 0 12px;
}

#about p{
  max-width: 900px;
  line-height: 1.7;
}

/* Process */
.process-steps{
  display: flex;
  gap: 18px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.process-step{
  flex: 1 1 280px;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(2,6,23,0.08);
  border-radius: 16px;
  padding: 18px 18px 16px;
}

.process-step h3{
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.process-step p{
  margin: 0;
  color: rgba(2,6,23,0.75);
  line-height: 1.55;
}

/* Issues */
.issues{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.issue{
  flex: 1 1 200px;
  max-width: 360px;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(2,6,23,0.08);
  border-radius: 16px;
  padding: 18px 18px 16px;
}

.issue h3{
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.issue p{
  margin: 0;
  color: rgba(2,6,23,0.75);
  line-height: 1.55;
}

/* Issues CTA */
.issues-cta{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(2,6,23,0.08);
  max-width: 900px;
  font-size: 0.95rem;
  color: rgba(2,6,23,0.75);
}

.issues-cta a{
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(2,6,23,0.4);
}

.issues-cta a:hover{
  border-bottom-color: rgba(2,6,23,0.8);
}

/* About credibility */
.about-credibility{
  margin-top: 14px;
  font-weight: 500;
  color: rgba(2,6,23,0.85);
}

/* About scope */
.about-scope{
  margin-top: 8px;
  font-size: 0.92rem;
  color: rgba(2,6,23,0.65);
}

/* Technical depth */
.tech-depth{
  margin-top: 28px;
  max-width: 900px;
}

.tech-depth h3{
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.tech-depth ul{
  margin: 0;
  padding-left: 18px;
  color: rgba(2,6,23,0.75);
  line-height: 1.6;
}

.tech-depth li{
  margin: 6px 0;
}

/* Services lead */
.services__lead{
  margin: 10px 0 10px;
  max-width: 900px;
  color: rgba(2,6,23,0.75);
  line-height: 1.65;
}

/* Services approach */
.services-approach{
  margin-top: 22px;
  max-width: 900px;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(2,6,23,0.8);
  border-left: 3px solid rgba(2,6,23,0.2);
  padding-left: 14px;
}

/* Contact support */
.contact-support{
  margin: 8px 0 18px;
  font-size: 0.92rem;
  color: rgba(2,6,23,0.7);
}

/* About scale */
.about-scale{
  margin-top: 6px;
  font-size: 0.92rem;
  color: rgba(2,6,23,0.6);
}

/* Form status */
.form-status{
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(2,6,23,0.12);
  font-size: 0.95rem;
}

.form-status--ok{
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.35);
}

.form-status--err{
  background: rgba(239,68,68,0.10);
  border-color: rgba(239,68,68,0.35);
}

/* Footer legal */
.footer__legal{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(2,6,23,0.55);
  line-height: 1.6;
}

/* Hero diagram layout */
.hero__layout{
  display: flex;
  align-items: center;
  gap: 40px;
}

.hero__content{
  flex: 1 1 520px;
}

.hero__diagram{
  flex: 0 0 420px;
  max-width: 420px;
  opacity: 0.9;
}

.hero__diagram svg{
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px){
  .hero__layout{
    display: block;
  }
  .hero__diagram{
    display: none;
  }
}

/* Hero pills (visual anchors) */
.hero-pills{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-pill{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
}

.hero-pill__icon{
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1;
}