:root{
  --ink:#000000;
  --ink-2:#0A0A0A;
  --ink-3:#121212;
  --line: rgba(255,255,255,0.08);
  --paper:#FFFFFF;
  --muted:#A0A0A0;
  --muted-2:#666666;
  --signal:#FFFFFF;
  --signal-dim: rgba(255,255,255,0.08);
  --amber:#FFB454;
  --radius: 14px;
  --max: 1180px;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--ink);
  color:var(--paper);
  font-family:'Inter',sans-serif;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
h1,h2,h3,h4{
  font-family:'Space Grotesk',sans-serif;
  margin:0;
  line-height:1.08;
  letter-spacing:-0.01em;
}
.mono{
  font-family:'IBM Plex Mono',monospace;
  letter-spacing:0.06em;
}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
.wrap{max-width:var(--max);margin:0 auto;padding:0 28px;}
section{position:relative;}

/* custom scroll bar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--ink);
}
::-webkit-scrollbar-thumb {
  background: var(--ink-3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--signal);
}

/* scroll progress bar */
#scrollProgress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--signal), var(--amber));
  z-index: 999;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* faint circuit background texture */
.circuit-bg{
  position:absolute;inset:0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black 10%, transparent 75%);
  opacity:0.5;
  pointer-events:none;
  z-index: 1;
}

/* visual background glows */
.glow-bg {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 12s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 1.1; }
}

/* ---------- NAV ---------- */
header{
  position:sticky;top:0;z-index:200;
  background:rgba(8,8,8,0.9);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);
  transition:background 0.3s, border-color 0.3s, padding 0.3s;
}
header.scrolled{
  background:rgba(4,4,4,0.97);
  border-color:rgba(255,255,255,0.12);
}
nav{
  display:flex;align-items:center;justify-content:space-between;
  padding:16px 28px;max-width:var(--max);margin:0 auto;
  min-height:64px;
}
.logo{
  display:flex;align-items:center;flex-shrink:0;
}
.logo img{
  height:38px;width:auto;display:block;border-radius:4px;
  transition:transform 0.2s ease;
}
.logo:hover img{transform:scale(1.03);}
footer .logo img{height:30px;border-radius:3px;}

/* Desktop links */
.nav-links{
  display:flex;gap:20px;align-items:center;
}
.nav-links a{
  font-size:0.88rem;color:var(--muted);
  transition:color .2s,border-color .2s;
  padding:6px 0;
  border-bottom:2px solid transparent;
  white-space:nowrap;
}
.nav-links a:hover,.nav-links a.active{color:var(--paper);}
.nav-links a.active{border-color:var(--signal);color:var(--signal);}

.nav-right{
  display:flex;align-items:center;gap:12px;flex-shrink:0;
}
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:11px 20px;border-radius:9px;
  font-weight:600;font-size:0.9rem;
  border:1px solid transparent;
  cursor:pointer;transition:transform .15s ease,box-shadow .2s ease,background .2s,color .2s;
  white-space:nowrap;
  text-decoration:none;
}
.btn-primary{background:var(--signal);color:var(--ink);}
.btn-primary:hover{box-shadow:0 0 0 4px var(--signal-dim);transform:translateY(-1.5px);}
.btn-ghost{background:transparent;color:var(--paper);border-color:var(--line);}
.btn-ghost:hover{border-color:var(--signal);color:var(--signal);transform:translateY(-1px);}

/* Hamburger */
.menu-toggle{
  display:none;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  color:var(--paper);
  font-size:1.3rem;
  cursor:pointer;
  padding:0;
  width:42px;height:42px;
  border-radius:10px;
  align-items:center;justify-content:center;
  z-index:201;
  transition:background .2s,border-color .2s,color .2s;
  flex-shrink:0;
}
.menu-toggle:hover{background:rgba(255,255,255,0.1);border-color:rgba(255,255,255,0.25);}
.menu-toggle.active{color:var(--signal);border-color:var(--signal);background:rgba(255,255,255,0.05);}

