/* ===== Cognitivus Labs — Dark theme ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #09090f;
  --bg-elevated: #111118;
  --bg-card: #16161f;
  --bg-card-hover: #1c1c28;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --text-muted: #9494a8;
  --text-dim: #6b6b7b;
  --purple: #7b61ff;
  --purple-hover: #6a4fe8;
  --purple-glow: rgba(123, 97, 255, 0.35);
  --blue: #5b8def;
  --green: #34d399;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 68px;
  --topbar-h: 40px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===== Top bar ===== */
.topbar {
  background: linear-gradient(90deg, rgba(123, 97, 255, 0.12) 0%, rgba(91, 141, 239, 0.08) 100%);
  border-bottom: 1px solid var(--border);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}

.topbar p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.topbar a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--purple);
  white-space: nowrap;
  transition: color 0.2s;
}

.topbar a:hover { color: var(--text); }

/* ===== Typography ===== */
.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}

.eyebrow--dark { color: var(--blue); }
.eyebrow--light { color: rgba(255, 255, 255, 0.55); }

.section-head { margin-bottom: 48px; max-width: 560px; }
.section-head--center { text-align: center; margin-inline: auto; }

.section-head__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-head__title--light { color: var(--text); }

.section { padding: 96px 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}

.btn--primary {
  background: var(--purple);
  color: #fff;
}

.btn--primary:hover {
  background: var(--purple-hover);
  transform: translateY(-1px);
}

.btn--block { width: 100%; }

/* ===== Header (SuperAnnotate-style) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 9, 15, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s;
}

.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.brand__logo {
  height: 50px;
  width: auto;
  display: block;
  scale: 1.3;
}

.site-footer .brand__logo {
  height: 44px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a:not(.site-nav__cta):not(.site-nav__ghost) {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:not(.site-nav__cta):not(.site-nav__ghost):hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.site-nav__ghost {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted) !important;
  padding: 9px 18px !important;
  margin-left: 8px;
  border-radius: var(--radius-pill) !important;
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s, color 0.2s !important;
}

.site-nav__ghost:hover {
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  background: transparent !important;
}

.site-nav__cta {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: var(--purple) !important;
  padding: 9px 20px !important;
  border-radius: var(--radius-pill) !important;
  margin-left: 4px;
  box-shadow: 0 2px 16px var(--purple-glow);
  transition: background 0.2s, transform 0.2s !important;
}

.site-nav__cta:hover {
  background: var(--purple-hover) !important;
  transform: translateY(-1px);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.burger.is-open span:first-child { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:last-child { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero (kept layout, dark styling) ===== */
.hero {
  position: relative;
  padding: 72px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(123, 97, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(91, 141, 239, 0.1) 0%, transparent 50%),
    var(--bg);
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

.hero__blob--1 {
  width: 500px;
  height: 500px;
  background: rgba(123, 97, 255, 0.18);
  top: -140px;
  right: -100px;
}

.hero__blob--2 {
  width: 380px;
  height: 380px;
  background: rgba(91, 141, 239, 0.12);
  bottom: -60px;
  left: -120px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 6px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero__title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}

.hero__pay {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 24px;
  border-left: 1px solid var(--border);
}

.hero__pay-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.hero__pay strong {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--text);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero__indeed {
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

.hero__stars span {
  color: #fbbf24;
  font-size: 0.85rem;
  letter-spacing: 2px;
}

.hero__stars small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.hero__tags--row {
  margin-top: 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero__tags li {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}

.hero__visual {
  position: relative;
  min-height: 380px;
}

.hero-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-card--main {
  background: var(--bg-card);
}

.hero-card__img {
  width: 100%;
  object-fit: cover;
}

.hero-card__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
  border-top: 1px solid var(--border);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot--green { background: var(--green); }

.hero-card--float {
  position: absolute;
  bottom: -20px;
  left: -24px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  padding: 20px 24px;
  min-width: 168px;
}

.hero-card__stat {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-card__stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Marquee ===== */
.marquee {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
}

.marquee__track {
  display: flex;
  gap: 48px;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}

.marquee__track span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.marquee__track span::after {
  content: '·';
  margin-left: 48px;
  opacity: 0.35;
}

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

/* ===== Bento ===== */
.bento {
  background: var(--bg);
}

.bento__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.bento__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.bento__item:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.bento__item--wide {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 200px;
}

.bento__item--sage {
  background: linear-gradient(145deg, rgba(91, 141, 239, 0.1) 0%, var(--bg-card) 100%);
  border-color: rgba(91, 141, 239, 0.2);
}

.bento__item--rust {
  background: linear-gradient(145deg, rgba(123, 97, 255, 0.18) 0%, rgba(123, 97, 255, 0.06) 100%);
  border-color: rgba(123, 97, 255, 0.25);
}

.bento__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  opacity: 0.9;
  filter: brightness(0) invert(1) opacity(0.85);
}

.bento__icon--light { filter: brightness(0) invert(1); }

.bento__item h3 {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.bento__item p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.bento__item--rust p,
.bento__item--rust h3 { color: var(--text); }

/* ===== Role ===== */
.role {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.role__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.role__intro {
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 560px;
}

.role__intro strong { color: var(--text); }

.role__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 36px;
}

.role__subhead {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
  color: var(--purple);
}

.role__list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.role__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
}

.rate-card {
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.rate-card__eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.rate-card__price {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

.rate-card__unit {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.rate-card__note {
  font-size: 0.8125rem;
  color: var(--green);
  margin-bottom: 24px;
}

.perks li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
}

.perks img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1) opacity(0.6);
}

.perks strong {
  display: block;
  font-size: 0.9rem;
}

.perks span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ===== Features ===== */
.features {
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(123, 97, 255, 0.08) 0%, transparent 60%),
    var(--bg);
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row--reverse .feature-row__media { order: 2; }
.feature-row--reverse .feature-row__text { order: 1; }

.feature-row__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  background: var(--bg-card);
}

.feature-row__media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.feature-row__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--purple);
  margin-bottom: 12px;
  display: block;
}

