/* Blade Digital Design: shared design system (homepage + service pages). */
:root {
  --bg: #050d1c;          /* midnight navy, never pure black */
  --bg-2: #081428;
  --surface: rgba(148, 178, 255, .045);
  --surface-2: rgba(148, 178, 255, .08);
  --border: rgba(148, 178, 255, .13);
  --border-2: rgba(148, 178, 255, .24);
  --text: #e8eef8;
  --muted: #93a5c0;
  --dim: #64779a;
  --blue: #3b82f6;
  --blue-2: #2563eb;
  --teal: #2dd4bf;
  --teal-2: #14a3a0;
  --amber: #f5a524;
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;
  --radius: 18px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; background: var(--bg); }
body { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img, iframe { display: block; }
::selection { background: rgba(45, 212, 191, .3); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; position: relative; }

/* Type */
h1, h2, h3, h4 { color: #fff; letter-spacing: -.03em; font-weight: 800; }
h1 { font-size: clamp(42px, 6.6vw, 88px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.06; margin: 14px 0 18px; }
h3 { font-size: 21px; letter-spacing: -.015em; line-height: 1.3; }
.grad { background: linear-gradient(100deg, #8ab4ff 0%, var(--teal) 45%, #8ab4ff 90%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 8s linear infinite; }
@keyframes shimmer { to { background-position: -200% center; } }
.lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 640px; }
.center { text-align: center; } .center .lead { margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px var(--mono); color: var(--teal); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.center .eyebrow::after { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.mono { font-family: var(--mono); }
section { padding: 130px 0; position: relative; }

/* Buttons */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 12px; font: 600 15px inherit; font-family: inherit; cursor: pointer; border: 1px solid transparent; transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--blue-2), #1d9e9a); box-shadow: 0 10px 30px -10px rgba(37, 99, 235, .7), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(45, 212, 191, .6), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(45, 212, 191, .6); background: var(--surface-2); }

/* Navigation */
nav.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .4s, border-color .4s, backdrop-filter .4s; border-bottom: 1px solid transparent; }
nav.top.scrolled { background: rgba(5, 13, 28, .72); backdrop-filter: saturate(160%) blur(16px); border-color: var(--border); }
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.nav-links a:not(.btn) { position: relative; transition: color .2s; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--teal); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links .btn { padding: 10px 18px; font-size: 14px; }
@media (max-width: 980px) { .nav-links a:not(.btn) { display: none; } }
@media (max-width: 480px) { .logo { font-size: 16px; } .logo-mark { width: 30px; height: 30px; } .nav-links .btn { padding: 9px 13px; font-size: 13px; } .hide-sm { display: none; } }

/* Glass card with a cursor-following spotlight (fx.js sets --mx/--my) */
.glass { position: relative; background: linear-gradient(180deg, rgba(148,178,255,.06), rgba(148,178,255,.02)); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(12px); isolation: isolate; }
.spot { overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(59,130,246,.14), transparent 60%); }
.spot::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(45,212,191,.7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot:hover::before, .spot:hover::after { opacity: 1; }

/* Background texture: faint engineering grid fading out at the edges */
.grid-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(148,178,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148,178,255,.05) 1px, transparent 1px);
  background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; }

/* Scroll reveal (fx.js adds .in) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .grad { animation: none; }
  html { scroll-behavior: auto; }
}

/* Chips & tags */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font: 500 12.5px var(--mono); color: var(--muted); }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* Forms */
form.panel { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 34px; }
form.panel h3 { grid-column: 1 / -1; }
.full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
input, select, textarea { width: 100%; padding: 13px 15px; border: 1px solid var(--border-2); border-radius: 11px; font: inherit; font-size: 15px; background: rgba(5, 13, 28, .6); color: var(--text); transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: var(--dim); }
select option { background: var(--bg-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(45, 212, 191, .15); }
textarea { min-height: 120px; resize: vertical; }
.hp { display: none; }
.form-note { font-size: 13px; color: var(--dim); text-align: center; }
.form-status { font-size: 14px; border-radius: 11px; }
.form-status.ok { background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .35); color: #a7f3d0; padding: 16px; }
.form-status.err { background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .35); color: #fecaca; padding: 16px; }
.form-status a { text-decoration: underline; }
form.sent > *:not(.form-status):not(h3) { display: none; }

/* FAQ */
.faq { max-width: 860px; margin: 56px auto 0; }
.faq details { border-bottom: 1px solid var(--border); padding: 24px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: #fff; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-2); display: grid; place-items: center; color: var(--teal); font-weight: 400; font-size: 20px; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; max-width: 760px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 64px 0 36px; color: var(--muted); font-size: 14.5px; position: relative; z-index: 1; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid h4 { font-size: 12px; font-family: var(--mono); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--dim); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } .foot-grid a { overflow-wrap: anywhere; } }

@media (max-width: 760px) {
  section { padding: 92px 0; }
  .wrap { padding: 0 18px; }
  form.panel { grid-template-columns: 1fr; padding: 24px; }
}
