:root {
  --background: #f7f5ef;
  --surface: #ffffff;
  --surface-muted: #f1eee6;
  --foreground: #233245;
  --foreground-soft: #5d6877;
  --primary: #5678c6;
  --primary-dark: #3d5ba8;
  --primary-soft: rgba(86, 120, 198, 0.12);
  --accent: #f0c779;
  --accent-soft: rgba(240, 199, 121, 0.18);
  --border: rgba(35, 50, 69, 0.1);
  --border-strong: rgba(35, 50, 69, 0.16);
  --shadow: 0 24px 60px rgba(40, 54, 77, 0.12);
  --shadow-soft: 0 18px 42px rgba(40, 54, 77, 0.08);
  --radius-sm: 0.9rem;
  --radius-md: 1.35rem;
  --radius-lg: 1.8rem;
  --radius-pill: 999px;
  --shell: min(1120px, calc(100vw - 2rem));
  --header-height: 4.5rem;
  --dark: #223142;
  --dark-soft: rgba(255, 255, 255, 0.7);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.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;
}

.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(247, 245, 239, 0.84);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.85rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.site-nav a,
.site-footer a {
  text-decoration: none;
  color: var(--foreground-soft);
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--foreground);
}

.header-actions {
  display: flex;
  gap: 0.75rem;
}

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

.lang-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--foreground-soft);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.lang-switcher__toggle:hover,
.lang-switcher__toggle:focus-visible {
  color: var(--foreground);
  border-color: var(--border-strong);
}

.lang-switcher__toggle svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.lang-switcher__menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 9.5rem;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  list-style: none;
  margin: 0;
  z-index: 30;
}

.lang-switcher__menu[data-open='true'] {
  display: block;
}

.lang-switcher__menu li {
  margin: 0;
}

.lang-switcher__menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--foreground-soft);
  transition: background 140ms ease, color 140ms ease;
}

.lang-switcher__menu a:hover,
.lang-switcher__menu a:focus-visible {
  background: var(--primary-soft);
  color: var(--foreground);
}

.lang-switcher__menu a[aria-current='page'] {
  font-weight: 700;
  color: var(--foreground);
}

.menu-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle__line {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.22rem auto;
  background: var(--foreground);
  border-radius: 999px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 14px 26px rgba(61, 91, 168, 0.22);
}

.button--secondary,
.button--ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--border);
  color: var(--foreground);
}

.button--ghost {
  background: transparent;
}

.button--large {
  min-height: 3.2rem;
  padding-inline: 1.4rem;
}

.button--light {
  background: #fff;
  color: var(--primary-dark);
}

.button--outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  position: relative;
  padding: 5.5rem 0;
}

.section--surface {
  background: var(--surface);
}

.section--muted {
  background: rgba(255, 255, 255, 0.55);
}

.section--dark {
  background: var(--dark);
  color: #fff;
}

.hero {
  overflow: hidden;
  padding-top: calc(4rem + var(--header-height));
}

.hero__grid,
.split-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.5rem;
  align-items: center;
}

.split-layout--reverse > :first-child {
  order: 2;
}

.hero__content h1,
.section h2,
.cta-card h2 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero__content h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  max-width: 12ch;
}

.hero__content h1 span {
  color: var(--primary);
}

.hero__lede,
.section-heading p,
.section-copy,
.testimonial-card p,
.footer-brand p {
  color: var(--foreground-soft);
}

