/* ===== Nexcode — design tokens ===== */
:root{
  --bg: #07090d;
  --surface: #10141c;
  --surface-2: #171d29;
  --glass: rgba(23,29,41,0.55);
  --border: #222a38;
  --border-soft: rgba(255,255,255,0.06);
  --text: #ECF1F8;
  --text-muted: #8996A8;
  --accent-blue: #5B8DEF;
  --accent-blue-2: #7FA6FF;
  --accent-amber: #F0A63A;
  --accent-green: #3DD68C;
  --glow-blue: rgba(91,141,239,0.35);
  --glow-amber: rgba(240,166,58,0.28);
  --glow-green: rgba(61,214,140,0.28);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --max-w: 1200px;
  --ease: cubic-bezier(.16,1,.3,1);
}

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

html{ scroll-behavior: smooth; }

body{
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle base wash so surfaces never sit on pure flat black */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 12% -5%, rgba(91,141,239,0.10), transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(240,166,58,0.06), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(61,214,140,0.05), transparent 45%);
}

/* film-grain texture for a premium, non-flat surface */
body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap{ max-width: var(--max-w); margin: 0 auto; padding: 0 28px; position: relative; }

a{ color: inherit; text-decoration: none; }

img{ max-width:100%; display:block; }

::selection{ background: var(--accent-blue); color: #08101c; }

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

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ===== Eyebrow / comment-style label ===== */
.eyebrow{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-blue);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.eyebrow::before{ content: "//"; color: var(--text-muted); }

/* ===== Header / nav ===== */
header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,9,13,0.72);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
header.scrolled{
  background: rgba(7,9,13,0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 12px 40px -20px rgba(0,0,0,0.6);
}
.nav{
  display:flex;
  align-items:center;
  justify-content: space-between;
  height: 76px;
  transition: height .3s var(--ease);
}
header.scrolled .nav{ height: 64px; }
.logo{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  display:flex;
  align-items:center;
  gap: 10px;
}
.logo .dot{
  width:8px; height:8px; border-radius:50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green), 0 0 2px var(--accent-green);
}
.logo .build-tag{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
}
.nav-links{
  display:flex;
  gap: 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  flex-wrap: nowrap;
}
.nav-links a{
  position: relative;
  padding: 6px 0;
  transition: color .2s;
  display:flex;
  align-items:baseline;
  gap: 3px;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active{ color: var(--text); }
.nav-links a .ext{
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-blue);
  opacity: .7;
}
.nav-links a.active::after{
  content:"";
  position:absolute;
  left:0; bottom:-2px;
  width: 6px; height:6px; border-radius:50%;
  background: var(--accent-amber);
  box-shadow: 0 0 8px var(--accent-amber);
}
.nav-cta{
  font-family: var(--font-mono);
  font-size: 13.5px;
  background: var(--accent-blue);
  color: #08101c;
  padding: 9px 16px;
  border-radius: 6px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter .2s, transform .12s var(--ease), box-shadow .3s;
  will-change: transform;
}
.nav-cta:hover{ filter: brightness(1.12); box-shadow: 0 6px 22px -4px var(--glow-blue); }
.nav-toggle{
  display:none;
  background:none; border: 1px solid var(--border); color: var(--text);
  width: 38px; height:38px; border-radius: 8px; font-size: 16px; cursor: pointer;
}

/* ===== Layout backdrops (orbs / grid) ===== */
.bg-orbs{
  position:absolute; inset:0; overflow:hidden; z-index:-1; pointer-events:none;
}
.orb{
  position:absolute; border-radius:50%; filter: blur(70px); opacity:.55;
  will-change: transform;
}
.orb-1{ width:420px; height:420px; top:-140px; left:-80px; background: radial-gradient(circle, var(--glow-blue), transparent 70%); animation: float1 16s ease-in-out infinite; }
.orb-2{ width:360px; height:360px; top:60px; right:-100px; background: radial-gradient(circle, var(--glow-amber), transparent 70%); animation: float2 18s ease-in-out infinite; }
.orb-3{ width:300px; height:300px; bottom:-120px; left:38%; background: radial-gradient(circle, var(--glow-green), transparent 70%); animation: float1 20s ease-in-out infinite reverse; }
@keyframes float1{ 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(30px,40px); } }
@keyframes float2{ 0%,100%{ transform: translate(0,0); } 50%{ transform: translate(-40px,30px); } }

