:root {
  --bg: #e1e5e4;
  --bg-soft: #eef1f0;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.88);
  --line: rgba(52, 52, 52, 0.12);
  --text: #171717;
  --muted: #505655;
  --red: #f21d24;
  --red-bright: #ff3037;
  --red-deep: #b11617;
  --red-glow: rgba(242, 29, 36, 0.18);
  --gold-soft: #c93b31;
  --shadow: 0 20px 54px rgba(28, 28, 28, 0.1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(242, 29, 36, 0.08), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(255, 72, 78, 0.08), transparent 22%),
    linear-gradient(180deg, #edf1f0 0%, #e1e5e4 50%, #dde2e0 100%);
  font-family: "Manrope", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(20, 20, 20, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 20, 20, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 100%);
  opacity: 0.16;
}

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

.page-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto 148px;
  align-items: center;
  gap: 20px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 34px rgba(30, 30, 30, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  justify-self: start;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.brand-image {
  width: 94px;
  height: 94px;
  border-radius: 0;
  display: block;
  object-fit: contain;
  background: transparent;
}

.brand-text {
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #4f4a48;
  font-size: 0.89rem;
  justify-self: center;
  min-width: 0;
  flex-wrap: nowrap;
}

.site-nav a {
  position: relative;
  transition: color 220ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 220ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav .is-active {
  color: var(--red-bright);
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--red-deep);
}

.header-cta,
.btn {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  isolation: isolate;
  overflow: visible;
  transition:
    transform 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.header-cta::before,
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  transition:
    box-shadow 300ms ease,
    clip-path 250ms ease,
    transform 250ms ease,
    opacity 250ms ease;
  clip-path: inset(0 0 0 0 round 999px);
}

.header-cta::after,
.btn::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: calc(100% + 0.3em);
  height: calc(100% + 0.3em);
  top: -0.15em;
  left: -0.15em;
  border-radius: inherit;
  background: linear-gradient(
    -135deg,
    rgba(5, 5, 5, 0.34),
    transparent 22%,
    transparent 100%
  );
  filter: blur(0.0125em);
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.header-cta,
.btn {
  text-decoration: none;
}

.header-cta,
.btn {
  z-index: 0;
}

.header-cta {
  color: #fff7f4;
}

.btn-primary {
  color: #fff7f4;
}

.btn-secondary,
.btn-light {
  color: #171717;
  text-shadow: none;
}

.header-cta {
  justify-self: end;
  width: 148px;
  white-space: nowrap;
}

.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  width: 148px;
  min-width: 148px;
  height: 64px;
}

.flag-language-switch {
  overflow: visible;
}

.flag-language-switch__group {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 148px;
  height: 64px;
  padding: 10px 62px 10px 24px;
  border: 1px solid rgba(242, 29, 36, 0.22);
  border-radius: 999px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(177, 22, 23, 0.98), rgba(255, 48, 55, 0.96)),
    radial-gradient(circle at 78% 50%, rgba(255, 255, 255, 0.18), transparent 42%);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.16),
    inset -1px -1px 8px rgba(110, 12, 13, 0.3),
    0 12px 28px rgba(20, 20, 20, 0.1),
    0 0 24px rgba(242, 29, 36, 0.22);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.flag-language-switch__group::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  clip-path: inset(0 0 0 0 round 999px);
  background: linear-gradient(135deg, var(--red-deep), var(--red-bright));
  box-shadow:
    0 0 0 0 inset rgba(5, 5, 5, 0.1),
    -0.05em -0.05em 0.05em 0 inset rgba(110, 12, 13, 0.28),
    0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.13),
    0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 0.42),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.16),
    -0.075em -0.25em 0.25em 0.1em inset rgba(85, 9, 10, 0.28);
  transition:
    box-shadow 300ms ease,
    clip-path 250ms ease,
    transform 250ms ease;
}

.flag-language-switch__group::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: calc(100% + 0.3em);
  height: calc(100% + 0.3em);
  top: -0.15em;
  left: -0.15em;
  border-radius: inherit;
  background: linear-gradient(
    -135deg,
    rgba(5, 5, 5, 0.34),
    transparent 22%,
    transparent 100%
  );
  filter: blur(0.0125em);
  opacity: 0.22;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.flag-language-switch:hover .flag-language-switch__group {
  transform: translateY(-2px);
}

.flag-language-switch:hover .flag-language-switch__group::before {
  clip-path: inset(
    clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px)
      clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) round 999px
  );
  box-shadow:
    0.1em 0.15em 0.05em 0 inset rgba(5, 5, 5, 0.26),
    -0.025em -0.03em 0.05em 0.025em inset rgba(5, 5, 5, 0.18),
    0.25em 0.25em 0.2em 0 inset rgba(5, 5, 5, 0.14),
    0 0 0.05em 0.5em inset rgba(255, 255, 255, 0.12),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.18),
    -0.075em -0.12em 0.2em 0.1em inset rgba(5, 5, 5, 0.16);
}

.flag-language-switch:active .flag-language-switch__group {
  transform: translateY(0) scale(0.975);
}

.flag-language-switch__group input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.flag-language-switch__option {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 12px 22px 10px 24px;
  border-radius: 50%;
  overflow: visible;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px) scale(0.94);
  z-index: 2;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.9, 0.24, 1);
}

.flag-language-switch__option img {
  position: absolute;
  right: -2px;
  top: 50%;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 247, 244, 0.92);
  box-shadow:
    0 6px 14px rgba(20, 20, 20, 0.18),
    0 0 14px rgba(255, 255, 255, 0.18);
  transform: translateY(-50%);
  z-index: 1;
}

.flag-language-switch__label {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 1;
  color: #fff7f4;
  white-space: nowrap;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
  position: relative;
  z-index: 3;
}

.flag-language-switch__code {
  position: static;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  color: rgba(255, 244, 244, 0.78);
  position: relative;
  z-index: 3;
}

.flag-language-switch__option > span:not(.flag-language-switch__label):not(.flag-language-switch__code) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flag-language-switch__option:hover {
  opacity: 1;
}

.flag-language-switch__group input:checked + .flag-language-switch__option {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.flag-language-switch__group .next-trigger {
  position: absolute;
  inset: 0;
  z-index: -1;
  cursor: pointer;
}

.flag-language-switch__group:has(#lang-wheel-de:checked) #trigger-for-de,
.flag-language-switch__group:has(#lang-wheel-en:checked) #trigger-for-en,
.flag-language-switch__group:has(#lang-wheel-pt:checked) #trigger-for-pt {
  z-index: 30;
}

.flag-language-switch__group input:focus-visible + .flag-language-switch__option {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.wheel-selector {
  overflow: visible;
}

.hint-pop {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.47rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(177, 22, 23, 0.66);
  white-space: nowrap;
  pointer-events: none;
  animation: pulseHint 2s infinite ease-in-out;
}

@keyframes pulseHint {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
  }
}

.wheel-selector .radio-input {
  --wheel-rotation: -16deg;
  --wheel-shift-x: 0px;
  --wheel-shift-y: 0px;
  position: relative;
  width: 120px;
  height: 60px;
  border: 1px solid rgba(242, 29, 36, 0.22);
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(177, 22, 23, 0.98), rgba(255, 48, 55, 0.96)),
    radial-gradient(circle at 78% 50%, rgba(255, 255, 255, 0.18), transparent 42%);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 1px 1px 4px rgba(255, 255, 255, 0.16),
    inset -1px -1px 8px rgba(110, 12, 13, 0.3),
    0 12px 28px rgba(20, 20, 20, 0.1),
    0 0 24px rgba(242, 29, 36, 0.22);
}

.wheel-selector .radio-input::after {
  content: "";
  position: absolute;
  right: -56px;
  top: -26px;
  width: 112px;
  height: 112px;
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 255, 255, 0.18) 0deg 14deg,
    rgba(255, 255, 255, 0.06) 14deg 28deg
  );
  border-radius: 50%;
  z-index: 1;
  opacity: 0.78;
  transform:
    translate3d(var(--wheel-shift-x), var(--wheel-shift-y), 0)
    rotate(var(--wheel-rotation));
  transform-origin: center center;
  transition:
    transform 760ms cubic-bezier(0.2, 0.9, 0.24, 1),
    opacity 300ms ease;
}

.wheel-selector .radio-input::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
  z-index: 30;
  box-shadow:
    0 0 10px rgba(242, 29, 36, 0.72),
    0 0 18px rgba(242, 29, 36, 0.3);
  pointer-events: none;
}

.wheel-selector .radio-input input {
  display: none;
}

.wheel-selector .glass-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(255, 255, 255, 0) 46%,
    rgba(110, 12, 13, 0.14) 100%
  );
  z-index: 25;
  pointer-events: none;
}

.wheel-selector .wheel-label {
  position: absolute;
  left: 28px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
  transform-origin: 144px center;
  transform: rotate(var(--angle));
  filter: blur(1.8px);
  opacity: 0.12;
  z-index: 5;
  user-select: none;
}

.wheel-selector .wheel-label .num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: 0.5rem;
  letter-spacing: 0.16em;
  color: rgba(255, 244, 244, 0.86);
  margin-bottom: -1px;
}

