/* =============================================
   SCALEFORGE — AGENCY WEBSITE STYLES
   Theme: Light SaaS / Startup — Indigo + Cyan
   Fonts: Outfit (display) + Plus Jakarta Sans (body)
   ============================================= */

/* ──────────── CSS VARIABLES ──────────── */
:root {
  /* Core palette */
  --indigo:        #4f46e5;
  --indigo-d:      #3730a3;
  --indigo-l:      #e0e7ff;
  --indigo-xl:     #f0f0ff;
  --cyan:          #06b6d4;
  --cyan-l:        #cffafe;
  --amber:         #f59e0b;
  --amber-l:       #fef3c7;
  --teal:          #14b8a6;
  --teal-l:        #ccfbf1;
  --rose:          #f43f5e;
  --rose-l:        #ffe4e6;
  --violet:        #7c3aed;
  --violet-l:      #ede9fe;

  /* Backgrounds */
  --bg:            #f8f9fc;
  --bg-white:      #ffffff;
  --bg-2:          #f1f3f9;

  /* Text */
  --text:          #0f172a;
  --text-2:        #1e293b;
  --text-muted:    #64748b;
  --text-faint:    #94a3b8;

  /* Borders */
  --border:        #e2e8f0;
  --border-d:      #cbd5e1;

  /* Shadows */
  --shadow-sm:     0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow:        0 4px 16px rgba(15,23,42,.08), 0 1px 4px rgba(15,23,42,.04);
  --shadow-lg:     0 12px 40px rgba(15,23,42,.12), 0 2px 8px rgba(15,23,42,.06);
  --shadow-indigo: 0 8px 32px rgba(79,70,229,.22);

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --nav-h:        68px;
  --radius:       12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --transition:   0.28s cubic-bezier(.4,0,.2,1);
}

/* ──────────── RESET ──────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ──────────── UTILITIES ──────────── */
.container { width: 90%; max-width: 1180px; margin: 0 auto; }
.section { padding: 108px 0; }

.grad-text {
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ──────────── SECTION HEADER ──────────── */
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 12px;
}
.sec-tag::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--indigo);
  border-radius: 2px;
}
.sec-head { margin-bottom: 56px; }
.sec-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 14px;
}
.sec-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.75;
}

