/* ─── Design Tokens ─── */
:root {
  --bg: #040A14;
  --surface: #0B1525;
  --surface-2: #112038;
  --accent: #E31B23;
  --accent-glow: rgba(227,27,35,0.25);
  --text: #F0F4F8;
  --text-muted: #8FA3BC;
  --border: rgba(255,255,255,0.07);
  --max: 1200px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── Layout ─── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ─── Typography ─── */
h1 { font-size: clamp(2.6rem,5.5vw,4.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem,3.5vw,2.75rem); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { color: var(--text-muted); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.22s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 28px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--accent-glow), 0 8px 25px rgba(227,27,35,0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}

/* ─── Navigation ─── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(4,10,20,0.82);
  backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  line-height: 1;
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.logo:hover .logo-img { opacity: 0.85; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  height: 2px; width: 0;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}
.nav-links a:hover,.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 10px;
  font-weight: 700 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { box-shadow: 0 0 22px var(--accent-glow); transform: translateY(-1px); }

.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 13px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s;
}
.menu-btn:hover { background: rgba(255,255,255,0.06); }

/* Mobile Menu */
#mobileMenu {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 0 16px;
}
#mobileMenu[hidden] { display: none; }
.mobile-nav { display: grid; gap: 2px; padding: 0 20px; }
.mobile-nav a {
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.mobile-nav a:hover,.mobile-nav a.active {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

/* ─── Hero logo decorativo ─── */
.hero-logo-deco {
  position: absolute;
  right: 3%;
  top: 50%;
  transform: translateY(-50%);
  height: 72%;
  max-height: 600px;
  width: auto;
  opacity: 0.06;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  filter: saturate(0) brightness(10);
}

/* ─── Hero ─── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 60%, rgba(227,27,35,0.13) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 25%, rgba(37,99,235,0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 95%, rgba(100,20,20,0.07) 0%, transparent 50%);
  z-index: 1;
}
.hero > .wrap { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(227,27,35,0.1);
  border: 1px solid rgba(227,27,35,0.22);
  color: #FF7070;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:0.5; transform:scale(1.4); }
}

.hero h1 { color: var(--text); margin-bottom: 24px; }
.hero h1 .line-1 { display: block; }
.hero h1 .line-2 {
  display: block;
  background: linear-gradient(135deg, var(--accent) 0%, #FF8C42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-height: 1.2em;
}

.cursor {
  display: inline-block;
  width: 3px; height: 0.82em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: middle;
  border-radius: 2px;
  animation: blink 0.9s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-sub {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 40px;
  line-height: 1.78;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ─── Marquee ─── */
.marquee-section {
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: color 0.2s;
}
.marquee-item:hover { color: var(--text); }
.marquee-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── Sections ─── */
section { padding: 96px 0; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-title { color: var(--text); margin-bottom: 14px; }
.section-sub {
  font-size: 1.03rem;
  color: var(--text-muted);
  max-width: 55ch;
  margin-bottom: 56px;
  line-height: 1.78;
}

/* ─── Cards ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.card:hover {
  border-color: rgba(227,27,35,0.22);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(227,27,35,0.08);
  transform: translateY(-5px);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 20px;
  background: rgba(227,27,35,0.1);
  border: 1px solid rgba(227,27,35,0.2);
}
.card h3 { color: var(--text); margin-bottom: 10px; }
.card p { font-size: 0.92rem; line-height: 1.7; }

.card-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 18px;
}
.tag {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ─── Grids ─── */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

/* ─── Stats ─── */
.stats-bg {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.stats-inner { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item {
  text-align: center;
  padding: 52px 20px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: clamp(2.8rem,4vw,3.8rem);
  font-weight: 800;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }

/* ─── Process ─── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 0;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(100%/6);
  right: calc(100%/6);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227,27,35,0.45), transparent);
}
.process-step { padding: 0 28px; text-align: center; }
.step-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  color: var(--accent);
  margin: 0 auto 24px;
  position: relative; z-index: 1;
  transition: all 0.3s;
}
.process-step:hover .step-num {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 28px var(--accent-glow);
}
.process-step h3 { color: var(--text); margin-bottom: 8px; }

/* ─── Portfolio ─── */
.portfolio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.32s ease;
}
.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(227,27,35,0.15);
  border-color: rgba(227,27,35,0.2);
}
.portfolio-thumb {
  height: 190px;
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.2rem;
  position: relative;
  overflow: hidden;
}
.portfolio-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--surface));
}
.portfolio-body { padding: 24px; }
.portfolio-body h3 { color: var(--text); margin-bottom: 8px; }
.portfolio-result {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  color: #4ADE80;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 12px;
}

/* ─── CTA Section ─── */
.cta-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(227,27,35,0.07) 0%, rgba(37,99,235,0.05) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-section h2 { color: var(--text); margin-bottom: 16px; }
.cta-section p { margin-bottom: 40px; font-size: 1.08rem; }

/* ─── Contact ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 { color: var(--text); margin-bottom: 14px; }
.contact-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(227,27,35,0.1);
  border: 1px solid rgba(227,27,35,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-label { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-val { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.contact-val a { color: var(--text); transition: color 0.2s; }
.contact-val a:hover { color: var(--accent); }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}
.form-card h3 { color: var(--text); margin-bottom: 24px; font-size: 1.3rem; }
.form-group { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

input, textarea, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: rgba(227,27,35,0.5);
  box-shadow: 0 0 0 3px rgba(227,27,35,0.08);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
select option { background: var(--surface); }
textarea { resize: vertical; min-height: 130px; }

/* ─── Footer ─── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; display: inline-flex; }
.footer-brand .logo-img { height: 32px; }
.footer-brand p { font-size: 0.88rem; max-width: 30ch; line-height: 1.78; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ─── Page hero ─── */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(to bottom, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at right top, rgba(227,27,35,0.09), transparent 70%);
  pointer-events: none;
  z-index: 2;
}
/* Page-hero canvas layers (reuses hero3d.js) */
.page-hero #heroCanvas { z-index: 0; }
.page-hero #codeRain   { z-index: 1; }
.page-hero .wrap { position: relative; z-index: 4; }

