.window-layer {
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
}

.app-window {
  position: absolute;
  display: grid;
  grid-template-rows: 46px minmax(0, 1fr);
  min-width: 420px;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(14, 15, 22, 0.82);
  box-shadow: var(--shadow-window);
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 220ms ease,
    transform 360ms var(--ease-spring),
    width 360ms var(--ease-spring),
    height 360ms var(--ease-spring),
    top 360ms var(--ease-spring),
    left 360ms var(--ease-spring),
    border-radius 280ms ease,
    box-shadow 220ms ease;
  -webkit-backdrop-filter: blur(30px) saturate(1.2);
  backdrop-filter: blur(30px) saturate(1.2);
  contain: layout style;
  will-change: transform, width, height, top, left;
}

.app-window.is-opening {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.92);
}

.app-window.is-closing {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.9);
  pointer-events: none;
}

.app-window.is-minimizing {
  opacity: 0;
  transform: translate3d(var(--minimize-x, 0), var(--minimize-y, 48vh), 0) scale(0.18);
  transform-origin: center bottom;
  pointer-events: none;
}

.app-window.is-hidden {
  display: none;
}

.app-window.is-maximized {
  top: 7px !important;
  left: 7px !important;
  width: calc(100vw - 14px) !important;
  height: calc(100vh - var(--menu-height) - 14px) !important;
  border-radius: 15px;
}

.app-window.is-dragging,
.app-window.is-resizing {
  transition: none;
  user-select: none;
}

.app-window:not(.is-focused) {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  filter: saturate(0.88);
}

.window-titlebar {
  position: relative;
  display: grid;
  height: 46px;
  grid-template-columns: 92px 1fr 92px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.085);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  padding: 0 13px;
  user-select: none;
}

.window-titlebar[data-drag-handle] {
  cursor: default;
}

.app-window.is-focused .window-titlebar[data-drag-handle] {
  cursor: grab;
}

.app-window.is-dragging .window-titlebar[data-drag-handle] {
  cursor: grabbing;
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-window-back,
.mobile-window-close {
  display: none;
}

.window-control {
  position: relative;
  width: 12px;
  height: 12px;
  overflow: hidden;
  border: 0.5px solid rgba(0, 0, 0, 0.24);
  border-radius: 50%;
  padding: 0;
}

.window-control::before,
.window-control::after {
  position: absolute;
  top: 50%;
  left: 50%;
  color: rgba(22, 17, 18, 0.68);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 100ms ease;
}

.window-controls:hover .window-control::before,
.window-controls:hover .window-control::after {
  opacity: 1;
}

.window-close {
  background: #ff5f57;
}

.window-close::before {
  content: "×";
}

.window-minimize {
  background: #febc2e;
}

.window-minimize::before {
  content: "−";
  transform: translate(-50%, -54%);
}

.window-maximize {
  background: #28c840;
}

.window-maximize::before {
  width: 5px;
  height: 5px;
  border: 1px solid rgba(15, 64, 21, 0.72);
  content: "";
}

.window-title {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 620;
  text-align: center;
}

.window-title .mini-app-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 5px;
  background: linear-gradient(145deg, var(--icon-a, #8e76ff), var(--icon-b, #4c34b6));
  color: #fff;
  font-size: 9px;
}

.window-title span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-toolbar {
  display: flex;
  justify-content: flex-end;
}

.window-toolbar-button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 7px;
  color: var(--ink-muted);
  font-size: 15px;
  transition: background 150ms ease, color 150ms ease;
}

.window-toolbar-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.window-content {
  position: relative;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 100% 0, rgba(131, 99, 255, 0.05), transparent 38%),
    rgba(7, 8, 13, 0.38);
  scroll-behavior: smooth;
}

.window-resize {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  cursor: nwse-resize;
}

.window-resize::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 7px;
  height: 7px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  content: "";
}

.button:disabled,
button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.app-view {
  min-height: 100%;
}

.app-view__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 4vw, 52px);
}

.app-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.app-header h1 {
  max-width: 780px;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4.2vw, 4rem);
}

.app-header p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(13px, 1.5vw, 16px);
}

.app-header__actions {
  display: flex;
  gap: 9px;
  padding-bottom: 4px;
}