/* ---------- SECTION HEADERS ---------- */
.sec-head{max-width:640px; margin:0 0 52px;}
.sec-head .mono{color:var(--signal); font-size:0.78rem; display:block; margin-bottom:14px;}
.sec-head h2{font-size:clamp(1.7rem,3vw,2.4rem); font-weight:700;}
.sec-head p{color:var(--muted); margin-top:16px; font-size:1.02rem; line-height:1.6;}
.section-pad{padding:96px 0;}

/* ---------- FORMS ---------- */
form{display:grid; gap:16px;}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px;}
label{font-size:0.8rem; color:var(--muted); margin-bottom:6px; display:block;}
input, select, textarea{
  width:100%; background:var(--ink-2); border:1px solid var(--line); border-radius:8px;
  padding:12px 14px; color:var(--paper); font-family:'Inter',sans-serif; font-size:0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus{
  outline:none;
  border-color:var(--signal);
  box-shadow:0 0 0 3px var(--signal-dim);
}
textarea{resize:vertical; min-height:110px;}

.form-msg{
  font-size:0.9rem;
  color:var(--signal);
  background:var(--signal-dim);
  border:1px solid var(--line);
  padding:14px 18px;
  border-radius:8px;
  margin-top:16px;
  display:none;
  align-items:center;
  gap:10px;
  animation:slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes slideUp{
  from{opacity:0; transform:translateY(10px);}
  to{opacity:1; transform:translateY(0);}
}

/* Spinner */
@keyframes spin {
  100% { transform: rotate(360deg); }
}
.spinner circle {
  stroke-dasharray: 90, 150;
  stroke-dashoffset: 0;
  stroke: currentColor;
  animation: spinner-dash 1.5s ease-in-out infinite;
}
@keyframes spinner-dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* ---------- FOOTER ---------- */
footer{border-top:1px solid var(--line); padding:52px 0 30px;}
.footer-top{display:flex; justify-content:space-between; flex-wrap:wrap; gap:32px; margin-bottom:40px;}
.footer-cols{display:flex; gap:64px; flex-wrap:wrap;}
.footer-col h4{font-size:0.8rem; color:var(--muted); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:16px;}
.footer-col a{display:block; color:var(--muted-2); font-size:0.88rem; margin-bottom:10px; transition:color 0.2s;}
.footer-col a:hover{color:var(--signal);}
.footer-bottom{
  display:flex; justify-content:space-between; color:var(--muted-2); font-size:0.8rem;
  padding-top:24px; border-top:1px solid var(--line); flex-wrap:wrap; gap:12px;
}

/* ---------- LIGHTBOX MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-overlay.open {
  display: flex;
  opacity: 1;
}
.modal-container {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.open .modal-container {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line);
  color: var(--paper);
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background 0.2s, border-color 0.2s;
}
.modal-close:hover {
  background: var(--signal-dim);
  border-color: var(--signal);
  color: var(--signal);
}
.modal-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.modal-img-wrap {
  height: 100%;
  min-height: 280px;
  background: var(--ink-3);
}
.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.modal-body {
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modal-body .svc-tag {
  align-self: flex-start;
  margin-bottom: 12px;
  font-size: 0.72rem;
  color: var(--signal);
  border: 1px solid var(--signal);
  padding: 3px 8px;
  border-radius: 5px;
  background: var(--signal-dim);
}
.modal-body h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  line-height: 1.2;
}
.modal-body p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
}
.modal-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.modal-meta-item .label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.modal-meta-item .value {
  font-size: 0.88rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .modal-content {
    grid-template-columns: 1fr;
  }
  .modal-img-wrap {
    height: 200px;
  }
  .modal-body {
    padding: 24px;
  }
}

@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
}

/* ============================================================
   RESPONSIVE — Mobile First
   ============================================================ */

/* Tablet — 980px */
@media (max-width:980px){
  .services-grid, .work-grid, .testi-grid, .price-grid{grid-template-columns:repeat(2,1fr);}
  .stats-bar{grid-template-columns:repeat(2,1fr); row-gap:24px;}
  .contact-grid{grid-template-columns:1fr;}
  .section-pad{padding:72px 0;}
}

/* Mobile — 680px */
@media (max-width:680px){

  /* ── Layout ── */
  .wrap{padding:0 16px;}
  .section-pad{padding:56px 0;}
  .sec-head{margin:0 0 36px;}
  .sec-head h2{font-size:1.65rem;}

  /* ── Nav ── */
  nav{padding:0 16px;min-height:60px;position:relative;}

  .nav-links{
    position:absolute;
    top:100%; left:0; right:0;
    background:rgba(5,6,12,0.98);
    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
    flex-direction:column;
    align-items:stretch;
    padding:8px 0 16px;
    gap:0;
    border-bottom:1px solid rgba(255,255,255,0.1);
    border-top:1px solid rgba(255,255,255,0.06);
    box-shadow:0 12px 40px rgba(0,0,0,0.5);
    /* Dropdown animation */
    transform:translateY(-8px);
    opacity:0;
    visibility:hidden;
    transition:transform .22s ease, opacity .2s ease, visibility .22s;
    z-index:199;
    overflow:hidden;
  }
  .nav-links.open{
    transform:translateY(0);
    opacity:1;
    visibility:visible;
  }

  .nav-links a{
    font-size:1rem;
    font-weight:500;
    padding:14px 20px;
    width:100%;
    border-bottom:1px solid rgba(255,255,255,0.05);
    color:rgba(255,255,255,0.75);
    display:block;
    letter-spacing:0.01em;
  }
  .nav-links a:last-child{border-bottom:none;}
  .nav-links a:hover{
    color:#fff;
    background:rgba(255,255,255,0.05);
    padding-left:26px;
    transition:all .15s ease;
  }
  .nav-links a.active{
    color:var(--signal);
    background:rgba(255,255,255,0.03);
    border-left:3px solid var(--signal);
    padding-left:17px;
  }

  /* Mobile CTA button inside menu */
  .nav-mobile-cta{
    display:block !important;
    margin:12px 16px 4px;
    padding:13px;
    background:var(--signal);
    color:var(--ink);
    text-align:center;
    border-radius:10px;
    font-weight:700;
    font-size:0.95rem;
    text-decoration:none;
  }

  .menu-toggle{display:flex;}
  .nav-cta{display:none !important;}
  .nav-links::after{display:none !important;}

  /* ── Grids → single column ── */
  .services-grid, .work-grid, .testi-grid, .price-grid,
  .grid-2col, .footer-cols{grid-template-columns:1fr;}

  /* ── Forms ── */
  .form-row{grid-template-columns:1fr;}
  input, select, textarea{font-size:1rem; padding:14px 16px;}
  .btn{padding:13px 20px; font-size:0.95rem;}

  /* ── Footer ── */
  .footer-top{flex-direction:column; gap:32px;}
  .footer-cols{gap:32px;}
  .footer-bottom{flex-direction:column; text-align:center; gap:8px;}

  /* ── Lightbox Modal ── */
  .modal-content{grid-template-columns:1fr;}
  .modal-img-wrap{height:200px;}
  .modal-body{padding:20px;}
  .modal-meta{grid-template-columns:1fr 1fr;}

  /* ── Stats bar ── */
  .stats-bar{grid-template-columns:repeat(2,1fr);}

  /* ── Bot FAB — move up so it clears mobile nav bar ── */
  #etp-bot-fab{
    bottom:20px !important; right:16px !important;
    width:52px !important; height:52px !important;
  }
  #etp-bot-panel{
    bottom:84px !important; right:12px !important;
    left:12px !important; width:auto !important;
    max-width:none !important;
  }
}

