/* ============================================================
   SCALED HOLDINGS — Global Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1B52D4;
  --blue-dark:  #1340A8;
  --blue-light: #EBF0FD;
  --navy:       #04091A;
  --ink:        #080D1C;
  --soft:       #374060;
  --muted:      #68758F;
  --border:     #E4E8F2;
  --bg:         #F5F7FC;
  --white:      #FFFFFF;
  --radius:     10px;
  --ease:       cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 18px;
}
.label::before { content: ''; width: 20px; height: 2px; background: var(--blue); flex-shrink: 0; }

h1,h2,h3 { letter-spacing: -0.04em; line-height: 1.08; }

.heading-xl {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 900; color: var(--ink);
}
.heading-lg {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 900; color: var(--ink);
}
.heading-md {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800; color: var(--ink);
}

.heading-xl span, .heading-lg span { color: var(--blue); }
.text-muted { color: var(--muted); line-height: 1.75; }
.text-lead { font-size: 17px; color: var(--muted); line-height: 1.75; }

/* ── LAYOUT ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
section { padding: 104px 40px; }
.section-inner { max-width: 1280px; margin: 0 auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 6px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all .25s var(--ease); cursor: pointer; border: none; font-family: inherit;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 20px rgba(27,82,212,.28); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost-white { background: transparent; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.2); }
.btn-ghost-white:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); color: var(--white); }

/* ── NAV ── */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  transition: background .45s var(--ease), box-shadow .45s var(--ease);
}
#nav.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  height: 70px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img {
  height: 34px; width: auto;
  filter: brightness(0) invert(1);
  transition: filter .45s var(--ease);
}
#nav.scrolled .nav-logo img { filter: none; }
.nav-menu { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-menu a {
  font-size: 13.5px; font-weight: 500; text-decoration: none;
  color: rgba(255,255,255,.75); padding: 7px 14px; border-radius: 5px;
  transition: color .25s, background .25s;
}
.nav-menu a:hover { color: var(--white); background: rgba(255,255,255,.08); }
#nav.scrolled .nav-menu a { color: var(--soft); }
#nav.scrolled .nav-menu a:hover { color: var(--blue); background: var(--blue-light); }
.nav-menu .nav-cta {
  background: rgba(255,255,255,.12); color: var(--white) !important;
  border: 1px solid rgba(255,255,255,.2); margin-left: 6px;
}
.nav-menu .nav-cta:hover { background: rgba(255,255,255,.2) !important; }
#nav.scrolled .nav-menu .nav-cta {
  background: var(--blue) !important; color: var(--white) !important; border-color: transparent;
}
#nav.scrolled .nav-menu .nav-cta:hover { background: var(--blue-dark) !important; }
.nav-menu a.active { color: var(--blue) !important; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 160px 40px 96px;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 65% 40%, rgba(27,82,212,.3) 0%, transparent 70%);
}
.page-hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(27,82,212,.07) 1px,transparent 1px),
                    linear-gradient(90deg,rgba(27,82,212,.07) 1px,transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 20%, transparent 75%);
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero .label { color: rgba(255,255,255,.4); }
.page-hero .label::before { background: var(--blue); }
.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,.5); max-width: 520px; line-height: 1.7; }

/* ── TICKER ── */
.ticker { background: var(--blue); padding: 13px 0; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; animation: tickerScroll 30s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex; align-items: center; gap: 28px; padding: 0 36px;
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.85);
}
.ticker-item::after { content: ''; width: 3px; height: 3px; background: rgba(255,255,255,.4); border-radius: 50%; }
@keyframes tickerScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ── STATS BAND ── */
.stats-band { padding: 80px 40px; border-bottom: 1px solid var(--border); }
.stats-row { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); }
.stat-block { padding: 0 52px; border-right: 1px solid var(--border); text-align: center; }
.stat-block:first-child { padding-left: 0; text-align: left; }
.stat-block:last-child { border-right: none; padding-right: 0; text-align: right; }
.stat-num-xl {
  font-size: clamp(52px,5.5vw,80px); font-weight: 900;
  letter-spacing: -0.05em; line-height: 1; color: var(--ink);
}
.stat-num-xl .c { color: var(--blue); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 10px; font-weight: 500; }