/* ─── Generic background canvas (circuit.js / keyboard3d.js) ─── */
#bgCanvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.page-hero #bgCanvas { z-index: 0; }

/* Tall hero variant — keyboard needs more vertical space */
.page-hero--tall {
  padding: 160px 0 120px;
  min-height: 480px;
}
/* Scan lines */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.012) 2px,
    rgba(0,0,0,0.012) 4px
  );
  z-index: 3;
  pointer-events: none;
}
.page-hero h1 { color: var(--text); margin-bottom: 16px; }
.page-hero p { font-size: 1.08rem; max-width: 55ch; }

/* ─── Code Rain Canvas ─── */
#codeRain {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.55;
  mix-blend-mode: screen;
}

/* ─── Hero z-index stack ─── */
#heroCanvas   { z-index: 0; }
.hero-bg      { z-index: 2; }
.hero-logo-deco { z-index: 3; }
.hero > .wrap { z-index: 4; }

/* ─── Scan-line texture ─── */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.012) 2px,
    rgba(0,0,0,0.012) 4px
  );
  z-index: 5;
  pointer-events: none;
}

/* ─── Hero bottom fade ─── */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 6;
  pointer-events: none;
}

/* ─── Hero badge enhanced ─── */
.hero-badge {
  box-shadow: 0 0 32px rgba(227,27,35,0.18), inset 0 0 16px rgba(227,27,35,0.06);
}

/* ─── Hero headline glow ─── */
.hero h1 .line-2 {
  filter: drop-shadow(0 0 28px rgba(227,27,35,0.35));
}

/* ─── Section tag neon ─── */
.section-tag {
  text-shadow: 0 0 14px rgba(227,27,35,0.7);
}

/* ─── Card tilt & shine ─── */
.card, .portfolio-card {
  --shine-x: 50%;
  --shine-y: 50%;
  will-change: transform;
  transition: box-shadow 0.3s ease, border-color 0.3s ease !important;
  position: relative;
}

.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--shine-x) var(--shine-y), rgba(255,255,255,0.07) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}
.card:hover::after { opacity: 1; }

/* ─── Step number pulse ─── */
.step-num {
  animation: stepPulse 3.5s ease-in-out infinite;
}
@keyframes stepPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(227,27,35,0.5); }
  50%      { box-shadow: 0 0 0 10px rgba(227,27,35,0); }
}

/* ─── Stats number glow ─── */
.stat-num {
  text-shadow: 0 0 40px rgba(255,255,255,0.12);
}

