:root {
  color-scheme: light;
  --page: #f6f8fb;
  --page-deep: #edf2f7;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --ink: #102034;
  --muted: #617087;
  --faint: #91a0b4;
  --line: #dce4ed;
  --line-strong: #c9d4e2;
  --blue: #1769e0;
  --blue-dark: #0d50b8;
  --blue-soft: #e9f2ff;
  --green: #18a86b;
  --green-soft: #e9f8f1;
  --violet: #7357d9;
  --amber: #d88913;
  --shadow-sm: 0 8px 24px rgba(24, 42, 68, 0.08);
  --shadow-md: 0 24px 70px rgba(24, 42, 68, 0.13);
  --shadow-lg: 0 40px 110px rgba(24, 42, 68, 0.18);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --content: min(1180px, calc(100vw - 48px));
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page: #07111f;
  --page-deep: #0a1626;
  --surface: #0e1b2d;
  --surface-soft: #111f33;
  --surface-glass: rgba(12, 25, 42, 0.84);
  --ink: #edf5ff;
  --muted: #9bacc2;
  --faint: #6e8099;
  --line: #20324a;
  --line-strong: #31455f;
  --blue: #60a5fa;
  --blue-dark: #93c5fd;
  --blue-soft: rgba(37, 99, 235, 0.17);
  --green: #43d294;
  --green-soft: rgba(24, 168, 107, 0.15);
  --violet: #a78bfa;
  --amber: #f2b850;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 40px 110px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(rgba(99, 116, 139, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 116, 139, 0.035) 1px, transparent 1px),
    var(--page);
  background-size: 36px 36px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 12% 4%, rgba(23, 105, 224, 0.11), transparent 30rem),
    radial-gradient(circle at 92% 22%, rgba(24, 168, 107, 0.09), transparent 26rem);
  content: "";
  pointer-events: none;
}

a {
  color: inherit;
}

button,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--blue);
  transform: translateY(-150%);
}

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

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(201, 212, 226, 0.75);
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(1.3);
}

html[data-theme="dark"] .site-header {
  border-bottom-color: rgba(49, 69, 95, 0.72);
}

