/* ============================================================
   E2E Softech — Design System
   ============================================================ */

:root{
  --bg: #08080c;
  --bg-soft: #0e0e15;
  --surface: #131320;
  --surface-2: #191927;
  --border: rgba(255,255,255,0.09);
  --border-hover: rgba(255,255,255,0.18);
  --text: #f2f2f5;
  --text-dim: #9d9daa;
  --text-dimmer: #6b6b78;
  --accent: #7c5cff;
  --accent-2: #2fe6c9;
  --accent-3: #ff5c8a;
  --grad: linear-gradient(120deg, #7c5cff 0%, #2fe6c9 100%);
  --grad-warm: linear-gradient(120deg, #ff5c8a 0%, #7c5cff 100%);
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;
  --maxw: 1180px;
  --ease: cubic-bezier(.16,1,.3,1);
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4{
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1{ font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 650; }
h2{ font-size: clamp(2rem, 4vw, 3.2rem); }
h3{ font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
p{ margin: 0 0 1em; color: var(--text-dim); }
a{ color: inherit; text-decoration: none; }
img{ max-width:100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section{ position: relative; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 18px;
}
.eyebrow::before{ content:''; width:6px; height:6px; border-radius:50%; background: var(--grad); }

.grad-text{
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Background mesh ---------- */
.mesh{
  position: absolute; inset:0; z-index:0; overflow:hidden; pointer-events:none;
}
.mesh span{
  position:absolute; border-radius:50%; filter: blur(90px); opacity:.35;
}
.mesh .m1{ width:420px; height:420px; background:#7c5cff; top:-120px; left:-80px; }
.mesh .m2{ width:380px; height:380px; background:#2fe6c9; top:120px; right:-100px; }
.mesh .m3{ width:340px; height:340px; background:#ff5c8a; bottom:-140px; left:35%; opacity:.22; }

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

/* ---------- Nav ---------- */
header.nav{
  position: sticky; top:0; z-index:1000;
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(8,8,12,0.65);
  border-bottom: 1px solid var(--border);
}
.nav-inner{
  max-width: var(--maxw); margin:0 auto; padding: 16px 28px;
  display:flex; align-items:center; justify-content:space-between; gap: 20px;
}
.brand{ display:flex; align-items:center; gap:10px; font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:1.05rem; }
.brand-mark{
  width:30px; height:30px; border-radius: 9px; background: var(--grad);
  display:flex; align-items:center; justify-content:center; font-weight:700; font-size:.8rem; color:#08080c;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
}
.nav-links{ display:flex; align-items:center; gap: 6px; }
.nav-links a{
  padding: 9px 14px; border-radius: 999px; font-size:.92rem; color: var(--text-dim);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover{ color: var(--text); background: var(--surface); }
.nav-links a.active{ color: var(--text); background: var(--surface); }

/* ---------- Nav dropdown (Services + Team Hub) ---------- */
.nav-dropdown{ position:relative; }
.nav-drop-trigger{
  display:flex; align-items:center; gap:6px; background:none; border:none; cursor:pointer;
  padding: 9px 14px; border-radius:999px; font-size:.92rem; color: var(--text-dim); font-family:inherit;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-drop-trigger:hover{ color: var(--text); background: var(--surface); }
.nav-dropdown.open .nav-drop-trigger{ color: var(--text); background: var(--surface); }
.nav-drop-trigger .chev{ width:13px; height:13px; transition: transform .25s var(--ease); }
.nav-dropdown.open .chev{ transform: rotate(180deg); }
.nav-drop-panel{
  position:absolute; top: calc(100% + 12px); left:0; min-width:280px;
  background: var(--surface-2); border:1px solid var(--border); border-radius: var(--radius-m);
  padding:10px; opacity:0; visibility:hidden; transform: translateY(-8px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  z-index: 50;
}
.nav-dropdown.open .nav-drop-panel{ opacity:1; visibility:visible; transform:none; }
.nav-drop-panel a{
  display:block; padding:10px 12px; border-radius:8px; font-size:.88rem; color: var(--text-dim);
  transition: background .15s, color .15s;
}
.nav-drop-panel a:hover{ background: var(--surface); color: var(--text); }
.nav-drop-panel a.all-services{ color: var(--text); font-weight:600; }
.nav-drop-divider{ height:1px; background: var(--border); margin:8px 4px; }
.nav-drop-tool{ display:flex !important; align-items:center; gap:10px; }
.nav-drop-tool svg{ width:18px; height:18px; flex-shrink:0; color: var(--accent-2); }
.nav-drop-tool strong{ display:block; color: var(--text); font-size:.88rem; font-weight:600; }
.nav-drop-tool small{ display:block; color: var(--text-dimmer); font-size:.75rem; margin-top:2px; }

.mobile-drop-trigger{
  width:100%; display:flex; align-items:center; justify-content:space-between;
  padding: 16px 28px; border-bottom:1px solid var(--border); color: var(--text-dim);
  background:none; border-left:none; border-right:none; border-top:none; font-family:inherit; font-size:1rem; cursor:pointer;
}
.mobile-drop-trigger .chev{ width:14px; height:14px; transition: transform .25s var(--ease); }
.mobile-drop.open .mobile-drop-trigger .chev{ transform: rotate(180deg); }
.mobile-drop-panel{ max-height:0; overflow:hidden; transition: max-height .3s var(--ease); background: var(--bg-soft); }
.mobile-drop.open .mobile-drop-panel{ max-height: 320px; }
.mobile-drop-panel a{ padding: 13px 28px 13px 40px; border-bottom:1px solid var(--border); color: var(--text-dim); font-size:.92rem; }
.mobile-drop-tool{ color: var(--accent-2) !important; font-weight:600; }

.nav-tool{
  display:flex; align-items:center; gap:6px;
  color: var(--bg) !important;
  background: var(--grad) !important;
  font-weight:600;
}
.nav-tool svg{ width:14px; height:14px; }
.nav-cta{
  padding: 9px 18px; border-radius: 999px; background: var(--text); color: var(--bg) !important;
  font-weight:600; font-size:.9rem; transition: transform .2s var(--ease), opacity .2s;
}
.nav-cta:hover{ transform: translateY(-1px); opacity:.9; }
.nav-right{ display:flex; align-items:center; gap:10px; }
.burger{ display:none; align-items:center; justify-content:center; width:38px; height:38px; border-radius:10px; background:transparent; border:1px solid var(--border); color:var(--text); cursor:pointer; }
.burger.open svg path{ display:none; }

.mobile-nav{
  display:none; flex-direction:column; max-height:0; overflow:hidden;
  border-top: 1px solid transparent; transition: max-height .35s var(--ease);
}
.mobile-nav.open{ max-height:760px; border-top-color: var(--border); }
.mobile-nav > a{ padding: 16px 28px; border-bottom:1px solid var(--border); color: var(--text-dim); }
.mobile-nav > a:hover{ color:var(--text); }

@media (max-width: 900px){
  .nav-links{ display:none; }
  .burger{ display:flex; }
  .mobile-nav{ display:flex; }
  .nav-cta{ display:none; }
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 13px 24px; border-radius: 999px; font-weight:600; font-size:.95rem;
  border: 1px solid transparent; cursor:pointer; transition: all .25s var(--ease);
}
.btn-primary{ background: var(--text); color: var(--bg); }
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 30px rgba(124,92,255,.25); }
.btn-outline{ background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover{ border-color: var(--border-hover); background: var(--surface); }
.btn-grad{ background: var(--grad); color:#08080c; }
.btn-grad:hover{ transform: translateY(-2px); box-shadow: 0 12px 34px rgba(47,230,201,.25); }

/* ---------- Cards ---------- */
.card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-m);
  padding: 28px; transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.card:hover{ transform: translateY(-4px); border-color: var(--border-hover); background: var(--surface-2); }
.icon-badge{
  width:44px; height:44px; border-radius: 12px; display:flex; align-items:center; justify-content:center;
  background: var(--surface-2); border:1px solid var(--border); margin-bottom: 18px;
}
.icon-badge svg{ width:22px; height:22px; stroke: var(--accent-2); }

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:none; }
.stagger > *{ transition-delay: calc(var(--i,0) * 70ms); }

/* ---------- Grid helpers ---------- */
.grid{ display:grid; gap: 20px; }
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }
.grid-4{ grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px){ .grid-2,.grid-3,.grid-4{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .grid-2,.grid-3,.grid-4{ grid-template-columns: 1fr; } }

/* ---------- Sections spacing ---------- */
.section{ padding: 110px 0; }
@media (max-width: 700px){ .section{ padding: 70px 0; } }
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }

/* ---------- Hero ---------- */
.hero{ padding: 150px 0 100px; position:relative; }
.hero .wrap{ position:relative; z-index:1; }
.hero-badge{
  display:inline-flex; align-items:center; gap:8px; padding:7px 14px 7px 7px;
  border:1px solid var(--border); border-radius:999px; background: var(--surface);
  font-size:.82rem; color: var(--text-dim); margin-bottom: 28px;
}
.hero-badge .dot{ width:8px; height:8px; border-radius:50%; background:var(--grad); }
.hero h1{ max-width: 900px; }
.hero p.lead{ font-size: clamp(1.05rem,1.6vw,1.25rem); max-width: 620px; margin-bottom: 34px; }
.hero-actions{ display:flex; gap:14px; flex-wrap:wrap; margin-bottom: 60px;}
.hero-stats{ display:flex; gap:46px; flex-wrap:wrap; border-top:1px solid var(--border); padding-top: 34px; }
.hero-stats .stat b{ display:block; font-family:'Space Grotesk',sans-serif; font-size:1.8rem; }
.hero-stats .stat span{ color: var(--text-dimmer); font-size:.85rem; }

/* ---------- Marquee ---------- */
.marquee{ overflow:hidden; border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding: 26px 0; }
.marquee-track{ display:flex; gap:64px; width:max-content; animation: scroll 28s linear infinite; }
.marquee-track span{ font-family:'Space Grotesk',sans-serif; font-size:1.1rem; color: var(--text-dimmer); white-space:nowrap; letter-spacing:.02em;}
@keyframes scroll{ from{ transform:translateX(0);} to{ transform:translateX(-50%);} }

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--border); padding: 64px 0 32px; margin-top: 60px; }
.footer-grid{ display:grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 40px; margin-bottom: 50px; }
@media (max-width:800px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
.footer-grid h4{ font-size:.85rem; color: var(--text-dimmer); text-transform:uppercase; letter-spacing:.08em; margin-bottom:16px; }
.footer-grid a{ display:block; color: var(--text-dim); padding: 6px 0; font-size:.92rem; transition: color .2s; }
.footer-grid a:hover{ color: var(--text); }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; color: var(--text-dimmer); font-size:.85rem; border-top:1px solid var(--border); padding-top: 26px; }
.social-row{ display:flex; gap:10px; }
.social-row a{ width:36px; height:36px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; transition: border-color .2s, transform .2s; }
.social-row a:hover{ border-color: var(--border-hover); transform: translateY(-2px); }
.social-row svg{ width:16px; height:16px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{ padding: 130px 0 70px; border-bottom: 1px solid var(--border); position:relative; }

/* ---------- Table-ish list ---------- */
.divider-list > *{ border-bottom:1px solid var(--border); padding: 26px 0; }
.divider-list > *:first-child{ padding-top:0; }
.divider-list > *:last-child{ border-bottom:none; }

/* ---------- Tag ---------- */
.tag{ display:inline-block; padding:5px 12px; border-radius:999px; background:var(--surface-2); border:1px solid var(--border); font-size:.78rem; color: var(--text-dim); margin: 3px 6px 3px 0; }

/* ---------- Form ---------- */
.field{ margin-bottom: 18px; }
.field label{ display:block; font-size:.85rem; color: var(--text-dim); margin-bottom:8px; }
.field input, .field textarea, .field select{
  width:100%; padding: 13px 16px; border-radius: var(--radius-s); border:1px solid var(--border);
  background: var(--surface); color: var(--text); font-family: inherit; font-size:.95rem;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus{ outline:none; border-color: var(--accent); }
.field textarea{ min-height:130px; resize:vertical; }

/* ---------- Misc ---------- */
.cta-band{
  border-radius: var(--radius-l); background: var(--surface); border:1px solid var(--border);
  padding: 70px 50px; text-align:center; position:relative; overflow:hidden;
}
@media (max-width:700px){ .cta-band{ padding: 50px 24px; } }

.avatar{
  width:56px; height:56px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  font-family:'Space Grotesk',sans-serif; font-weight:600; color:#08080c; background: var(--grad); flex-shrink:0;
}

.num{ font-family:'Space Grotesk',sans-serif; font-size:2.6rem; color: var(--border-hover); font-weight:600; }

::selection{ background: var(--accent); color:#fff; }

/* scrollbar */
::-webkit-scrollbar{ width:10px; }
::-webkit-scrollbar-track{ background: var(--bg); }
::-webkit-scrollbar-thumb{ background: var(--surface-2); border-radius:10px; border:2px solid var(--bg); }