.wheel-selector .wheel-label .label {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: rgba(255, 244, 244, 0.38);
  letter-spacing: -0.04em;
}

.wheel-selector .radio-input:has(#lang-wheel-de:checked) .wheel-label {
  transform: rotate(calc(var(--angle) + 30deg));
}

.wheel-selector .radio-input:has(#lang-wheel-de:checked) {
  --wheel-rotation: -20deg;
  --wheel-shift-x: -2px;
  --wheel-shift-y: 0px;
}

.wheel-selector .radio-input:has(#lang-wheel-en:checked) .wheel-label {
  transform: rotate(calc(var(--angle) + 0deg));
}

.wheel-selector .radio-input:has(#lang-wheel-en:checked) {
  --wheel-rotation: 28deg;
  --wheel-shift-x: 4px;
  --wheel-shift-y: -1px;
}

.wheel-selector .radio-input:has(#lang-wheel-pt:checked) .wheel-label {
  transform: rotate(calc(var(--angle) - 30deg));
}

.wheel-selector .radio-input:has(#lang-wheel-pt:checked) {
  --wheel-rotation: 82deg;
  --wheel-shift-x: 9px;
  --wheel-shift-y: 1px;
}

.wheel-selector .radio-input input:checked + .wheel-label {
  opacity: 1;
  filter: blur(0);
  transform: rotate(0deg) translateX(8px);
  z-index: 12;
}

.wheel-selector .radio-input input:checked + .wheel-label .label {
  color: #fff7f4;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.18);
}

.wheel-selector .next-trigger {
  position: absolute;
  inset: 0;
  z-index: -1;
  cursor: pointer;
}

.wheel-selector .radio-input:has(#lang-wheel-de:checked) #trigger-for-de,
.wheel-selector .radio-input:has(#lang-wheel-en:checked) #trigger-for-en,
.wheel-selector .radio-input:has(#lang-wheel-pt:checked) #trigger-for-pt {
  z-index: 100;
}

.header-cta,
.btn-primary {
  color: #fff7f4;
  background: linear-gradient(135deg, var(--red-deep), var(--red-bright));
  text-shadow: rgba(0, 0, 0, 0.22) 0 1px 1px;
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(110, 12, 13, 0.28),
    0.0375em 0.0375em 0.0675em 0 rgba(110, 12, 13, 0.14),
    0 14px 26px rgba(242, 29, 36, 0.18);
}

.header-cta::before,
.btn-primary::before {
  background: linear-gradient(135deg, var(--red-deep), var(--red-bright));
  box-shadow:
    0 0 0 0 inset rgba(5, 5, 5, 0.1),
    -0.05em -0.05em 0.05em 0 inset rgba(110, 12, 13, 0.28),
    0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.13),
    0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 0.42),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.16),
    -0.075em -0.25em 0.25em 0.1em inset rgba(85, 9, 10, 0.28);
}

.header-cta::before,
.btn::before {
  z-index: -1;
}

.header-cta::after,
.btn::after {
  z-index: -2;
}

.btn-secondary {
  border: 1px solid rgba(40, 40, 40, 0.12);
  background: rgba(255, 255, 255, 0.56);
  color: #171717;
  box-shadow:
    -0.15em -0.15em 0.15em -0.075em rgba(5, 5, 5, 0.1),
    0.0375em 0.0375em 0.0675em 0 rgba(5, 5, 5, 0.08),
    0 10px 18px rgba(20, 20, 20, 0.08);
}

.btn-secondary::before,
.btn-light::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(238, 241, 239, 0.72));
  box-shadow:
    0 0 0 0 inset rgba(5, 5, 5, 0.08),
    -0.05em -0.05em 0.05em 0 inset rgba(5, 5, 5, 0.12),
    0 0 0.05em 0.2em inset rgba(255, 255, 255, 0.32),
    0.025em 0.05em 0.1em 0 inset rgba(255, 255, 255, 0.8),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.28),
    -0.075em -0.25em 0.25em 0.1em inset rgba(5, 5, 5, 0.1);
}

.header-cta:hover,
.btn:hover {
  transform: translateY(-2px);
}

.header-cta:hover::before,
.btn:hover::before {
  clip-path: inset(
    clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px)
      clamp(1px, 0.0625em, 2px) clamp(1px, 0.0625em, 2px) round 999px
  );
  box-shadow:
    0.1em 0.15em 0.05em 0 inset rgba(5, 5, 5, 0.26),
    -0.025em -0.03em 0.05em 0.025em inset rgba(5, 5, 5, 0.18),
    0.25em 0.25em 0.2em 0 inset rgba(5, 5, 5, 0.14),
    0 0 0.05em 0.5em inset rgba(255, 255, 255, 0.12),
    0.12em 0.12em 0.12em inset rgba(255, 255, 255, 0.18),
    -0.075em -0.12em 0.2em 0.1em inset rgba(5, 5, 5, 0.16);
}

.header-cta:active,
.btn:active {
  transform: translateY(0) scale(0.975);
}

.app-table-section {
  margin-top: 24px;
}

.app-table-card {
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 48px rgba(20, 20, 20, 0.08);
  overflow: hidden;
}

.performance-standalone-card {
  padding: 28px;
}

.performance-standalone {
  display: grid;
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1.5fr);
  gap: 24px;
}

.performance-sidebar,
.performance-main {
  display: grid;
  gap: 18px;
}

.performance-note-card,
.performance-info-card,
.performance-panel,
.performance-result-card {
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.68));
  box-shadow: 0 18px 38px rgba(20, 20, 20, 0.06);
}

.performance-note-card,
.performance-info-card,
.performance-panel {
  padding: 22px;
}

.performance-note-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #0e1830;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.performance-note-card h3,
.performance-info-card h3,
.performance-panel h2 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.performance-note-card p,
.performance-info-card li,
.performance-status,
.performance-result-note,
.performance-field small {
  color: var(--muted);
  line-height: 1.6;
}

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

.performance-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.performance-status {
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 700;
}

.performance-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.performance-field span {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f2937;
}

.performance-field input,
.performance-field select,
.performance-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(30, 30, 30, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font: inherit;
}

.performance-field textarea {
  min-height: 120px;
  padding: 14px 16px;
  resize: vertical;
}

.performance-field-full,
.performance-field-wide {
  grid-column: 1 / -1;
}

.performance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.performance-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.performance-result-card {
  padding: 22px;
}

.performance-result-card-accent {
  background: linear-gradient(145deg, rgba(177, 22, 23, 0.94), rgba(242, 29, 36, 0.92));
  color: #fff7f4;
}

.performance-result-card-accent .performance-result-label,
.performance-result-card-accent .performance-result-note {
  color: rgba(255, 247, 244, 0.88);
}

.performance-result-label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #5c6471;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.performance-result-value {
  display: block;
  margin-bottom: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1.05;
}

.web-app-table {
  width: 100%;
  border-collapse: collapse;
}

.web-app-table thead th {
  padding: 20px 24px;
  text-align: left;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.46);
}

.web-app-table tbody td {
  padding: 24px;
  vertical-align: top;
  border-top: 1px solid rgba(30, 30, 30, 0.08);
}

.web-app-name {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.web-app-name strong {
  font-size: 1.05rem;
}

.web-app-name span,
.web-app-table tbody td {
  color: var(--muted);
  line-height: 1.7;
}

.web-app-table tbody td:first-child,
.web-app-table tbody td:last-child {
  color: var(--text);
}

.app-link[aria-disabled="true"] {
  cursor: default;
}

.app-link.is-disabled {
  opacity: 0.78;
}

@media (max-width: 920px) {
  .web-app-table,
  .web-app-table thead,
  .web-app-table tbody,
  .web-app-table th,
  .web-app-table td,
  .web-app-table tr {
    display: block;
  }

  .web-app-table thead {
    display: none;
  }

  .web-app-table tbody tr {
    padding: 20px;
  }

  .web-app-table tbody td {
    padding: 8px 0;
    border-top: none;
  }

  .web-app-table tbody tr + tr {
    border-top: 1px solid rgba(30, 30, 30, 0.08);
  }

  .web-app-action-cell {
    padding-top: 16px !important;
  }
}

@media (max-width: 980px) and (min-width: 761px) {
  .site-header {
    grid-template-columns: 92px minmax(0, 1fr) auto auto;
    gap: 12px;
    padding: 12px 16px;
  }

  .brand-image {
    width: 78px;
    height: 78px;
  }

  .site-nav {
    gap: 10px;
    font-size: 0.84rem;
  }

  .header-cta {
    width: auto;
    min-width: 118px;
    padding: 0 18px;
    font-size: 0.92rem;
  }
}

.hero,
.section-grid,
.split-section,
.cta-section,
.page-hero {
  position: relative;
}

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 32px;
  align-items: center;
  padding: 88px 0 54px;
}

.hero-cinematic {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 780px;
  margin-top: 28px;
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: 40px;
  box-shadow: 0 30px 80px rgba(20, 20, 20, 0.16);
}

