:root {
  --color-primary: #0d9488;
  --color-primary-dark: #0f766e;
  --color-primary-light: #f0fdfa;
  --color-accent: #14b8a6;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-soft: #f9fafb;
  --color-line: #e5e7eb;
  --color-footer: #111827;
  --color-white: #ffffff;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.08);
  --shadow-md: 0 10px 24px rgba(17, 24, 39, 0.08);
  --radius: 8px;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-open-menu {
  overflow: hidden;
}

body.has-auth-modal {
  overflow: hidden;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  width: min(100% - 32px, var(--container));
  min-height: 72px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-text);
}

.site-logo--footer {
  color: var(--color-white);
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--color-text);
  background: var(--color-soft);
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.language-switcher::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--color-muted);
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

[dir="rtl"] .language-switcher::after {
  right: auto;
  left: 12px;
}

.language-switcher__select {
  min-height: 40px;
  padding: 0 34px 0 12px;
  color: var(--color-text);
  background: var(--color-soft);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  appearance: none;
}

[dir="rtl"] .language-switcher__select {
  padding: 0 12px 0 34px;
}

.language-switcher__select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.language-switcher--mobile {
  padding: 0 24px 24px;
}

.language-switcher--mobile,
.language-switcher--mobile .language-switcher__select {
  width: 100%;
}

.site-header__menu-button,
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  color: var(--color-muted);
  background: transparent;
}

.site-header__menu-button {
  display: none;
  flex-direction: column;
  gap: 5px;
}

.site-header__menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button:hover,
.site-header__menu-button:hover {
  color: var(--color-text);
  background: var(--color-soft);
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: var(--color-white);
  background: var(--color-primary);
}

.button--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}

.button--secondary {
  color: var(--color-muted);
  background: transparent;
}

.button--secondary:hover {
  color: var(--color-text);
  border-color: var(--color-line);
}

.button--light {
  color: var(--color-footer);
  background: var(--color-white);
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(17, 24, 39, 0.48);
}

.mobile-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 70;
  width: min(360px, 88vw);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.mobile-menu__head,
.mobile-menu__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-line);
}

.mobile-menu__actions {
  border-top: 1px solid var(--color-line);
  border-bottom: 0;
  align-items: stretch;
  flex-direction: column;
}

.mobile-menu__nav {
  display: grid;
  gap: 4px;
  padding: 20px;
}

.mobile-menu__nav a {
  padding: 10px 0;
  color: var(--color-muted);
  font-weight: 700;
}

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

.auth-modal[hidden] {
  display: none;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(8px);
}

.auth-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 440px);
  padding: 38px;
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.auth-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  color: var(--color-muted);
  background: transparent;
}

.auth-modal__close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.auth-modal__brand {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--color-white);
  background: var(--color-primary);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
}

.auth-modal h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 42px;
  line-height: 1.1;
}

.auth-modal__intro {
  margin: 12px 0 24px;
  color: var(--color-muted);
}

.auth-modal__form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.auth-modal__form .button {
  width: 100%;
  margin-top: 4px;
}

.auth-modal__switch {
  margin: 20px 0 0;
  color: var(--color-muted);
  font-weight: 700;
}

.auth-modal__switch button {
  border: 0;
  padding: 0;
  color: var(--color-primary);
  background: transparent;
  font-weight: 800;
}

.auth-notices {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.auth-notice {
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  color: var(--color-text);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 800;
  transition: opacity 180ms ease, transform 180ms ease;
}

.auth-notice--success {
  border-color: rgba(13, 148, 136, 0.28);
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
}

.auth-notice--error {
  border-color: rgba(220, 38, 38, 0.22);
  color: #991b1b;
  background: #fef2f2;
}

.auth-notice.is-hiding {
  opacity: 0;
  transform: translateY(8px);
}

.hero {
  min-height: 70vh;
  padding: 148px 0 80px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--color-line);
  background:
    linear-gradient(180deg, rgba(240, 253, 250, 0.6), rgba(255, 255, 255, 0) 42%),
    var(--color-white);
}