/* Small mobile — 480px */
@media (max-width:480px){
  .wrap{padding:0 14px;}
  .section-pad{padding:44px 0;}
  .stats-bar{grid-template-columns:1fr; row-gap:20px;}
  .price-card{padding:24px 16px;}
  .sec-head h2{font-size:1.45rem;}
  .btn{width:100%; justify-content:center;}
  .hero .cta-row .btn{width:auto;} /* keep hero CTA inline */
  .modal-meta{grid-template-columns:1fr;}
  .footer-col{min-width:0;}

  /* Bot panel full width on tiny screens */
  #etp-bot-panel{
    bottom:80px !important; right:8px !important;
    left:8px !important;
  }
  #etp-bot-fab{
    bottom:16px !important; right:12px !important;
  }
}

/* ── Custom Layout Overrides ── */
@media (max-width: 768px) {
  #book-session {
    grid-template-columns: 1fr !important;
    padding: 32px 20px !important;
    margin: 40px 0 !important;
    text-align: center !important;
  }
  #book-session div:last-child {
    margin-top: 16px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}
@media (max-width: 480px) {
  #book-session {
    padding: 24px 16px !important;
  }
}

/* ── Industry Badge ── */
.industry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  cursor: default;
}
.industry-badge:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--paper);
  background: rgba(255,255,255,0.07);
}