.hero-cinematic-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-cinematic-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 11, 0.62) 0%, rgba(11, 11, 11, 0.38) 34%, rgba(11, 11, 11, 0.18) 55%, rgba(11, 11, 11, 0.28) 100%),
    linear-gradient(180deg, rgba(11, 11, 11, 0.18) 0%, rgba(11, 11, 11, 0.08) 35%, rgba(11, 11, 11, 0.36) 100%);
}

.hero-cinematic-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 780px;
  max-width: 720px;
  padding: 80px 56px;
}

.hero-cinematic .eyebrow {
  color: rgba(255, 109, 109, 0.96);
}

.hero-cinematic h1,
.hero-cinematic .hero-text {
  color: #fffaf8;
}

.hero-cinematic h1 {
  max-width: 9ch;
  font-size: clamp(4.6rem, 9vw, 7.5rem);
  line-height: 0.94;
}

.hero-cinematic .hero-text {
  max-width: 34rem;
  color: rgba(255, 250, 248, 0.86);
  font-size: 1.08rem;
}

.hero-facts {
  margin-top: -76px;
  position: relative;
  z-index: 2;
  padding: 0 36px 0;
}

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

.hero-facts .hero-stats li {
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.76));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero h1,
.section-intro h2,
.split-copy h2,
.cta-section h2,
.page-hero h1,
.service-card h2,
.process-card h2,
.contact-card h2,
.result-panel h2,
.section-video-overlay h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(3.2rem, 6.5vw, 6rem);
}

.hero-text,
.section-intro p,
.split-copy p,
.cta-section p,
.feature-card p,
.showcase-content p,
.page-lead,
.service-card p,
.process-card p,
.contact-card p,
.result-panel p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

.hero-text {
  max-width: 60ch;
  margin: 22px 0 28px;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-bottom: 30px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-stats li,
.feature-card,
.showcase-card,
.service-card,
.process-card,
.contact-card,
.result-panel,
.cta-section,
.profile-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.62));
  box-shadow: var(--shadow);
}

.hero-stats li {
  padding: 18px;
  border-radius: var(--radius-md);
}

.hero-stats strong,
.feature-card h3,
.showcase-content h3 {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.feature-index,
.service-number,
.process-card span,
.showcase-label {
  color: var(--red-bright);
}

.hero-media {
  position: relative;
  min-height: 640px;
}

.hero-video-card {
  position: relative;
  height: 100%;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid rgba(30, 30, 30, 0.1);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(242, 29, 36, 0.08), rgba(255, 255, 255, 0.12)),
    #d6ddda;
  box-shadow:
    0 20px 50px rgba(26, 26, 26, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.hero-video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 48, 55, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(20, 20, 20, 0.18));
  z-index: 1;
}

.video-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 3;
  padding: 10px 14px;
  border: 1px solid rgba(33, 33, 33, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  color: var(--red-deep);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}

.video-overlay {
  position: absolute;
  right: 26px;
  bottom: 26px;
  z-index: 3;
  width: min(78%, 360px);
  padding: 22px;
  border: 1px solid rgba(28, 28, 28, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
}

.video-overlay p,
.video-overlay span {
  margin: 0;
}

.video-overlay p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.video-overlay span {
  display: block;
  color: var(--muted);
  line-height: 1.6;
}

.floating-panel {
  position: absolute;
  z-index: 4;
  max-width: 250px;
  padding: 18px 20px;
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(16px);
}

.floating-panel span {
  display: block;
  margin-bottom: 8px;
  color: var(--red-bright);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.floating-panel strong {
  line-height: 1.45;
}

.panel-top {
  top: 34px;
  right: -18px;
}

.panel-bottom {
  bottom: 42px;
  left: -18px;
}

.logo-strip {
  position: relative;
  overflow: hidden;
  padding: 18px 0;
  margin: 24px 0 84px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  color: #6a504a;
  font-size: 0.95rem;
}

.logo-strip::before,
.logo-strip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 74px;
  z-index: 1;
  pointer-events: none;
}

.logo-strip::before {
  left: 0;
  background: linear-gradient(90deg, rgba(248, 249, 248, 0.96), rgba(248, 249, 248, 0));
}

.logo-strip::after {
  right: 0;
  background: linear-gradient(270deg, rgba(248, 249, 248, 0.96), rgba(248, 249, 248, 0));
}

.logo-strip-track {
  display: flex;
  align-items: center;
  gap: 46px;
  width: max-content;
  padding: 0 24px;
  animation: logo-strip-rotate 20s linear infinite;
  will-change: transform;
}

.logo-strip-track span {
  white-space: nowrap;
  text-align: center;
}



@keyframes logo-strip-rotate {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.section-grid,
.split-section,
.subpage-main {
  padding-top: 24px;
}

.section-grid,
.split-section,
.product-showcase,
.about-preview {
  padding-bottom: 84px;
}

.page-hero {
  max-width: 900px;
  padding: 72px 0 42px;
}

.page-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(260px, 0.7fr);
  gap: 20px;
  align-items: center;
  max-width: none;
}

.page-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.page-hero-media-card {
  position: relative;
  overflow: hidden;
  min-height: 392px;
  max-width: 390px;
  width: 100%;
  justify-self: end;
  margin-top: 18px;
  border: 1px solid rgba(36, 36, 36, 0.08);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(242, 29, 36, 0.1), rgba(255, 255, 255, 0.72)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.66));
  box-shadow:
    0 18px 40px rgba(28, 28, 28, 0.1),
    0 0 0 1px rgba(242, 29, 36, 0.12),
    0 0 62px rgba(242, 29, 36, 0.24),
    0 0 110px rgba(242, 29, 36, 0.18);
  opacity: 0.82;
}

.page-hero-media-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1) contrast(1);
}

.page-hero-media-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.68)),
    radial-gradient(circle at 78% 18%, rgba(255, 95, 95, 0.12), transparent 18%),
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.2) 34% 35%, transparent 35%);
}

.page-lead {
  max-width: 760px;
  margin-top: 20px;
}

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

.section-intro h2,
.split-copy h2,
.cta-section h2,
.service-card h2,
.process-card h2,
.contact-card h2,
.result-panel h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 18px;
}

.feature-grid,
.stack-grid,
.process-grid,
.contact-layout {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

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

.product-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: 24px;
  align-items: stretch;
  padding-top: 24px;
}

.product-showcase .section-intro {
  margin-bottom: 0;
  padding: 34px;
  border: 1px solid rgba(242, 29, 36, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 12% 18%, rgba(242, 29, 36, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 251, 0.74));
  box-shadow: 0 22px 60px rgba(28, 28, 28, 0.1);
}

.product-panel {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  padding: 34px;
  border: 1px solid rgba(36, 36, 36, 0.08);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(20, 24, 33, 0.94), rgba(54, 10, 18, 0.88)),
    radial-gradient(circle at 82% 12%, rgba(242, 29, 36, 0.34), transparent 28%);
  box-shadow:
    0 30px 80px rgba(28, 28, 28, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.product-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  pointer-events: none;
}

.product-flow,
.product-chip-grid {
  position: relative;
  z-index: 1;
}

.product-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}

.product-flow span,
.product-chip-grid span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.product-flow span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

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

.product-chip-grid span {
  min-height: 44px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.feature-card,
.service-card,
.process-card,
.contact-card {
  height: 100%;
  padding: 28px;
  border-radius: var(--radius-lg);
  --card-scale: 1;
  --card-hover-scale: 1.055;
  transition:
    transform 260ms cubic-bezier(0.2, 1, 0.22, 1),
    box-shadow 260ms ease,
    border-color 260ms ease,
    background 260ms ease;
}

.hero-stats li,
.feature-card,
.showcase-card,
.service-card,
.process-card,
.contact-card,
.result-panel,
.cta-section,
.profile-panel,
.contact-form-card,
.contact-side-card,
.legal-card {
  transform-origin: center;
}

.feature-grid .feature-card:nth-child(2),
.stack-grid > .service-card:nth-child(3n + 2),
.process-grid > .process-card:nth-child(3n + 2),
.contact-layout > .contact-card:nth-child(3n + 2) {
  --card-scale: 1.035;
  z-index: 2;
  box-shadow:
    0 28px 66px rgba(28, 28, 28, 0.14),
    0 0 0 1px rgba(242, 29, 36, 0.06);
}

.hero-stats li:hover,
.hero-stats li:focus-within,
.feature-card:hover,
.feature-card:focus-within,
.showcase-card:hover,
.showcase-card:focus-within,
.service-card:hover,
.service-card:focus-within,
.process-card:hover,
.process-card:focus-within,
.contact-card:hover,
.contact-card:focus-within,
.result-panel:hover,
.result-panel:focus-within,
.cta-section:hover,
.cta-section:focus-within,
.profile-panel:hover,
.profile-panel:focus-within,
.contact-form-card:hover,
.contact-form-card:focus-within,
.contact-side-card:hover,
.contact-side-card:focus-within,
.legal-card:hover,
.legal-card:focus-within {
  transform: scale(1.025);
  border-color: rgba(242, 29, 36, 0.18);
  box-shadow:
    0 26px 60px rgba(28, 28, 28, 0.14),
    0 0 0 1px rgba(242, 29, 36, 0.08);
}

.feature-card:hover,
.feature-card:focus-within,
.service-card:hover,
.service-card:focus-within,
.process-card:hover,
.process-card:focus-within,
.contact-card:hover,
.contact-card:focus-within {
  transform: translateY(0) scale(calc(var(--card-scale, 1) * var(--card-hover-scale, 1.055)));
  z-index: 3;
}

.feature-index,
.service-number,
.process-card span {
  display: inline-flex;
  margin-bottom: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
  align-items: stretch;
}

.benefits {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.benefits div {
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.benefits strong {
  display: block;
  margin-bottom: 8px;
}

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

.showcase-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(242, 29, 36, 0.12), rgba(255, 255, 255, 0.66)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.62));
}

