/* ─────────────────────────────────────────────────────────────
   Apex Integrations — palette lifted from reformed.media
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #08080a;
  --panel: #0f0f11;
  --panel-2: #161619;
  --line: #232329;
  --line-2: #33333b;
  --text: #ececed;
  --text-2: #b4b4bb;
  --muted: #83838c;
  --steel: #7ea2d6;
  --acc-dev: #9fb6dc;
  --acc-creative: #b49fdc;
  --acc-ongoing: #8fc9a8;
  --acc-addon: #d9b27c;
  --radius: 6px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--steel); color: var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ─── Type ─── */
.eyebrow, .label, .mono-foot, .tags, .chip, .btn--mono, .mono-link, .fine, .frame__bar span, .step__num, .footer__bottom {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow { color: var(--muted); margin-bottom: 18px; }
.label { color: var(--text-2); }
.label--muted { color: var(--muted); }
.h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.lede { color: var(--text-2); font-size: 17px; max-width: 560px; margin-top: 16px; }
.section__head { max-width: 640px; margin-bottom: 56px; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 500; font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  white-space: nowrap;
}
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--muted); background: rgba(255,255,255,.03); }
.btn--mono { height: 36px; padding: 0 16px; font-weight: 500; }
.btn--block { width: 100%; margin-top: 22px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.mono-link { color: var(--text-2); }
.mono-link:hover { color: var(--text); }

/* ─── Nav ─── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(20px, 3vw, 36px);
  background: rgba(8,8,10,.6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(8,8,10,.85); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; font-size: 15px; }
.nav__mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--text); color: var(--bg); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.nav__word { color: var(--text); }
.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--text-2); transition: color .18s;
}
.nav__links a:hover { color: var(--text); }
.nav__burger { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.nav__burger span { display: block; height: 1.5px; background: var(--text); margin: 6px 0; transition: transform .2s, opacity .2s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 49;
  background: var(--panel); border-bottom: 1px solid var(--line);
  display: none; flex-direction: column; padding: 8px 20px 20px;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-2); }
.mobile-menu a:last-child { border: 0; }
.mobile-menu__cta { color: var(--text) !important; }

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px 0 72px;
  overflow: hidden; isolation: isolate;
}
.hero__grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 20%, #000 20%, transparent 100%);
}
.hero__glow {
  position: absolute; z-index: -1; inset: auto -10% -30% -10%; height: 70%;
  background: radial-gradient(ellipse at 30% 100%, rgba(126,162,214,.14), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; }
.hero__title { display: flex; align-items: flex-end; gap: 22px; }
.hero__word {
  font-size: clamp(44px, 9vw, 104px); font-weight: 800; line-height: .92;
  letter-spacing: -.045em; text-transform: uppercase;
}
.hero__h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-top: 30px; }
.hero__sub { color: var(--text-2); font-size: clamp(17px, 2vw, 20px); max-width: 620px; margin-top: 12px; }
.hero__actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* ─── Pillars ─── */
.pillars { background: var(--panel); border-top: 1px solid var(--line); padding: 96px 0; }
.pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 32px 28px 26px; display: flex; flex-direction: column; min-height: 300px;
  transition: border-color .2s, transform .2s;
}
.pillar:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pillar__icon { width: 56px; height: 56px; color: var(--muted); margin-bottom: 44px; }
.pillar .label { margin-bottom: 12px; color: var(--muted); }
.pillar__title { font-size: 20px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; flex: 1; }
.mono-foot { color: var(--muted); margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ─── Sections ─── */
.section { padding: 112px 0; }
.section--dark { background: var(--bg); }
.section--ink { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__foot { margin-top: 40px; text-align: right; }

/* ─── Work ─── */
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-card { display: block; }
.frame {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  transition: border-color .2s, transform .25s;
}
.work-card:hover .frame { border-color: var(--line-2); transform: translateY(-3px); }
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.frame__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.frame__bar span { margin-left: 10px; color: var(--muted); letter-spacing: .08em; text-transform: none; font-size: 11px; }
.frame img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; filter: saturate(.85); transition: filter .3s; }
.work-card:hover .frame img { filter: saturate(1); }
.work-card__meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 18px 4px 0; }
.work-card__meta h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.work-card__meta p { color: var(--muted); font-size: 14px; }
.tags { color: var(--muted); text-align: right; }

