/* ============================================================
   NamQool Studio — Dark / Techy theme
   Base: #0D1117 · Accent: #8B5CF6
   ============================================================ */
:root {
  --bg: #0D1117;
  --bg-soft: #11161D;
  --bg-elev: #161B22;
  --bg-hover: #1C2129;
  --border: #2D333B;
  --border-soft: #22272E;
  --text: #E6EDF3;
  --text-soft: #ADBAC7;
  --muted: #768390;
  --accent: #8B5CF6;
  --accent-soft: #A78BFA;
  --accent-dim: rgba(139, 92, 246, .12);
  --green: #56D364;
  --cyan: #39C5CF;
  --yellow: #E3B341;
  --red: #F47067;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --maxw: 1180px;
  --nav-h: 70px;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Background grid ---------- */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(139,92,246,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 500px at 70% -10%, rgba(139,92,246,.16), transparent 60%);
}

/* ---------- Container ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .mono {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); line-height: 1.25; }
h3 { font-size: 1.2rem; }
p { color: var(--text-soft); }

.accent { color: var(--accent-soft); }
.bright { color: var(--text); }
.green { color: var(--green); }
.cyan { color: var(--cyan); }

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.section-title .st-code, .code-c {
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: .85em;
}
.section-sub { color: var(--muted); margin-bottom: 40px; max-width: 640px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all .2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 transparent;
}
.btn-primary:hover {
  background: var(--accent-soft);
  box-shadow: 0 0 22px rgba(139,92,246,.55);
  transform: translateY(-1px);
}
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-soft); box-shadow: 0 0 16px rgba(139,92,246,.25); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn .btn-arrow { transition: transform .2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(13,17,23,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand-logo { border-radius: 6px; }
.brand-name {
  font-family: var(--mono);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.brand-name-sm { font-size: .98rem; }
.brand-name .accent { color: var(--accent-soft); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--text-soft);
  text-decoration: none;
  font-family: var(--mono);
  font-size: .9rem;
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-marker { color: var(--muted); font-size: .9em; }
.nav-link:hover { color: var(--text); background: var(--bg-hover); }
.nav-link.is-active { color: var(--accent-soft); }
.nav-link.is-active .nav-marker { color: var(--accent); }
.nav-lang { margin-left: 6px; }
.nav-lang .nav-marker { font-size: .95em; }
.nav-cta { margin-left: 8px; padding: 8px 16px; font-size: .85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  cursor: pointer;
}
.nav-toggle span {
  width: 20px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: .25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 70px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--mono);
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 18px;
}
.hero-eyebrow .p-caret { color: var(--accent-soft); }
.hero h1 { margin-bottom: 20px; }
.typing-line {
  font-family: var(--mono);
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  color: var(--green);
  min-height: 1.6em;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
.typing-line .cursor {
  display: inline-block;
  width: .6em;
  height: 1.1em;
  background: var(--accent-soft);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero-desc { margin: 18px 0 32px; max-width: 540px; color: var(--muted); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-stat .h-num {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}
.hero-stat .h-label { font-size: .85rem; color: var(--muted); }

/* Terminal window */
.terminal {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--mono);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border-soft);
}
.t-dot { width: 12px; height: 12px; border-radius: 50%; }
.t-red { background: #FF5F56; }
.t-yellow { background: #FFBD2E; }
.t-green { background: #27C93F; }
.t-title { flex: 1; text-align: center; font-size: .78rem; color: var(--muted); }
.terminal-body { padding: 20px 22px 24px; font-size: .86rem; line-height: 1.9; }
.t-line { white-space: pre-wrap; word-break: break-word; }
.t-line .t-arrow { color: var(--accent-soft); }
.t-line .t-flag { color: var(--green); }
.t-line .t-key { color: var(--cyan); }
.t-line .t-mut { color: var(--muted); }
.t-cursor-em { display: inline-block; width: .55em; height: 1em; background: var(--accent-soft); animation: blink 1s steps(1) infinite; vertical-align: text-bottom; }

.pulse-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(86,211,100,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(86,211,100,.55); }
  70% { box-shadow: 0 0 0 9px rgba(86,211,100,0); }
  100% { box-shadow: 0 0 0 0 rgba(86,211,100,0); }
}

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-alt { background: rgba(22,27,34,.6); border-block: 1px solid var(--border-soft); }

/* ---------- Services ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(400px 120px at 50% -20%, var(--accent-dim), transparent 60%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: rgba(139,92,246,.5); box-shadow: 0 0 24px rgba(139,92,246,.18); }
.card:hover::before { opacity: 1; }
.card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(139,92,246,.35);
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.card p { font-size: .92rem; color: var(--muted); }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* ---------- Badges / Tags ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: .76rem;
  white-space: nowrap;
}
.badge::before { content: '#'; color: var(--accent-soft); }
.badge-accent { border-color: rgba(139,92,246,.5); color: var(--accent-soft); }
.badge-green { border-color: rgba(86,211,100,.4); color: var(--green); }
.badge-cyan { border-color: rgba(57,197,207,.4); color: var(--cyan); }
.badge-yellow { border-color: rgba(227,179,65,.45); color: var(--yellow); }

/* ---------- Featured projects ---------- */
.proj-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  padding: 0;
  overflow: hidden;
}
.proj-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(300px 100px at 30% 0%, rgba(139,92,246,.25), transparent 60%),
    var(--bg-soft);
  font-family: var(--mono);
  color: var(--accent-soft);
  font-size: 2.2rem;
}
.proj-thumb.warm {
  background:
    radial-gradient(300px 100px at 30% 0%, rgba(212,188,153,.15), transparent 60%),
    var(--bg-soft);
  color: #d4bc99;
}
.proj-thumb.green {
  background:
    radial-gradient(300px 100px at 30% 0%, rgba(86,211,100,.2), transparent 60%),
    var(--bg-soft);
  color: var(--green);
}
.proj-thumb .glyph-run { color: var(--muted); font-size: 1rem; }
.proj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proj-thumb picture { display: block; width: 100%; height: 100%; }
.proj-thumb.has-img { padding: 0; align-items: stretch; overflow: hidden; }
.proj-thumb.has-img .glyph-run, .proj-thumb.has-img > span:first-child { display: none; }
.proj-body { padding: 22px 24px 6px; display: flex; flex-direction: column; flex: 1; }
.proj-cat {
  font-family: var(--mono);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-soft);
  margin-bottom: 8px;
}
.proj-card h3 { margin-bottom: 10px; }
.proj-card p { font-size: .9rem; color: var(--muted); flex: 1; margin-bottom: 16px; }
.proj-meta { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 18px; border-top: 1px dashed var(--border); font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.proj-meta .proj-link { color: var(--accent-soft); display: inline-flex; align-items: center; gap: 6px; }
.proj-meta .proj-link:hover span { transform: translateX(3px); transition: transform .2s; }

/* ---------- Testimonials ---------- */
.ts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ts-card { display: flex; flex-direction: column; }
.ts-text { font-size: .95rem; color: var(--text-soft); flex: 1; margin-bottom: 20px; }
.ts-text::before { content: '“'; font-size: 1.4rem; color: var(--accent-soft); font-family: var(--mono); }
.ts-author { display: flex; align-items: center; gap: 12px; }
.ts-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-dim);
  border: 1px solid rgba(139,92,246,.4);
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: .95rem;
  font-weight: 600;
}
.ts-name { font-family: var(--mono); font-size: .88rem; color: var(--text); }
.ts-role { font-size: .78rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(57,197,207,.08));
  border-block: 1px solid rgba(139,92,246,.3);
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 30px; }
.cta-band .btn-group { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero ---------- */
.page-hero { padding: 70px 0 30px; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero p { max-width: 680px; color: var(--muted); }

.project-hero { position: relative; line-height: 0; }
.project-hero .hero-bg { display: none; }
.project-hero .hero-overlay { display: none; }
.project-hero .project-hero-content { line-height: 1.6; padding-block: 26px 8px; }
.project-hero .crumbs { margin-bottom: 14px; }
.project-hero .proj-cat { display: inline-block; margin-bottom: 8px; }
.project-hero .project-hero-content p { max-width: 680px; }
.project-hero .hero-standalone { display: block; width: 100%; margin: 24px 0 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.project-hero .hero-standalone img { width: 100%; height: 230px; object-fit: cover; display: block; }
.project-hero .pd-meta { margin: 20px 0 0; }

@media (min-width: 761px) {
  .project-hero .hero-bg { display: block; width: 100%; }
  .project-hero .hero-bg img { width: 100%; height: auto; display: block; }
  .project-hero .hero-standalone { display: none; }
  .project-hero .hero-overlay {
    display: block;
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(13,17,23,.70) 0%, rgba(13,17,23,.30) 40%, rgba(13,17,23,.78) 82%, var(--bg) 100%);
  }
  .project-hero .project-hero-content {
    position: absolute; top: 0; left: 0; right: 0;
    padding-block: clamp(28px, 6vw, 64px);
  }
}
.crumbs {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.crumbs a { color: var(--accent-soft); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 8px; color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: start; }
.about-story p { margin-bottom: 18px; }
.about-story h3 { margin: 26px 0 12px; }
.about-values { display: grid; gap: 14px; }
.value-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.value-item .v-code { font-family: var(--mono); color: var(--accent-soft); font-size: .9rem; }
.value-item h4 { font-family: var(--mono); font-size: .95rem; margin-bottom: 4px; }
.value-item p { font-size: .88rem; color: var(--muted); }
.stack-block { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.stack-group { margin-bottom: 22px; }
.stack-group:last-child { margin-bottom: 0; }
.stack-group h4 { font-family: var(--mono); font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.stack-group .badges { display: flex; flex-wrap: wrap; gap: 8px; }
.stack-group .badge { background: var(--bg); }

/* ---------- Project grid ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.proj-grid .card { padding: 0; }

/* ---------- Project detail ---------- */
.pd-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 34px; }
.pd-thumb {
  height: 240px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  font-family: var(--mono);
  background:
    radial-gradient(500px 180px at 50% 0%, rgba(139,92,246,.18), transparent 65%),
    var(--bg-soft);
  color: var(--accent-soft);
  margin-bottom: 44px;
}
.pd-thumb.warm { background: radial-gradient(500px 180px at 50% 0%, rgba(212,188,153,.12), transparent 65%), var(--bg-soft); color: #d4bc99; }
.pd-thumb.green { background: radial-gradient(500px 180px at 50% 0%, rgba(86,211,100,.14), transparent 65%), var(--bg-soft); color: var(--green); }
.pd-thumb .icon { font-size: 3rem; }
.pd-thumb .caption { font-size: .8rem; color: var(--muted); }
.pd-thumb img { width: 100%; height: auto; object-fit: cover; display: block; border-radius: var(--radius); }
.pd-thumb.has-img { padding: 0; border: 1px solid var(--border); background: var(--bg-soft); height: auto; overflow: hidden; }
.pd-thumb.has-img .icon, .pd-thumb.has-img .caption { display: none; }

.pd-body { display: grid; gap: 40px; }
.pd-section { max-width: 820px; }
.pd-section h2 {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.25rem;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
.pd-section h2 .sec-code { color: var(--accent-soft); font-size: .8em; }
.pd-section p { margin-bottom: 14px; }
.pd-features { list-style: none; display: grid; gap: 10px; }
.pd-features li {
  position: relative;
  padding-left: 26px;
  color: var(--text-soft);
  font-size: .95rem;
}
.pd-features li::before {
  content: '▸';
  position: absolute;
  left: 4px;
  color: var(--accent-soft);
  font-family: var(--mono);
}
.pd-stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.pd-role {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: .95rem;
  color: var(--text-soft);
}
.pd-outcome { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.outcome-item { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; }
.outcome-item .o-num { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--accent-soft); display: block; margin-bottom: 6px; }
.outcome-item .o-num.green { color: var(--green); }
.outcome-item .o-text { font-size: .85rem; color: var(--muted); }
.pd-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.blog-card .b-cat { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.blog-card h3 { margin-bottom: 10px; transition: color .15s; }
.blog-card:hover h3 { color: var(--accent-soft); }
.blog-card .b-excerpt { font-size: .9rem; color: var(--muted); flex: 1; margin-bottom: 16px; }
.blog-card .b-meta {
  display: flex; gap: 16px;
  font-family: var(--mono); font-size: .78rem; color: var(--muted);
  border-top: 1px dashed var(--border); padding-top: 14px;
}

.article { max-width: 760px; margin: 0 auto; }
.article .a-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 34px; font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.article h2 { font-size: 1.4rem; margin: 38px 0 14px; }
.article h3 { font-size: 1.12rem; margin: 30px 0 12px; }
.article p { margin-bottom: 16px; }
.article ul, .article ol { margin: 0 0 16px 22px; color: var(--text-soft); }
.article li { margin-bottom: 8px; }
.article ul li::marker { color: var(--accent-soft); }
.article blockquote {
  border-left: 3px solid var(--accent);
  background: var(--bg-elev);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 22px 0;
  color: var(--text-soft);
  font-style: italic;
}
.code-inline {
  font-family: var(--mono);
  font-size: .86em;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 7px;
  color: var(--accent-soft);
}
.pre-block {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  overflow-x: auto;
  margin: 20px 0;
  font-family: var(--mono);
  font-size: .85rem;
  line-height: 1.8;
  color: var(--green);
}
.pre-block .pre-c { color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; }
.form-card { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-family: var(--mono); font-size: .82rem; color: var(--muted); margin-bottom: 8px; }
.form-row label .req { color: var(--red); }
.form-hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
.form-control {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: .95rem;
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,.18);
}
textarea.form-control { resize: vertical; min-height: 140px; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: 14px; }

.contact-aside { display: grid; gap: 16px; }
.contact-channel { display: flex; gap: 16px; align-items: flex-start; background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; transition: border-color .2s; }
.contact-channel:hover { border-color: rgba(139,92,246,.5); }
.ch-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid rgba(139,92,246,.35);
  color: var(--accent-soft);
  font-family: var(--mono);
  font-size: 1.2rem;
}
.ch-body h4 { font-family: var(--mono); font-size: .95rem; margin-bottom: 4px; }
.ch-body p, .ch-body a { font-size: .9rem; color: var(--muted); text-decoration: none; }
.ch-body a:hover { color: var(--accent-soft); }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: .92rem;
  margin-bottom: 20px;
  border: 1px solid;
}
.alert-success { background: rgba(86,211,100,.08); border-color: rgba(86,211,100,.4); color: var(--green); }
.alert-error { background: rgba(244,112,103,.08); border-color: rgba(244,112,103,.4); color: var(--red); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  background: var(--bg-soft);
  padding: 56px 0 26px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 22px;
}
.footer-grid > * { min-width: 0; }
.footer-about p { font-size: .88rem; color: var(--muted); margin-top: 14px; max-width: 340px; }
.footer-title {
  font-family: var(--mono);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 16px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 9px; font-size: .9rem; color: var(--text-soft); overflow-wrap: anywhere; }
.footer-links a { color: var(--text-soft); text-decoration: none; overflow-wrap: anywhere; }
.footer-links a:hover { color: var(--accent-soft); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: .8rem;
  color: var(--muted);
}
.footer-legal { color: var(--muted); }

/* ---------- Floating WA ---------- */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 10px 30px rgba(37,211,102,.6); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.err-wrap { text-align: center; padding: 110px 0 140px; }
.err-code { font-family: var(--mono); font-size: clamp(4rem, 12vw, 7rem); font-weight: 700; color: var(--accent); }
.err-msg { font-family: var(--mono); color: var(--muted); margin: 10px 0 34px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-outcome { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(13,17,23,.98);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    gap: 2px;
    transform: translateY(-140%);
    opacity: 0;
    transition: transform .3s, opacity .3s;
    z-index: 99;
  }
  .site-nav.open { transform: translateY(0); opacity: 1; }
  .nav-link, .nav-lang, .nav-cta { justify-content: flex-start; padding: 12px; }
  .nav-toggle { display: flex; }
  .svc-grid, .ts-grid, .proj-grid, .blog-grid { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 50px; }
}