:root {
  --wk-obsidian: #010503;
  --wk-panel: rgba(4, 18, 12, 0.9);
  --wk-panel-deep: rgba(1, 10, 7, 0.97);
  --wk-green: #4dffa7;
  --wk-green-soft: #83ffc0;
  --wk-mint: #d6ffe7;
  --wk-positive: #75ffb5;
  --wk-edge: rgba(211, 255, 228, 0.46);
}

.adaptive-hero {
  position: relative;
  isolation: isolate;
  min-height: 900px;
  overflow: hidden;
  padding: clamp(0.85rem, 1.35vw, 1.15rem) 0 1.25rem;
  background:
    radial-gradient(circle at 50% 52%, rgba(44, 255, 139, 0.11), transparent 38%),
    linear-gradient(180deg, #010403 0%, #020805 70%, #010503 100%);
}

.adaptive-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 48%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(31, 255, 131, 0.035));
}

.adaptive-backdrop {
  position: absolute;
  z-index: -2;
  inset: 8.5rem 0 auto;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.adaptive-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1, 5, 3, 0.44), rgba(1, 5, 3, 0.55) 62%, #010503 100%);
}

.adaptive-backdrop img {
  width: min(100%, 1600px);
  height: min(720px, 61vw);
  object-fit: cover;
  opacity: 0.18;
  filter: saturate(0.92) contrast(1.08);
  animation: orbit-breathe 12s ease-in-out infinite alternate;
}

.adaptive-stage {
  width: min(1500px, calc(100% - 0.75rem));
  perspective: 1650px;
}

.site-header .home-nav {
  margin-inline-start: auto;
  margin-inline-end: clamp(4rem, 7vw, 6rem);
  gap: clamp(1.4rem, 2.55vw, 2.75rem);
}

.site-header .home-nav .nav-link { display: inline-flex; align-items: center; gap: 0.35rem; }
.site-header .home-nav .nav-chevron { width: 0.8rem; height: 0.8rem; transform: rotate(90deg); filter: invert(1); }

.adaptive-intro {
  width: min(100%, 1120px);
  margin: 0 auto clamp(0.35rem, 0.55vw, 0.55rem);
  text-align: center;
}

