:root {
  color-scheme: light;
  --bg: #f4f7fc;
  --bg-soft: rgba(255, 255, 255, 0.68);
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --surface-muted: #eaf0fb;
  --text: #08111f;
  --muted: #53627b;
  --border: rgba(40, 58, 91, 0.12);
  --shadow: 0 18px 50px rgba(7, 17, 31, 0.08);
  --shadow-strong: 0 28px 72px rgba(7, 17, 31, 0.16);
  --accent: #e36e2f;
  --accent-soft: rgba(227, 110, 47, 0.14);
  --accent-2: #6b55ff;
  --accent-2-soft: rgba(107, 85, 255, 0.15);
  --ring: rgba(227, 110, 47, 0.24);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1200px;
  --header-height: 84px;
  font-family: "Segoe UI Variable Text", "Segoe UI", "Aptos", "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06111f;
  --bg-soft: rgba(10, 20, 35, 0.78);
  --surface: rgba(13, 24, 41, 0.92);
  --surface-strong: #0f1d31;
  --surface-muted: #13243a;
  --text: #edf2ff;
  --muted: #98a9c5;
  --border: rgba(155, 176, 220, 0.18);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.38);
  --shadow-strong: 0 34px 86px rgba(0, 0, 0, 0.5);
  --accent: #ff9150;
  --accent-soft: rgba(255, 145, 80, 0.14);
  --accent-2: #8875ff;
  --accent-2-soft: rgba(136, 117, 255, 0.16);
  --ring: rgba(255, 145, 80, 0.28);
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(107, 85, 255, 0.16), transparent 26%),
    radial-gradient(circle at top right, rgba(227, 110, 47, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    var(--bg);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.38), transparent 85%);
  opacity: 0.7;
}

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

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

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

button {
  cursor: pointer;
}

#app {
  position: relative;
  z-index: 1;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.58), rgba(7, 17, 31, 0.24));
  border-bottom: 1px solid var(--border);
}

html[data-theme="light"] .site-header {
  background: linear-gradient(180deg, rgba(244, 247, 252, 0.92), rgba(244, 247, 252, 0.76));
}

.site-header__inner {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

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

.brand__text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand__text strong {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand__text small {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

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

.site-nav__link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
  font-size: 0.93rem;
}

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

.site-nav__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.lang-switch__toggle,
.lang-switch__item,
.icon-button {
  border: 0;
  color: var(--text);
  background: transparent;
}

.lang-switch__toggle {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  color: var(--text);
}

.lang-switch__current {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.lang-switch__icon,
.lang-switch__caret {
  display: inline-flex;
  width: 18px;
  height: 18px;
}

.lang-switch__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 120px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-strong);
  display: grid;
  gap: 6px;
  z-index: 5;
}

.lang-switch__panel[hidden] {
  display: none !important;
}

.lang-switch__item {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  color: var(--muted);
  font-size: 0.92rem;
}

.lang-switch__item.is-active {
  color: var(--text);
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-2-soft));
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.icon-button svg {
  width: 20px;
  height: 20px;
}

.icon-button__icon--sun,
.icon-button__icon--moon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button__icon--moon {
  display: none;
}

html[data-theme="dark"] .icon-button__icon--sun {
  display: none;
}

html[data-theme="dark"] .icon-button__icon--moon {
  display: inline-flex;
}

.page {
  width: 100%;
}

.page__inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.page--home .page__inner {
  padding-top: 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 24px;
  color: var(--muted);
}

.breadcrumb__separator {
  opacity: 0.45;
}

.breadcrumb__link {
  color: var(--muted);
}

.breadcrumb__link:hover {
  color: var(--accent);
}

.breadcrumb__current {
  color: var(--text);
  font-weight: 600;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  width: 100%;
}

.section-heading--compact {
  gap: 8px;
  max-width: 62ch;
}

.page--home .section-heading {
  gap: 10px;
}

