:root {
  --bg: #000;
  --bg-soft: #0a0a0a;
  --fg: #f0f0f0;
  --fg-dim: #8a8a8a;
  --fg-faint: #4a4a4a;
  --border: rgba(255, 255, 255, 0.08);
  --container: 1280px;
  --gutter: 48px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--delay-1 { --reveal-delay: 120ms; }
.reveal--delay-2 { --reveal-delay: 240ms; }
.reveal--delay-3 { --reveal-delay: 360ms; }
.reveal-stagger:nth-child(1) { --reveal-delay: 60ms; }
.reveal-stagger:nth-child(2) { --reveal-delay: 160ms; }
.reveal-stagger:nth-child(3) { --reveal-delay: 260ms; }
.reveal-stagger:nth-child(4) { --reveal-delay: 360ms; }
.reveal-stagger:nth-child(5) { --reveal-delay: 460ms; }
.reveal-stagger:nth-child(6) { --reveal-delay: 560ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; transform: none; opacity: 1; }
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 0.2s, opacity 0.2s; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid rgba(255,255,255,0.4); outline-offset: 3px; border-radius: 4px; }

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

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 24px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255,255,255,0.06);
  padding: 14px var(--gutter);
}
.site-header--solid {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: rgba(255,255,255,0.06);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--fg);
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.7; }
.logo__r {
  font-size: 12px;
  color: var(--fg-dim);
  vertical-align: super;
}
.header__cta { /* alignment hook */ }

/* Hero */
.hero {
  position: relative;
  min-height: var(--hero-h, 78vh);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0a0a0a;
}
.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero__subtitle {
  margin-top: 16px;
  font-size: clamp(14px, 1.4vw, 18px);
  color: rgba(220, 220, 220, 0.7);
  font-weight: 300;
  letter-spacing: 0.02em;
}
/* CTA button */
.btn-cta {
  display: inline-block;
  background: #fff;
  color: #000;
  border: 1px solid #fff;
  padding: 14px 32px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
  cursor: pointer;
  border-radius: 100px;
  transition: background 0.15s, color 0.15s;
}
.btn-cta:hover { background: transparent; color: #fff; }
.btn-cta:focus-visible { outline: 2px solid rgba(255,255,255,0.4); outline-offset: 3px; }
.btn-cta[disabled] { opacity: 0.5; cursor: wait; }
.btn-cta--sm {
  padding: 9px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  margin: auto;
  background: #0f0f0f;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 40px 32px;
  max-width: 520px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  font-family: inherit;
  animation: modal-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: backdrop-in 0.35s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}
@keyframes backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--fg-dim);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
}
.modal__close:hover { color: var(--fg); }
.modal__title {
  font-size: 24px;
  font-weight: 300;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.modal__subtitle {
  color: var(--fg-dim);
  font-size: 14px;
  margin: 0 0 28px;
}
.modal__form { display: flex; flex-direction: column; gap: 18px; }
.modal__field { display: flex; flex-direction: column; gap: 6px; }
.modal__field span { font-size: 12px; color: var(--fg-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.modal__field input, .modal__field textarea {
  background: transparent;
  border: 1px solid var(--fg-faint);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  outline: none;
  resize: vertical;
}
.modal__field input:focus, .modal__field textarea:focus { border-color: var(--fg); }
.modal__submit { margin-top: 8px; align-self: flex-start; }
.modal__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--fg-dim);
  cursor: pointer;
  line-height: 1.5;
}
.modal__consent input[type=checkbox] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #fff;
  cursor: pointer;
}
.modal__consent a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.modal__status {
  margin: 0;
  font-size: 13px;
  color: var(--fg-dim);
  min-height: 1.4em;
}
.modal__status--ok { color: #22c55e; }
.modal__status--err { color: #ef4444; }
@media (max-width: 560px) {
  .modal { padding: 32px 24px 24px; }
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.55;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
}
.cookie-banner__text { margin: 0; flex: 1; }
.cookie-banner__text a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__btn { flex-shrink: 0; }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px 18px; }
  .cookie-banner__btn { align-self: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; transform: none; }
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(80, 80, 80, 0.35), transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(60, 60, 60, 0.3), transparent 55%),
    linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 70%, #000 100%);
}
.hero__bg--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__bg--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--hero-overlay, 0.5));
}
.hero__title {
  position: relative;
  font-size: clamp(64px, 12vw, 200px);
  font-weight: 100;
  letter-spacing: -0.04em;
  color: rgba(220, 220, 220, 0.85);
  text-align: center;
  line-height: 1;
}

/* Services */
.services {
  padding: 120px 0 80px;
  background: var(--bg);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
}
.service {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.service:hover .service__icon { color: var(--fg); }
.service:hover .service__title { color: var(--fg); }
.service__icon {
  width: 72px;
  height: 56px;
  color: var(--fg-dim);
  margin-bottom: 32px;
  transition: color 0.3s ease;
}
.service__icon svg { width: 100%; height: 100%; }
.service__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}
.service__title {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}
.service__desc {
  font-size: 15px;
  color: var(--fg-dim);
  max-width: 320px;
  line-height: 1.6;
}

/* Clients */
.clients {
  padding: 80px 0 120px;
  background: var(--bg);
}
.clients__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  align-items: center;
  justify-items: center;
}
.client {
  color: var(--fg-dim);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}