.adaptive-intro h1 {
  max-width: 1120px;
  margin: 0 auto 0.45rem;
  font-size: clamp(2.05rem, 2.55vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -0.058em;
  text-wrap: balance;
}

.adaptive-intro .lead {
  max-width: 880px;
  margin: 0 auto;
  color: rgba(224, 236, 230, 0.78);
  font-size: clamp(0.9rem, 1.12vw, 1rem);
  line-height: 1.3;
  text-wrap: balance;
}

.adaptive-workspaces {
  position: relative;
  display: grid;
  grid-template-columns: minmax(350px, 0.82fr) minmax(560px, 1.35fr) minmax(350px, 0.82fr);
  align-items: start;
  min-height: 506px;
  padding-top: 0.3rem;
  perspective: 1750px;
  transform-style: preserve-3d;
}

.fold-screen {
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.fold-screen.is-folding { will-change: transform, opacity; }

.platform-panel {
  position: relative;
  z-index: 4;
  min-width: 0;
  height: 500px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  gap: 0.46rem;
  overflow: hidden;
  border: 1px solid var(--wk-edge);
  border-radius: 1.45rem;
  padding: clamp(1rem, 1.35vw, 1.25rem);
  background: linear-gradient(145deg, rgba(16, 37, 27, 0.9), rgba(1, 11, 7, 0.97)), var(--wk-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 32px 88px rgba(0, 0, 0, 0.66), 0 0 38px rgba(77, 255, 167, 0.1);
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.2s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.platform-intelligence {
  padding-right: 4rem;
  transform: translateX(3rem) translateY(0.65rem) rotateY(11deg);
  transform-origin: 100% 50%;
}

.platform-design {
  padding-left: 4rem;
  transform: translateX(-3rem) translateY(0.65rem) rotateY(-11deg);
  transform-origin: 0 50%;
}

.platform-intelligence:hover:not(.is-folded) { transform: translateX(2.9rem) translateY(0.35rem) rotateY(8deg); }
.platform-design:hover:not(.is-folded) { transform: translateX(-2.9rem) translateY(0.35rem) rotateY(-8deg); }

.platform-panel:hover {
  border-color: rgba(117, 255, 181, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 38px 100px rgba(0, 0, 0, 0.7), 0 0 54px rgba(77, 255, 167, 0.16);
}

.platform-panel.is-folded { pointer-events: none; }
.platform-intelligence.is-folded { transform: translateX(3rem) translateY(0.65rem) rotateY(86deg) scale(0.56); opacity: 0.08; }
.platform-design.is-folded { transform: translateX(-3rem) translateY(0.65rem) rotateY(-86deg) scale(0.56); opacity: 0.08; }

.fold-toggle {
  position: absolute;
  z-index: 8;
  top: 0.72rem;
  right: 0.72rem;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117, 255, 181, 0.28);
  border-radius: 0.7rem;
  padding: 0;
  background: rgba(2, 15, 9, 0.76);
  color: var(--wk-green-soft);
  box-shadow: 0 0 1.2rem rgba(77, 255, 167, 0.08);
  cursor: pointer;
  opacity: 0.9;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.24s ease;
}

.fold-toggle:hover,
.fold-toggle:focus-visible { border-color: var(--wk-green); background: rgba(77, 255, 167, 0.12); opacity: 1; }

.fold-toggle img {
  width: 1.1rem;
  height: 1.1rem;
  filter: brightness(0) saturate(100%) invert(83%) sepia(58%) saturate(572%) hue-rotate(83deg) brightness(106%) contrast(104%);
}

.platform-intelligence .fold-toggle img { transform: none; }
.platform-intelligence.is-folded .fold-toggle img { transform: rotate(180deg); }
.platform-design .fold-toggle { right: auto; left: 0.72rem; }
.platform-design .fold-toggle img { transform: rotate(180deg); }
.platform-design.is-folded .fold-toggle img { transform: none; }

.fold-restore {
  position: absolute;
  z-index: 12;
  top: 1rem;
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(117, 255, 181, 0.62);
  border-radius: 0.75rem;
  padding: 0;
  background: rgba(2, 20, 11, 0.96);
  box-shadow: 0 0 1.7rem rgba(77, 255, 167, 0.28);
  cursor: pointer;
}

.fold-restore[hidden] { display: none; }
.fold-restore-left { left: 29%; }
.fold-restore-right { right: 29%; }
.fold-restore img {
  width: 1.1rem;
  height: 1.1rem;
  filter: brightness(0) saturate(100%) invert(83%) sepia(58%) saturate(572%) hue-rotate(83deg) brightness(106%) contrast(104%);
}
.fold-restore-left img { transform: rotate(180deg); }
.fold-restore:hover,
.fold-restore:focus-visible { border-color: var(--wk-green); background: rgba(77, 255, 167, 0.14); }

.platform-panel > header {
  min-height: 4.35rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  padding-right: 1.35rem;
}

.platform-design > header { padding-right: 0; padding-left: 1.35rem; }

.workspace-icon {
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(77, 255, 167, 0.34);
  border-radius: 0.85rem;
  padding: 0.54rem;
  background: rgba(2, 27, 15, 0.72);
  filter: brightness(0) saturate(100%) invert(83%) sepia(58%) saturate(572%) hue-rotate(83deg) brightness(106%) contrast(104%);
  box-shadow: 0 0 1.6rem rgba(77, 255, 167, 0.13);
}

.platform-panel h2 {
  margin: 0.15rem 0 0.25rem;
  font-size: clamp(1.18rem, 1.35vw, 1.42rem);
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.platform-panel header p { margin: 0; color: rgba(222, 236, 228, 0.74); font-size: 0.63rem; line-height: 1.36; }

.platform-panel .hero-scan,
.design-brief-launch {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.52rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.platform-panel .hero-scan-field,
.design-brief-launch label { min-width: 0; display: grid; gap: 0.32rem; }

.platform-panel .hero-scan-field > span,
.design-brief-launch label > span { color: rgba(241, 255, 247, 0.9); font-size: 0.65rem; font-weight: 700; }

.platform-panel input,
.platform-panel textarea,
.design-brief-launch textarea {
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  border: 1px solid rgba(211, 255, 228, 0.26);
  border-radius: 0.6rem;
  padding: 0.72rem 0.8rem;
  background: rgba(0, 5, 3, 0.42);
  color: #fff;
  resize: vertical;
}

.platform-panel textarea { min-height: 3.7rem; max-height: 5.5rem; }

.platform-panel .hero-scan-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem;
  align-items: start;
  color: rgba(222, 236, 228, 0.66);
  font-size: 0.53rem;
  line-height: 1.35;
}

.platform-panel .hero-scan-consent input { width: 0.86rem; min-height: auto; margin-top: 0.1rem; }

.platform-panel .button {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 0.75rem;
  color: #020a06;
  background: linear-gradient(135deg, #45efa0, #a6ffd0);
  box-shadow: 0 0.8rem 2.2rem rgba(77, 255, 167, 0.18);
}

.platform-panel .button img { margin-left: auto; color: #020a06; }
[dir="rtl"] .platform-panel .button img { margin-left: 0; margin-right: auto; transform: rotate(180deg); }
.platform-panel .audit-status { min-height: 0; margin: 0; }

.workspace-health {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 0.8rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid rgba(77, 255, 167, 0.16);
  border-radius: 0.82rem;
  background: rgba(0, 7, 4, 0.5);
}

.health-ring {
  width: 4rem;
  height: 4rem;
  display: grid;
  grid-template-columns: auto auto;
  place-content: center;
  align-items: end;
  border-radius: 50%;
  background: radial-gradient(circle, #031009 58%, transparent 60%), conic-gradient(var(--wk-positive) 0 86%, rgba(117, 255, 181, 0.15) 86% 100%);
  box-shadow: inset 0 0 1rem rgba(117, 255, 181, 0.14), 0 0 1.25rem rgba(77, 255, 167, 0.1);
}

.health-ring strong { color: #fff; font-size: 1.55rem; line-height: 0.9; letter-spacing: -0.07em; }
.health-ring span { color: rgba(222, 236, 228, 0.62); font-size: 0.52rem; }
.health-state { display: grid; gap: 0.07rem; }
.health-state small { color: rgba(222, 236, 228, 0.66); font-size: 0.6rem; }
.health-state strong { color: var(--wk-positive); font-size: 1.1rem; }
.health-state span { display: flex; align-items: center; gap: 0.32rem; color: rgba(222, 236, 228, 0.62); font-size: 0.56rem; }

.health-state i,
.workspace-health li i {
  width: 0.38rem;
  height: 0.38rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--wk-positive);
  box-shadow: 0 0 0.5rem rgba(117, 255, 181, 0.5);
}

.workspace-health ul {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.3rem;
  margin: 0;
  padding: 0.55rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  list-style: none;
}

.workspace-health li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  color: rgba(232, 244, 237, 0.8);
  font-size: 0.51rem;
  white-space: nowrap;
}

.screen-security,
.design-delivery-note {
  min-height: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: auto 0 0;
  color: rgba(214, 255, 231, 0.62);
  font-size: 0.56rem;
  text-align: center;
}

.screen-security img {
  width: 0.86rem;
  height: 0.86rem;
  filter: brightness(0) saturate(100%) invert(83%) sepia(58%) saturate(572%) hue-rotate(83deg) brightness(106%) contrast(104%);
}

.adaptive-core {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 500px;
  display: grid;
  align-items: center;
}

.adaptive-core > .fold-toggle {
  top: 0.62rem;
  right: auto;
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
}

.adaptive-core > .fold-toggle img { transform: rotate(-90deg); }
.adaptive-core.is-folded > .fold-toggle img { transform: rotate(90deg); }

.orbit-console {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(211, 255, 228, 0.56);
  border-radius: 1.35rem;
  background: rgba(2, 13, 8, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 38px 105px rgba(0, 0, 0, 0.7), 0 0 78px rgba(77, 255, 167, 0.18);
  transform-origin: 50% 0;
  transition: transform 0.3s cubic-bezier(0.22, 0.8, 0.2, 1), opacity 0.2s ease;
}

.adaptive-core.is-folded .orbit-console { transform: rotateX(-84deg) scale(0.94); opacity: 0.16; }

.orbit-toolbar {
  position: relative;
  z-index: 2;
  min-height: 2.55rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  padding: 0.58rem 0.85rem;
  background: rgba(15, 34, 25, 0.93);
}

.orbit-lights { display: flex; gap: 0.36rem; }
.orbit-lights i { width: 0.62rem; height: 0.62rem; border-radius: 50%; background: #ff735f; box-shadow: 0 0 0.55rem currentColor; }
.orbit-lights i:nth-child(2) { background: #ffc66a; }
.orbit-lights i:nth-child(3) { background: #58df8b; }

.orbit-address {
  justify-self: center;
  width: min(75%, 25rem);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 0.18rem 0.75rem;
  color: rgba(222, 236, 228, 0.68);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.58rem;
  text-align: center;
}

.orbit-display { position: relative; min-height: 457px; overflow: hidden; }

.orbit-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.96;
  transform: scale(1.07);
  animation: orbit-focus 10s ease-in-out infinite alternate;
}

.orbit-display::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 48%, transparent 0 30%, rgba(2, 8, 5, 0.04) 52%, rgba(2, 8, 5, 0.42) 100%); }

.orbit-brand {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.35rem;
  transform: translateY(-0.7rem);
  text-shadow: 0 4px 22px #000;
}

.orbit-brand img { width: 4.65rem; height: 4.65rem; filter: drop-shadow(0 0 2rem rgba(77, 255, 167, 0.72)); }
.orbit-brand strong { font-size: 1.12rem; letter-spacing: -0.035em; }
.orbit-brand strong span { color: var(--wk-green); }

.design-live-preview {
  overflow: hidden;
  border: 1px solid rgba(211, 255, 228, 0.24);
  border-radius: 0.72rem;
  background: #03100a;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.preview-toolbar {
  min-height: 1.62rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(222, 236, 228, 0.58);
  font: 700 0.46rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
}

.preview-toolbar b { color: var(--wk-green); }
.design-live-preview img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7.1; object-fit: cover; object-position: top; transition: transform 0.28s ease; }
.platform-design:hover .design-live-preview img { transform: scale(1.035) translateY(-1.5%); }

.portal-dock {
  position: relative;
  z-index: 3;
  width: calc(100% - 0.5rem);
  min-height: 250px;
  display: grid;
  grid-template-columns: 1.05fr 1.05fr 0.86fr 1.05fr;
  gap: 0.65rem;
  align-items: stretch;
  margin: 0.2rem auto 0;
  border: 1px solid rgba(211, 255, 228, 0.38);
  border-radius: 3.2rem 3.2rem 1.45rem 1.45rem;
  padding: 1rem 2.7rem 1.35rem;
  background: linear-gradient(180deg, rgba(17, 39, 29, 0.94), rgba(2, 10, 7, 0.98)), var(--wk-panel-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 -1rem 4rem rgba(77, 255, 167, 0.06), 0 2rem 5rem rgba(0, 0, 0, 0.58);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.portal-dock:hover { transform: translateY(-3px); border-color: rgba(77, 255, 167, 0.64); }

.portal-dock-title {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 0.05rem 0.45rem;
  padding-bottom: 0.35rem;
  text-align: center;
}

.portal-dock-title > img {
  grid-row: 1 / 3;
  width: 1.45rem;
  height: 1.45rem;
  filter: brightness(0) saturate(100%) invert(83%) sepia(58%) saturate(572%) hue-rotate(83deg) brightness(106%) contrast(104%);
}

.portal-dock-title strong { font-size: 1.12rem; line-height: 1.1; }
.portal-dock-title small { grid-column: 2; color: rgba(222, 236, 228, 0.64); font-size: 0.64rem; }

.portal-dock-stage,
.portal-dock-payment {
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: repeat(3, auto);
  gap: 0.12rem 0.6rem;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0.95rem;
  padding: 0.72rem 0.8rem;
  background: rgba(0, 8, 5, 0.36);
}

.portal-dock-stage > img,
.portal-dock-payment > img {
  grid-row: 1 / 4;
  align-self: center;
  width: 2rem;
  height: 2rem;
  filter: brightness(0) saturate(100%) invert(83%) sepia(58%) saturate(572%) hue-rotate(83deg) brightness(106%) contrast(104%);
}

.portal-dock-stage > :not(img),
.portal-dock-payment > :not(img) { grid-column: 2; }
.portal-dock-stage b { color: var(--wk-green); font: 750 0.6rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.portal-dock-stage span,
.portal-dock-payment strong { font-size: 0.76rem; font-weight: 750; }
.portal-dock-stage small,
.portal-dock-payment small { color: rgba(222, 236, 228, 0.62); font-size: 0.56rem; }
.portal-dock-payment span { color: var(--wk-positive); font-size: 0.58rem; }

@keyframes orbit-breathe { to { transform: scale(1.025) translateY(-0.65rem); opacity: 0.24; } }
@keyframes orbit-focus { to { transform: scale(1.11) translateY(-0.3rem); filter: saturate(1.14); } }

@media (max-width: 1280px) {
  .adaptive-hero { min-height: auto; }
  .adaptive-workspaces { grid-template-columns: 1fr; gap: 1rem; }
  .adaptive-core { order: -1; min-height: auto; width: min(100%, 780px); margin: 0 auto; }
  .orbit-console { min-height: 430px; }
  .orbit-display { min-height: 387px; }
  .platform-intelligence,
  .platform-design { padding: 1.25rem; }
  .platform-panel { min-height: auto; cursor: default; transform: none; transform-origin: 50% 0; }
  .platform-intelligence:hover:not(.is-folded),
  .platform-design:hover:not(.is-folded) { transform: translateY(-3px); }
  .platform-panel.is-folded { max-height: 4rem; min-height: 4rem; transform: none; opacity: 0.7; }
  .fold-restore { display: none !important; }
  .portal-dock { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; min-height: auto; border-radius: 2.2rem; padding-inline: 1.25rem; }
}

@media (max-width: 700px) {
  .adaptive-hero { padding-top: 2.5rem; }
  .adaptive-stage { width: min(100% - 1.25rem, 1420px); }
  .adaptive-intro { text-align: start; }
  .adaptive-intro h1 { font-size: clamp(2.35rem, 11.5vw, 3.75rem); }
  .orbit-console,
  .orbit-display { min-height: 310px; }
  .orbit-brand img { width: 4rem; height: 4rem; }
  .platform-panel { padding: 1rem; border-radius: 1.2rem; }
  .platform-panel > header { padding-inline: 0 1.65rem; }
  .platform-design > header { padding-inline: 1.65rem 0; }
  .platform-panel h2 { font-size: 1.85rem; }
  .workspace-health ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .portal-dock { grid-template-columns: 1fr; border-radius: 1.55rem; }
  .portal-dock-title { grid-column: auto; justify-content: start; text-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  .adaptive-backdrop img,
  .orbit-art { animation: none; }
  .fold-screen,
  .orbit-console,
  .fold-toggle,
  .fold-restore,
  .portal-dock,
  .design-live-preview img { transition: none; }
}

@media (forced-colors: active) {
  .adaptive-backdrop,
  .orbit-art { display: none; }
  .platform-panel,
  .orbit-console,
  .portal-dock,
  .portal-dock-stage,
  .portal-dock-payment { background: Canvas; border: 1px solid CanvasText; }
}
