:root {
  --bg: #f4ede4;
  --bg-strong: #e7d5bf;
  --surface: rgba(255, 250, 245, 0.78);
  --surface-strong: rgba(255, 248, 239, 0.92);
  --surface-dark: linear-gradient(160deg, rgba(20, 29, 35, 0.96), rgba(18, 49, 48, 0.92));
  --text: #15212b;
  --text-soft: #53616c;
  --text-light: rgba(248, 244, 238, 0.82);
  --white: #fffaf5;
  --accent: #bb5228;
  --accent-strong: #963912;
  --accent-cool: #0d504a;
  --accent-cool-soft: rgba(13, 80, 74, 0.1);
  --line: rgba(18, 28, 34, 0.12);
  --line-strong: rgba(255, 250, 245, 0.16);
  --shadow: 0 24px 70px rgba(72, 45, 22, 0.12);
  --shadow-strong: 0 34px 90px rgba(17, 26, 31, 0.24);
  --radius-xl: 34px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --font-sans: "Avenir Next", "Trebuchet MS", "Segoe UI Variable", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top left, rgba(187, 82, 40, 0.17), transparent 34%),
    radial-gradient(circle at 80% 18%, rgba(13, 80, 74, 0.12), transparent 26%),
    radial-gradient(circle at bottom right, rgba(48, 93, 124, 0.12), transparent 26%),
    linear-gradient(180deg, var(--bg) 0%, #f8f3ec 100%);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent);
}

body::after {
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.32), transparent 18%),
    radial-gradient(circle at 88% 88%, rgba(231, 213, 191, 0.55), transparent 20%);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.site-header,
.signal-strip,
.section-card,
.feature-panel,
.cta-card,
.utility-page,
.locale-card,
.not-found,
.site-footer {
  backdrop-filter: blur(16px);
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.8);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), var(--accent-cool));
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brand-copy small {
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.35;
}

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

.site-nav-link,
.language-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text-soft);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.site-nav-link:hover,
.language-pill:hover,
.button:hover,
.locale-card:hover {
  transform: translateY(-1px);
}

.site-nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.language-pill {
  border: 1px solid rgba(18, 28, 34, 0.1);
  background: rgba(255, 255, 255, 0.48);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.language-pill.is-active {
  border-color: transparent;
  background: var(--text);
  color: var(--white);
}

.site-main {
  padding-top: 38px;
}

.section {
  margin-top: 26px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.hero-copy-block,
.hero-panel,
.signal-strip,
.section-card,
.feature-panel,
.cta-card,
.site-footer,
.utility-page,
.locale-card,
.not-found {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-copy-block {
  position: relative;
  overflow: hidden;
  padding: 52px 46px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(140deg, rgba(255, 252, 247, 0.96), rgba(250, 241, 229, 0.88)),
    radial-gradient(circle at top right, rgba(187, 82, 40, 0.14), transparent 30%);
  box-shadow: var(--shadow);
}

.hero-copy-block::after {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 180px;
  height: 180px;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(187, 82, 40, 0.14), rgba(13, 80, 74, 0.1));
  content: "";
  transform: rotate(12deg);
}

.hero-panel {
  padding: 34px 30px;
  color: var(--white);
  background: var(--surface-dark);
  box-shadow: var(--shadow-strong);
}

.signal-strip {
  padding: 26px 30px;
  background: var(--surface);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: rgba(255, 244, 233, 0.72);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-serif);
  line-height: 1;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.2rem, 7vw, 5.8rem);
}

h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
}

h3 {
  font-size: 1.45rem;
}

p,
li,
span {
  line-height: 1.75;
}

p,
li {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.04rem;
}

.hero-copy {
  max-width: 62ch;
  margin-top: 24px;
  font-size: 1.15rem;
}

.hero-panel h2,
.hero-panel p {
  color: inherit;
}

.hero-panel h2 {
  max-width: 10ch;
}

.hero-panel-copy {
  margin-top: 18px;
  color: var(--text-light);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

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

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border-color: rgba(18, 28, 34, 0.14);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text);
}