.header-inner {
  display: flex;
  width: var(--content);
  min-height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-link {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-frame {
  position: relative;
  display: block;
  width: 156px;
  height: 48px;
  flex: 0 0 156px;
  overflow: hidden;
}

.brand-logo {
  position: absolute;
  top: -54px;
  left: 0;
  display: block;
  width: 156px;
  max-width: none;
  height: 156px;
  object-fit: contain;
}

html[data-theme="dark"] .brand-logo {
  filter: brightness(1.32) saturate(1.12);
}

.brand-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(24, 168, 107, 0.25);
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.brand-live-dot,
.eyebrow-pulse,
.session-pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(24, 168, 107, 0.44);
  animation: live-pulse 2s infinite;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-editor-link,
.theme-toggle {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(24, 42, 68, 0.04);
}

.header-editor-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.header-editor-link:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.header-editor-arrow {
  color: var(--blue);
}

.site-header .language-control {
  width: auto;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header .language-select-wrap {
  width: auto;
}

.site-header .language-select-button {
  min-width: 194px;
  min-height: 42px;
}

.theme-toggle {
  display: inline-grid;
  width: 42px;
  flex: 0 0 42px;
  padding: 0;
  place-items: center;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--line-strong);
}

.theme-toggle-icon {
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
}

.hero-section,
.content-section,
.final-cta-section,
.site-footer {
  width: var(--content);
  margin-right: auto;
  margin-left: auto;
}

.hero-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(540px, 1.12fr);
  gap: clamp(46px, 6vw, 92px);
  min-height: 710px;
  padding: 104px 0 92px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 7px 12px;
  border: 1px solid rgba(24, 168, 107, 0.24);
  border-radius: 999px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(54px, 5.2vw, 78px);
  font-weight: 870;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

h1 span,
h1 strong {
  display: block;
  white-space: nowrap;
}

h1 strong {
  width: max-content;
  margin-top: 12px;
  color: transparent;
  background: linear-gradient(100deg, var(--blue) 8%, var(--green) 92%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 1.12em;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 570px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 13px 19px;
  border: 1px solid transparent;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #246fcb);
  box-shadow: 0 16px 32px rgba(23, 105, 224, 0.24);
}

.button-primary:hover {
  box-shadow: 0 20px 40px rgba(23, 105, 224, 0.31);
}

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

.button-secondary:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.button-arrow {
  font-size: 18px;
  transition: transform 160ms ease;
}

.button:hover .button-arrow {
  transform: translateX(3px);
}

html[dir="rtl"] .button:hover .button-arrow {
  transform: translateX(-3px);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trust-check {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  place-items: center;
  font-size: 11px;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.hero-visual::before {
  position: absolute;
  z-index: -2;
  inset: -88px -100px -80px -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 105, 224, 0.14), rgba(24, 168, 107, 0.055) 44%, transparent 70%);
  content: "";
  filter: blur(3px);
}

.visual-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(23, 105, 224, 0.16);
  border-radius: 50%;
  pointer-events: none;
}

.visual-orbit::after {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 20px rgba(24, 168, 107, 0.65);
  content: "";
}

.visual-orbit-one {
  inset: -48px -60px -52px -46px;
  transform: rotate(-12deg);
}

.visual-orbit-one::after {
  top: 18%;
  right: 8%;
}

.visual-orbit-two {
  inset: -16px -26px -20px -18px;
  border-color: rgba(24, 168, 107, 0.12);
  transform: rotate(17deg);
}

.visual-orbit-two::after {
  bottom: 10%;
  left: 9%;
  width: 7px;
  height: 7px;
  background: var(--blue);
}

.collaboration-window {
  overflow: hidden;
  border: 1px solid rgba(201, 212, 226, 0.88);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
  transform-origin: center;
}

html[dir="rtl"] .collaboration-window {
  transform: perspective(1400px) rotateY(3deg) rotateX(1deg);
}

html[data-theme="dark"] .collaboration-window {
  border-color: rgba(49, 69, 95, 0.9);
}

.window-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 62px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}

.window-dots i:first-child {
  background: #f07067;
}

.window-dots i:nth-child(2) {
  background: #e9b83f;
}

.window-dots i:last-child {
  background: #4bc47a;
}

.session-pill {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}

.participant-stack {
  display: flex;
  justify-content: flex-end;
}

.avatar {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  margin-left: -7px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  color: #fff;
  place-items: center;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.avatar-blue {
  background: #2272da;
}

.avatar-green {
  background: #1aa872;
}

.avatar-violet {
  background: #7557d3;
}

.window-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  min-height: 440px;
}

.document-stage {
  display: grid;
  min-width: 0;
  padding: 32px 28px;
  background:
    radial-gradient(circle at 90% 8%, rgba(23, 105, 224, 0.08), transparent 15rem),
    var(--page-deep);
  place-items: center;
}

.document-sheet {
  position: relative;
  width: min(100%, 330px);
  min-height: 390px;
  padding: 36px 34px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(24, 42, 68, 0.13);
}

.document-brand {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.document-title-line,
.document-meta-line,
.document-lines i,
.document-callout span {
  display: block;
  border-radius: 999px;
  background: var(--line-strong);
}

.document-title-line {
  width: 72%;
  height: 12px;
  margin-top: 18px;
  background: var(--ink);
  opacity: 0.86;
}

.document-meta-line {
  width: 43%;
  height: 6px;
  margin-top: 10px;
  opacity: 0.65;
}

.document-rule {
  height: 1px;
  margin: 23px 0;
  background: var(--line);
}

.document-lines {
  display: grid;
  gap: 11px;
}

.document-lines i {
  height: 6px;
  opacity: 0.7;
}

.document-lines i:nth-child(2) {
  width: 93%;
}

.document-lines i:nth-child(3) {
  width: 78%;
}

.document-lines i:nth-child(4) {
  width: 89%;
}

.document-lines i:nth-child(5) {
  width: 54%;
}

.document-callout {
  display: grid;
  gap: 8px;
  margin: 24px 0;
  padding: 15px;
  border-left: 3px solid var(--blue);
  border-radius: 5px;
  background: var(--blue-soft);
}

html[dir="rtl"] .document-callout {
  border-right: 3px solid var(--blue);
  border-left: 0;
}

.document-callout span {
  width: 82%;
  height: 6px;
  background: var(--blue);
  opacity: 0.36;
}

.document-callout span:last-child {
  width: 58%;
}

.document-lines-short i:first-child {
  width: 90%;
}

.document-lines-short i:nth-child(2) {
  width: 72%;
}

.document-lines-short i:last-child {
  width: 48%;
}

.live-cursor {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  filter: drop-shadow(0 3px 8px rgba(15, 23, 42, 0.13));
}

.live-cursor small {
  padding: 4px 6px;
  border-radius: 2px 7px 7px 7px;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

.cursor-caret {
  display: block;
  width: 2px;
  height: 22px;
  animation: cursor-blink 1.1s steps(2, jump-none) infinite;
}

.live-cursor-blue {
  top: 110px;
  left: 74%;
  animation: cursor-float-one 6s ease-in-out infinite;
}

.live-cursor-blue small,
.live-cursor-blue .cursor-caret {
  background: #2272da;
}

.live-cursor-green {
  top: 244px;
  left: 33%;
  animation: cursor-float-two 7s ease-in-out infinite;
}

.live-cursor-green small,
.live-cursor-green .cursor-caret {
  background: #1aa872;
}

.live-cursor-violet {
  top: 322px;
  left: 63%;
  animation: cursor-float-three 8s ease-in-out infinite;
}

.live-cursor-violet small,
.live-cursor-violet .cursor-caret {
  background: #7557d3;
}

.activity-panel {
  padding: 22px 16px 18px;
  border-left: 1px solid var(--line);
  background: var(--surface);
}

html[dir="rtl"] .activity-panel {
  border-right: 1px solid var(--line);
  border-left: 0;
}

.activity-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.activity-heading strong {
  display: inline-grid;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  place-items: center;
  font-size: 10px;
}

.activity-person {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 6px;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.activity-person .avatar {
  width: 28px;
  height: 28px;
  margin: 0;
  border: 0;
}

.activity-person > span:nth-child(2) {
  min-width: 0;
}

.activity-person strong,
.activity-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-person strong {
  font-size: 10px;
}

.activity-person small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.activity-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid rgba(24, 168, 107, 0.18);
  border-radius: 10px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 8px;
  font-weight: 750;
  line-height: 1.35;
}

.status-spinner {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: 2px solid rgba(24, 168, 107, 0.22);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.revision-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 8px;
  font-weight: 750;
}

.revision-chip strong {
  color: var(--blue);
  font-size: 10px;
}

.content-section {
  padding: 112px 0;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  max-width: 760px;
  margin-bottom: 48px;
}

.section-index {
  display: block;
  padding-top: 7px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.section-heading h2,
.roles-copy h2,
.history-copy h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section-heading > div > p:last-child,
.roles-copy > p:last-child,
.history-copy > p:not(.section-kicker) {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

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

.workflow-card {
  position: relative;
  min-width: 0;
  min-height: 310px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.workflow-card::after {
  position: absolute;
  right: -40px;
  bottom: -70px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(23, 105, 224, 0.12);
  border-radius: 50%;
  content: "";
}

.workflow-card-featured {
  border-color: rgba(23, 105, 224, 0.28);
  background:
    linear-gradient(145deg, rgba(23, 105, 224, 0.075), transparent 64%),
    var(--surface);
}

.workflow-number {
  position: absolute;
  top: 24px;
  right: 25px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.workflow-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 68px;
  border-radius: 17px;
  color: var(--blue);
  background: var(--blue-soft);
  place-items: center;
}

.workflow-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow-card:nth-child(2) .workflow-icon {
  color: var(--green);
  background: var(--green-soft);
}

.workflow-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.workflow-card p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.roles-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 8vw, 118px);
  align-items: center;
}

.roles-copy .section-index,
.history-copy .section-index {
  margin-bottom: 38px;
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.role-card {
  position: relative;
  min-width: 0;
  min-height: 254px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.role-card:nth-child(2) {
  transform: translateY(26px);
}

.role-card:hover {
  z-index: 2;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.role-card:nth-child(2):hover {
  transform: translateY(20px);
}

.role-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.role-icon {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  place-items: center;
  font-size: 16px;
}

.role-icon-owner {
  color: var(--blue);
  background: var(--blue-soft);
}

.role-icon-editor {
  color: var(--green);
  background: var(--green-soft);
}

.role-icon-viewer {
  color: var(--violet);
  background: rgba(115, 87, 217, 0.11);
}

.role-code {
  color: var(--faint);
  font-size: 10px;
  font-weight: 900;
}

.role-card h3 {
  margin: 46px 0 0;
  font-size: 20px;
  line-height: 1.2;
}

.role-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.role-line {
  position: absolute;
  right: 22px;
  bottom: 19px;
  left: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
  opacity: 0.65;
}

.role-card:nth-child(2) .role-line {
  background: var(--green);
}

.role-card:nth-child(3) .role-line {
  background: var(--violet);
}

.history-section {
  padding-bottom: 84px;
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}

.history-copy {
  position: sticky;
  top: 122px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.history-stack {
  display: grid;
  gap: 14px;
}

.history-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  min-height: 160px;
  padding: 26px 52px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.history-card-icon {
  display: grid;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  place-items: center;
  font-size: 21px;
  font-weight: 800;
}

.history-card-icon-amber {
  color: var(--amber);
  background: rgba(216, 137, 19, 0.11);
}

.history-card-icon-blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.history-card-icon-green {
  color: var(--green);
  background: var(--green-soft);
}

.history-card h3 {
  margin: 3px 0 0;
  font-size: 17px;
  line-height: 1.35;
}

.history-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.history-card-number {
  position: absolute;
  top: 22px;
  right: 22px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.security-note {
  display: flex;
  max-width: 770px;
  align-items: flex-start;
  gap: 14px;
  margin: 62px 0 0 auto;
  padding: 18px 20px;
  border: 1px solid rgba(24, 168, 107, 0.2);
  border-radius: 16px;
  color: var(--muted);
  background: var(--green-soft);
}

.security-note-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 10px;
  color: var(--green);
  background: var(--surface);
  place-items: center;
}

.security-note p {
  margin: 3px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.final-cta-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 50px;
  min-height: 290px;
  overflow: hidden;
  margin-top: 36px;
  padding: 62px 68px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(9, 67, 143, 0.98), rgba(23, 105, 224, 0.95) 52%, rgba(20, 145, 104, 0.94)),
    #1769e0;
  box-shadow: 0 30px 80px rgba(23, 105, 224, 0.22);
  align-items: center;
}

.final-cta-section::before,
.final-cta-section::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.final-cta-section::before {
  width: 360px;
  height: 360px;
  right: -100px;
  top: -190px;
}

.final-cta-section::after {
  width: 210px;
  height: 210px;
  right: 80px;
  bottom: -160px;
}

.final-cta-orb {
  position: absolute;
  width: 12px;
  height: 12px;
  right: 110px;
  top: 46px;
  border-radius: 50%;
  background: #65e4af;
  box-shadow: 0 0 28px rgba(101, 228, 175, 0.8);
  animation: live-pulse 2s infinite;
}

.final-cta-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.final-cta-label {
  display: block;
  margin-bottom: 13px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.final-cta-section h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.final-cta-section p {
  max-width: 630px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.6;
}

.button-light {
  position: relative;
  z-index: 1;
  min-width: 210px;
  color: #0d50b8;
  background: #fff;
  box-shadow: 0 16px 34px rgba(3, 27, 58, 0.2);
}

.site-footer {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.footer-brand {
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

.footer-brand strong {
  color: var(--green);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.back-to-top {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  place-items: center;
  font-size: 16px;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(23, 105, 224, 0.28);
  outline-offset: 3px;
}

html[dir="rtl"] .brand-logo {
  right: 0;
  left: auto;
}

html[dir="rtl"] .workflow-number,
html[dir="rtl"] .history-card-number {
  right: auto;
  left: 13px;
}

html[dir="rtl"] .workflow-number,
html[dir="rtl"] .history-card-number {
  left: 24px;
}

html[dir="rtl"] .history-card {
  padding-right: 26px;
  padding-left: 52px;
}

html[dir="rtl"] .security-note {
  margin-right: auto;
  margin-left: 0;
}

html[dir="rtl"] .button-arrow {
  transform: rotate(180deg);
}

@keyframes live-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(24, 168, 107, 0.44);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(24, 168, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(24, 168, 107, 0);
  }
}

@keyframes cursor-blink {
  0%,
  45% {
    opacity: 1;
  }
  55%,
  100% {
    opacity: 0.2;
  }
}

@keyframes cursor-float-one {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-18px, 14px);
  }
}

@keyframes cursor-float-two {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(24px, -10px);
  }
}

@keyframes cursor-float-three {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-16px, -18px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .hero-section {
    grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
    gap: 42px;
  }

  .window-body {
    grid-template-columns: minmax(0, 1fr) 158px;
  }

  .document-stage {
    padding: 28px 18px;
  }

  .roles-section,
  .history-layout {
    gap: 52px;
  }
}

@media (max-width: 920px) {
  :root {
    --content: min(100% - 36px, 760px);
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 76px;
    padding-top: 80px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    width: min(100%, 680px);
    margin: 0 auto;
  }

  .collaboration-window {
    transform: none;
  }

  html[dir="rtl"] .collaboration-window {
    transform: none;
  }

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

  .workflow-card {
    min-height: 230px;
  }

  .workflow-icon {
    margin-bottom: 44px;
  }

  .roles-section,
  .history-layout {
    grid-template-columns: 1fr;
  }

  .roles-copy,
  .history-copy {
    max-width: 680px;
  }

  .history-copy {
    position: static;
  }

  .roles-grid {
    margin-bottom: 28px;
  }

  .final-cta-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 52px;
  }

  .button-light {
    width: max-content;
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand-logo-frame {
    width: 128px;
    height: 42px;
    flex-basis: 128px;
  }

  .brand-logo {
    top: -43px;
    width: 128px;
    height: 128px;
  }

  .brand-live {
    display: none;
  }

  .header-editor-link {
    display: none;
  }

  .site-header .language-select-button {
    min-width: 168px;
  }

  .hero-section {
    min-height: 0;
    padding-top: 64px;
  }

  .content-section {
    padding: 86px 0;
  }

  .window-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .visual-orbit {
    display: none;
  }

  .hero-visual::before {
    display: none;
  }

  .activity-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 14px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  html[dir="rtl"] .activity-panel {
    border-right: 0;
  }

  .activity-heading {
    grid-column: 1 / -1;
    margin: 0;
  }

  .activity-person {
    grid-template-columns: 28px minmax(0, 1fr);
    border: 0;
  }

  .activity-person .online-dot {
    display: none;
  }

  .activity-status,
  .revision-chip {
    grid-column: span 3;
    margin: 0;
  }

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

  .role-card,
  .role-card:nth-child(2) {
    min-height: 210px;
    transform: none;
  }

  .role-card:hover,
  .role-card:nth-child(2):hover {
    transform: translateY(-3px);
  }

  .section-heading {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
  }

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

  .history-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .final-cta-section {
    padding: 44px 30px;
    border-radius: 24px;
  }
}

@media (max-width: 520px) {
  :root {
    --content: calc(100% - 24px);
  }

  .brand-logo-frame {
    width: 114px;
    flex-basis: 114px;
  }

  .brand-logo {
    top: -36px;
    width: 114px;
    height: 114px;
  }

  .header-actions {
    gap: 7px;
  }

  .site-header .language-select-button {
    width: 52px;
    min-width: 52px;
    padding: 8px;
    justify-content: center;
  }

  .site-header .language-select-button-label,
  .site-header .language-select-arrow {
    display: none;
  }

  .site-header .language-select-menu {
    position: fixed;
    top: 62px;
    right: 12px;
    left: 12px;
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: min(430px, calc(100vh - 78px));
  }

  h1 {
    font-size: clamp(46px, 13vw, 66px);
  }

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

  .button {
    width: 100%;
  }

  .window-topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .window-dots {
    display: none;
  }

  .session-pill {
    justify-content: flex-start;
  }

  .document-stage {
    padding: 18px 12px;
  }

  .document-sheet {
    width: 100%;
    padding: 30px 24px;
  }

  .activity-panel {
    grid-template-columns: 1fr;
  }

  .activity-heading,
  .activity-status,
  .revision-chip {
    grid-column: 1;
  }

  .activity-person {
    display: none;
  }

  .section-heading {
    display: block;
  }

  .section-heading .section-index {
    margin-bottom: 28px;
  }

  .workflow-card {
    padding: 24px;
  }

  .history-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .history-card-number {
    top: 18px;
    right: 18px;
  }

  html[dir="rtl"] .history-card-number {
    right: auto;
    left: 18px;
  }

  .security-note {
    margin-top: 38px;
  }

  .final-cta-section {
    margin-top: 12px;
  }

  .button-light {
    width: 100%;
  }

  .site-footer {
    min-height: 130px;
  }

  .site-footer p {
    display: none;
  }
}

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