.hero__inner {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow,
.section-heading p {
  margin: 0 0 12px;
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.section-heading h2,
.content-header h1 {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  font-size: 56px;
  line-height: 1.05;
}

.hero__copy {
  max-width: 600px;
  margin: 22px auto 0;
  color: var(--color-muted);
  font-size: 18px;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.hero__stats {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.hero__stats div {
  min-width: 92px;
}

.hero__stats strong {
  display: block;
  color: var(--color-text);
  font-size: 26px;
  line-height: 1.1;
}

.hero__stats span {
  color: var(--color-muted);
  font-size: 13px;
}

.section {
  padding: 80px 0;
}

.section--muted {
  background: var(--color-soft);
}

.section-heading {
  max-width: 580px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  font-size: 34px;
  line-height: 1.15;
}

.section-heading span {
  display: block;
  margin-top: 12px;
  color: var(--color-muted);
}

.post-grid,
.feature-grid,
.testimonial-grid,
.service-grid,
.value-grid,
.career-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-card,
.feature-card,
.testimonial-card,
.service-card,
.value-card,
.career-card,
.contact-card {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  overflow: hidden;
}

.post-card,
.feature-card,
.testimonial-card,
.service-card,
.value-card,
.career-card {
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.post-card:hover,
.feature-card:hover,
.testimonial-card:hover,
.service-card:hover,
.value-card:hover,
.career-card:hover {
  transform: translateY(-3px);
  border-color: #d1d5db;
  box-shadow: var(--shadow-md);
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card__media {
  aspect-ratio: 16 / 9;
  background: var(--color-soft);
  overflow: hidden;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__placeholder {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.post-card__body,
.feature-card,
.testimonial-card,
.service-card,
.value-card,
.career-card,
.contact-card {
  padding: 24px;
}

.post-card__tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.post-card h3,
.feature-card h3,
.service-card h3,
.value-card h3,
.career-card h3,
.contact-card h3 {
  margin: 0 0 10px;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.3;
}

.post-card p,
.feature-card p,
.testimonial-card p,
.service-card p,
.value-card p,
.career-card p,
.contact-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
}

.post-card__meta {
  margin-top: 20px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--color-muted);
  border-top: 1px solid var(--color-line);
  font-size: 13px;
}

.feature-card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: var(--radius);
  font-weight: 800;
}

.testimonial-card__rating {
  display: flex;
  gap: 2px;
  margin-bottom: 18px;
  color: #f59e0b;
}

.testimonial-card footer {
  margin-top: 22px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--color-line);
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: 999px;
  font-weight: 800;
}

.testimonial-card strong,
.testimonial-card small {
  display: block;
}

.testimonial-card small {
  color: var(--color-muted);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item.is-open {
  border-color: var(--color-primary);
  box-shadow: 0 2px 12px rgba(13, 148, 136, 0.08);
}

.faq-item__button {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  color: var(--color-text);
  background: var(--color-white);
  border: 0;
  font-weight: 800;
  text-align: left;
}

.faq-item__button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}

.faq-item.is-open .faq-item__button svg {
  transform: rotate(180deg);
}

.faq-item__body {
  display: none;
  padding: 0 20px 20px;
  color: var(--color-muted);
}

.faq-item.is-open .faq-item__body {
  display: block;
}

.page-hero {
  padding: 140px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
  background: var(--color-white);
}

.page-hero__inner {
  max-width: 760px;
  margin-inline: auto;
}

.page-hero h1 {
  font-size: 46px;
  line-height: 1.1;
}

.page-hero p:not(.eyebrow) {
  margin: 20px auto 0;
  max-width: 620px;
  color: var(--color-muted);
  font-size: 18px;
}

.split-section {
  padding: 80px 0;
}

.split-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 64px;
  align-items: center;
}

.rich-text {
  color: var(--color-muted);
}

.rich-text h2,
.rich-text h3 {
  margin: 0 0 16px;
  color: var(--color-text);
  font-family: var(--font-heading);
  letter-spacing: 0;
}

.rich-text h2 {
  font-size: 34px;
  line-height: 1.15;
}

.rich-text h3 {
  margin-top: 32px;
  font-size: 24px;
}

.rich-text p,
.rich-text li {
  font-size: 16px;
}

.rich-text a {
  color: var(--color-primary);
  font-weight: 700;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 28px;
  background: var(--color-soft);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.stats-panel div {
  padding: 14px;
  text-align: center;
}

.stats-panel strong {
  display: block;
  font-size: 28px;
  line-height: 1.1;
}

.stats-panel span {
  color: var(--color-muted);
  font-size: 13px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--color-text);
  font-weight: 800;
  font-size: 14px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--color-text);
  background: var(--color-white);
}

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

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid rgba(13, 148, 136, 0.14);
  border-color: var(--color-primary);
}

.form-field input[aria-invalid="true"] {
  border-color: #dc2626;
}

.field-error {
  margin: 0;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: start;
}

.auth-form,
.auth-card {
  box-shadow: var(--shadow-sm);
}

.auth-message {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

.auth-message[data-state="success"] {
  color: var(--color-primary-dark);
}

.auth-message[data-state="error"] {
  color: #b91c1c;
}

.auth-quick-link {
  width: 100%;
}

.auth-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-header {
  padding: 136px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--color-line);
}

.content-header h1 {
  max-width: 800px;
  margin-inline: auto;
  font-size: 46px;
  line-height: 1.1;
}

.content-header p {
  max-width: 640px;
  margin: 18px auto 0;
  color: var(--color-muted);
}

.content-feature-image {
  width: min(100% - 32px, 960px);
  margin: 40px auto 0;
}

.content-feature-image img {
  display: block;
  width: 100%;
  max-height: 540px;
  object-fit: cover;
  border-radius: var(--radius);
}

.content-body {
  width: min(100% - 32px, 760px);
  margin: 0 auto;
  padding: 56px 0 80px;
  color: var(--color-muted);
}

.content-layout {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.content-layout:not(.content-layout--with-sidebar) {
  max-width: 760px;
}

.content-layout--with-sidebar {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px) 1fr;
  gap: 44px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-main .content-feature-image {
  width: 100%;
  margin: 0 0 32px;
}

.content-main .content-body {
  width: auto;
  margin: 0;
  padding: 0;
}

.content-sidebar {
  position: sticky;
  top: 96px;
}

.content-sidebar__label {
  margin: 0 0 12px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-sidebar__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.content-sidebar__nav a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--color-muted);
  font-size: 14px;
}

.content-sidebar__nav a:hover,
.content-sidebar__nav a.is-current {
  color: var(--color-primary);
  background: var(--color-primary-light);
}

.content-sidebar__nav a.is-current {
  font-weight: 800;
}

.content-sidebar__section {
  margin-top: 16px;
}

.content-sidebar__section p {
  margin: 0 0 6px;
  padding: 0 10px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-body h2,
.content-body h3 {
  color: var(--color-text);
  font-family: var(--font-heading);
}

.content-body img {
  border-radius: var(--radius);
}

.site-footer {
  padding: 72px 0 32px;
  color: #d1d5db;
  background: var(--color-footer);
}

.site-footer h2,
.site-footer h3,
.site-footer strong {
  margin: 0;
  color: var(--color-white);
}

.site-footer p {
  color: #9ca3af;
}

.site-footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.06);
}