/* ─── Stats section animated border ─── */
.stats-bg {
  position: relative;
  overflow: hidden;
}
.stats-bg::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  height: 1px; width: 300%;
  background: linear-gradient(90deg, transparent, rgba(227,27,35,0.5), rgba(59,130,246,0.4), transparent);
  animation: scanLine 6s linear infinite;
}
@keyframes scanLine {
  from { transform: translateX(0); }
  to   { transform: translateX(33.33%); }
}

/* ─── CTA section animated glow ─── */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(227,27,35,0.1) 0%, transparent 65%);
  animation: ctaBreath 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ctaBreath {
  0%,100% { transform: scale(1);   opacity: 1; }
  50%      { transform: scale(1.15); opacity: 0.6; }
}

/* ─── Marquee item hover glow ─── */
.marquee-item:hover {
  color: var(--text);
  text-shadow: 0 0 10px rgba(255,255,255,0.25);
}

/* ─── Portfolio card featured border glow ─── */
@keyframes featuredGlow {
  0%,100% { border-color: rgba(227,27,35,0.2); box-shadow: 0 0 0 rgba(227,27,35,0); }
  50%      { border-color: rgba(227,27,35,0.5); box-shadow: 0 0 40px rgba(227,27,35,0.1), 0 0 80px rgba(227,27,35,0.04); }
}

/* ─── Grid cards entrance glow on hover ─── */
.card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(227,27,35,0.1), 0 0 0 1px rgba(227,27,35,0.12) !important;
}
.portfolio-card:hover {
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 50px rgba(227,27,35,0.12), 0 0 0 1px rgba(227,27,35,0.18) !important;
}

/* ─── Page hero glow line ─── */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227,27,35,0.4), rgba(59,130,246,0.3), transparent);
}

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ─── Services detail ─── */
.service-feature-list {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 7px;
}
.service-feature-list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.service-feature-list li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

/* ─── Values ─── */
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: all 0.3s;
}
.value-card:hover { border-color: rgba(227,27,35,0.2); transform: translateY(-3px); }
.value-icon { font-size: 2rem; margin-bottom: 14px; }
.value-card h3 { color: var(--text); margin-bottom: 8px; }

/* ─── Tech stack ─── */
.tech-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
}
.tech-pill:hover {
  border-color: rgba(227,27,35,0.25);
  color: var(--text);
  background: rgba(227,27,35,0.06);
}

/* ─── Cookie Banner ─── */
#cookieBanner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 998;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.4);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
#cookieBanner.cb-hide { transform: translateY(100%); opacity: 0; }
.cb-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cb-text { flex: 1; min-width: 260px; }
.cb-text strong { color: var(--text); font-size: 0.95rem; display: block; margin-bottom: 4px; }
.cb-text p { font-size: 0.84rem; color: var(--text-muted); margin: 0 0 6px; line-height: 1.6; }
.cb-text a { color: var(--accent); font-size: 0.82rem; }
.cb-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cb-btn {
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}
.cb-accept { background: var(--accent); color: #fff; }
.cb-accept:hover { opacity: 0.88; }
.cb-reject { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.cb-reject:hover { background: rgba(255,255,255,0.05); color: var(--text); }

/* ─── WhatsApp floating button ─── */
.wa-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: wa-pulse 2.5s infinite;
}
.wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.65);
  animation: none;
}
.wa-btn svg { width: 32px; height: 32px; fill: #fff; }
.wa-btn .wa-tooltip {
  position: absolute;
  right: 68px;
  background: #fff;
  color: #111;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: opacity 0.2s;
}
.wa-btn:hover .wa-tooltip { opacity: 1; }

@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,0.75), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ─── Featured portfolio card (Metafora) ─── */
.portfolio-card-featured > div {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats-inner { grid-template-columns: repeat(2,1fr); }
  .stats-inner .stat-item:nth-child(2) { border-right: none; }
  .stats-inner .stat-item:nth-child(3) { border-top: 1px solid var(--border); }
  .stats-inner .stat-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  /* Metafora featured card: stack vertically on mobile */
  .portfolio-card > div[style*="grid-template-columns:1fr 1.6fr"] {
    grid-template-columns: 1fr !important;
  }
  .portfolio-card > div > .portfolio-thumb[style*="border-radius:20px 0 0 20px"] {
    border-radius: 0 !important;
    min-height: 160px !important;
  }
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .process-grid::before { display: none; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
  .hero { padding: 100px 0 60px; }
  .page-hero { padding: 110px 0 56px; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .stats-inner { grid-template-columns: 1fr; }
  .stats-inner .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
}