/* ──────────── BUTTONS ──────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--sm { padding: 9px 18px; font-size: 0.83rem; }
.btn--full { width: 100%; justify-content: center; }

.btn--primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 0 0 0 rgba(79,70,229,0);
}
.btn--primary:hover {
  background: var(--indigo-d);
  transform: translateY(-2px);
  box-shadow: var(--shadow-indigo);
}

.btn--outline {
  background: transparent;
  color: var(--text-2);
  border: 1.5px solid var(--border-d);
}
.btn--outline:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(15,23,42,.18);
}
.btn--outline-dark:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--indigo-xl);
}

.btn--nav {
  background: var(--indigo);
  color: #fff;
  padding: 9px 20px;
  font-size: 0.88rem;
}
.btn--nav:hover {
  background: var(--indigo-d);
  box-shadow: var(--shadow-indigo);
}

.btn--wa {
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn--wa:hover { background: #1fbe59; transform: translateY(-2px); }

/* ──────────── ANIMATIONS ──────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  animation: fadeUp 0.65s ease forwards;
}
.fd2 { animation-delay: 0.12s; }
.fd3 { animation-delay: 0.24s; }
.fd4 { animation-delay: 0.36s; }
.fd5 { animation-delay: 0.48s; }
.fd6 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  height: var(--nav-h);
  background: rgba(248,249,252,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 90%;
  max-width: 1180px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo span { color: var(--indigo); }
.logo--footer { font-size: 1.2rem; }

.logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-link {
  padding: 7px 13px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 7px;
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--indigo-l);
}
.nav-cta-wrap { margin-left: 10px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 23px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--bg-white);
}

/* Geometric accents */
.hero-geo {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-geo--ring1 {
  width: 700px; height: 700px;
  border: 1px solid rgba(79,70,229,.07);
  top: -200px; right: -200px;
}
.hero-geo--ring2 {
  width: 480px; height: 480px;
  border: 1px solid rgba(6,182,212,.09);
  top: -80px; right: -80px;
}
.hero-dots {
  position: absolute;
  top: 80px; right: 60px;
  width: 220px; height: 220px;
  background-image: radial-gradient(circle, rgba(79,70,229,.15) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0 40px;
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--indigo-l);
  border: 1px solid rgba(79,70,229,.2);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 24px;
}
.pill-dot {
  width: 7px; height: 7px;
  background: var(--indigo);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  color: var(--text);
}
.brk { display: none; }

.hero-sub {
  font-size: clamp(.95rem, 1.6vw, 1.1rem);
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.trust-label { font-size: 0.78rem; color: var(--text-faint); font-weight: 500; }
.trust-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.trust-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
}
.trust-chips span i { color: var(--indigo); }

/* ── Hero right: card stack ── */
.hcard-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.hcard {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.hcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.hcard-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 16px;
}
.hdot {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.hdot--green { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.hc-ico { color: var(--amber); font-size: 0.9rem; }
.hc-ico--indigo { color: var(--indigo); }

.hcard-metrics {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
}
.hm { display: flex; flex-direction: column; gap: 2px; }
.hm-val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.hm-key { font-size: 0.72rem; color: var(--text-faint); font-weight: 500; }

.hcard-bar {
  height: 6px;
  background: var(--bg-2);
  border-radius: 100px;
  overflow: hidden;
}
.hcard-bar-fill {
  height: 100%;
  width: 78%;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  border-radius: 100px;
  animation: barGrow 1.5s ease forwards;
}
@keyframes barGrow {
  from { width: 0; }
  to   { width: 78%; }
}

/* Flow card */
.flow-steps { display: flex; flex-direction: column; gap: 6px; }
.fs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 10px;
  border-radius: 7px;
}
.fs--done  { color: #16a34a; background: rgba(22,163,74,.07); }
.fs--done i { font-size: 0.7rem; }
.fs--active { color: var(--indigo); background: var(--indigo-l); font-weight: 600; }
.fs--idle   { color: var(--text-faint); }

.pulse-ring {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--indigo);
  display: inline-block;
  animation: pulseRing 1.2s ease-in-out infinite;
}
@keyframes pulseRing {
  0%,100% { box-shadow: 0 0 0 0 rgba(79,70,229,.4); }
  50%      { box-shadow: 0 0 0 5px rgba(79,70,229,0); }
}

.hcard--mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}
.hcard--mini .hc-ico--indigo { font-size: 1.4rem; }

/* ── Stats bar ── */
.hero-statsbar {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.statsbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.sbi {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
  text-align: center;
}
.sbi strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--indigo);
  line-height: 1;
}
.sbi span { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.sbi-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* =============================================
   SERVICES
   ============================================= */
.services { background: var(--bg-white); }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svc-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.svc-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.svc-card:hover::after { transform: scaleX(1); }

.svc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.ico--indigo { background: var(--indigo-l); color: var(--indigo); }
.ico--teal   { background: var(--teal-l);   color: var(--teal); }
.ico--amber  { background: var(--amber-l);  color: var(--amber); }
.ico--rose   { background: var(--rose-l);   color: var(--rose); }
.ico--violet { background: var(--violet-l); color: var(--violet); }

.svc-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.svc-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.svc-tags li {
  padding: 3px 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-2);
}
.svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--indigo);
  transition: gap var(--transition);
}
.svc-link:hover { gap: 10px; }

.svc-card--cta {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--violet) 100%);
  border-color: transparent;
  color: #fff;
  justify-content: flex-start;
}
.svc-card--cta h3, .svc-card--cta p { color: rgba(255,255,255,.9); }
.svc-cta-ico { font-size: 2rem; color: rgba(255,255,255,.4); }
.svc-card--cta:hover { box-shadow: 0 16px 48px rgba(79,70,229,.35); }
.svc-card--cta::after { display: none; }
.svc-card--cta .btn--primary {
  background: #fff;
  color: var(--indigo);
}
.svc-card--cta .btn--primary:hover { background: var(--indigo-l); }

/* =============================================
   PORTFOLIO
   ============================================= */
.portfolio { background: var(--bg); }

.proj-list { display: flex; flex-direction: column; gap: 24px; }

.proj-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 36px 32px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 28px;
  align-items: start;
  transition: all var(--transition);
}
.proj-card:hover {
  border-color: var(--indigo-l);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.proj-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 4px;
}
.proj-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--border-d);
  line-height: 1;
}

.proj-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
}
.proj-badge--live {
  background: rgba(34,197,94,.1);
  color: #15803d;
  border-color: rgba(34,197,94,.2);
}
.proj-badge--amber {
  background: var(--amber-l);
  color: #92400e;
  border-color: rgba(245,158,11,.2);
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulseDot 2s ease-in-out infinite;
}

.proj-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}
.proj-type {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 12px;
}
.proj-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
  max-width: 560px;
}