.newsletter-form__status {
  margin: 8px 0 0;
  font-size: 13px;
}

.site-footer__brand-row {
  padding: 32px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.social-links {
  display: flex;
  gap: 14px;
}

.social-links a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  border-radius: var(--radius);
}

.social-links a:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.social-links svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 32px;
}

.site-footer__nav section {
  display: grid;
  gap: 10px;
}

.site-footer__nav h3 {
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__nav a {
  color: #9ca3af;
  font-size: 14px;
}

.site-footer__nav a:hover {
  color: var(--color-white);
}

.site-footer__copyright {
  margin: 0;
  padding-top: 24px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.reveal,
.reveal-group > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible,
.reveal-group.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-group.is-visible > *:nth-child(2) {
  transition-delay: 80ms;
}

.reveal-group.is-visible > *:nth-child(3) {
  transition-delay: 160ms;
}

.reveal-group.is-visible > *:nth-child(4) {
  transition-delay: 220ms;
}

.reveal-group.is-visible > *:nth-child(5) {
  transition-delay: 280ms;
}

.reveal-group.is-visible > *:nth-child(6) {
  transition-delay: 340ms;
}

@media (max-width: 900px) {
  .site-header__inner {
    grid-template-columns: auto 1fr auto;
  }

  .site-header__menu-button {
    display: inline-flex;
  }

  .site-logo {
    justify-self: center;
  }

  .site-nav,
  .site-header__actions .button,
  .site-header__actions .language-switcher {
    display: none;
  }

  .post-grid,
  .feature-grid,
  .testimonial-grid,
  .service-grid,
  .value-grid,
  .career-grid,
  .site-footer__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-section__grid,
  .contact-layout,
  .auth-layout,
  .content-layout--with-sidebar,
  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .site-header__inner {
    width: min(100% - 24px, var(--container));
    min-height: 64px;
    gap: 12px;
  }

  .site-logo {
    font-size: 24px;
  }

  .hero {
    min-height: auto;
    padding: 116px 0 56px;
  }

  .hero h1,
  .page-hero h1,
  .content-header h1 {
    font-size: 36px;
  }

  .hero__copy,
  .page-hero p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero__actions,
  .hero__stats,
  .site-footer__brand-row,
  .newsletter-form {
    flex-direction: column;
  }

  .hero__stats {
    gap: 18px;
  }

  .section,
  .split-section {
    padding: 56px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .section-heading h2,
  .rich-text h2 {
    font-size: 28px;
  }

  .post-grid,
  .feature-grid,
  .testimonial-grid,
  .service-grid,
  .value-grid,
  .career-grid,
  .stats-panel,
  .site-footer__nav {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .auth-modal {
    align-items: end;
    padding: 0;
  }

  .auth-modal__dialog {
    width: 100%;
    padding: 34px 24px 26px;
    border-radius: 8px 8px 0 0;
  }

  .auth-modal h2 {
    font-size: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-group > * {
    opacity: 1;
    transform: none;
  }
}
/* --- Help Center (docs) --- */
.docs-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.docs-breadcrumbs li + li::before {
  content: "/";
  margin: 0 6px;
  color: var(--color-line);
}

.docs-breadcrumbs a:hover {
  color: var(--color-primary);
}

.docs-breadcrumbs [aria-current="page"] {
  color: var(--color-text);
}

.docs-search {
  position: relative;
  max-width: 480px;
  margin: 24px auto 0;
}

.docs-search input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  font: inherit;
  box-shadow: var(--shadow-sm);
}

.docs-search input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.docs-search__results {
  position: absolute;
  z-index: 20;
  inset-inline: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 8px;
  list-style: none;
  text-align: left;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.docs-search__results a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius);
}

.docs-search__results a:hover {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.docs-search__results a span {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.docs-search__empty {
  padding: 8px 10px;
  color: var(--color-muted);
}

.docs-section-intro {
  max-width: 720px;
  margin-bottom: 32px;
}

.docs-guide-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
}

.docs-guide-list__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.docs-guide-list__item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.docs-guide-list__title {
  font-weight: 600;
}

.docs-guide-list__description,
.docs-guide-list__count {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.docs-article-meta {
  display: flex;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.content-sidebar__nav ul ul {
  margin: 4px 0 4px 12px;
  border-left: 1px solid var(--color-line);
  padding-left: 10px;
}

.docs-pagination {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

.docs-pagination__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 600;
}

.docs-pagination__link span {
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.docs-pagination__link--next {
  margin-left: auto;
  text-align: right;
}

.docs-pagination__link:hover {
  color: var(--color-primary);
}

/* --- Help Center: dark hero, guide cards, nav groups --- */
.docs-hero {
  background: linear-gradient(180deg, #16222f 0%, #1d2b3a 100%);
  color: var(--color-white);
  text-align: center;
}

.docs-hero h1 {
  color: var(--color-white);
}

.docs-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.docs-hero .eyebrow {
  color: var(--color-accent);
}

.docs-hero .docs-breadcrumbs ol {
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
}

.docs-hero .docs-breadcrumbs [aria-current="page"] {
  color: var(--color-white);
}

.docs-hero .docs-breadcrumbs a:hover {
  color: var(--color-accent);
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.docs-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.docs-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.docs-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.docs-card__title {
  font-weight: 600;
}

.docs-card__meta {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.docs-card__chevron {
  position: absolute;
  right: 20px;
  bottom: 16px;
  color: var(--color-muted);
  font-size: 1.25rem;
  line-height: 1;
}

.docs-card:hover .docs-card__chevron {
  color: var(--color-primary);
}

.docs-group-label {
  margin: 32px 0 12px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.content-sidebar__group {
  margin-top: 20px;
}

.content-sidebar__nav a.is-current {
  border-left: 3px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
}

.docs-media-placeholder {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  padding: 48px 32px;
  border: 1px dashed var(--color-line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f4f8f8 0%, #eef4f6 100%);
}

.docs-media-placeholder__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.docs-media-placeholder p {
  margin: 4px 0 0;
  color: var(--color-muted);
}
/* --- Docs depth pack: code blocks, ⌘K, components --- */
.docs-code { position: relative; margin: 20px 0 28px; border-radius: 12px; background: #0f172a; border: 1px solid #1e293b; overflow: hidden; }
.docs-code__bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; background: #111c2e; border-bottom: 1px solid #1e293b; }
.docs-code__lang { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
.docs-code__copy { padding: 4px 12px; border-radius: 6px; border: 1px solid #334155; background: transparent; color: #94a3b8; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: color .12s ease, border-color .12s ease; }
.docs-code__copy:hover { color: #2DD4BF; border-color: #2DD4BF; }
.docs-code pre { margin: 0; padding: 16px 18px; overflow-x: auto; background: transparent; }
.docs-code code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.86rem; line-height: 1.65; color: #e2e8f0; background: transparent; padding: 0; }
.docs-code .keyword, .docs-code .storage { color: #c084fc; }
.docs-code .string { color: #86efac; }
.docs-code .constant { color: #fca5a5; }
.docs-code .comment { color: #64748b; font-style: italic; }
.docs-code .entity { color: #7dd3fc; }
.docs-code .support { color: #5eead4; }
.docs-code .variable { color: #e2e8f0; }
.docs-code .punctuation { color: #94a3b8; }

.docs-kbar[hidden] { display: none; }
.docs-kbar { position: fixed; inset: 0; z-index: 90; background: rgba(2, 6, 23, 0.55); backdrop-filter: blur(2px); display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 0; }
.docs-kbar__panel { width: 100%; max-width: 560px; background: #fff; border-radius: 14px; box-shadow: 0 30px 80px rgba(2,6,23,.4); overflow: hidden; }
.docs-kbar__input { width: 100%; padding: 16px 18px; border: 0; border-bottom: 1px solid #e2e8f0; font: inherit; font-size: 1rem; outline: none; }
.docs-kbar__results { list-style: none; margin: 0; padding: 6px; max-height: 46vh; overflow: auto; }
.docs-kbar__results a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: #0f172a; }
.docs-kbar__results li.is-active a, .docs-kbar__results a:hover { background: #f0fdfa; color: #0d9488; }
.docs-result-meta { font-size: 0.74rem; color: #94a3b8; }
.docs-kbar__hint { margin: 0; padding: 10px 14px; border-top: 1px solid #e2e8f0; font-size: 0.72rem; color: #94a3b8; }
.docs-kbar__hint kbd { padding: 1px 5px; border: 1px solid #e2e8f0; border-radius: 4px; background: #f8fafc; }

.docs-version-select { display: block; width: 100%; margin: 0 0 14px; padding: 8px 12px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; color: #0f172a; font: inherit; font-size: 0.85rem; }

.docs-callout { display: flex; gap: 12px; margin: 20px 0; padding: 14px 16px; border-radius: 10px; border: 1px solid #e2e8f0; border-left-width: 4px; background: #f8fafc; }
.docs-callout--info { border-left-color: #0d9488; background: #f0fdfa; }
.docs-callout--warn { border-left-color: #f59e0b; background: #fffbeb; }
.docs-callout--error { border-left-color: #ef4444; background: #fef2f2; }
.docs-callout > :first-child { margin-top: 0; }
.docs-callout > :last-child { margin-bottom: 0; }

.docs-steps { counter-reset: docs-step; list-style: none; margin: 20px 0; padding: 0; }
.docs-steps > li { position: relative; padding: 0 0 20px 44px; border-left: 1px solid #e2e8f0; margin-left: 14px; }
.docs-steps > li:last-child { border-left-color: transparent; padding-bottom: 4px; }
.docs-steps > li::before { counter-increment: docs-step; content: counter(docs-step); position: absolute; left: -15px; top: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 999px; background: #f0fdfa; border: 1px solid #99f6e4; color: #0d9488; font-size: 0.8rem; font-weight: 700; }

.docs-tabs { margin: 20px 0; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; }
.docs-tabs__bar { display: flex; gap: 2px; padding: 6px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.docs-tabs__bar [data-tab] { padding: 6px 14px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 0.85rem; font-weight: 600; color: #64748b; cursor: pointer; }
.docs-tabs__bar [data-tab].is-active { background: #fff; color: #0d9488; box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.docs-tabs [data-tab-panel] { padding: 16px; }

.docs-demo-frame { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 24px; border: 1.5px dashed #99f6e4; border-radius: 14px; background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%); text-align: center; }
.docs-demo-frame__label { margin: 0; font-size: 0.72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0d9488; }
.docs-demo-frame__name { margin: 0; font-weight: 600; color: #0f172a; }
.docs-demo-frame__open { margin-top: 6px; font-size: 0.85rem; font-weight: 600; color: #0d9488; }

/* --- Docs article layout (default theme): sidebar · content · toc --- */
.docs-card__count { font-size: 0.8rem; font-weight: 600; color: var(--color-primary); margin-top: auto; }

.docs-article-header {
  background: linear-gradient(180deg, var(--color-soft) 0%, var(--color-white) 100%);
  border-bottom: 1px solid var(--color-line);
  padding: 40px 0 28px;
}
.docs-article-header .container { max-width: 760px; }
.docs-article-header .content-title { margin: 6px 0 0; }

.docs-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px 20px 64px;
  align-items: start;
}
@media (min-width: 1024px) {
  .docs-layout { grid-template-columns: 250px minmax(0, 1fr); }
  .docs-layout--with-toc { grid-template-columns: 250px minmax(0, 1fr) 210px; }
  .docs-sidebar, .docs-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
}
.docs-main { min-width: 0; }
.docs-main .content-body { max-width: 760px; }
.docs-toc { display: none; }
@media (min-width: 1024px) { .docs-layout--with-toc .docs-toc { display: block; } }

.docs-toc__label {
  margin: 0 0 10px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-muted);
}
.docs-toc__list { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--color-line); }
.docs-toc__list a {
  display: block; padding: 5px 0 5px 14px; margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.85rem; line-height: 1.4; color: var(--color-muted);
}
.docs-toc__list a:hover { color: var(--color-primary); }
.docs-toc__list a.is-active { color: var(--color-primary); border-left-color: var(--color-primary); font-weight: 600; }
.docs-toc__sub a { padding-left: 28px; font-size: 0.82rem; }

/* Fuma-style quiet sidebar: uniform rows, inline chevrons, indent rails, group labels. */
.docs-nav__list { list-style: none; margin: 0; padding: 0; }
.docs-nav__list .docs-nav__list {
  margin: 2px 0 4px 11px;
  padding-left: 10px;
  border-left: 1px solid var(--color-line);
}
.docs-nav__item { position: relative; }
.docs-nav__item > a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--color-muted);
  transition: background 0.12s ease, color 0.12s ease;
}
.docs-nav__item--branch > a { padding-right: 30px; }
.docs-nav__item > a:hover { background: var(--color-soft); color: var(--color-text); }
.docs-nav__item > a.is-current {
  color: var(--color-primary-dark);
  font-weight: 600;
  background: var(--color-primary-light);
}
.docs-nav__item > a.is-trail { color: var(--color-text); font-weight: 500; }
.docs-nav__group {
  padding: 14px 10px 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.docs-nav-toggle {
  position: absolute;
  top: 5px;
  right: 4px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 0.85rem;
}
.docs-nav-toggle:hover { background: var(--color-line); color: var(--color-text); }
.docs-nav-toggle::before { content: "\203A"; display: inline-block; transition: transform 0.15s ease; }
.docs-nav-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }

.docs-feedback {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin-top: 36px; padding: 20px 24px;
  border: 1px solid var(--color-line); border-radius: var(--radius);
  background: var(--color-soft);
}
.docs-feedback__q { margin: 0; font-weight: 600; }
.docs-feedback__actions { display: flex; gap: 10px; }
.docs-feedback__btn {
  padding: 8px 22px; border-radius: 999px;
  border: 1px solid var(--color-line); background: var(--color-white);
  font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--color-muted); cursor: pointer;
}
.docs-feedback__btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }
.docs-feedback__thanks { margin: 0; font-weight: 600; color: var(--color-primary); }

/* --- Docs shell: one predictable frame for every /help page --- */
.docs-topbar {
  position: sticky;
  top: 72px;
  margin-top: 72px;
  z-index: 40;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-line);
}
.docs-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 20px;
}
.docs-topbar__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}
.docs-topbar__title svg { color: var(--color-primary); }
.docs-topbar__title:hover { color: var(--color-primary); }

.docs-search--topbar { margin: 0; width: 320px; max-width: 45vw; }
.docs-search--topbar .docs-search__icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--color-muted); pointer-events: none;
}
.docs-search--topbar input {
  padding: 8px 40px 8px 32px;
  font-size: 0.875rem;
  box-shadow: none;
  background: var(--color-soft);
}
.docs-search__kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  padding: 1px 6px;
  border: 1px solid var(--color-line); border-radius: 5px;
  background: var(--color-white);
  font-size: 0.7rem; color: var(--color-muted);
  pointer-events: none;
}

.docs-shell {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px 64px;
  align-items: start;
}
@media (min-width: 1024px) {
  .docs-shell { grid-template-columns: 250px minmax(0, 1fr); }
  .docs-shell--with-toc { grid-template-columns: 250px minmax(0, 1fr) 210px; }
  .docs-shell .docs-sidebar, .docs-shell .docs-toc {
    position: sticky; top: 140px; max-height: calc(100vh - 164px); overflow: auto;
  }
}
.docs-shell .docs-main { min-width: 0; }
.docs-shell .content-body { max-width: 760px; }
.docs-shell .docs-toc { display: none; }
@media (min-width: 1024px) { .docs-shell--with-toc .docs-toc { display: block; } }
.docs-shell .docs-breadcrumbs ol { margin-bottom: 8px; }

.docs-page-head { margin: 0 0 24px; }
.docs-page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}
.docs-page-head__lede { margin: 0; color: var(--color-muted); max-width: 640px; }
.docs-page-head .docs-article-meta { margin: 6px 0 0; }

.docs-shell .docs-card-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