/* ── Stats Bar Items ── */
.stat-item {
  text-align: center;
  padding: 24px 16px;
}
.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  color: var(--paper);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
  font-family: 'IBM Plex Mono', monospace;
}

/* ── Hero trust row mobile ── */
@media (max-width: 600px) {
  .hero-trust-row {
    flex-direction: column !important;
    gap: 12px !important;
    align-items: flex-start !important;
  }
}

/* ══════════════════════════════════════════
   MOBILE IMAGE & CONTENT FIXES
══════════════════════════════════════════ */

/* All images — never overflow container */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Work thumb images on mobile */
@media (max-width: 768px) {
  .work-thumb {
    height: 200px !important;
    border-radius: 10px;
    overflow: hidden;
  }
  .work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Hero section padding on mobile */
  .hero {
    padding: 56px 0 40px;
  }
  .hero h1 {
    font-size: clamp(1.9rem, 6vw, 2.8rem) !important;
    line-height: 1.1 !important;
  }
  .hero .lead {
    font-size: 0.96rem !important;
    margin-top: 14px !important;
  }
  .hero .cta-row {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .hero .cta-row .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Service cards on mobile */
  .svc-card {
    padding: 22px 18px !important;
  }
  .svc-card-icon {
    width: 36px !important;
    height: 36px !important;
  }

  /* Stats numbers on mobile */
  .stat-num {
    font-size: 2.4rem !important;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
  }

  /* Contact grid — stack on mobile */
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .map-wrapper {
    display: none; /* hide SVG map on mobile — saves space */
  }

  /* Industry badges wrap nicely */
  .industry-badge {
    font-size: 0.76rem !important;
    padding: 6px 12px !important;
  }

  /* About page image banner */
  .about-img-banner {
    height: 220px !important;
  }

  /* Work case study cards */
  .work-card {
    flex-direction: column !important;
  }

  /* Testi cards */
  .testi-card {
    padding: 20px !important;
  }

  /* Section headings */
  .sec-head h2 {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }

  /* CTA banner */
  .cta-banner {
    padding: 36px 20px !important;
    text-align: center;
  }
  .cta-banner h2 {
    font-size: clamp(1.4rem, 5vw, 2rem) !important;
  }
  .cta-banner .cta-row {
    flex-direction: column !important;
    gap: 10px !important;
    align-items: center !important;
  }
  .cta-banner .cta-row .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Pricing cards */
  .price-card {
    padding: 28px 20px !important;
  }

  /* Footer columns on mobile */
  .footer-col {
    min-width: unset !important;
  }

  /* Social proof bar on mobile — stack */
  .proof-bar-inner {
    flex-direction: column !important;
    gap: 20px !important;
    align-items: center !important;
    text-align: center;
  }
  .proof-bar-divider {
    display: none !important;
  }
}

/* Extra small — 380px */
@media (max-width: 380px) {
  .stats-bar {
    grid-template-columns: 1fr !important;
  }
  .hero h1 {
    font-size: 1.7rem !important;
  }
  .btn {
    font-size: 0.88rem !important;
    padding: 11px 16px !important;
  }
}

/* ── Live Visitor Widget ── */
#live-visitor-count {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 2147483640;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-family: 'Inter', sans-serif;
  animation: fadeInWidget 1s ease forwards;
  animation-delay: 2s;
  opacity: 0;
  transform: translateY(10px);
}
#live-visitor-count b {
  color: #fff;
  font-weight: 600;
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}
@keyframes fadeInWidget {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  #live-visitor-count {
    bottom: auto;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    width: max-content;
    animation-delay: 1s;
  }
  @keyframes fadeInWidget {
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
  }
}

