/* ============================================================
   accruu — shared design system
   Used by all inner pages (services, work, about, contact, case studies).
   Mirrors the tokens/components from the homepage (huly-inspired.html).
   ============================================================ */

:root {
  --bg: #050010;
  --bg-2: #0a0118;
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.04);
  --border: rgba(168, 85, 247, 0.14);
  --border-2: rgba(255, 255, 255, 0.08);
  --violet: #a855f7;
  --violet-light: #d8b4fe;
  --violet-deep: #6d28d9;
  --violet-dim: #4c1d95;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.66);
  --text-dim: rgba(255, 255, 255, 0.42);
  --maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* background gradient + grain */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1200px 800px at 20% -10%, rgba(168, 85, 247, 0.22), transparent 60%),
    radial-gradient(900px 700px at 90% 10%, rgba(109, 40, 217, 0.18), transparent 55%),
    radial-gradient(1100px 900px at 50% 100%, rgba(168, 85, 247, 0.12), transparent 70%),
    linear-gradient(180deg, #050010 0%, #08001a 50%, #050010 100%);
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.04; mix-blend-mode: overlay;
}
main, nav, footer { position: relative; z-index: 5; }

/* typography helpers */
.display { font-family: 'Outfit', sans-serif; letter-spacing: -0.02em; }
.mono { font-family: 'JetBrains Mono', monospace; }
.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--violet-light);
}
.gradient-text {
  background: linear-gradient(180deg, #ffffff 0%, #e9d5ff 55%, #a855f7 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.text-muted { color: var(--text-muted); }
a { color: inherit; }

/* ───── Navigation ───── */
nav.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  background: rgba(5, 0, 16, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: padding 0.3s ease, background 0.3s ease;
}
nav.topnav.scrolled { padding: 12px 48px; background: rgba(5, 0, 16, 0.85); }
nav .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em; text-decoration: none; color: #fff;
}
nav .brand .logo-mark {
  width: 28px; height: 28px; border-radius: 9px;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.45);
  display: block; overflow: hidden;
}
nav .brand .logo-mark img { display: block; width: 100%; height: 100%; }
nav .brand .dot { color: var(--violet); }
nav .links { display: flex; gap: 36px; align-items: center; }
nav .links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color 0.2s; position: relative;
}
nav .links a:hover, nav .links a[aria-current="page"] { color: #fff; }
nav .links a[aria-current="page"]::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--violet), transparent);
}
nav .cta-group { display: flex; gap: 12px; align-items: center; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: 0.25s; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none; transition: all 0.2s ease; font-family: inherit;
}
.btn-ghost { color: var(--text-muted); background: transparent; }
.btn-ghost:hover { color: #fff; }
.btn-primary {
  color: #fff; background: linear-gradient(135deg, #a855f7 0%, #6d28d9 100%);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(168, 85, 247, 0.5); }
.btn-outline {
  color: #fff; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(168, 85, 247, 0.4); }
.btn-lg { padding: 16px 28px; font-size: 14px; border-radius: 12px; }

/* ───── Layout ───── */
section { padding: 120px 48px; position: relative; }
section.tight { padding: 80px 48px; }
.container { max-width: var(--maxw); margin: 0 auto; }
.container-narrow { max-width: 880px; margin: 0 auto; }
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ───── Page hero (inner pages) ───── */
.page-hero { padding: 180px 48px 80px; text-align: center; position: relative; overflow: hidden; }
.page-hero::before {
  content: ''; position: absolute; inset: -10% 20% auto; height: 420px;
  background: radial-gradient(ellipse at 50% 0%, rgba(168,85,247,0.28), transparent 65%);
  filter: blur(30px); z-index: -1;
}
.breadcrumb {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 22px;
}
.breadcrumb a { color: var(--text-dim); text-decoration: none; }
.breadcrumb a:hover { color: var(--violet-light); }
.page-hero h1 {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: clamp(38px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.03em;
  max-width: 16ch; margin: 18px auto 24px;
}
.page-hero .lede {
  max-width: 640px; margin: 0 auto; font-size: 19px; line-height: 1.6;
  color: var(--text-muted); font-weight: 300;
}
.page-hero .hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.10);
  backdrop-filter: blur(8px);
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--violet-light);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #a855f7; box-shadow: 0 0 10px #a855f7; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1);} 50%{opacity:.55;transform:scale(.85);} }

/* ───── Section head ───── */
.section-head { text-align: center; margin-bottom: 72px; }
.section-head .eyebrow { display: inline-block; margin-bottom: 18px; }
.section-head h2 {
  font-family: 'Outfit', sans-serif; font-size: clamp(34px, 5vw, 60px);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.03em;
  max-width: 880px; margin: 0 auto 18px;
}
.section-head p { max-width: 620px; margin: 0 auto; color: var(--text-muted); font-size: 17px; line-height: 1.55; font-weight: 300; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left h2, .section-head.left p { margin-left: 0; }

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

.card {
  padding: 32px 28px; border-radius: 18px;
  border: 1px solid var(--border-2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  position: relative; overflow: hidden; transition: all 0.3s; text-decoration: none; color: inherit;
}
.card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(260px circle at var(--mx, 20%) var(--my, 0%), rgba(168, 85, 247, 0.25), transparent 55%);
  opacity: 0; transition: opacity 0.4s; border-radius: inherit;
}
.card:hover { border-color: rgba(168, 85, 247, 0.3); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card .ico {
  width: 44px; height: 44px; border-radius: 11px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(109, 40, 217, 0.08));
  border: 1px solid rgba(168, 85, 247, 0.25); margin-bottom: 18px;
  display: grid; place-items: center;
}
.card .ico svg { width: 22px; height: 22px; stroke: #d8b4fe; fill: none; stroke-width: 1.8; }
.card h3, .card h4 { font-family: 'Outfit', sans-serif; font-weight: 600; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card h4 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* checklist */
.list-check { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.list-check li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-muted); line-height: 1.5; }
.list-check li::before {
  content: ''; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  background: rgba(168,85,247,0.15) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8b4fe' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/13px no-repeat;
  border: 1px solid rgba(168,85,247,0.3);
}

/* tags / chips */
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(168, 85, 247, 0.3); background: rgba(168, 85, 247, 0.08);
  font-family: 'JetBrains Mono', monospace; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--violet-light);
}

/* stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { text-align: center; padding: 28px 18px; border: 1px solid var(--border-2); border-radius: 16px; background: rgba(255,255,255,0.02); }
.stat .v { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: clamp(30px, 4vw, 48px); background: linear-gradient(180deg, #fff, #d8b4fe); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .l { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

/* split / feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media {
  position: relative; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(20,10,35,0.9), rgba(40,20,70,0.4));
  display: grid; place-items: center;
}
.split-media::before { content: ''; position: absolute; inset: -30px; background: radial-gradient(circle at 50% 40%, rgba(168,85,247,0.3), transparent 60%); filter: blur(40px); }

/* CTA band */
.cta-band { text-align: center; padding: 130px 48px; position: relative; }
.cta-band::before { content: ''; position: absolute; inset: 60px 8% 40px; background: radial-gradient(ellipse at center, rgba(168,85,247,0.22), transparent 60%); filter: blur(40px); z-index: -1; }
.cta-band h2 { font-family: 'Outfit', sans-serif; font-size: clamp(40px, 6vw, 82px); font-weight: 600; line-height: 1.0; letter-spacing: -0.035em; max-width: 900px; margin: 0 auto 22px; }
.cta-band p { max-width: 560px; margin: 0 auto 36px; font-size: 18px; color: var(--text-muted); font-weight: 300; }
.cta-band .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ───── Forms ───── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.field label .req { color: var(--violet); }
.field input, .field textarea, .field select {
  font-family: inherit; font-size: 15px; color: #fff;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-2);
  border-radius: 12px; padding: 14px 16px; transition: border-color 0.2s, background 0.2s; width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: rgba(168,85,247,0.55); background: rgba(168,85,247,0.06); }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8b4fe' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px; padding-right: 44px; }
.field select option { background: #0a0118; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  position: relative; cursor: pointer;
  padding: 10px 16px; border-radius: 999px; font-size: 14px;
  border: 1px solid var(--border-2); background: rgba(255,255,255,0.03); color: var(--text-muted); transition: 0.2s;
}
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice:has(input:checked) { border-color: rgba(168,85,247,0.6); background: rgba(168,85,247,0.14); color: #fff; }

/* ───── Footer ───── */
footer.site-footer { padding: 80px 48px 40px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.foot-top { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.foot-brand .logo-mark { width: 28px; height: 28px; border-radius: 9px; box-shadow: 0 0 20px rgba(168, 85, 247, 0.4); display: block; overflow: hidden; }
.foot-brand .logo-mark img { display: block; width: 100%; height: 100%; }
.foot-tag { color: var(--text-muted); font-size: 14px; line-height: 1.6; max-width: 320px; font-weight: 300; }
.foot-col h6 { font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; }
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.foot-col a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { max-width: var(--maxw); margin: 0 auto; padding-top: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.foot-bottom .copy { color: var(--text-dim); font-size: 13px; }
.foot-bottom .socials { display: flex; gap: 10px; }
.foot-bottom .socials a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); display: grid; place-items: center; color: var(--text-muted); transition: all 0.2s; }
.foot-bottom .socials a:hover { background: rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.35); color: #fff; }
.foot-bottom .socials svg { width: 16px; height: 16px; fill: currentColor; }

/* ───── Responsive ───── */
@media (max-width: 1100px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .split-media { order: 0; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  nav.topnav, nav.topnav.scrolled { padding: 14px 20px; }
  .nav-toggle { display: flex; }
  nav .links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 16px 20px; background: rgba(8,2,22,0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-2);
    max-height: 0; overflow: hidden; padding-top: 0; padding-bottom: 0; transition: max-height 0.3s ease, padding 0.3s ease;
  }
  nav .links.open { max-height: 320px; padding: 16px 20px; }
  nav .links a { padding: 10px 0; width: 100%; }
  nav .cta-group .btn-ghost { display: none; }
  section, section.tight { padding: 80px 22px; }
  .page-hero { padding: 140px 22px 60px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 90px 22px; }
  footer.site-footer { padding: 60px 22px 30px; }
  .foot-top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .pill .dot { animation: none; }
  html { scroll-behavior: auto; }
}