.app-section {
  margin-top: clamp(34px, 5vw, 64px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.6rem);
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  text-align: right;
}

.home-view {
  overflow: hidden;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 100%;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  overflow: hidden;
  padding: clamp(34px, 5.5vw, 74px);
}

.home-hero::before {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 58%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 92, 235, 0.12), transparent 67%);
  content: "";
  pointer-events: none;
}

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

.home-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.home-identity__photo {
  position: relative;
  flex: 0 0 auto;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(139, 108, 255, 0.08);
}

.home-identity__photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 52%);
  content: "";
  pointer-events: none;
}

.home-identity__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.55);
  transform-origin: center 32%;
}

.home-identity__meta {
  display: grid;
  justify-items: start;
  gap: 8px;
  min-width: 0;
}

.home-identity__meta .eyebrow {
  margin: 0;
}

.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(110, 231, 168, 0.18);
  border-radius: 999px;
  background: rgba(34, 107, 70, 0.1);
  color: #c7f7db;
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.03em;
  padding: 7px 11px;
}

.availability-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(110, 231, 168, 0.7);
  content: "";
}

.home-copy h1 {
  max-width: 860px;
  margin: 18px 0;
  font-size: clamp(2.8rem, 6.4vw, 6.6rem);
  letter-spacing: -0.065em;
  line-height: 0.92;
}

.home-copy > p {
  max-width: 690px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: clamp(14px, 1.8vw, 18px);
  line-height: 1.55;
}

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

.home-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 10px;
}

.home-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-trust span::before {
  color: var(--green);
  content: "✓";
}

.home-discovery {
  width: min(1180px, calc(100% - clamp(40px, 8vw, 110px)));
  border-top: 1px solid var(--stroke);
  margin: 0 auto;
  padding: clamp(42px, 6vw, 76px) 0 clamp(56px, 7vw, 90px);
}

.home-discovery__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  align-items: end;
  gap: clamp(24px, 4vw, 58px);
  margin-bottom: 28px;
}

.home-discovery__heading h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.4rem);
}

.home-discovery__heading > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(12px, 1.3vw, 15px);
  line-height: 1.7;
}

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

.home-discovery__card {
  min-height: 170px;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(156, 124, 255, 0.11), transparent 44%),
    rgba(255, 255, 255, 0.032);
  padding: 18px;
}

.home-discovery__card h3 {
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.25;
}

.home-discovery__card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 10px;
  line-height: 1.65;
}

.home-discovery__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.home-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
  perspective: 1000px;
}

.strategy-stack {
  position: relative;
  min-height: 430px;
  transform: rotateY(-4deg) rotateX(1deg);
  transform-style: preserve-3d;
}

.strategy-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(20, 21, 30, 0.76);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.strategy-card.primary {
  top: 26px;
  right: 0;
  width: 88%;
  min-height: 275px;
  padding: 21px;
  animation: float-primary 7s ease-in-out infinite;
}

.strategy-card.secondary {
  right: 46%;
  bottom: 20px;
  width: 58%;
  min-height: 160px;
  padding: 17px;
  animation: float-secondary 8s 0.6s ease-in-out infinite;
}

.strategy-card.tertiary {
  right: -4%;
  bottom: 5px;
  width: 44%;
  min-height: 125px;
  padding: 16px;
  animation: float-tertiary 7.5s 0.2s ease-in-out infinite;
}

@keyframes float-primary {
  50% { transform: translate3d(0, -8px, 20px); }
}

@keyframes float-secondary {
  50% { transform: translate3d(-3px, 7px, 34px); }
}

@keyframes float-tertiary {
  50% { transform: translate3d(4px, -5px, 50px); }
}

.strategy-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.strategy-card__top strong {
  font-size: 11px;
}

.strategy-card__top span {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10px;
}

.metric-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.metric-display strong {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  font-weight: 560;
  letter-spacing: -0.07em;
  line-height: 1;
}

.metric-display span {
  color: var(--green);
  font-size: 12px;
  font-weight: 650;
}

.metric-label {
  margin: 5px 0 20px;
  color: var(--ink-muted);
  font-size: 10px;
}