/* ─── About ─── */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; }
.about__text p + p { margin-top: 18px; color: var(--text-2); }
.about__text p.lede { margin-top: 20px; color: var(--text); }
.about__text strong { color: var(--text); font-weight: 600; }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding-top: 52px; }
.fact { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 26px 22px; min-height: 160px; display: flex; flex-direction: column; justify-content: space-between; }
.fact__big { font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--text); }
.fact__label { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ─── Services ─── */
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; scroll-margin-top: 90px; }
.svc {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 28px 26px 26px; display: flex; flex-direction: column;
  transition: border-color .2s;
}
.svc:hover { border-color: var(--line-2); }
.svc--featured { background: var(--panel-2); border-color: var(--line-2); position: relative; }
.svc--featured::before {
  content: "Most popular"; position: absolute; top: -11px; right: 20px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  background: var(--text); color: var(--bg); padding: 4px 10px; border-radius: 4px;
}
.chip { display: inline-block; align-self: flex-start; padding: 5px 9px; border-radius: 4px; border: 1px solid; margin-bottom: 22px; }
.chip--dev { color: var(--acc-dev); border-color: rgba(159,182,220,.32); background: rgba(159,182,220,.08); }
.chip--creative { color: var(--acc-creative); border-color: rgba(180,159,220,.32); background: rgba(180,159,220,.08); }
.chip--ongoing { color: var(--acc-ongoing); border-color: rgba(143,201,168,.32); background: rgba(143,201,168,.08); }
.chip--addon { color: var(--acc-addon); border-color: rgba(217,178,124,.32); background: rgba(217,178,124,.08); }
.svc__title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.svc__desc { color: var(--text-2); font-size: 15px; margin-top: 10px; }
.svc__price { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.svc__amount { font-size: 40px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.svc__slash { font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--text-2); }
.svc__term { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.svc__details { margin-top: 22px; border-top: 1px solid var(--line); flex: 1; }
.svc__details summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--text-2);
}
.svc__details summary::-webkit-details-marker { display: none; }
.svc__details summary::after { content: "+"; font-size: 16px; color: var(--muted); }
.svc__details[open] summary::after { content: "–"; }
.svc__details ul { display: grid; gap: 12px; padding-bottom: 6px; }
.svc__details li { color: var(--text-2); font-size: 14px; padding-left: 16px; position: relative; }
.svc__details li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 1px; background: var(--muted); }
.svc__details strong { color: var(--text); font-weight: 600; }

.addon {
  margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 28px 26px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.addon .chip { margin-bottom: 14px; }
.addon__price { display: flex; flex-direction: column; gap: 4px; text-align: right; }
.fine { color: var(--muted); margin-top: 28px; letter-spacing: .08em; text-transform: none; }

/* ─── FAQ ─── */
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; flex: none; }
.faq[open] summary::after { content: "–"; }
.faq p { color: var(--text-2); max-width: 720px; padding: 0 0 24px; }

/* ─── Start / form ─── */
.start { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.steps { display: grid; gap: 22px; margin: 44px 0 40px; }
.step { display: grid; grid-template-columns: 36px 1fr; gap: 16px; align-items: start; }
.step__num { color: var(--muted); padding-top: 4px; }
.step__title { font-weight: 600; }
.step__desc { color: var(--text-2); font-size: 15px; margin-top: 2px; }

.form { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.form__head { display: flex; justify-content: space-between; margin-bottom: 26px; }
.form__title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.form__hint { color: var(--text-2); font-size: 14px; margin: 8px 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.form__hint a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 12px 14px; color: var(--text); outline: none; transition: border-color .18s, box-shadow .18s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--steel); box-shadow: 0 0 0 3px rgba(126,162,214,.18); }
.field.is-invalid input, .field.is-invalid select { border-color: #c98f8f; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 96px; }
.form__actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.form__error { margin-top: 14px; color: #c98f8f; font-size: 14px; }
.form__done .form__hint { border: 0; }

/* ─── Footer ─── */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__tag { margin-top: 18px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.footer .label { display: block; margin-bottom: 16px; color: var(--muted); }
.footer__link { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 10px; }
a.footer__link:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; letter-spacing: .1em; }

/* ─── Reveal on scroll ─── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease var(--d, 0s), transform .6s ease var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .pillars__grid, .services__grid { grid-template-columns: 1fr; }
  .about, .start { grid-template-columns: 1fr; gap: 44px; }
  .about__facts { padding-top: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 88px 0; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .hero { padding: 120px 0 56px; min-height: 92svh; }
  .hero__word { font-size: clamp(40px, 13.5vw, 52px); }
  .hero__actions .btn { flex: 1; }
  .pillars { padding: 64px 0; }
  .pillar { min-height: 0; }
  .pillar__icon { margin-bottom: 28px; }
  .work__grid { grid-template-columns: 1fr; gap: 24px; }
  .work-card__meta { flex-direction: column; align-items: flex-start; gap: 6px; }
  .tags { text-align: left; }
  .about__facts { grid-template-columns: 1fr 1fr; }
  .fact { min-height: 0; padding: 20px 18px; }
  .fact__big { font-size: 28px; }
  .addon { grid-template-columns: 1fr; gap: 20px; }
  .addon__price { text-align: left; }
  .form { padding: 22px 18px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
}