.showcase-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 100%;
  transform: scale(1);
  transform-origin: center;
  filter: saturate(1.02) contrast(1.02);
}

.showcase-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.14)),
    radial-gradient(circle at 78% 18%, rgba(255, 48, 55, 0.08), transparent 18%),
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.08) 34% 35%, transparent 35%),
    linear-gradient(180deg, transparent 0 55%, rgba(242, 29, 36, 0.05) 55% 56%, transparent 56%);
  opacity: 1;
}

.showcase-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 34px;
}

.showcase-card .showcase-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #171717 !important;
}

.showcase-card .text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--red-bright) !important;
  font-weight: 800;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.showcase-card .showcase-content h3 {
  color: #fffaf8 !important;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.showcase-card .showcase-content p {
  color: #fffaf8 !important;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.stack-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 64px;
}

.about-actions {
  margin-top: 12px;
}

.check-list {
  padding-left: 18px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.intro-panel {
  max-width: 900px;
  padding: 0 0 34px;
}

.section-video-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  margin: 0 0 40px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #f0f3f2;
  box-shadow: var(--shadow);
}

.section-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

.section-video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(240, 243, 242, 0.88) 0%, rgba(240, 243, 242, 0.62) 42%, rgba(240, 243, 242, 0.16) 100%),
    linear-gradient(180deg, rgba(242, 29, 36, 0.12), rgba(240, 243, 242, 0.08));
}

.section-video-overlay {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 42px;
}

.section-video-overlay h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-video-overlay p:last-child {
  color: #574f4c;
  line-height: 1.8;
}

.service-note {
  margin-top: 18px;
  color: #574f4c;
}

.service-card-wide {
  grid-column: 1 / -1;
}

.process-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 40px;
}

.result-panel {
  padding: 34px;
  border-radius: 30px;
  margin-bottom: 40px;
}

.contact-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-bottom: 40px;
}

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

.contact-points strong {
  display: block;
  margin-bottom: 8px;
}

.cta-section {
  padding: 42px;
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(242, 29, 36, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.62));
  margin-top: 20px;
}

.cta-section p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.compact-cta {
  margin-bottom: 32px;
}

.profile-panel {
  padding: 34px;
  border-radius: 30px;
  margin-bottom: 40px;
}

.profile-copy {
  max-width: 760px;
}

.demo-panel {
  padding: 38px;
  margin-bottom: 40px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.66));
  box-shadow: var(--shadow);
}

.demo-intro {
  max-width: 760px;
  margin-bottom: 28px;
}

.demo-intro h2,
.demo-card h3 {
  margin: 0 0 16px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.demo-intro h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.demo-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 18px;
  align-items: stretch;
}

.demo-card {
  padding: 28px;
  border: 1px solid rgba(36, 36, 36, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 248, 0.78));
  box-shadow: 0 18px 48px rgba(28, 28, 28, 0.08);
}

.demo-label {
  margin: 0 0 10px;
  color: var(--red-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 700;
}

.demo-copy,
.demo-feedback,
.demo-file-meta,
.demo-empty {
  color: var(--muted);
  line-height: 1.7;
}

.demo-feedback {
  min-height: 1.7em;
  margin: 4px 0 0;
}

.demo-feedback.is-error {
  color: var(--red-deep);
}

.demo-feedback.is-success {
  color: #21764f;
}

.demo-form,
.demo-upload-form {
  display: grid;
  gap: 14px;
}

.demo-app-head,
.demo-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.demo-logout {
  min-height: 42px;
}

.demo-file-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.demo-file-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(42, 42, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.demo-file-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.demo-file-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.demo-file-title {
  font-weight: 700;
}

.demo-download {
  min-height: 38px;
  padding: 0 16px;
  white-space: nowrap;
}

.demo-delete {
  min-height: 38px;
  padding: 0 16px;
  white-space: nowrap;
}

.demo-empty {
  padding: 16px 18px;
  border: 1px dashed rgba(42, 42, 42, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.52);
}

.immersive-video {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  margin: 8px 0 54px;
  border: 1px solid rgba(34, 34, 34, 0.1);
  border-radius: 36px;
  background: #111;
  box-shadow: 0 32px 80px rgba(18, 18, 18, 0.18);
}

.immersive-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.immersive-video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 11, 11, 0.28) 0%, rgba(11, 11, 11, 0.08) 30%, rgba(11, 11, 11, 0.5) 100%),
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.14) 100%);
}

.immersive-video-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 620px;
  padding: 72px 32px 40px;
  text-align: center;
  color: #fffaf8;
}

.immersive-video-copy h2 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.immersive-video-copy p {
  max-width: 720px;
  margin: 0 auto 24px;
  color: rgba(255, 250, 248, 0.86);
  font-size: 1.08rem;
  line-height: 1.7;
}

.immersive-video-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn-light {
  color: #171717;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.12);
}

.contact-rich {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.contact-form-card,
.contact-side-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68));
  box-shadow: var(--shadow);
}

.contact-form-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(242, 29, 36, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 249, 248, 0.78));
}

.contact-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 34%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.28), transparent 24%);
}