.section-heading h2,
.hero h1,
.case-hero h1,
.not-found h1 {
  margin: 0;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.page--home h1 {
  line-height: 1.15;
}

.page--home .section-heading h2 {
  margin-top: 10px !important;
  margin-bottom: 12px !important;
}

.page--home .section-heading p {
  margin-top: 8px;
}

.section-heading p,
.hero__lead,
.card__summary,
.info-card p,
.cta-card h2,
.not-found p {
  color: var(--muted);
}

.section-heading--split {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
}

.section-heading--split p {
  margin: 0;
  max-width: 62ch;
}

.section-heading__hint {
  font-size: 0.85rem;
  color: var(--accent);
  font-style: italic;
}

.section-heading--with-link {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px;
}

.section-heading--with-button {
  position: relative;
  max-width: 100%;
  width: fit-content;
  min-width: 700px;
}

.section-heading__button {
  position: absolute;
  top: 0;
  right: 0;
}

.nowrap-text {
  white-space: nowrap;
  width: max-content;
}

.content-block {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent), var(--surface);
  box-shadow: var(--shadow);
}

.hero,
.case-hero {
  display: grid;
  gap: 24px;
  align-items: center;
}

.hero--home {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  min-height: auto;
  align-items: start;
}

.hero--compact {
  grid-template-columns: 1fr;
}

.page--services h1 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.hero__copy,
.case-hero__copy {
  display: grid;
  gap: 12px;
}

.hero h1,
.case-hero h1,
.not-found h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
}

.hero__lead {
  max-width: 52ch;
  font-size: 0.94rem;
  line-height: 1.65;
  margin: 0;
}

.hero-actions,
.contact-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.button,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
}

.button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
  font-size: 0.88rem;
  justify-content: center;
}

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

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-strong);
}

.button--secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

.text-link {
  color: var(--accent);
}

.text-link--strong {
  font-weight: 700;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  font-size: 0.88rem;
}

.hero__panel {
  display: grid;
  gap: 14px;
}

.hero__panel-card,
.info-card,
.cta-card,
.card,
.step-card,
.pricing-card,
.contact-card,
.story-panel,
.stat-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent), var(--surface-strong);
  box-shadow: var(--shadow);
}

.hero__panel-card {
  padding: 14px;
}