.button-secondary-light {
  border-color: rgba(255, 250, 245, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.chip-list,
.signal-list,
.detail-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip-list {
  margin-top: 24px;
}

.chip,
.signal-item,
.detail-item {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--text);
  font-size: 0.94rem;
}

.signal-item {
  background: rgba(13, 80, 74, 0.08);
  border-color: rgba(13, 80, 74, 0.12);
}

.detail-item {
  align-items: flex-start;
  min-height: auto;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
}

.stats-grid,
.experience-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.stat-card {
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.experience-metrics .stat-card {
  border-color: rgba(18, 28, 34, 0.1);
  background: rgba(255, 255, 255, 0.58);
}

.stat-value {
  color: inherit;
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-panel .stat-value,
.hero-panel .stat-label {
  color: var(--white);
}

.experience-metrics .stat-value {
  color: var(--text);
}

.stat-label {
  margin-top: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.capability-grid,
.experience-grid,
.approach-grid,
.flow-grid {
  display: grid;
  gap: 18px;
}

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

.experience-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

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

.flow-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 18px;
}

.section-card,
.feature-panel {
  padding: 26px;
  background: var(--surface);
}

.feature-panel {
  background: linear-gradient(155deg, var(--surface-strong), rgba(252, 242, 230, 0.84));
}

.section-card h3,
.feature-panel h3,
.flow-card h3 {
  margin-bottom: 12px;
}

.section-card p + .detail-list {
  margin-top: 18px;
}

.section-feature .section-heading {
  margin-bottom: 20px;
}

.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
}

.feature-panel-lead p + p {
  margin-top: 14px;
}

.flow-card {
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 250, 245, 0.74);
  box-shadow: var(--shadow);
}

.flow-step {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.cta-card {
  padding: 38px;
  color: var(--white);
  background:
    radial-gradient(circle at top right, rgba(255, 209, 188, 0.12), transparent 24%),
    linear-gradient(155deg, rgba(18, 29, 35, 0.98), rgba(26, 61, 57, 0.94));
  box-shadow: var(--shadow-strong);
}

.cta-card h2,
.cta-card p {
  color: inherit;
}

.cta-note {
  margin-top: 18px;
  color: rgba(255, 245, 235, 0.72);
  font-size: 0.96rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 30px;
  padding: 24px 28px;
  background: rgba(255, 249, 242, 0.74);
}

.footer-brand {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.utility-page,
.not-found {
  max-width: 820px;
  margin: 120px auto;
  padding: 40px;
  background: var(--surface);
}

.utility-title {
  max-width: 14ch;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.utility-copy {
  max-width: 56ch;
  margin-top: 18px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.locale-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.62);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.locale-card:hover {
  border-color: rgba(187, 82, 40, 0.24);
  box-shadow: 0 24px 55px rgba(72, 45, 22, 0.12);
}

.locale-card strong {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.05;
}

.locale-card span {
  color: var(--text-soft);
}

.locale-code {
  color: var(--accent) !important;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-copy-block,
.hero-panel,
.signal-strip,
.section-card,
.feature-panel,
.flow-card,
.cta-card {
  animation: rise-in 720ms ease both;
}

.hero-panel {
  animation-delay: 80ms;
}

.signal-strip {
  animation-delay: 120ms;
}

.capability-grid .section-card:nth-child(2),
.experience-grid .section-card:nth-child(2),
.approach-grid .section-card:nth-child(2),
.flow-grid .flow-card:nth-child(2) {
  animation-delay: 100ms;
}

.capability-grid .section-card:nth-child(3),
.experience-grid .section-card:nth-child(3),
.approach-grid .section-card:nth-child(3),
.flow-grid .flow-card:nth-child(3) {
  animation-delay: 160ms;
}

.capability-grid .section-card:nth-child(4),
.experience-grid .section-card:nth-child(4),
.approach-grid .section-card:nth-child(4),
.flow-grid .flow-card:nth-child(4) {
  animation-delay: 220ms;
}

.capability-grid .section-card:nth-child(5),
.flow-grid .flow-card:nth-child(5) {
  animation-delay: 280ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: start;
    border-radius: 28px;
  }

  .site-nav,
  .footer-meta {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hero,
  .platform-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 920px) {
  .page-shell {
    width: min(100% - 24px, 1240px);
    padding-top: 16px;
  }

  .hero-copy-block,
  .hero-panel,
  .cta-card,
  .utility-page,
  .not-found {
    padding: 30px 24px;
  }

  .capability-grid,
  .experience-grid,
  .language-grid,
  .stats-grid,
  .experience-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  h2 {
    max-width: 100%;
  }

  .hero-actions,
  .language-switcher {
    width: 100%;
  }

  .button {
    width: 100%;
  }

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

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