.contact-form-card h2,
.contact-side-card h2,
.legal-card h1,
.legal-card h2 {
  margin: 0 0 18px;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.contact-form {
  display: grid;
  position: relative;
  z-index: 1;
  gap: 16px;
}

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

.contact-form .form-row input,
.contact-form textarea,
.contact-form .field input,
.contact-form .field textarea {
  width: 100%;
  padding: 17px 18px;
  border: 1px solid rgba(42, 42, 42, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 246, 0.92));
  color: var(--text);
  font: inherit;
  line-height: 1.5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 10px 24px rgba(20, 20, 20, 0.04);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.contact-form .form-row input::placeholder,
.contact-form textarea::placeholder,
.contact-form .field input::placeholder,
.contact-form .field textarea::placeholder {
  color: #7c8381;
}

.contact-form .form-row input:hover,
.contact-form textarea:hover,
.contact-form .field input:hover,
.contact-form .field textarea:hover {
  border-color: rgba(242, 29, 36, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 14px 28px rgba(20, 20, 20, 0.06);
}

.contact-form .form-row input:focus,
.contact-form textarea:focus,
.contact-form .field input:focus,
.contact-form .field textarea:focus {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(242, 29, 36, 0.42);
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 0 0 5px rgba(242, 29, 36, 0.08),
    0 18px 34px rgba(242, 29, 36, 0.1);
}

.contact-form textarea {
  min-height: 210px;
  resize: vertical;
}

.contact-form > .btn,
.contact-form > .btn.btn-primary {
  justify-self: start;
  min-width: 220px;
  margin-top: 6px;
}

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

.field label,
.checkbox-line {
  color: #2f3131;
  font-size: 0.95rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(42, 42, 42, 0.14);
  border-radius: 18px;
  background: rgba(247, 249, 248, 0.92);
  color: var(--text);
  font: inherit;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(242, 29, 36, 0.42);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 4px rgba(242, 29, 36, 0.08);
}

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

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.6;
  margin-top: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(42, 42, 42, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
}

.checkbox-line input {
  margin-top: 3px;
  accent-color: var(--red-bright);
}

.contact-direct {
  display: grid;
  gap: 16px;
  margin: 20px 0 26px;
}

.contact-direct div,
.side-note {
  padding: 16px 18px;
  border: 1px solid rgba(36, 36, 36, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.contact-direct strong {
  display: block;
  margin-bottom: 6px;
}

.side-note p {
  margin: 0;
}

.legal-main {
  padding-top: 36px;
  padding-bottom: 28px;
}

.legal-card {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.66));
  box-shadow: var(--shadow);
}

.legal-card + .legal-card {
  margin-top: 18px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.8;
}

.legal-card ul {
  margin: 0;
  padding-left: 18px;
}

.site-footer {
  margin-top: 44px;
  overflow: hidden;
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: 36px;
  background:
    radial-gradient(circle at top right, rgba(255, 94, 99, 0.22), transparent 24%),
    linear-gradient(135deg, #b60f12 0%, #cf1c18 42%, #e1221f 100%);
  color: #fff9f5;
  box-shadow: 0 26px 60px rgba(177, 22, 23, 0.2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 34px 32px 26px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand img {
  content: url("assets/GM2.png");
  width: 112px;
  height: auto;
  object-fit: contain;
}

.footer-logo {
  width: 112px;
  height: 72px;
  background-image: url("assets/GM2.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

.footer-brand p,
.footer-links a,
.footer-bottom {
  color: rgba(255, 249, 245, 0.92);
}

.footer-links {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 12px;
}

.footer-links a {
  font-weight: 600;
}

.footer-bottom {
  padding: 0 32px 24px;
  font-size: 0.92rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px) scale(var(--card-scale, 1));
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.2, 1, 0.22, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(var(--card-scale, 1));
}

[data-reveal="left"] {
  transform: translateX(-72px) translateY(22px) scale(var(--card-scale, 1));
}

[data-reveal="right"] {
  transform: translateX(72px) translateY(22px) scale(var(--card-scale, 1));
}

[data-reveal="left"].is-visible,
[data-reveal="right"].is-visible {
  transform: translateX(0) translateY(0) scale(var(--card-scale, 1));
}

.feature-card[data-reveal].is-visible:hover,
.feature-card[data-reveal].is-visible:focus-within,
.service-card[data-reveal].is-visible:hover,
.service-card[data-reveal].is-visible:focus-within,
.process-card[data-reveal].is-visible:hover,
.process-card[data-reveal].is-visible:focus-within,
.contact-card[data-reveal].is-visible:hover,
.contact-card[data-reveal].is-visible:focus-within {
  transform: translateY(0) scale(calc(var(--card-scale, 1) * var(--card-hover-scale, 1.055)));
}

@media (max-width: 1100px) {
  .hero,
  .split-section,
  .product-showcase,
  .feature-grid,
  .logo-strip,
  .stack-grid,
  .process-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-cinematic,
  .hero-cinematic-content {
    min-height: 680px;
  }

  .hero-facts {
    margin-top: -44px;
    padding: 0 18px;
  }

  .hero-media,
  .hero-video-card {
    min-height: 520px;
  }

  .floating-panel {
    position: static;
    margin-top: 14px;
    max-width: none;
  }

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

  .logo-strip {
    margin-bottom: 56px;
  }

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

  .logo-strip::before,
  .logo-strip::after {
    width: 46px;
  }

  .logo-strip-track {
    gap: 32px;
    animation-duration: 17s;
  }

  .feature-grid .feature-card:nth-child(2),
  .stack-grid > .service-card:nth-child(3n + 2),
  .process-grid > .process-card:nth-child(3n + 2),
  .contact-layout > .contact-card:nth-child(3n + 2) {
    transform: none;
    box-shadow: var(--shadow);
  }

  .contact-rich,
  .demo-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .performance-standalone {
    grid-template-columns: 1fr;
  }

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

  .footer-links {
    justify-items: start;
  }
}

.home-fullscreen .page-shell {
  width: 100%;
  max-width: none;
  padding: 0 0 48px;
}

.home-fullscreen .site-header {
  width: min(calc(100% - 40px), 1480px);
  margin: 18px auto 0;
}

.home-fullscreen main {
  overflow: hidden;
}

.home-hero {
  position: relative;
  min-height: calc(100vh - 116px);
  margin: 24px auto 0;
  width: min(calc(100% - 40px), 1480px);
  overflow: hidden;
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: 42px;
  box-shadow: 0 32px 86px rgba(24, 24, 24, 0.16);
  background: #dce2df;
}

.home-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scale: 1.3;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 48, 55, 0.26), transparent 34%),
    linear-gradient(90deg, rgba(13, 14, 16, 0.76), rgba(13, 14, 16, 0.34) 48%, rgba(13, 14, 16, 0.16)),
    linear-gradient(180deg, rgba(13, 14, 16, 0.1), rgba(13, 14, 16, 0.42));
}

.home-hero-content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 116px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 840px;
  padding: clamp(56px, 7vw, 108px);
}

.home-hero .eyebrow,
.home-zion-preview .eyebrow {
  color: rgba(255, 118, 122, 0.96);
}

.home-hero h1 {
  margin: 0;
  max-width: 10ch;
  color: #fffaf8;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4.2rem, 9vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.home-hero-text {
  max-width: 55rem;
  margin: 28px 0 32px;
  color: rgba(255, 250, 248, 0.88);
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  line-height: 1.8;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.home-quick-grid,
.home-split,
.home-rotating-banner,
.home-idea-section,
.home-screenshot-board,
.home-zion-preview,
.home-impact,
.home-final-cta {
  width: min(calc(100% - 40px), 1480px);
  margin-inline: auto;
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: -54px;
  position: relative;
  z-index: 2;
}

.home-rotating-banner {
  margin-top: 34px;
  margin-bottom: 34px;
}

.home-idea-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 34px;
  align-items: center;
  padding: 42px 0 30px;
}

.home-idea-card {
  min-height: 520px;
}

.home-idea-card .showcase-content {
  justify-content: flex-end;
  padding: clamp(28px, 4vw, 54px);
}

.home-idea-card .showcase-content h3 {
  max-width: 38rem;
}

.home-screenshot-copy {
  position: static;
}

.home-screenshot-board {
  position: relative;
  min-height: 620px;
  padding: clamp(28px, 5vw, 76px);
  margin-bottom: 76px;
  border: 1px solid rgba(35, 35, 35, 0.08);
  border-radius: 44px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 80px rgba(24, 24, 24, 0.1);
  backdrop-filter: blur(18px);
}

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

.home-screenshot-slot {
  position: relative;
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  border: 1px solid rgba(242, 29, 36, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(242, 29, 36, 0.09), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74));
  color: #2a2d2d;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(24, 24, 24, 0.06);
  transition:
    transform 320ms cubic-bezier(0.2, 1, 0.22, 1),
    min-height 320ms ease,
    box-shadow 320ms ease,
    border-color 320ms ease;
}

.home-screenshot-slot strong {
  position: relative;
  z-index: 2;
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  font-weight: 900;
  text-align: center;
  transition:
    transform 300ms ease,
    opacity 240ms ease;
}

.home-screenshot-detail {
  position: absolute;
  inset: 24px;
  display: grid;
  grid-template-columns: minmax(680px, 2fr) minmax(240px, 0.55fr);
  gap: 34px;
  align-items: center;
  opacity: 0;
  transform: scale(0.92);
  transition:
    opacity 300ms ease,
    transform 320ms cubic-bezier(0.2, 1, 0.22, 1);
  pointer-events: none;
}

.home-screenshot-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 700;
}

.home-screenshot-empty {
  min-height: 180px;
  border: 1px dashed rgba(242, 29, 36, 0.38);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.46)),
    radial-gradient(circle at 20% 18%, rgba(242, 29, 36, 0.1), transparent 34%),
    radial-gradient(circle at 80% 78%, rgba(47, 55, 64, 0.08), transparent 36%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.home-screenshot-empty::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(242, 29, 36, 0.12), transparent 42%),
    repeating-linear-gradient(180deg, rgba(27, 31, 36, 0.08) 0 1px, transparent 1px 28px);
  opacity: 0.78;
}