.hero__lede {
  margin: 1.5rem 0 0;
  font-size: 1.125rem;
  max-width: 38rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__actions--center {
  justify-content: center;
}

.eyebrow,
.eyebrow-pill {
  margin: 0 0 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.eyebrow {
  color: var(--primary);
}

.eyebrow--soft {
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  color: var(--primary);
  background: var(--primary-soft);
}

.eyebrow-pill__dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(86, 120, 198, 0.4);
  animation: pulse 1.9s infinite;
}

.hero-card,
.media-card,
.feature-card,
.testimonial-card,
.cta-card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.hero-card,
.media-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.hero-card img,
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card-wrap {
  position: relative;
}

.floating-note {
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
  bottom: 1.3rem;
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.floating-note p,
.floating-note small {
  margin: 0;
}

.floating-note p {
  font-weight: 700;
}

.floating-note small {
  color: var(--foreground-soft);
}

.icon-badge,
.feature-icon,
.stack-list__icon,
.testimonial-avatar,
.cta-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-badge,
.cta-card__badge {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 1rem;
  background: var(--primary-soft);
  color: var(--primary);
}

.icon-badge svg {
  width: 1.25rem;
  height: 1.25rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.2rem;
}

.trust-row p {
  margin: 0;
  color: var(--foreground-soft);
}

.trust-row strong {
  color: var(--foreground);
}

.avatar-group {
  display: flex;
}

.avatar-group img {
  width: 2.5rem;
  height: 2.5rem;
  margin-left: -0.45rem;
  display: inline-block;
  border-radius: 50%;
  border: 2px solid var(--background);
  object-fit: cover;
  background: var(--surface-muted);
  box-shadow: 0 8px 18px rgba(35, 50, 69, 0.08);
}

.avatar-group img:first-child {
  margin-left: 0;
}

.hero__glow,
.media-card--glow::before,
.cta-card::before,
.cta-card::after {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  content: '';
}

.hero__glow--top {
  top: -11rem;
  left: 50%;
  width: 48rem;
  height: 18rem;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(86, 120, 198, 0.25), rgba(86, 120, 198, 0));
}

.hero__glow--bottom {
  bottom: -8rem;
  right: -3rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(240, 199, 121, 0.2), rgba(240, 199, 121, 0));
}

.section-heading {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-heading h2,
.section h2,
.cta-card h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-heading p,
.section-copy,
.cta-card p {
  margin: 1rem 0 0;
  font-size: 1.05rem;
}

.section-copy--soft {
  color: var(--dark-soft);
}

.feature-grid,
.testimonial-grid,
.footer-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.testimonial-card {
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--surface);
}

.blog-shell {
  max-width: 860px;
}

.blog-breadcrumbs {
  margin: 0 0 1.25rem;
  color: var(--foreground-soft);
  font-size: 0.95rem;
}

.blog-breadcrumbs a {
  text-decoration: none;
}

.blog-post {
  padding: clamp(1.35rem, 2vw, 2.25rem);
}

.blog-post__title {
  margin: 0;
}

.blog-post__summary {
  margin: 1rem 0 0;
  color: var(--foreground-soft);
  font-size: 1.08rem;
}

.blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--foreground-soft);
  font-size: 0.95rem;
}

.blog-post__tags,
.blog-index-card__tags {
  display: flex;
  flex-wrap: wrap;
}

.blog-post__tags {
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}

.blog-post .section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.blog-tag,
.blog-index-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
}

.blog-tag {
  font-size: 0.9rem;
}

.blog-post__image,
.blog-index-card__image {
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.blog-post__image {
  margin: 0 0 1.75rem;
  border-radius: var(--radius-md);
}

.blog-post__image img {
  width: 100%;
  height: auto;
}

.blog-post__content {
  font-size: 1.03rem;
  color: var(--foreground);
}

.blog-post__content > :first-child {
  margin-top: 0;
}

.blog-post__content h2,
.blog-post__content h3,
.blog-post__content h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.15;
  margin-top: 2rem;
}

.blog-post__content p,
.blog-post__content ul,
.blog-post__content ol,
.blog-post__content blockquote {
  margin: 1rem 0;
}

.blog-post__content blockquote {
  margin-left: 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--primary);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.blog-post__content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

.blog-intro {
  max-width: 54rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.blog-intro p,
.blog-index-card__meta,
.blog-index-card__summary,
.blog-index-empty {
  color: var(--foreground-soft);
}

.blog-index-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  max-width: 54rem;
  margin: 0 auto;
}