.feature-row__text h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-row__text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 400px;
}

/* ===== Steps ===== */

li{
  list-style: none;
}
.steps {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.steps__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s;
}

.step:hover { border-color: rgba(123, 97, 255, 0.3); }

.step__n {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.faq__intro p {
  color: var(--text-muted);
  margin-top: 12px;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq__item[open] {
  border-color: rgba(123, 97, 255, 0.35);
  box-shadow: 0 4px 24px rgba(123, 97, 255, 0.08);
}

.faq__item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.975rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--purple);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===== Apply ===== */
.apply {
  background:
    radial-gradient(ellipse 70% 60% at 80% 50%, rgba(123, 97, 255, 0.12) 0%, transparent 55%),
    var(--bg);
  border-top: 1px solid var(--border);
}

.apply__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.apply__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 16px;
}

.apply__lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.apply__form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
}

.apply__form-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.field { margin-bottom: 16px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg-elevated);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(123, 97, 255, 0.18);
}

.field textarea { resize: vertical; min-height: 88px; }

.field select option { background: var(--bg-card); }

.form-ok {
  margin-top: 14px;
  padding: 12px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

/* ===== Footer (SuperAnnotate-style) ===== */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding-top: 72px;
}

.site-footer__main {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  padding-bottom: 56px;
}

.site-footer__tagline {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.site-footer__label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.site-footer__col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color 0.2s;
}

.site-footer__col a:hover { color: var(--text); }

.site-footer__address,
.site-footer__contact {
  font-size: 0.8125rem !important;
  color: var(--text-dim) !important;
  line-height: 1.6;
  margin-bottom: 8px;
}

.site-footer__contact a {
  color: var(--text-muted) !important;
}

.site-footer__contact a:hover {
  color: var(--text) !important;
}

.site-footer__divider {
  height: 1px;
  background: var(--border);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0;
}

.site-footer__bottom p {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.site-footer__reg {
  font-size: 0.75rem !important;
}

/* ===== About page ===== */
.page-hero {
  position: relative;
  padding: 80px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 60% 15%, rgba(123, 97, 255, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 15% 75%, rgba(91, 141, 239, 0.1) 0%, transparent 50%),
    var(--bg);
}

.page-hero__inner {
  position: relative;
  max-width: 720px;
}

.page-hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  color: var(--text);
}

.page-hero__title em {
  font-style: italic;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero__lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

.about-stats {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
  padding: 40px 0;
}

.about-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-stats__item {
  text-align: center;
  padding: 8px 12px;
}

.about-stats__item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-stats__item span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* About — editorial story */
.about-story {
  padding: 96px 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.about-story__quote {
  max-width: 900px;
  margin: 0 auto 64px;
  text-align: center;
  border: none;
  padding: 0;
}

.about-story__quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-story__grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 56px;
  align-items: stretch;
}

.about-story__text h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.about-story__text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-story__text p:last-child {
  margin-bottom: 0;
}

.about-story__figure {
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100%;
}

.about-story__figure img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

/* About — service cards */
.about-work {
  padding: 96px 0;
  background: var(--bg);
}

.about-work__head {
  max-width: 520px;
  margin-bottom: 48px;
}

.about-work__head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 12px;
  color: var(--text);
}

.about-work__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.about-work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}

.about-work-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
}

.about-work-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.about-work-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.about-work-card:hover .about-work-card__img img {
  transform: scale(1.04);
}

.about-work-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.about-work-card__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}

.about-work-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

.about-work-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* About — principles strip */
.about-principles {
  padding: 72px 0;
  background:
    linear-gradient(180deg, rgba(123, 97, 255, 0.06) 0%, transparent 100%),
    var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.about-principles__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.about-principles__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-principles__list li {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  border-top: 2px solid rgba(123, 97, 255, 0.35);
}

.about-principles__num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--purple);
  opacity: 0.7;
}

.about-principles__list h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.about-principles__list p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* About — CTA */
.about-cta {
  padding: 80px 0 96px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(123, 97, 255, 0.1) 0%, transparent 60%),
    var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.about-cta__inner {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}

.about-cta__inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}

.about-cta__inner p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.site-nav a.is-active {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.06);
}