/* ── PORTFOLIO GRID ── */
.pcard {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--bg);
  border: 1px solid var(--border);
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.pcard::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.pcard:hover { border-color: rgba(27,82,212,.35); box-shadow: 0 12px 40px rgba(27,82,212,.09); }
.pcard:hover::after { transform: scaleX(1); }
.pcard-bg { position: absolute; inset: 0; transition: opacity .35s; }
.pcard-bg-default { background: var(--bg); }
.pcard-bg-hover { opacity: 0; transition: opacity .35s; position: absolute; inset: 0; }
.pcard:hover .pcard-bg-hover { opacity: 1; }
.pcard[data-s="ecommerce"] .pcard-bg-hover { background: linear-gradient(135deg,#FFF8F0,#FEE8CD); }
.pcard[data-s="logistics"]  .pcard-bg-hover { background: linear-gradient(135deg,#EDFFF6,#D2FAE6); }
.pcard[data-s="software"]   .pcard-bg-hover { background: linear-gradient(135deg,#EEF5FF,#DBEAFE); }
.pcard[data-s="marketing"]  .pcard-bg-hover { background: linear-gradient(135deg,#F8F4FF,#EDE9FE); }
.pcard[data-s="isp"]        .pcard-bg-hover { background: linear-gradient(135deg,#ECFEFF,#D0F8FF); }
.pcard[data-s="cloud"]      .pcard-bg-hover { background: linear-gradient(135deg,#EEF4FF,#C7DAFF); }
.pcard[data-s="hosting"]    .pcard-bg-hover { background: linear-gradient(135deg,#F0FDF4,#DAFAE8); }
.pcard-mono {
  position: absolute; top: 16px; right: 20px;
  font-size: 72px; font-weight: 900; letter-spacing: -0.06em; line-height: 1;
  color: rgba(27,82,212,.055); user-select: none; pointer-events: none;
  transition: color .3s;
}
.pcard:hover .pcard-mono { color: rgba(27,82,212,.1); }
.pcard-large .pcard-mono { font-size: 140px; }
.pcard-body { position: relative; z-index: 1; padding: 22px 24px; }
.pcard-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue); background: rgba(27,82,212,.09);
  padding: 3px 9px; border-radius: 3px; margin-bottom: 12px;
}
.pcard-name { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 6px; }
.pcard-large .pcard-name { font-size: 21px; margin-bottom: 10px; }
.pcard-desc { font-size: 13px; color: var(--muted); line-height: 1.65; display: none; margin-bottom: 16px; }
.pcard-large .pcard-desc { display: block; }
.pcard-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--blue); margin-top: 6px;
}
.pcard-link svg { transition: transform .2s; }
.pcard:hover .pcard-link svg { transform: translateX(3px); }
.pcard-small .pcard-name { font-size: 13.5px; }
.pcard-small .pcard-tag { font-size: 9px; }

/* ── ABOUT DARK SECTION ── */
.about-dark { background: var(--navy); padding: 120px 40px; position: relative; overflow: hidden; }
.about-dark-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.1fr; gap: 100px; align-items: center; }
.about-label { color: rgba(255,255,255,.35) !important; }
.about-label::before { background: var(--blue) !important; }
.about-h { color: var(--white) !important; }
.about-pull {
  font-size: clamp(20px,2.5vw,30px); font-weight: 300; line-height: 1.5;
  color: rgba(255,255,255,.65); border-left: 3px solid var(--blue);
  padding-left: 24px; margin: 28px 0 32px; letter-spacing: -0.01em;
}
.about-pull strong { color: var(--white); font-weight: 700; }
.about-body { font-size: 15.5px; color: rgba(255,255,255,.45); line-height: 1.8; margin-bottom: 14px; }
.about-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--blue);
  text-decoration: none; margin-top: 20px;
  border-bottom: 1px solid rgba(27,82,212,.3); padding-bottom: 2px;
  transition: gap .2s, border-color .2s;
}
.about-cta:hover { gap: 12px; border-color: var(--blue); }
.about-card {
  background: linear-gradient(145deg, #1B52D4 0%, #0B2B76 100%);
  border-radius: 14px; padding: 48px; min-height: 420px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  border: 70px solid rgba(255,255,255,.04);
}
.about-card-label { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.about-card-big { font-size: clamp(30px,3.5vw,48px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.1; color: var(--white); }
.about-card-big span { color: rgba(255,255,255,.25); font-weight: 300; }
.about-card-sub { font-size: 13.5px; color: rgba(255,255,255,.5); line-height: 1.65; max-width: 280px; }
.float-stat {
  position: absolute; background: var(--white);
  border-radius: 10px; padding: 16px 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.float-stat-1 { bottom: -20px; left: -24px; }
.float-stat-2 { top: -18px; right: -16px; }
.float-n { font-size: 28px; font-weight: 900; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.float-n span { color: var(--blue); }
.float-l { font-size: 11px; color: var(--muted); margin-top: 3px; font-weight: 500; }

/* ── SECTORS ── */
.sectors-grid {
  display: grid; grid-template-columns: repeat(5,1fr);
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-top: 56px;
}
.sector-item {
  padding: 36px 26px; border-right: 1px solid var(--border);
  transition: background .2s;
}
.sector-item:last-child { border-right: none; }
.sector-item:hover { background: var(--bg); }
.sector-icon {
  width: 42px; height: 42px; background: var(--blue-light);
  border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.sector-icon svg { width: 20px; height: 20px; color: var(--blue); }
.sector-name { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 7px; line-height: 1.3; }
.sector-cos { font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ── OFFICES ── */
.offices-kicker { font-size: clamp(80px,10vw,140px); font-weight: 900; letter-spacing: -0.06em; line-height: 1; color: rgba(27,82,212,.06); margin-top: -16px; }
.region-group { margin-bottom: 52px; }
.region-label {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 20px;
}
.offices-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.ocard {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px;
  transition: border-color .25s, box-shadow .25s;
}
.ocard:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(27,82,212,.07); }
.ocard-country { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; display: flex; align-items: center; gap: 8px; }
.hq-badge { font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; background: var(--blue); color: var(--white); padding: 2px 7px; border-radius: 3px; }
.ocard-addr { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── CONTACT FORM ── */
.cform-wrap {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 48px;
}
.fg { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.fg label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--soft); }
.fg input, .fg select, .fg textarea {
  padding: 11px 14px; border: 1px solid var(--border); border-radius: 7px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: var(--white);
  outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27,82,212,.09);
}
.fg textarea { resize: vertical; min-height: 120px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fsubmit {
  width: 100%; background: var(--blue); color: var(--white);
  padding: 14px; border: none; border-radius: 7px;
  font-size: 14px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.fsubmit:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(27,82,212,.28); }
.form-msg {
  padding: 14px 18px; border-radius: 7px; font-size: 14px;
  font-weight: 500; margin-bottom: 20px;
}
.form-msg.success { background: #EDFFF5; border: 1px solid #A3E6C4; color: #0D6B3E; }
.form-msg.error   { background: #FFF2F2; border: 1px solid #F5BABA; color: #8B1A1A; }

/* ── LEGAL PAGE ── */
.legal-layout { display: grid; grid-template-columns: 220px 1fr; gap: 72px; align-items: start; }
.legal-nav { position: sticky; top: 92px; }
.legal-nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.legal-nav a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  padding: 7px 12px; border-radius: 5px; display: block;
  transition: color .2s, background .2s;
}
.legal-nav a:hover { color: var(--blue); background: var(--blue-light); }
.legal-nav a.active { color: var(--blue); background: var(--blue-light); font-weight: 600; }
.legal-section { margin-bottom: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--border); }
.legal-section:last-child { border-bottom: none; margin-bottom: 0; }
.legal-section h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 6px; letter-spacing: -0.02em; }
.legal-section h3 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 20px 0 8px; }
.legal-section p { font-size: 14px; color: var(--soft); line-height: 1.8; margin-bottom: 10px; }
.legal-section ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.legal-section ul li { font-size: 14px; color: var(--soft); line-height: 1.7; padding-left: 16px; position: relative; }
.legal-section ul li::before { content: '—'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.legal-contact { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; margin-top: 4px; }
.legal-flag { display: inline-flex; align-items: center; gap: 10px; }
.jurisdiction-badge { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--blue-light); color: var(--blue); padding: 3px 9px; border-radius: 3px; }

/* ── FOOTER ── */
footer { background: var(--navy); padding: 80px 40px 36px; }
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: grid; grid-template-columns: 2fr repeat(3,1fr);
  gap: 64px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 36px;
}
.footer-brand img { height: 34px; filter: brightness(0) invert(1); opacity: .8; }
.footer-tagline { font-size: 13.5px; color: rgba(255,255,255,.38); line-height: 1.75; max-width: 290px; margin-top: 16px; }
.footer-col h5 {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.28); margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { text-decoration: none; font-size: 13.5px; color: rgba(255,255,255,.5); transition: color .2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.22); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 12px; color: rgba(255,255,255,.22); text-decoration: none; transition: color .2s; }
.footer-legal a:hover { color: rgba(255,255,255,.55); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .sectors-grid { grid-template-columns: repeat(3,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
}
@media (max-width: 900px) {
  section { padding: 72px 24px; }
  .about-dark-inner { grid-template-columns: 1fr; gap: 56px; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .stat-block { border-right: none; border-bottom: 1px solid var(--border); padding: 24px 0; text-align: left !important; }
  .stat-block:last-child { border-bottom: none; }
  .offices-row { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  section { padding: 56px 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-menu .hide-mobile { display: none; }
  .frow { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .float-stat { display: none; }
  .sectors-grid { grid-template-columns: 1fr 1fr; }
  .offices-row { grid-template-columns: 1fr; }
  .cform-wrap { padding: 28px 20px; }
}