.proj-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-bottom: 20px;
}
.proj-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-2);
}
.proj-features li i { color: var(--indigo); font-size: 0.65rem; }

.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.proj-stack span {
  padding: 4px 11px;
  background: var(--indigo-xl);
  border: 1px solid var(--indigo-l);
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--indigo);
}

.proj-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  min-width: 130px;
  padding-top: 4px;
}

/* =============================================
   SOLUTIONS
   ============================================= */
.solutions { background: var(--bg-white); }

.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.sol-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all var(--transition);
}
.sol-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--indigo-l);
}

.sol-top { display: flex; align-items: center; justify-content: space-between; }
.sol-icon {
  width: 46px; height: 46px;
  border-radius: 11px;
  background: var(--indigo-l);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.sol-icon--amber { background: var(--amber-l); color: var(--amber); }
.sol-icon--teal  { background: var(--teal-l);  color: var(--teal); }

.sol-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--indigo-l);
  color: var(--indigo);
  border: 1px solid rgba(79,70,229,.2);
}
.sol-badge--amber {
  background: var(--amber-l);
  color: #92400e;
  border-color: rgba(245,158,11,.2);
}
.sol-badge--teal {
  background: var(--teal-l);
  color: #115e59;
  border-color: rgba(20,184,166,.2);
}

.sol-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}
.sol-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

.sol-feats { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.sol-feats li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-2);
}
.sol-feats li i { color: var(--indigo); font-size: 0.65rem; }

.sol-actions { display: flex; gap: 10px; }

/* =============================================
   DEMOS
   ============================================= */
.demos { background: var(--bg); }

.demos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.demo-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.demo-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
  border-color: var(--indigo-l);
}