.site-nav__ghost.is-active {
  color: var(--text) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

.page-hero--compact {
  padding: 64px 0 48px;
}

/* ===== Contact page ===== */
.contact-page {
  padding: 48px 0 80px;
  background: var(--bg);
}

.contact-page__grid {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: 960px;
  margin-inline: auto;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--header-h) + var(--topbar-h) + 24px);
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.contact-card--company {
  background: linear-gradient(145deg, rgba(123, 97, 255, 0.08) 0%, var(--bg-card) 100%);
  border-color: rgba(123, 97, 255, 0.2);
}

.contact-card__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.contact-list {
  display: grid;
  gap: 18px;
}

.contact-list__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 4px;
}

.contact-list a,
.contact-list p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-list a {
  color: var(--text);
  transition: color 0.2s;
}

.contact-list a:hover {
  color: var(--purple);
}

.company-details {
  display: grid;
  gap: 16px;
}

.company-details dt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.company-details dd {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.contact-sidebar__note {
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.55;
  padding: 0 4px;
}

.contact-sidebar__note a {
  color: var(--purple);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-sidebar__note a:hover {
  color: var(--text);
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
}

.contact-form {
  padding: 28px 24px 24px;
}

.contact-form__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.contact-form .field {
  margin-bottom: 14px;
}

.contact-form .field-row {
  gap: 14px;
}

.contact-form textarea {
  min-height: 96px;
}

.contact-form__submit {
  width: 100%;
  margin-top: 4px;
}

.field-error {
  min-height: 0;
  font-size: 0.75rem;
  color: #f87171;
  margin-top: 6px;
  line-height: 1.4;
}

.field-error:empty {
  display: none;
}

.field--invalid input,
.field--invalid select,
.field--invalid textarea {
  border-color: rgba(248, 113, 113, 0.6);
}

.field--invalid input:focus,
.field--invalid select:focus,
.field--invalid textarea:focus {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15);
}

.contact-form__legal {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--text-dim);
  line-height: 1.55;
  text-align: center;
}

.contact-form__legal a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.contact-form__legal a:hover {
  color: var(--purple);
}

.contact-form .form-ok {
  margin-top: 16px;
}

/* ===== Legal pages ===== */
.legal-page {
  padding: 0 0 96px;
  background: var(--bg);
}

.legal-page__inner {
  max-width: 720px;
}

.legal-page__updated {
  font-size: 0.8125rem;
  color: var(--text-dim);
  margin-bottom: 32px;
}

.legal-prose h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 40px 0 14px;
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-prose p:last-child {
  margin-bottom: 0;
}

.legal-prose ul {
  margin: 0 0 14px 1.25rem;
  list-style: disc;
}

.legal-prose li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
  list-style: disc;
}

.legal-prose a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.legal-prose a:hover {
  color: var(--purple);
}

.legal-prose strong {
  color: var(--text);
  font-weight: 600;
}

.legal-prose__address {
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.6 !important;
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__grid,
  .role__grid,
  .apply__grid,
  .faq__grid,
  .site-footer__main,
  .contact-page__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-stats__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .about-story__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-story__figure {
    display: block;
    min-height: 0;
  }

  .about-story__figure img {
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .about-work__cards,
  .about-principles__list {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-sidebar {
    position: static;
  }

  .site-footer__cols {
    grid-template-columns: 1fr 1fr;
  }

  .bento__grid { grid-template-columns: 1fr 1fr; }
  .bento__item--wide { grid-column: span 2; }

  .feature-row,
  .feature-row--reverse {
    grid-template-columns: 1fr;
  }

  .feature-row--reverse .feature-row__media,
  .feature-row--reverse .feature-row__text { order: unset; }

  .steps__list { grid-template-columns: 1fr; }
  .role__cols { grid-template-columns: 1fr; }

  .hero__visual { min-height: 300px; }
  .hero-card--float { left: auto; right: 0; bottom: -16px; }

  .topbar__inner { padding: 6px 0; }
}

@media (max-width: 640px) {
  :root { --topbar-h: auto; }

  .topbar { padding: 10px 0; }

  .section { padding: 72px 0; }

  .site-nav {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + var(--topbar-h));
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
    gap: 4px;
    border-top: 1px solid var(--border);
    overflow-y: auto;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 14px 16px !important;
    border-radius: 10px !important;
    width: 100%;
    text-align: left;
  }

  .site-nav__ghost,
  .site-nav__cta {
    margin-left: 0 !important;
    margin-top: 8px;
    text-align: center !important;
  }

  .burger { display: flex; }

  .bento__grid { grid-template-columns: 1fr; }
  .bento__item--wide { grid-column: span 1; }

  .field-row { grid-template-columns: 1fr; }

  .site-footer__cols { grid-template-columns: 1fr; }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__pay { padding-left: 0; border-left: none; padding-top: 8px; }

  .about-stats__grid {
    grid-template-columns: 1fr;
  }

  .about-story {
    padding: 72px 0;
  }

  .about-story__quote {
    margin-bottom: 40px;
  }

  .about-principles__list {
    grid-template-columns: 1fr;
  }

  .about-cta {
    padding: 64px 0 80px;
  }
}
