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

:root {
  --black: #111111;
  --grey: #555555;
  --border: #e0e0e0;
  --bg: #ffffff;
  --radius: 8px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--black);
  min-height: 100vh;
}

/* ─── PAGE CONTENT (blur target) ─────────────────── */

.page-content {
  transition: filter 0.3s ease;
}

.page-content.blurred {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

/* ─── NAV ─────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-tabs {
  display: flex;
  gap: 4px;
}

.nav-tab {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--grey);
  padding: 6px 14px;
  border-radius: 6px;
  position: relative;
  transition: color 0.15s;
}

.nav-tab::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--black);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-tab.active {
  color: var(--black);
}

.nav-tab.active::after {
  transform: scaleX(1);
}

.nav-tab:hover {
  color: var(--black);
}

.btn-order {
  background: var(--black);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 6px;
  transition: opacity 0.15s;
}

.btn-order:hover {
  opacity: 0.8;
}

/* ─── SECTIONS ────────────────────────────────────── */

.section {
  display: none;
  animation: fadeIn 0.2s ease;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px;
}

.container.narrow {
  max-width: 560px;
}

/* ─── REVIEW SECTION ──────────────────────────────── */

.section-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.section-sub {
  font-size: 15px;
  color: var(--grey);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* ─── FORM ────────────────────────────────────────── */

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--black);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 14px;
  color: var(--black);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  transition: border-color 0.15s;
  outline: none;
  width: 100%;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #aaa;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--black);
}

.field input[type="number"] {
  -moz-appearance: textfield;
}

.field input[type="number"]::-webkit-inner-spin-button,
.field input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}

/* ─── PLATFORM SELECTOR ───────────────────────────── */

.platform-selector {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.pill {
  flex: 1;
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--grey);
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pill svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.pill:hover {
  border-color: var(--black);
  color: var(--black);
}

.pill.active {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

/* ─── AUDIT FORMAT SELECTOR ──────────────────────── */

.audit-selector {
  display: flex;
  gap: 10px;
}

.audit-option {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.audit-option .audit-icon {
  font-size: 22px;
  line-height: 1;
}

.audit-option .audit-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--grey);
  transition: color 0.15s;
}

.audit-option:hover {
  border-color: var(--black);
}

.audit-option:hover .audit-text {
  color: var(--black);
}

.audit-option.active {
  border-color: var(--black);
  background: #f5f5f5;
}

.audit-option.active .audit-text {
  color: var(--black);
}

/* ─── LABEL ROW (label + agency toggle) ──────────── */

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.agency-toggle {
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  color: var(--grey);
  background: none;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.agency-toggle:hover {
  border-color: var(--black);
  color: var(--black);
}

.agency-toggle.active {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

/* ─── SUBMIT BUTTON ───────────────────────────────── */

.btn-primary {
  align-self: flex-start;
  background: var(--black);
  color: #fff;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 28px;
  border-radius: var(--radius);
  transition: opacity 0.15s;
}

.btn-primary:hover {
  opacity: 0.8;
}

/* ─── SUCCESS MESSAGE ─────────────────────────────── */

.success-msg {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 8px;
}

.success-msg.hidden {
  display: none;
}

/* ─── TRUSTED BY ──────────────────────────────────── */

.trusted-section {
  padding: 56px 0 48px;
  max-width: 760px;
  margin: 0 auto;
}

.trusted-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  text-align: center;
  margin-bottom: 28px;
}

/* ─── MARQUEE ─────────────────────────────────────── */

.marquee-track {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%, black 82%, transparent 100%);
}

.marquee-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  animation: marquee 50s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.marquee-inner img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── SECTION DIVIDER ─────────────────────────────── */

.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border) 20%, var(--border) 80%, transparent);
  margin: 0;
}

/* ─── WORKS ───────────────────────────────────────── */

.works-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 24px 64px;
}

.works-title {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #aaa;
  text-align: center;
  margin-bottom: 8px;
}

.work-item {
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  cursor: pointer;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.work-item:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.13);
}

.cases-row {
  width: 100%;
  max-width: 700px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cases-row .work-item {
  max-width: none;
}

/* ─── MODAL ───────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.15s ease;
}

.modal-overlay.hidden {
  display: none;
}

.modal {
  background: var(--bg);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--grey);
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

.modal-close:hover {
  color: var(--black);
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.modal-sub {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 32px;
}

/* ─── LIGHTBOX ────────────────────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.2s ease;
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ─── MOBILE ──────────────────────────────────────── */

@media (max-width: 640px) {
  .nav {
    padding: 0 16px;
  }

  .nav-brand {
    font-size: 13px;
  }

  .container,
  .container.narrow {
    padding: 40px 16px;
  }

  .section-title {
    font-size: 22px;
  }

  .modal {
    padding: 28px 20px;
  }

  .btn-primary {
    width: 100%;
    text-align: center;
  }

  .section-divider {
    margin: 0 16px;
  }

  .works-grid {
    grid-template-columns: 1fr;
  }
}