.home-screenshot-image {
  display: block;
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: top left;
  border: 1px solid rgba(242, 29, 36, 0.2);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 14px 32px rgba(24, 24, 24, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.home-screenshot-slot:hover,
.home-screenshot-slot:focus-visible {
  position: absolute;
  inset: clamp(28px, 5vw, 76px);
  z-index: 20;
  min-height: auto;
  width: auto;
  transform: none;
  border-color: rgba(242, 29, 36, 0.42);
  box-shadow: 0 38px 92px rgba(24, 24, 24, 0.18);
  outline: none;
}

.home-screenshot-slot:hover strong,
.home-screenshot-slot:focus-visible strong {
  opacity: 0;
  transform: translateY(-18px) scale(0.92);
}

.home-screenshot-slot:hover .home-screenshot-detail,
.home-screenshot-slot:focus-visible .home-screenshot-detail {
  opacity: 1;
  transform: scale(1);
}

.home-screenshot-slot:nth-child(2n):hover,
.home-screenshot-slot:nth-child(2n):focus-visible {
  justify-self: auto;
}

.home-offer-card,
.home-services article,
.home-flow-card,
.home-impact-card {
  border: 1px solid rgba(35, 35, 35, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-offer-card {
  min-height: 260px;
  padding: clamp(28px, 4vw, 46px);
  border-radius: 30px;
}

.home-card-action {
  margin-top: 8px;
  width: fit-content;
  min-height: 46px;
}

.home-offer-tag {
  display: inline-flex;
  margin-bottom: 22px;
  padding: 8px 14px;
  border: 1px solid rgba(242, 29, 36, 0.18);
  border-radius: 999px;
  color: var(--red-deep);
  background: rgba(242, 29, 36, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-offer-card h2,
.home-section-copy h2,
.home-final-cta h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.052em;
}

.home-offer-card p,
.home-section-copy p,
.home-services p,
.home-impact-card span {
  color: var(--muted);
  line-height: 1.75;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 34px;
  align-items: start;
  padding: 118px 0 48px;
}

.home-section-copy {
  position: sticky;
  top: 132px;
  align-self: start;
  padding: clamp(28px, 4vw, 54px);
}

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

.home-services article {
  min-height: 250px;
  padding: 30px;
  border-radius: 28px;
}

.home-services span {
  display: inline-flex;
  margin-bottom: 44px;
  color: var(--red-bright);
  font-weight: 800;
}

.home-services h3,
.home-impact-card strong {
  display: block;
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.34rem;
}

.home-zion-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 34px;
  align-items: center;
  min-height: 720px;
  padding: 54px 0 84px;
}

.home-flow-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(22px, 4vw, 46px);
  border-radius: 34px;
}

.home-flow-step {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid rgba(242, 29, 36, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(242, 29, 36, 0.12), transparent 48%),
    rgba(255, 255, 255, 0.66);
  color: #202020;
  font-weight: 800;
  text-align: center;
}

.home-process-timeline {
  display: grid;
  gap: 16px;
}

.home-process-timeline article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 18px;
  padding: 24px;
  border: 1px solid rgba(242, 29, 36, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(242, 29, 36, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 42px rgba(24, 24, 24, 0.08);
}

.home-process-timeline span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(242, 29, 36, 0.22);
}

.home-process-timeline strong {
  align-self: end;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
}

.home-process-timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.home-impact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 92px;
}

.home-impact-card {
  min-height: 190px;
  padding: 28px;
  border-radius: 28px;
}

.home-final-cta {
  margin-bottom: 48px;
}

@media (max-width: 980px) {
  .home-fullscreen .site-header,
  .home-hero,
  .home-quick-grid,
  .home-split,
  .home-rotating-banner,
  .home-idea-section,
  .home-screenshot-board,
  .home-zion-preview,
  .home-impact,
  .home-final-cta {
    width: min(calc(100% - 24px), 100%);
  }

  .home-quick-grid,
  .home-split,
  .home-idea-section,
  .home-zion-preview,
  .home-impact,
  .home-services {
    grid-template-columns: 1fr;
  }

  .home-section-copy {
    position: static;
    padding-inline: 4px;
  }

  .home-quick-grid {
    margin-top: 18px;
  }

  .home-zion-preview {
    min-height: auto;
    padding-top: 54px;
  }
}

@media (max-width: 640px) {
  .home-hero,
  .home-hero-content {
    min-height: 680px;
  }

  .home-hero {
    border-radius: 28px;
  }

  .home-hero-content {
    padding: 38px 24px;
  }

  .home-hero h1 {
    font-size: clamp(3.3rem, 18vw, 5.4rem);
  }

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

  .home-screenshot-grid {
    grid-template-columns: 1fr;
  }

  .home-screenshot-detail {
    grid-template-columns: 1fr;
  }

  .home-screenshot-slot:hover,
  .home-screenshot-slot:focus-visible {
    position: relative;
    inset: auto;
    min-height: 620px;
    transform: none;
  }

  [data-reveal="left"],
  [data-reveal="right"] {
    transform: translateY(26px) scale(var(--card-scale, 1));
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--content-width));
    padding-bottom: 28px;
  }

  .performance-standalone-card {
    padding: 18px;
  }

  .performance-grid.two,
  .performance-grid.three,
  .performance-results {
    grid-template-columns: 1fr;
  }

  .site-header {
    top: 10px;
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "brand lang cta"
      "nav nav nav";
    align-items: center;
    justify-items: stretch;
    gap: 12px 10px;
    margin-top: 10px;
    padding: 14px 16px 16px;
    border-radius: 28px;
  }

  .brand {
    grid-area: brand;
    justify-self: start;
  }

  .site-nav {
    grid-area: nav;
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px 10px;
    font-size: 0.82rem;
    line-height: 1.15;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 0 2px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .lang-switch,
  .header-cta {
    align-self: center;
  }

  .lang-switch {
    grid-area: lang;
    justify-self: end;
    width: auto;
    max-width: none;
    margin: 0;
    justify-content: center;
    min-width: 98px;
    height: 52px;
  }

  .header-cta {
    grid-area: cta;
    width: auto;
    min-width: 132px;
    max-width: none;
    margin: 0;
    justify-self: end;
  }

  .site-header {
    position: sticky;
  }

  .brand-image {
    width: 72px;
    height: 72px;
  }

  .hero {
    gap: 22px;
    padding: 34px 0 28px;
  }

  .hero-cinematic,
  .hero-cinematic-content {
    min-height: 520px;
  }

  .hero-cinematic-content {
    padding: 32px 22px;
    justify-content: flex-end;
  }

  .hero-cinematic .hero-text,
  .page-lead,
  .section-intro p,
  .split-copy p,
  .feature-card p,
  .service-card p,
  .process-card p,
  .result-panel p,
  .contact-card p,
  .immersive-video-copy p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-actions,
  .cta-actions,
  .immersive-video-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn,
  .cta-actions .btn,
  .immersive-video-actions .btn {
    width: 100%;
  }

  .performance-panel-head,
  .performance-actions,
  .resume-contact-row {
    flex-direction: column;
    align-items: stretch;
  }

  .performance-actions .btn,
  .performance-panel-head .btn,
  .app-link,
  .web-app-action-cell .btn {
    width: 100%;
  }

  .performance-result-value,
  .performance-result-note,
  .performance-info-list li,
  .web-app-table td,
  .web-app-name span,
  .demo-file-name,
  .demo-file-meta,
  .footer-bottom {
    overflow-wrap: anywhere;
  }

  .hero-cinematic h1 {
    max-width: 100%;
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .hero-facts {
    margin-top: 18px;
    padding: 0;
  }

  .hero-facts .hero-stats {
    gap: 12px;
  }

  .hero-facts .hero-stats li {
    padding: 16px 16px 14px;
    align-content: start;
  }

  .hero-facts .hero-stats strong {
    margin-bottom: 6px;
    font-size: 0.98rem;
    line-height: 1.2;
  }

  .hero-facts .hero-stats span {
    display: block;
    font-size: 0.92rem;
    line-height: 1.5;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .logo-strip {
    margin-bottom: 42px;
  }

  .logo-strip::before,
  .logo-strip::after {
    width: 28px;
  }

  .logo-strip-track {
    gap: 24px;
    padding: 0 16px;
    animation-duration: 14s;
  }

  .hero h1,
  .page-hero h1 {
    max-width: none;
  }

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

  .page-hero-media-card {
    min-height: 280px;
    max-width: 100%;
    width: min(100%, 340px);
    justify-self: center;
    margin-top: 8px;
  }

  .hero-media,
  .hero-video-card {
    min-height: 420px;
  }

  .video-overlay {
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
  }

  .feature-card,
  .product-showcase .section-intro,
  .product-panel,
  .service-card,
  .process-card,
  .contact-card,
  .demo-card,
  .contact-form-card,
  .contact-side-card,
  .cta-section,
  .result-panel,
  .profile-panel,
  .legal-card {
    padding: 24px;
  }

  .product-showcase {
    padding-bottom: 58px;
  }

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

  .product-panel {
    min-height: auto;
  }

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

  .demo-panel {
    padding: 24px;
  }

  .demo-app-head,
  .demo-list-head,
  .demo-file-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-video-card {
    min-height: 300px;
  }

  .section-video-overlay {
    padding: 24px;
  }

  .immersive-video,
  .immersive-video-copy {
    min-height: 420px;
  }

  .immersive-video-copy {
    padding: 34px 18px 24px;
  }

  .immersive-video-copy h2 {
    font-size: clamp(2.1rem, 10vw, 3.4rem);
  }

  .demo-panel {
    border-radius: 26px;
  }

  .app-table-card iframe {
    min-height: 72svh !important;
  }

  .demo-file-actions {
    width: 100%;
  }

  .demo-download,
  .demo-delete {
    flex: 1 1 100%;
    justify-content: center;
  }

  .contact-form > .btn,
  .contact-form > .btn.btn-primary {
    width: 100%;
    justify-self: stretch;
    min-width: 0;
  }

  .checkbox-line {
    padding: 12px 14px;
  }

  .footer-inner,
  .footer-bottom {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer-inner {
    gap: 18px;
    padding-top: 26px;
    padding-bottom: 20px;
  }

  .footer-brand {
    gap: 10px;
  }

  .footer-logo,
  .footer-brand img {
    width: 96px;
    height: auto;
  }

  .legal-main {
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .legal-card h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .legal-card h2 {
    font-size: clamp(1.15rem, 5vw, 1.55rem);
    line-height: 1.2;
  }

  .legal-card p,
  .legal-card li {
    font-size: 0.95rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .legal-card ul {
    padding-left: 16px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(calc(100% - 14px), var(--content-width));
  }

  .performance-note-card,
  .performance-info-card,
  .performance-panel,
  .performance-result-card {
    border-radius: 22px;
  }

  .site-header {
    border-radius: 24px;
    padding: 12px 12px 14px;
    grid-template-columns: 1fr auto auto;
    gap: 10px 8px;
  }

  .site-nav {
    gap: 6px 10px;
    font-size: 0.78rem;
    padding-bottom: 2px;
  }

  .lang-switch {
    max-width: none;
    min-width: 126px;
    height: 54px;
  }

  .flag-language-switch__group {
    width: 126px;
    height: 54px;
    padding: 9px 52px 9px 18px;
  }

  .flag-language-switch__option {
    padding: 10px 16px 9px 18px;
  }

  .flag-language-switch__option img {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
  }

  .flag-language-switch__label {
    font-size: 0.84rem;
  }

  .flag-language-switch__code {
    font-size: 0.38rem;
  }

  .hint-pop {
    display: none;
  }

  .wheel-selector .radio-input {
    width: 88px;
    height: 48px;
  }

  .wheel-selector .wheel-label {
    left: 22px;
    transform-origin: 116px center;
  }

  .wheel-selector .wheel-label .num {
    font-size: 0.42rem;
  }

  .wheel-selector .wheel-label .label {
    font-size: 0.72rem;
  }

  .header-cta {
    min-width: 92px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

  .app-table-card iframe {
    min-height: 66svh !important;
  }

  .header-cta,
  .btn {
    min-height: 44px;
    padding: 0 18px;
  }

  .hero-cinematic,
  .hero-cinematic-content {
    min-height: 480px;
    border-radius: 28px;
  }

  .hero-cinematic-content {
    padding: 22px 16px;
  }

  .hero-cinematic h1,
  .page-hero h1,
  .section-intro h2,
  .split-copy h2,
  .cta-section h2,
  .service-card h2,
  .process-card h2,
  .contact-card h2,
  .result-panel h2,
  .section-video-overlay h2 {
    font-size: clamp(2.1rem, 13vw, 3rem);
  }

  .stack-grid .service-card h2 {
    font-size: clamp(1.45rem, 7.2vw, 2rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .stack-grid .service-card p,
  .stack-grid .service-card li {
    font-size: 0.92rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .stack-grid .service-card .service-number {
    margin-bottom: 12px;
  }

  .stack-grid .service-card .check-list {
    padding-left: 16px;
    margin-top: 14px;
    line-height: 1.55;
  }

  .process-grid .process-card h2 {
    font-size: clamp(1.5rem, 7.4vw, 2.05rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .process-grid .process-card p {
    font-size: 0.94rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .process-grid .process-card span {
    margin-bottom: 12px;
  }

  .hero-facts .hero-stats li,
  .feature-card,
  .service-card,
  .process-card,
  .demo-card,
  .contact-form-card,
  .contact-side-card,
  .cta-section,
  .result-panel,
  .profile-panel,
  .legal-card {
    border-radius: 22px;
  }

  .showcase-card,
  .section-video-card,
  .immersive-video {
    border-radius: 24px;
  }

  .showcase-content,
  .section-video-overlay,
  .result-panel,
  .cta-section,
  .profile-panel,
  .contact-form-card,
  .contact-side-card,
  .legal-card {
    padding: 20px;
  }

  .showcase-card {
    min-height: 360px;
  }

  .page-hero {
    padding: 44px 0 24px;
  }

  .page-hero-media-card {
    min-height: 240px;
    width: min(100%, 280px);
  }

  .logo-strip {
    border-radius: 18px;
    margin: 18px 0 34px;
    padding: 14px 0;
  }

  .hero-facts .hero-stats li {
    padding: 14px 14px 12px;
  }

  .hero-facts .hero-stats strong {
    font-size: 0.92rem;
  }

  .hero-facts .hero-stats span {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .logo-strip-track {
    gap: 20px;
    font-size: 0.84rem;
  }

  .immersive-video,
  .immersive-video-copy {
    min-height: 360px;
  }

  .immersive-video-copy {
    padding: 24px 14px 18px;
  }

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

  .footer-bottom {
    padding-bottom: 18px;
    font-size: 0.84rem;
    line-height: 1.5;
  }
}

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

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

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Performance standalone app */
.performance-standalone-card {
  padding: 36px !important;
}

.performance-standalone {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.45fr);
  gap: 28px;
  align-items: start;
}

.performance-sidebar,
.performance-main {
  display: grid;
  gap: 20px;
}

.performance-note-card,
.performance-info-card,
.performance-panel,
.performance-result-card {
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
  box-shadow: 0 18px 42px rgba(18, 18, 18, 0.06);
}

.performance-note-card,
.performance-info-card,
.performance-panel {
  padding: 24px;
}

.performance-note-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #0e1830;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

.performance-note-card h3,
.performance-info-card h3,
.performance-panel h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 1.16rem;
  line-height: 1.25;
}

.performance-note-card p,
.performance-info-card li,
.performance-result-note,
.performance-field small,
.performance-status {
  color: #5b6470;
  line-height: 1.65;
}

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

.performance-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.performance-status {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(24, 24, 24, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.performance-grid {
  display: grid;
  gap: 18px;
}

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

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

.performance-field {
  display: grid;
  gap: 9px;
}

.performance-field span {
  display: block;
  color: #1f2937;
  font-size: 0.93rem;
  font-weight: 800;
}

.performance-field input,
.performance-field select,
.performance-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: none;
  outline: none;
  border-radius: 18px;
  background: #d7d7d7;
  color: #111827;
  font: inherit;
  box-shadow: inset 2px 5px 10px rgba(0, 0, 0, 0.22);
  transition:
    background-color 300ms ease-in-out,
    transform 300ms ease-in-out,
    box-shadow 300ms ease-in-out;
}

.performance-field textarea {
  min-height: 124px;
  padding: 14px 16px;
  resize: vertical;
}

.performance-field input:focus,
.performance-field select:focus,
.performance-field textarea:focus {
  background-color: #ffffff;
  transform: scale(1.05);
  box-shadow:
    13px 13px 100px #969696,
    -13px -13px 100px #ffffff;
}

.performance-field-full,
.performance-field-wide {
  grid-column: 1 / -1;
}

.performance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.performance-actions .btn,
.performance-panel-head .btn {
  min-height: 48px;
}

.performance-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.performance-result-card {
  padding: 24px;
}

.performance-result-card-accent {
  background: linear-gradient(140deg, rgba(177, 22, 23, 0.96), rgba(242, 29, 36, 0.92));
  color: #fff7f4;
}

.performance-result-card-accent .performance-result-label,
.performance-result-card-accent .performance-result-note {
  color: rgba(255, 247, 244, 0.9);
}

.performance-result-label {
  display: block;
  margin-bottom: 12px;
  color: #5a6470;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.performance-result-value {
  display: block;
  margin-bottom: 10px;
  color: #111827;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.9rem, 2.6vw, 2.6rem);
  line-height: 1.05;
}

.performance-result-card-accent .performance-result-value {
  color: #fff;
}

.resume-page {
  padding-top: 34px;
}

.resume-page [data-reveal] {
  opacity: 1;
  transform: none;
}

.resume-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 12%, rgba(242, 29, 36, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.32), transparent 42%);
}

.resume-hero,
.resume-section,
.resume-print-panel {
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 58px rgba(20, 20, 20, 0.1);
}

.resume-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 48px;
  align-items: center;
  overflow: hidden;
  min-height: 560px;
  padding: clamp(34px, 5vw, 68px);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.9), rgba(245, 248, 247, 0.72) 58%, rgba(242, 29, 36, 0.08)),
    rgba(255, 255, 255, 0.72);
}

.resume-hero::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  right: -150px;
  top: -170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 29, 36, 0.2), transparent 66%);
  pointer-events: none;
}

.resume-hero::after {
  content: "G MATRIX";
  position: absolute;
  right: clamp(18px, 4vw, 58px);
  bottom: 22px;
  color: rgba(23, 23, 23, 0.035);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(4.2rem, 11vw, 10rem);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.resume-hero-copy {
  position: relative;
  z-index: 1;
}

.resume-hero h1,
.resume-section h2,
.resume-print-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

.resume-hero h1 {
  font-size: clamp(3rem, 7vw, 6.4rem);
  line-height: 0.92;
}

.resume-role {
  margin: 14px 0 0;
  color: var(--red-deep);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 800;
}

.resume-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.resume-contact-row a,
.resume-contact-row span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #252a29;
  font-weight: 800;
}

.resume-portrait-slot {
  position: relative;
  z-index: 1;
  align-self: stretch;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 28px 72px rgba(20, 20, 20, 0.16),
    0 0 0 12px rgba(255, 255, 255, 0.28);
}

.resume-portrait-slot::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.62));
}

.resume-portrait-slot::after {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 20px;
  pointer-events: none;
}

.resume-portrait-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 36%;
  filter: saturate(1.02) contrast(1.02);
}

.resume-portrait-slot span {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  z-index: 3;
  color: #fff7f4;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.resume-section,
.resume-print-panel {
  margin-top: 22px;
  padding: 38px;
}

.resume-summary {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px 28px;
  align-items: start;
  padding: 28px 32px;
}

.resume-summary .eyebrow {
  grid-column: 1;
  grid-row: 1 / -1;
  padding-top: 4px;
}

.resume-summary h2,
.resume-summary p:not(.eyebrow) {
  grid-column: 2;
  max-width: 980px;
}

.resume-summary p:not(.eyebrow) {
  margin: 0;
}

.resume-summary p,
.resume-section p {
  max-width: 1040px;
  color: #4f5857;
  line-height: 1.58;
}

.resume-skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.resume-skill-grid article,
.resume-timeline article {
  border: 1px solid rgba(24, 24, 24, 0.07);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(243, 247, 246, 0.58)),
    rgba(255, 255, 255, 0.58);
  box-shadow: 0 12px 28px rgba(20, 20, 20, 0.05);
}

.resume-skill-grid article {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.resume-skill-grid article::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 24px rgba(242, 29, 36, 0.42);
}

.resume-skill-grid h3,
.resume-timeline h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.22rem;
  letter-spacing: 0;
}