.hero__panel {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

@media (max-width: 640px) {
  .hero__panel {
    display: none;
  }
}

.hero__panel-card--glow {
  position: relative;
  overflow: hidden;
}

.hero__panel-card--glow::after {
  content: "";
  position: absolute;
  inset: auto -15% -30% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
}

.hero__panel-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero__panel-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.hero__panel-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.84rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stat-card {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-items: center;
  text-align: center;
  min-width: 0;
}

.stat-card strong {
  font-size: 0.84rem;
  line-height: 1.2;
  word-break: break-word;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.65rem;
  line-height: 1.3;
  word-break: break-word;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card--expandable {
  cursor: pointer;
  transition: all 0.3s ease;
}

.card--expandable.expanded {
  grid-column: 1 / -1;
  cursor: default;
}

.card {
  overflow: hidden;
}

.card__image {
  aspect-ratio: 16 / 9;
  background: var(--surface-muted);
}

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

.card__body {
  padding: 18px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card__title {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
  flex: 1;
}

.card__summary {
  margin: 0;
  line-height: 1.55;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.card__description {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card__description-content {
  line-height: 1.6;
  font-size: 0.95rem;
}

.card__description-content h3 {
  font-size: 1.1rem;
  margin: 0 0 12px 0;
  color: var(--text);
}

.card__description-content h4 {
  font-size: 1rem;
  margin: 16px 0 8px 0;
  color: var(--text);
}

.card__description-content h5 {
  font-size: 0.95rem;
  margin: 12px 0 6px 0;
  color: var(--text);
}

.card__description-content p {
  margin: 0 0 10px 0;
  color: var(--muted);
}

.card__collapse-btn {
  padding: 0;
  background: transparent;
  border: none;
  color: #ff4444;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
}

.card__collapse-btn:hover {
  color: #cc0000;
  transform: scale(1.1);
}

.card--case .card__body {
  min-height: 170px;
}

.spotlight {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: center;
}

.spotlight__media {
  border-radius: var(--radius-xl);
  padding: 18px;
  background: linear-gradient(135deg, rgba(107, 85, 255, 0.12), rgba(227, 110, 47, 0.08));
  border: 1px solid var(--border);
}

.spotlight__copy {
  display: grid;
  gap: 10px;
}

.check-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.check-list li::marker {
  color: var(--accent);
}

.value-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
}

.value-list li {
  color: var(--text);
  line-height: 1.6;
  font-weight: 500;
}

.site-footer {
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.24), rgba(7, 17, 31, 0.58));
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  margin-top: auto;
}

html[data-theme="light"] .site-footer {
  background: linear-gradient(180deg, rgba(244, 247, 252, 0.76), rgba(244, 247, 252, 0.92));
}

.site-footer__inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 40px;
  align-items: start;
}

.site-footer__links,
.site-footer__legal {
  display: grid;
  gap: 10px;
}

.site-footer__brand {
  display: block;
}

.site-footer__brand .brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-footer__brand .brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.site-footer__brand .brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer__brand p {
  margin: 8px 0 0 0;
  max-width: 32ch;
  color: var(--muted);
  line-height: 1.3;
  font-size: 0.9rem;
}

.site-footer__links a {
  color: var(--muted);
}

.site-footer__links a:hover {
  color: var(--accent);
}

.site-footer__links .eyebrow {
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: none;
}

.site-footer__legal {
  color: var(--muted);
  font-size: 0.92rem;
  justify-self: end;
  text-align: right;
}

.section-heading h2,
.cta-card h2,
.info-card strong,
.pricing-card__price,
.step-card strong,
.contact-card h2 {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
}

.cta-card {
  margin-top: 28px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cta-card h2 {
  margin: 8px 0 0;
  max-width: 28ch;
}

.info-card {
  padding: 18px;
}

.info-card--accent {
  background: linear-gradient(135deg, rgba(107, 85, 255, 0.14), rgba(227, 110, 47, 0.12)), var(--surface-strong);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.info-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-list span {
  color: var(--muted);
}

.info-list strong {
  text-align: right;
  font-weight: 600;
}

.info-card strong,
.contact-card h2,
.pricing-card__price,
.step-card strong {
  line-height: 1.25;
}

.quote-form,
.contact-card,
.pricing-card,
.step-card,
.story-panel,
.stat-card,
.info-card {
  overflow: hidden;
}

.pricing-card p,
.step-card p,
.contact-card p,
.story-panel p,
.info-card p,
.quote-form p,
.card__summary {
  overflow-wrap: anywhere;
}

.hero__panel,
.spotlight__media,
.quote-form__copy {
  min-width: 0;
}

.text-link, .button, .site-nav__link, .lang-switch__button, .icon-button, .menu-toggle {
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.text-link:hover, .button:hover, .site-nav__link:hover, .lang-switch__button:hover, .icon-button:hover, .menu-toggle:hover {
  box-shadow: 0 0 0 4px var(--ring);
}

@media (max-width: 960px) {
  .site-header__inner {
    flex-wrap: wrap;
    padding-block: 14px;
  }

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

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    margin-left: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

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

  .site-nav__links,
  .site-nav__tools {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .site-nav__links {
    gap: 6px;
  }

  .site-nav__link {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
  }

  .lang-switch {
    width: 100%;
    justify-content: space-between;
  }

  .lang-switch__toggle {
    width: 100%;
    justify-content: space-between;
  }

  .hero--home,
  .hero--compact,
  .spotlight,
  .site-footer__inner,
  .section-heading--split,
  .case-hero {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    flex-direction: column;
    align-items: stretch;
  }

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

@media (max-width: 640px) {
  .site-header__inner,
  .page__inner,
  .site-footer__inner {
    width: min(var(--max-width), calc(100% - 18px));
  }

  .page__inner {
    padding-top: 18px;
    padding-bottom: 54px;
  }

  .page--home .page__inner {
    padding-top: 0;
  }

  .content-block {
    padding: 18px;
    border-radius: 22px;
  }

  .hero h1,
  .case-hero h1,
  .not-found h1 {
    font-size: clamp(1.55rem, 8vw, 2.3rem);
    line-height: 1.2;
  }

  .section-heading h2 {
    line-height: 1.2;
  }

  .site-nav__link {
    flex-basis: 100%;
  }
}