.blog-index-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-index-card__image {
  border-radius: var(--radius-sm);
}

.blog-index-card__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-index-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.94rem;
}

.blog-index-card__tags {
  gap: 0.55rem;
}

.blog-index-card__tag {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.blog-index-empty {
  text-align: center;
}

.feature-card h3,
.stack-list h3,
.testimonial-card strong,
.site-footer h2 {
  margin: 0;
  font-size: 1.05rem;
}

.feature-card p,
.stack-list p,
.testimonial-card small,
.site-footer p,
.site-footer li {
  margin: 0.65rem 0 0;
  color: var(--foreground-soft);
}

.feature-icon,
.stack-list__icon,
.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  font-size: 1.35rem;
  background: var(--surface-muted);
}

.stack-list,
.stack-list--dark {
  display: grid;
  gap: 1.15rem;
  margin-top: 2rem;
}

.stack-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
}

.stack-list--dark .stack-list__icon {
  background: rgba(255, 255, 255, 0.08);
}

.stack-list--dark p {
  color: var(--dark-soft);
}

.media-card--left::before,
.media-card--glow::before {
  inset: auto;
}

.media-card--glow::before {
  inset: 10% 14%;
  z-index: -1;
  filter: blur(40px);
  background: rgba(86, 120, 198, 0.28);
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  list-style: none;
  padding: 1.5rem 0 0;
  margin: 2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.badge-list li {
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
}

.testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.testimonial-card footer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  display: inline-block;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(35, 50, 69, 0.12);
}

.cta-section {
  padding-top: 2rem;
}

.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 0.4rem);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}

.cta-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
}

.cta-card__content {
  position: relative;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 2rem 4rem 2rem;
  text-align: center;
}

.cta-card .eyebrow--soft {
  color: rgba(255, 255, 255, 0.92);
}

.cta-card__content > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.94);
}

.cta-card small {
  display: block;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.82);
}

.cta-card::before {
  width: 18rem;
  height: 18rem;
  top: -8rem;
  right: -5rem;
  background: rgba(255, 255, 255, 0.12);
}

.cta-card::after {
  width: 14rem;
  height: 14rem;
  bottom: -6rem;
  left: -4rem;
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  padding: 4rem 0 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-grid {
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  align-items: start;
}

.footer-brand {
  max-width: 20rem;
}

.site-footer h2 {
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li + li {
  margin-top: 0.7rem;
}

.footer-bottom {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--foreground-soft);
  text-align: center;
}

:focus-visible {
  outline: 3px solid rgba(86, 120, 198, 0.3);
  outline-offset: 3px;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(86, 120, 198, 0.35);
  }
  70% {
    box-shadow: 0 0 0 0.55rem rgba(86, 120, 198, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(86, 120, 198, 0);
  }
}

@media (max-width: 959px) {
  .header-inner {
    grid-template-columns: auto 1fr auto auto;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav,
  .header-actions {
    position: absolute;
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
  }

  .site-nav {
    top: calc(100% + 0.65rem);
    display: none;
    flex-direction: column;
    gap: 1rem;
  }

  .site-nav[data-open='true'] {
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .lang-switcher__menu {
    right: auto;
    left: 0;
  }

  .hero__grid,
  .split-layout,
  .feature-grid,
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .split-layout--reverse > :first-child {
    order: 0;
  }

  .section,
  .hero {
    padding-block: 4.5rem;
  }

  .hero {
    padding-top: calc(3rem + var(--header-height));
  }

  .hero__content {
    text-align: center;
  }

  .section-heading,
  .cta-card__content {
    text-align: left;
  }

  .hero__actions--center {
    justify-content: flex-start;
  }

  .cta-card__content {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(1120px, calc(100vw - 1.2rem));
  }

  .hero__content h1 {
    max-width: none;
  }

  .hero__actions,
  .header-actions {
    flex-direction: column;
  }

  .button,
  .hero__actions .button {
    width: 100%;
  }

  .floating-note {
    position: static;
    margin: 1rem;
  }
}