.resume-skill-grid p,
.resume-timeline p {
  margin: 0;
}

.resume-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.resume-tag-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(24, 24, 24, 0.06);
  background: rgba(255, 255, 255, 0.62);
  color: #252a29;
  font-weight: 800;
}

.resume-timeline {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.resume-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  padding: 22px;
}

.resume-timeline article::before {
  content: "";
  position: absolute;
  left: 118px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: linear-gradient(180deg, var(--red), rgba(242, 29, 36, 0));
  opacity: 0.28;
}

.resume-timeline span {
  color: var(--red-deep);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
}

.resume-timeline h3,
.resume-project-sector {
  grid-column: 2;
  min-width: 0;
  overflow-wrap: anywhere;
}

.resume-project-sector {
  color: #4f5857;
  font-weight: 900;
  line-height: 1.45;
}

.resume-project-list {
  grid-column: 2;
  margin: 0;
  color: #4f5857;
}

.resume-project-list li + li {
  margin-top: 6px;
}

.resume-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.resume-two-column .check-list {
  margin-bottom: 0;
}

.resume-print-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  background:
    linear-gradient(135deg, rgba(177, 22, 23, 0.96), rgba(242, 29, 36, 0.9)),
    rgba(242, 29, 36, 0.9);
  color: #fff7f4;
}