.grid-overlay{
  position:absolute; inset:0; z-index:-1; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 40%, transparent 90%);
}

.spotlight{
  position:absolute; inset:0; z-index:-1; pointer-events:none;
  background: radial-gradient(560px circle at var(--mx,50%) var(--my,20%), rgba(91,141,239,0.10), transparent 60%);
}

/* ===== Hero ===== */
.hero{ padding: 110px 0 90px; position: relative; isolation: isolate; }
.hero-inner{
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1{
  font-family: var(--font-display);
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}
.hero h1 .accent{
  background: linear-gradient(100deg, var(--accent-blue-2), var(--accent-blue) 60%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .accent2{ color: var(--accent-amber); }
.hero p.lead{
  font-size: 17.5px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 34px;
}
.hero-ctas{ display:flex; gap: 14px; flex-wrap: wrap; }
.btn{
  position: relative;
  font-weight: 600;
  font-size: 14.5px;
  padding: 14px 24px;
  border-radius: 8px;
  transition: transform .15s var(--ease), filter .2s, background .2s, box-shadow .3s, border-color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  will-change: transform;
}
.btn-primary{ background: var(--accent-blue); color: #08101c; box-shadow: 0 8px 30px -10px var(--glow-blue); }
.btn-primary:hover{ filter: brightness(1.1); box-shadow: 0 10px 34px -6px var(--glow-blue); }
.btn-ghost{ border: 1px solid var(--border); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover{ border-color: var(--accent-blue); color: var(--accent-blue); background: rgba(91,141,239,0.06); }

.trust-line{
  margin-top: 44px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  display:flex;
  align-items:center;
  gap: 10px;
}
.trust-line .pulse{
  width:6px; height:6px; border-radius:50%;
  background: var(--accent-green);
  animation: pulse 2s infinite;
}
@keyframes pulse{
  0%,100%{ box-shadow: 0 0 0 0 rgba(61,214,140,0.5); }
  50%{ box-shadow: 0 0 0 5px rgba(61,214,140,0); }
}

/* ===== Terminal signature element (3D tilt + glow border) ===== */
.tilt-wrap{ perspective: 1200px; }
.terminal{
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.7);
  transform-style: preserve-3d;
  transition: transform .15s var(--ease), box-shadow .4s;
  will-change: transform;
}
.terminal::before{
  content:"";
  position:absolute; inset:-1px;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle,0deg), var(--accent-blue), var(--accent-green), var(--accent-amber), var(--accent-blue));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55;
  animation: rotate-border 6s linear infinite;
  pointer-events: none;
}
@keyframes rotate-border{ to{ --angle: 360deg; } }
@property --angle{ syntax: '<angle>'; initial-value: 0deg; inherits: false; }

.terminal-bar{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
  position: relative;
}
.terminal-bar span{
  width:10px; height:10px; border-radius:50%;
  background: #3a4456;
}
.terminal-bar .title{
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.terminal-body{
  padding: 22px 20px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  min-height: 220px;
  position: relative;
}
.terminal-body .line{ margin-bottom: 10px; opacity: 0; animation: reveal .4s forwards; }
.terminal-body .prompt{ color: var(--accent-blue); }
.terminal-body .err{ color: #EF6767; }
.terminal-body .ok{ color: var(--accent-green); }
.terminal-body .muted{ color: var(--text-muted); }
.cursor{
  display:inline-block; width:7px; height:14px;
  background: var(--accent-amber);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}
@keyframes blink{ 50%{ opacity:0; } }
@keyframes reveal{ to{ opacity:1; } }

/* ===== Section base ===== */
section{ padding: 100px 0; border-top: 1px solid var(--border); position: relative; }
.section-head{ max-width: 620px; margin-bottom: 56px; }
.section-head h2{
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.section-head p{ color: var(--text-muted); margin-top: 12px; font-size: 15.5px; }

/* ===== Tech marquee ===== */
.marquee{
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  padding: 26px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee-track{
  display:flex;
  gap: 56px;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state: paused; }
.marquee-track span{
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  display:flex; align-items:center; gap: 10px;
  white-space: nowrap;
}
.marquee-track span::before{ content:"◆"; color: var(--accent-blue); font-size: 9px; opacity:.8; }
@keyframes marquee{ to{ transform: translateX(-50%); } }

/* ===== Services ===== */
.services-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card{
  --x: 50%; --y: 50%;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
  will-change: transform;
}
.service-card::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(240px circle at var(--x) var(--y), rgba(91,141,239,0.14), transparent 70%);
  opacity:0; transition: opacity .35s;
  pointer-events:none;
}
.service-card:hover::before{ opacity:1; }
.service-card:hover{ transform: translateY(-5px); border-color: rgba(91,141,239,0.4); box-shadow: 0 24px 48px -24px rgba(0,0,0,0.55); }
.service-card .icon{
  width: 44px; height:44px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 22px;
  font-family: var(--font-mono);
  color: var(--accent-blue);
  font-size: 16px;
  transition: transform .35s var(--ease);
}
.service-card:hover .icon{ transform: scale(1.08); }
.service-card h3{ font-family: var(--font-display); font-size: 19.5px; margin-bottom: 10px; }
.service-card p{ color: var(--text-muted); font-size: 14.5px; }
.service-card .tag{
  display:inline-block; margin-top:18px;
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--accent-amber);
  border: 1px solid rgba(240,166,58,0.3);
  padding: 3px 8px; border-radius: 5px;
}

/* ===== Pipeline / process ===== */
.pipeline{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.pipeline::before{
  content:"";
  position:absolute;
  top: 20px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-amber), var(--accent-green));
  opacity: .3;
}
.stage{ text-align:center; position:relative; padding: 0 8px; }
.stage .node{
  width: 40px; height:40px; border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  margin: 0 auto 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  position: relative;
  z-index: 2;
  transition: border-color .4s, color .4s, box-shadow .4s, transform .4s var(--ease);
}
.stage.is-active .node{
  border-color: var(--accent-blue); color: var(--accent-blue);
  box-shadow: 0 0 0 6px rgba(91,141,239,0.12), 0 0 24px -4px var(--glow-blue);
  transform: scale(1.08);
}
.stage h4{ font-size: 15px; margin-bottom: 6px; font-family: var(--font-display); transition: color .4s; }
.stage.is-active h4{ color: var(--accent-blue-2); }
.stage p{ font-size: 13px; color: var(--text-muted); }

/* ===== Pricing ===== */
.pricing-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card{
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent 40%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.price-card:hover{ transform: translateY(-5px); border-color: rgba(91,141,239,0.35); box-shadow: 0 24px 48px -24px rgba(0,0,0,0.55); }
.price-card.featured{
  border-color: rgba(91,141,239,0.45);
  background: linear-gradient(180deg, rgba(91,141,239,0.08), transparent 45%), var(--surface);
  box-shadow: 0 0 0 1px rgba(91,141,239,0.15), 0 24px 48px -24px rgba(0,0,0,0.6);
}
.price-card.featured:hover{ transform: translateY(-7px); }
.price-badge{
  position: absolute; top: -12px; left: 28px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  color: #08101c; background: var(--accent-blue);
  padding: 4px 10px; border-radius: 20px;
  box-shadow: 0 6px 16px -4px var(--glow-blue);
}
.price-tag{ font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); letter-spacing: .02em; margin-bottom: 14px; }
.price-amount{ font-family: var(--font-display); font-size: 17px; color: var(--text-muted); font-weight: 500; margin-bottom: 14px; }
.price-amount span{ font-size: 34px; color: var(--text); letter-spacing: -0.01em; }
.price-desc{ color: var(--text-muted); font-size: 14.5px; margin-bottom: 22px; }
.price-feat{ list-style: none; margin-bottom: 26px; flex: 1; }
.price-feat li{
  font-size: 13.5px; color: var(--text); padding: 9px 0 9px 24px;
  border-top: 1px solid var(--border-soft);
  position: relative;
}
.price-feat li:first-child{ border-top: none; }
.price-feat li::before{
  content: "✓"; position: absolute; left: 0; color: var(--accent-green);
  font-family: var(--font-mono); font-size: 12px;
}
.price-card .btn{ width: 100%; justify-content: center; }
.price-note{ text-align: center; margin-top: 30px; font-size: 13.5px; color: var(--text-muted); }

/* ===== Portfolio preview ===== */
.portfolio-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.p-card{
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
  will-change: transform;
}
.p-card:hover{ transform: translateY(-5px); border-color: rgba(91,141,239,0.4); box-shadow: 0 26px 50px -24px rgba(0,0,0,0.6); }
.p-thumb{
  height: 150px;
  background:
    radial-gradient(circle at 20% 20%, rgba(91,141,239,0.18), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(240,166,58,0.12), transparent 55%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
  background-size: 200% 200%, 200% 200%, 100% 100%;
  position: relative;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 12px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  transition: background-position .6s var(--ease);
}
.p-thumb::before{
  content:"";
  position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at 50% 50%, #000 20%, transparent 75%);
}
.p-card:hover .p-thumb{ background-position: 30% 30%, 70% 70%, 0 0; }
.p-body{ padding: 22px 24px 26px; }
.p-body h3{ font-family: var(--font-display); font-size: 17.5px; margin-bottom: 8px; }
.p-body p{ color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.p-foot{ display:flex; align-items:center; justify-content: space-between; }
.p-link{
  font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-blue);
  display:inline-flex; align-items:center; gap: 5px;
  opacity: 0; transform: translateX(-4px);
  transition: opacity .3s, transform .3s;
}
.p-card:hover .p-link{ opacity: 1; transform: translateX(0); }
.status{
  font-family: var(--font-mono);
  font-size: 11.5px;
  display:inline-flex; align-items:center; gap:6px;
  padding: 4px 9px; border-radius: 5px;
  border: 1px solid var(--border);
}
.status .d{ width:6px; height:6px; border-radius:50%; }
.status.live .d{ background: var(--accent-green); box-shadow: 0 0 6px var(--accent-green); }
.status.progress .d{ background: var(--accent-amber); box-shadow: 0 0 6px var(--accent-amber); }

/* ===== FAQ ===== */
.faq-list{ max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .25s;
}
.faq-item:has(.faq-q[aria-expanded="true"]){ border-color: rgba(91,141,239,0.35); }
.faq-q{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; text-align: left;
  padding: 20px 24px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--text);
  cursor: pointer;
}
.faq-q:hover{ color: var(--accent-blue-2); }
.faq-icon{
  flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 15px; color: var(--text-muted);
  transition: transform .3s var(--ease), background .25s, border-color .25s, color .25s;
}
.faq-q[aria-expanded="true"] .faq-icon{
  transform: rotate(135deg);
  background: var(--accent-blue); border-color: var(--accent-blue); color: #08101c;
}
.faq-a{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.faq-q[aria-expanded="true"] + .faq-a{ grid-template-rows: 1fr; }
.faq-a-inner{ overflow: hidden; }
.faq-a-inner p{ padding: 0 24px 20px; color: var(--text-muted); font-size: 14.5px; }

/* ===== CTA band ===== */
.cta-band{
  border-top: 1px solid var(--border);
  padding: 90px 0;
  text-align:center;
  position: relative;
  overflow: hidden;
}
.cta-box{
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 40px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(91,141,239,0.06), rgba(255,255,255,0.015));
  overflow: hidden;
}
.cta-box::before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(420px circle at 50% 0%, rgba(91,141,239,0.20), transparent 70%);
  pointer-events:none;
}
.cta-band h2{
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 40px);
  margin-bottom: 18px;
}
.cta-band p{ color: var(--text-muted); margin-bottom: 30px; }

/* ===== Contact form ===== */
.contact-form{ position: relative; text-align: left; }
.cf-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-field{ margin-bottom: 16px; }
.cf-field label{
  display: block; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  margin-bottom: 8px;
}
.cf-field input, .cf-field textarea{
  width: 100%;
  background: rgba(7,9,13,0.5);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.cf-field input:focus, .cf-field textarea:focus{
  outline: none; border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(91,141,239,0.15);
}
.cf-field textarea{ min-height: 110px; resize: vertical; }
.contact-form .btn{ width: 100%; justify-content: center; }
.cf-note{ margin-top: 16px; font-size: 12.5px; color: var(--text-muted); }
.cf-note a{ color: var(--accent-blue); }
.cf-note a:hover{ text-decoration: underline; }
@media (max-width: 560px){ .cf-row{ grid-template-columns: 1fr; } }

/* ===== Footer ===== */
footer{ border-top: 1px solid var(--border); padding: 44px 0; position: relative; }
footer::before{
  content:"";
  position:absolute; top:-1px; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  opacity:.4;
}
.footer-grid{
  display:flex;
  justify-content: space-between;
  align-items:center;
  flex-wrap: wrap;
  gap: 18px;
}
footer .logo{ font-size: 17px; }
.footer-links{ display:flex; gap: 26px; font-size: 13.5px; color: var(--text-muted); }
.footer-links a:hover{ color: var(--text); }
.footer-meta{ font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }

/* ===== Reveal on scroll =====
   Uses the standalone `translate` property (not `transform`) so the fade-in
   never collides with the `transform` used by hover/tilt on cards. */
.reveal{ opacity: 0; translate: 0 18px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
.reveal.in{ opacity: 1; translate: 0; }

/* higher-specificity so it wins over .service-card / .p-card's own `transition`
   shorthand instead of the two rules clobbering each other */
.service-card.reveal, .p-card.reveal{
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s, opacity .7s var(--ease), translate .7s var(--ease);
}

/* delay only the opacity/translate reveal (last 2 of the 5 listed transitions) —
   leaves hover transitions on transform/border-color/box-shadow instant, un-delayed */
.services-grid .service-card:nth-child(2),
.portfolio-grid .p-card:nth-child(2){ transition-delay: 0s, 0s, 0s, .09s, .09s; }
.services-grid .service-card:nth-child(3),
.portfolio-grid .p-card:nth-child(3){ transition-delay: 0s, 0s, 0s, .18s, .18s; }

/* ===== Focus ===== */
a:focus-visible, button:focus-visible{
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

/* ===== Responsive ===== */
/* Trim the nav (now 7 links) before it collapses to the hamburger drawer */
@media (min-width: 901px) and (max-width: 1360px){
  .logo .build-tag{ display:none; }
  .nav-links{ gap: 14px; }
  .nav-links a .ext{ display:none; }
}
@media (max-width: 900px){
  .hero-inner{ grid-template-columns: 1fr; }
  .services-grid, .portfolio-grid, .pricing-grid{ grid-template-columns: 1fr; }
  .price-card.featured{ order: -1; }
  .pipeline{ grid-template-columns: 1fr; gap: 26px; }
  .pipeline::before{ display:none; }
  .nav-links{
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(7,9,13,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden;
    transition: max-height .35s var(--ease);
  }
  .nav-links.open{ max-height: 320px; }
  .nav-links a{ padding: 16px 28px; border-top: 1px solid var(--border-soft); }
  .nav-toggle{ display:block; }
}
@media (max-width: 560px){
  .cta-box{ padding: 44px 24px; }
}