.mini-chart {
  position: relative;
  display: flex;
  height: 84px;
  align-items: flex-end;
  gap: 6px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 4px 8px;
}

.mini-chart i {
  width: 12%;
  border-radius: 4px 4px 1px 1px;
  background: linear-gradient(180deg, rgba(137, 106, 255, 0.96), rgba(87, 63, 185, 0.35));
  box-shadow: 0 0 14px rgba(121, 90, 235, 0.15);
}

.mini-chart i:nth-child(1) { height: 24%; }
.mini-chart i:nth-child(2) { height: 34%; }
.mini-chart i:nth-child(3) { height: 42%; }
.mini-chart i:nth-child(4) { height: 49%; }
.mini-chart i:nth-child(5) { height: 66%; }
.mini-chart i:nth-child(6) { height: 82%; }
.mini-chart i:nth-child(7) { height: 94%; }

.score-ring {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 96%, rgba(255, 255, 255, 0.08) 96%);
  box-shadow: 0 0 24px rgba(101, 221, 237, 0.16);
}

.score-ring::before {
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #151720;
  content: "";
}

.score-ring strong {
  position: relative;
  z-index: 1;
  font-size: 20px;
  letter-spacing: -0.05em;
}

.strategy-card.secondary h3,
.strategy-card.tertiary h3 {
  margin-bottom: 4px;
  font-size: 12px;
}

.strategy-card.secondary p,
.strategy-card.tertiary p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 9px;
}

.automation-orbit {
  position: absolute;
  right: 16px;
  bottom: 15px;
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: orbit-spin 9s linear infinite;
}

.automation-orbit span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(145deg, var(--violet), #4d38b2);
  font-size: 10px;
  animation: orbit-spin 9s linear reverse infinite;
}

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

.profile-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.profile-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 36%, rgba(184, 165, 255, 0.34), transparent 26%),
    radial-gradient(circle at 65% 70%, rgba(85, 209, 226, 0.2), transparent 34%),
    linear-gradient(145deg, #211d36, #0f111a 65%);
}

.profile-portrait::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(8, 9, 13, 0.12) 68%, rgba(8, 9, 13, 0.7));
  content: "";
  pointer-events: none;
}

.profile-portrait__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transform: scale(1.01);
}

.profile-portrait__badge {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(12, 13, 19, 0.68);
  padding: 10px 12px;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.profile-portrait__badge span {
  color: var(--ink-muted);
  font-size: 9px;
}

.profile-portrait__badge strong {
  font-size: 11px;
}

.profile-copy h2 {
  max-width: 700px;
  margin-bottom: 17px;
}

.profile-copy > p {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.principles-grid,
.stats-strip {
  display: grid;
  gap: 10px;
}

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

.principle-card {
  border: 1px solid var(--stroke);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  padding: 15px;
}

.principle-card span {
  color: var(--violet-bright);
  font-family: var(--font-mono);
  font-size: 10px;
}

.principle-card h3 {
  margin: 12px 0 6px;
  font-size: 13px;
}

.principle-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 10px;
}

.stats-strip {
  grid-template-columns: repeat(4, 1fr);
}

.stat-cell {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  padding: 16px;
}

.stat-cell strong,
.stat-cell span {
  display: block;
}

.stat-cell strong {
  margin-bottom: 3px;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  font-weight: 570;
  letter-spacing: -0.055em;
}

.stat-cell span {
  color: var(--ink-muted);
  font-size: 10px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 28px;
}

.timeline::before {
  position: absolute;
  top: 6px;
  bottom: 12px;
  left: 7px;
  width: 1px;
  background: linear-gradient(var(--violet), rgba(255, 255, 255, 0.08));
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0 0 20px;
  margin-bottom: 20px;
}

.timeline-item::before {
  position: absolute;
  top: 4px;
  left: -26px;
  width: 10px;
  height: 10px;
  border: 2px solid #171821;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px rgba(156, 124, 255, 0.55);
  content: "";
}

.timeline-item time {
  color: var(--violet-bright);
  font-family: var(--font-mono);
  font-size: 10px;
}

.timeline-item h3 {
  margin-bottom: 5px;
  font-size: 14px;
}

.timeline-item p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 11px;
}