.demo-preview { background: #0f172a; padding: 0; }

.mock-term { font-family: 'Courier New', monospace; }
.mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #1e293b;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mock-dots { display: flex; gap: 5px; }
.md {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.md.r { background: #f87171; }
.md.y { background: #fbbf24; }
.md.g { background: #34d399; }
.mock-url {
  flex: 1;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-left: 6px;
}
.mock-status {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}
.s-ok { background: rgba(34,197,94,.15); color: #4ade80; }
.s-active { background: rgba(79,70,229,.2); color: #818cf8; }

.mock-code {
  display: block;
  padding: 16px;
  font-size: 0.75rem;
  line-height: 1.7;
  color: #94a3b8;
  white-space: pre;
  overflow: hidden;
}
.mock-code .key    { color: #7dd3fc; }
.mock-code .string { color: #86efac; }
.mock-code .num    { color: #fca5a5; }

/* Flow visualization in demo */
.flow-vis {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 20px 16px;
  flex-wrap: wrap;
}
.fv {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 10px;
  border-radius: 9px;
  font-size: 0.68rem;
  font-weight: 600;
  min-width: 56px;
  text-align: center;
}
.fv i { font-size: 1rem; }
.fv span { font-size: 0.62rem; }
.fv--done   { background: rgba(34,197,94,.15); color: #4ade80; }
.fv--active { background: rgba(79,70,229,.25); color: #818cf8; animation: pulseCard 1.5s ease-in-out infinite; }
.fv--idle   { background: rgba(148,163,184,.1); color: #64748b; }
.fv-arr { color: #334155; font-size: 0.6rem; }
.fv-arr--dim { opacity: .4; }

@keyframes pulseCard {
  0%,100% { background: rgba(79,70,229,.2); }
  50%      { background: rgba(79,70,229,.35); }
}

.demo-info { padding: 20px 22px 22px; }
.demo-info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.demo-info p { font-size: 0.83rem; color: var(--text-muted); margin-bottom: 14px; }
.demo-btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* =============================================
   ABOUT
   ============================================= */
.about { background: var(--bg-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}

.values { display: flex; flex-direction: column; gap: 18px; margin: 28px 0 0; }
.val-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.val-ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--indigo-l);
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.val-item strong { display: block; font-size: 0.92rem; font-weight: 700; margin-bottom: 3px; }
.val-item p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; }

/* Skills board */
.skills-board {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  box-shadow: var(--shadow-lg);
}
.sb-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 20px;
}
.sbd {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.sbd--green { background: #22c55e; }

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.sc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-2);
  transition: all var(--transition);
}
.sc:hover { border-color: var(--indigo-l); background: var(--indigo-xl); }
.sc i { font-size: 0.85rem; }
.sc--indigo { background: var(--indigo-l); color: var(--indigo); border-color: rgba(79,70,229,.2); }
.sc--amber  { background: var(--amber-l);  color: #92400e; border-color: rgba(245,158,11,.2); }
.sc--teal   { background: var(--teal-l);   color: #115e59; border-color: rgba(20,184,166,.2); }

.sb-metrics {
  display: flex;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.sbm { flex: 1; text-align: center; }
.sbm-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--indigo);
  display: block;
}
.sbm-key { font-size: 0.73rem; color: var(--text-muted); }
.sbm-sep { width: 1px; height: 36px; background: var(--border); }

/* =============================================
   CONTACT
   ============================================= */
.contact {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.contact-blob {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.06) 0%, transparent 70%);
  top: -200px; right: -200px;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 18px 0 32px;
}

.channels { display: flex; flex-direction: column; gap: 12px; }
.ch-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.ch-card:hover { border-color: var(--indigo-l); box-shadow: var(--shadow); transform: translateX(4px); }

.ch-ico {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--indigo-l);
  color: var(--indigo);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.ch-ico--wa { background: rgba(37,211,102,.12); color: #16a34a; }
.ch-ico--li { background: rgba(10,102,194,.1);  color: #0a66c2; }

.ch-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); font-weight: 600; margin-bottom: 2px; }
.ch-val   { font-size: 0.88rem; font-weight: 500; color: var(--text-2); }

/* ── Form ── */
.form-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.form-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { margin-bottom: 18px; position: relative; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 12px 15px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: all var(--transition);
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field textarea:focus {
  border-color: var(--indigo);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.field input.err, .field textarea.err {
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(244,63,94,.08);
}
.field-err {
  display: none;
  font-size: 0.75rem;
  color: var(--rose);
  margin-top: 5px;
}
.field-err.show { display: block; }

.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(20,184,166,.08);
  border: 1px solid rgba(20,184,166,.25);
  border-radius: 9px;
  margin-top: 14px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 500;
}
.form-success.show { display: flex; }
.form-success i { font-size: 1.2rem; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--text);
  color: rgba(255,255,255,.65);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 60px 0 48px;
}

.footer-brand .logo { color: #fff; }
.footer-brand .logo span { color: #818cf8; }
.footer-brand .logo-mark { background: linear-gradient(135deg, #818cf8, #67e8f9); }
.footer-brand > p {
  font-size: 0.85rem;
  margin-top: 12px;
  line-height: 1.7;
  max-width: 240px;
}
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.footer-socials a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 0.85rem;
  transition: all var(--transition);
}
.footer-socials a:hover {
  background: rgba(79,70,229,.3);
  border-color: rgba(129,140,248,.4);
  color: #fff;
  transform: translateY(-2px);
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: .03em;
}
.footer-col ul { display: flex; flex-direction: column; gap: 9px; }
.footer-col a {
  font-size: 0.83rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,.35); }
.ft-tagline { color: rgba(79,70,229,.6) !important; font-style: italic; }

/* =============================================
   RESPONSIVE — TABLET (≤ 960px)
   ============================================= */
@media (max-width: 960px) {
  .section { padding: 80px 0; }

  .hero__body { grid-template-columns: 1fr; gap: 48px; }
  .hero__right { max-width: 500px; }
  .brk { display: block; }

  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .sol-grid { grid-template-columns: 1fr 1fr; }
  .demos-grid { grid-template-columns: 1fr 1fr; }

  .proj-card {
    grid-template-columns: 60px 1fr;
    grid-template-rows: auto auto;
  }
  .proj-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: flex-start;
    min-width: auto;
  }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* =============================================
   RESPONSIVE — MOBILE (≤ 640px)
   ============================================= */
@media (max-width: 640px) {
  .section { padding: 60px 0; }

  /* Navbar */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
    gap: 3px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link { padding: 12px 14px; font-size: 1rem; }
  .nav-cta-wrap { margin: 8px 0 0; }
  .btn--nav { justify-content: center; padding: 13px; }

  .hero-title { font-size: 2rem; }
  .hero-sub { font-size: 0.93rem; }
  .hero-actions { flex-direction: column; }
  .hcard-stack { gap: 12px; }

  .svc-grid, .sol-grid, .demos-grid { grid-template-columns: 1fr; }

  .proj-card { grid-template-columns: 1fr; padding: 24px 20px; }
  .proj-features { grid-template-columns: 1fr; }
  .proj-meta { flex-direction: row; align-items: center; }

  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .statsbar-inner { gap: 0; }
  .sbi { padding: 8px 16px; }
  .sbi-sep { height: 28px; }

  .sec-title { font-size: 1.7rem; }
}