.resume-print-panel .eyebrow,
.resume-print-panel h2 {
  margin-right: auto;
}

.resume-print-panel .eyebrow,
.resume-print-panel h2 {
  color: #fff7f4;
}

.resume-print-panel .btn-primary {
  color: #171717;
}

.resume-print-panel .btn-primary::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(232, 235, 234, 0.98)),
    #ffffff;
}

@media (max-width: 1100px) {
  .performance-standalone {
    grid-template-columns: 1fr;
  }

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

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

  .resume-timeline article {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .resume-timeline article::before {
    left: 108px;
  }

  .resume-timeline p {
    grid-column: 2;
  }

  .resume-project-list {
    grid-column: 2 / -1;
  }
}

@media (max-width: 760px) {
  .performance-standalone-card {
    padding: 18px !important;
  }

  .performance-grid.two,
  .performance-grid.three,
  .performance-results {
    grid-template-columns: 1fr;
  }

  .resume-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 30px;
  }

  .resume-summary {
    grid-template-columns: 1fr;
  }

  .resume-summary .eyebrow {
    grid-column: auto;
    grid-row: auto;
  }

  .resume-summary h2,
  .resume-summary p:not(.eyebrow) {
    grid-column: auto;
  }

  .resume-portrait-slot {
    width: min(320px, 78vw);
    min-height: 380px;
    justify-self: center;
  }

  .resume-skill-grid,
  .resume-two-column {
    grid-template-columns: 1fr;
  }

  .resume-timeline article {
    grid-template-columns: 1fr;
  }

  .resume-timeline article::before {
    display: none;
  }

  .resume-timeline p {
    grid-column: auto;
  }

  .resume-project-list {
    grid-column: auto;
  }

  .resume-print-panel {
    display: grid;
  }
}

@media (max-width: 520px) {
  .performance-note-card,
  .performance-info-card,
  .performance-panel,
  .performance-result-card {
    border-radius: 22px;
  }

  .resume-section,
  .resume-print-panel {
    padding: 24px;
    border-radius: 24px;
  }

  .resume-portrait-slot {
    width: 100%;
    min-height: 360px;
  }
}

@page {
  size: A4;
  margin: 9mm;
}

@media print {
  html,
  body {
    width: 210mm;
    font-size: 9pt;
  }

  body {
    background: #fff;
    color: #111;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  body::before,
  .site-header,
  .site-footer,
  .cookie-banner,
  .cookie-settings-button,
  .resume-print-panel {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .resume-page {
    padding: 0;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .resume-hero,
  .resume-section {
    break-inside: auto;
    margin: 0 0 6px;
    padding: 9px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
  }

  .resume-hero {
    break-inside: avoid;
    grid-template-columns: 1fr 34mm;
    gap: 8mm;
    min-height: 0;
    padding: 10mm;
    border-color: #e2e2e2;
    background:
      linear-gradient(120deg, #ffffff, #f7f8f8 70%, rgba(242, 29, 36, 0.08)),
      #fff;
  }

  .resume-hero::before,
  .resume-hero::after,
  .resume-page::before,
  .resume-portrait-slot::before,
  .resume-portrait-slot::after {
    display: none;
  }

  .resume-hero h1 {
    font-size: 30pt;
    line-height: 0.95;
  }

  .resume-role {
    margin-top: 5px;
    color: var(--red-deep);
    font-size: 12pt;
  }

  .resume-hero .page-lead,
  .resume-summary p,
  .resume-section p {
    max-width: none;
    margin: 3px 0 0;
    font-size: 7.6pt;
    line-height: 1.26;
  }

  .resume-contact-row {
    gap: 4px;
    margin-top: 8px;
  }

  .resume-contact-row a,
  .resume-contact-row span {
    min-height: 20px;
    padding: 0 7px;
    font-size: 7.5pt;
    font-weight: 700;
  }

  .resume-portrait-slot {
    width: 34mm;
    min-height: 42mm;
    aspect-ratio: auto;
    border-radius: 8px;
    box-shadow: none;
  }

  .resume-portrait-slot img {
    object-position: 50% 28%;
  }

  .resume-portrait-slot span {
    display: none;
  }

  .resume-section h2,
  .resume-print-panel h2 {
    margin: 0 0 4px;
    font-size: 12.5pt;
    line-height: 1.05;
  }

  .eyebrow {
    margin: 0 0 4px;
    font-size: 6.4pt;
    letter-spacing: 0.14em;
  }

  .resume-summary {
    break-inside: avoid;
    display: grid;
    grid-template-columns: 24mm minmax(0, 1fr);
    gap: 4mm;
    padding: 7px;
  }

  .resume-summary .eyebrow {
    grid-column: 1;
    grid-row: span 3;
  }

  .resume-summary h2,
  .resume-summary p:not(.eyebrow) {
    grid-column: 2;
  }

  .resume-projects {
    break-before: page;
    page-break-before: always;
  }

  .resume-skill-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-top: 6px;
  }

  .resume-skill-grid article {
    padding: 7px;
    border-radius: 7px;
    box-shadow: none;
  }

  .resume-skill-grid article::before {
    display: none;
  }

  .resume-skill-grid h3,
  .resume-timeline h3 {
    margin: 0 0 3px;
    font-size: 8.8pt;
    line-height: 1.15;
  }

  .resume-skill-grid p {
    font-size: 7.4pt;
    line-height: 1.3;
  }

  .resume-tag-cloud {
    gap: 4px;
    margin-top: 6px;
  }

  .resume-tag-cloud span {
    min-height: 18px;
    padding: 0 6px;
    font-size: 7pt;
  }

  .resume-timeline {
    gap: 5px;
    margin-top: 6px;
  }

  .resume-timeline article {
    display: block;
    break-inside: auto;
    padding: 7px;
    border-radius: 7px;
    box-shadow: none;
  }

  .resume-timeline article::before {
    display: none;
  }

  .resume-timeline span {
    display: inline-block;
    min-width: 58px;
    margin-right: 7px;
    font-size: 8pt;
  }

  .resume-timeline h3 {
    display: inline;
    font-size: 9.3pt;
  }

  .resume-project-sector {
    display: inline;
    margin-left: 7px;
    color: #555;
    font-size: 8pt;
    font-weight: 800;
  }

  .resume-project-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px 14px;
    margin-top: 5px;
    padding-left: 13px;
    font-size: 7.6pt;
    line-height: 1.28;
  }

  .resume-project-list li + li {
    margin-top: 0;
  }

  .resume-two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .check-list {
    margin-top: 5px;
    line-height: 1.32;
  }

  a {
    color: #111;
  }
}

.cookie-banner {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: min(460px, calc(100% - 28px));
  padding: 20px;
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 58px rgba(20, 20, 20, 0.14);
}

.cookie-banner__copy strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 1rem;
}

.cookie-banner__copy p {
  margin: 0;
  color: #5b6470;
  line-height: 1.65;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.cookie-banner__link {
  color: var(--red-deep);
  font-weight: 700;
}

.cookie-settings-button {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 70;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(24, 24, 24, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(20, 20, 20, 0.08);
}

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

@media (max-width: 760px) {
  .cookie-banner {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    padding: 18px;
    border-radius: 22px;
  }

  .cookie-settings-button {
    left: 14px;
    bottom: 14px;
  }
}