.client:hover { opacity: 1; color: var(--fg); }
.client__logo {
  max-height: 36px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Team */
.team {
  padding: 100px 0;
  background: var(--bg);
}
.team__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.team__heading {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.team__subtext {
  font-size: 15px;
  color: var(--fg-dim);
  max-width: 460px;
  line-height: 1.6;
}
.team__right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.stat__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.stat__label { font-size: 16px; color: var(--fg); }
.stat__value { font-size: 14px; color: var(--fg-dim); }
.stat__bar {
  height: 1px;
  background: var(--fg-faint);
  position: relative;
}
.stat__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--fg);
  height: 1px;
  transform-origin: left center;
  animation: stat-grow 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes stat-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@media (prefers-reduced-motion: reduce) {
  .stat__fill { animation: none; }
}

/* Proof / testimonial */
.proof {
  padding: 80px 0 120px;
  background: var(--bg);
}
.proof__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.proof__left { position: relative; }
.proof__photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.6)),
    repeating-linear-gradient(45deg, #1a1a1a 0 8px, #222 8px 16px);
  border-radius: 2px;
}
.testimonial {
  position: absolute;
  left: 0;
  bottom: 32px;
  width: 88%;
  background: var(--bg);
  padding: 48px 56px;
  border: 1px solid var(--border);
}
.testimonial__quote-mark {
  font-size: 56px;
  font-weight: 400;
  line-height: 0.5;
  color: var(--fg);
  margin-bottom: 24px;
}
.testimonial__text {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.7;
  margin-bottom: 32px;
  font-style: normal;
}
.testimonial__author {
  font-size: 14px;
  color: var(--fg-dim);
  margin-bottom: 24px;
}
.testimonial__nav {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.testimonial__btn {
  background: transparent;
  border: none;
  color: var(--fg-dim);
  width: 36px;
  height: 28px;
  cursor: pointer;
  font-size: 10px;
}
.testimonial__btn + .testimonial__btn { border-left: 1px solid var(--border); }

.proof__right { padding-top: 32px; }
.big-number {
  font-size: clamp(80px, 10vw, 140px);
  font-weight: 100;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.big-number__caption {
  font-size: 18px;
  color: var(--fg);
  max-width: 360px;
  margin-bottom: 240px;
}
.big-number__subtext {
  font-size: 14px;
  color: var(--fg-dim);
  max-width: 360px;
  line-height: 1.6;
}

/* Static pages */
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header__nav a {
  color: var(--fg-dim);
  font-size: 14px;
  text-decoration: none;
}
.site-header__nav a:hover:not(.btn-cta) { color: var(--fg); }

.page { padding: 140px 0 120px; }
.page__title {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
  max-width: 880px;
}
.page-content {
  max-width: 880px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
}
.page-content h2 {
  font-size: 22px;
  font-weight: 500;
  margin: 48px 0 16px;
  letter-spacing: -0.005em;
}
.page-content h2:first-child { margin-top: 0; }
.page-content .page-lead {
  font-size: 14px;
  color: var(--fg-dim);
  padding: 16px 20px;
  border-left: 2px solid var(--fg-faint);
  margin-bottom: 40px;
  background: rgba(255,255,255,0.02);
}
.page-content h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 32px 0 12px;
}
.page-content p { margin: 0 0 16px; color: var(--fg-dim); }
.page-content p strong { color: var(--fg); font-weight: 500; }
.page-content ul, .page-content ol { margin: 0 0 20px; padding-left: 22px; color: var(--fg-dim); }
.page-content li { margin-bottom: 8px; }
.page-content a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.page-content a:hover { opacity: 0.7; }
.page-content table, .page-content .page-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 14px;
}
.page-content th, .page-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.page-content th {
  font-weight: 400;
  color: var(--fg-dim);
  width: 35%;
  background: rgba(255,255,255,0.02);
}
.page-content td { color: var(--fg); }
.page-content code {
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.92em;
}

/* Footer */
.site-footer {
  position: relative;
  padding: 80px 0 48px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 64px;
}
.footer__brand .logo { margin-bottom: 16px; }
.footer__tagline {
  font-size: 14px;
  color: var(--fg);
  margin-bottom: 48px;
}
.footer__copy {
  font-size: 13px;
  color: var(--fg-dim);
}
.footer__title {
  font-size: 16px;
  font-weight: 400;
  color: var(--fg);
  margin-bottom: 24px;
}
.footer__line {
  font-size: 14px;
  color: var(--fg-dim);
  margin-bottom: 8px;
  line-height: 1.5;
}
.footer__line a:hover { color: var(--fg); }

.to-top {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 960px) {
  :root { --gutter: 24px; }
  .services__grid { grid-template-columns: 1fr; gap: 48px; }
  .clients__row { grid-template-columns: repeat(3, 1fr); gap: 32px 16px; }
  .team__grid, .proof__grid { grid-template-columns: 1fr; gap: 56px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
  .testimonial { position: static; width: 100%; padding: 32px; }
  .proof__photo { aspect-ratio: 16 / 10; }
  .big-number__caption { margin-bottom: 48px; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .clients__row { grid-template-columns: repeat(2, 1fr); }
}
