:root {
  --bg: #07111f;
  --bg-soft: #0d1a2d;
  --panel: rgba(14, 28, 48, 0.78);
  --panel-strong: rgba(18, 36, 62, 0.94);
  --line: rgba(162, 201, 255, 0.18);
  --text: #eef5ff;
  --muted: #a8bbd4;
  --accent: #57d6ff;
  --accent-2: #8dffbf;
  --accent-3: #ffd166;
  --danger: #ff7b7b;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(
      circle at top left,
      rgba(87, 214, 255, 0.16),
      transparent 28%
    ),
    radial-gradient(
      circle at top right,
      rgba(141, 255, 191, 0.12),
      transparent 24%
    ),
    linear-gradient(180deg, #07111f 0%, #091427 48%, #050c16 100%);
  color: var(--text);
  overflow-x: hidden;
}

@media (pointer: fine) {
  body,
  a,
  button,
  [role="button"] {
    cursor: none;
  }
}

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

.cursor-reticle {
  position: fixed;
  top: 0;
  left: 0;
  width: 42px;
  height: 42px;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.9);
  transition:
    opacity 0.2s ease,
    transform 0.16s ease;
  mix-blend-mode: screen;
  will-change: left, top, transform;
}

.cursor-reticle.visible {
  opacity: 0.9;
}

.cursor-reticle.is-clicked {
  transform: translate3d(-50%, -50%, 0) scale(0.68);
}

.cursor-reticle svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: slowSpin 6.5s linear infinite;
  filter: drop-shadow(0 0 10px rgba(87, 214, 255, 0.28));
}

.cursor-reticle .reticle-shape {
  stroke: rgba(238, 245, 255, 0.9);
  stroke-width: 4;
  fill: none;
  stroke-linecap: square;
}

.cursor-reticle .reticle-dot {
  fill: var(--accent);
}

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

main {
  position: relative;
  z-index: 1;
}

.page-home-button {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 15;
  display: grid;
  width: 3.2rem;
  height: 3.2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(14, 28, 48, 0.76);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.page-home-button:hover {
  transform: translateY(-3px);
  border-color: rgba(141, 255, 191, 0.34);
  background: rgba(18, 36, 62, 0.92);
}

.page-home-button svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 4.5rem 0;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(141, 255, 191, 0.24);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(141, 255, 191, 0.08);
}

.hero-credit {
  display: block;
  margin-top: 0.9rem;
  color: rgba(238, 245, 255, 0.72);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-heading {
  margin: 1rem 0 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-copy {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding-top: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy p {
  margin: 1rem 0 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}

.hero-title {
  margin: 1rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.hero-subtitle {
  margin-top: 1rem;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  color: #d9ecff;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), #4ba3ff);
  color: #04111d;
  box-shadow: 0 16px 36px rgba(87, 214, 255, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

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

.particle-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 18;
}

.mascot-particle {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
  animation: mascotFall var(--fall-duration, 1800ms) ease-in forwards;
  animation-delay: var(--fall-delay, 0ms);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.22));
}

.hero-panel {
  position: relative;
  padding: 1.4rem;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(
    180deg,
    rgba(16, 32, 54, 0.92),
    rgba(10, 22, 38, 0.72)
  );
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
}

.hero-panel::before {
  top: -40px;
  right: -30px;
  width: 140px;
  height: 140px;
  background: rgba(87, 214, 255, 0.18);
}

.hero-panel::after {
  bottom: -50px;
  left: -30px;
  width: 160px;
  height: 160px;
  background: rgba(141, 255, 191, 0.16);
}

.mini-dashboard {
  position: relative;
  display: grid;
  gap: 1rem;
}

.dashboard-card {
  position: relative;
  padding: 1.2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.dashboard-card h3,
.dashboard-card p {
  margin: 0;
}

.dashboard-card p {
  margin-top: 0.55rem;
  color: var(--muted);
  line-height: 1.7;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metric {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(9, 18, 32, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.metric strong {
  display: block;
  font-size: 1.8rem;
  font-family: "Space Grotesk", sans-serif;
}

.metric span {
  color: var(--muted);
  font-size: 0.95rem;
}

.process-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2.5rem;
}

.cycle-shell {
  --orbit-radius: 224px;
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(87, 214, 255, 0.12);
  background:
    radial-gradient(
      circle at center,
      rgba(87, 214, 255, 0.14),
      transparent 34%
    ),
    radial-gradient(
      circle at center,
      rgba(141, 255, 191, 0.08),
      transparent 56%
    );
}

.cycle-shell::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  z-index: 0;
}

.cycle-center {
  position: absolute;
  inset: 24%;
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  padding: 1.45rem 1.15rem;
  background: radial-gradient(
    circle at top,
    rgba(87, 214, 255, 0.24),
    rgba(11, 23, 40, 0.94)
  );
  border: 1px solid rgba(87, 214, 255, 0.28);
  box-shadow:
    0 0 0 14px rgba(87, 214, 255, 0.05),
    0 18px 40px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.cycle-center-content {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  max-width: 250px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease;
}

.cycle-center.is-switching .cycle-center-content {
  opacity: 0;
  transform: translateY(8px);
}

.center-step-num {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(141, 255, 191, 0.22),
    rgba(87, 214, 255, 0.18)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
}

.center-step-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.16rem, 1.9vw, 1.62rem);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.center-step-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.78;
}

.cycle-step {
  --angle: 0deg;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  z-index: 2;
  transform: translate(-50%, -50%) rotate(var(--angle))
    translateY(calc(-1 * var(--orbit-radius)))
    rotate(calc(-1 * var(--angle)));
  background: linear-gradient(
    180deg,
    rgba(20, 40, 66, 0.92),
    rgba(10, 20, 35, 0.9)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.cycle-step .icon {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 16px;
  background: rgba(87, 214, 255, 0.12);
  color: #dff7ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.cycle-step.active {
  border-color: rgba(141, 255, 191, 0.45);
  background: linear-gradient(
    180deg,
    rgba(34, 74, 118, 0.98),
    rgba(13, 31, 52, 0.96)
  );
  box-shadow:
    0 0 0 6px rgba(87, 214, 255, 0.1),
    0 22px 50px rgba(87, 214, 255, 0.2);
  transform: translate(-50%, -50%) rotate(var(--angle))
    translateY(calc(-1 * var(--orbit-radius)))
    rotate(calc(-1 * var(--angle))) scale(1.08);
}

.loop-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.loop-svg path {
  fill: none;
  stroke: rgba(87, 214, 255, 0.68);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 10 12;
  animation: dash 12s linear infinite;
  filter: drop-shadow(0 0 8px rgba(87, 214, 255, 0.3));
}

.step-list {
  display: grid;
  gap: 1rem;
}

.step-list .step-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.step-list .step-row:hover {
  transform: translateX(8px);
  border-color: rgba(141, 255, 191, 0.28);
  background: rgba(255, 255, 255, 0.075);
}

.step-list button.step-row {
  font: inherit;
  appearance: none;
  outline: none;
}

.step-list .step-row > div:last-child {
  display: flex;
  align-items: center;
  min-height: 100%;
}

.step-list .step-row.active {
  background: linear-gradient(
    180deg,
    rgba(24, 47, 77, 0.96),
    rgba(11, 22, 38, 0.9)
  );
  border-color: rgba(87, 214, 255, 0.34);
  box-shadow: 0 18px 36px rgba(87, 214, 255, 0.12);
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(141, 255, 191, 0.22),
    rgba(87, 214, 255, 0.16)
  );
  color: var(--accent-2);
  font-weight: 800;
}

.step-row h4,
.step-row p {
  margin: 0;
}

.step-row p {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.7;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
  margin-top: 2.4rem;
}

.card {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: linear-gradient(
    180deg,
    rgba(17, 31, 53, 0.88),
    rgba(10, 20, 35, 0.85)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(87, 214, 255, 0.26);
}

.card h3,
.card h4,
.card p {
  margin: 0;
}

.card p {
  color: var(--muted);
  line-height: 1.75;
  margin-top: 0.65rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
}

.chip {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d9ecff;
  font-size: 0.94rem;
}

.applied-process {
  margin-top: 2.6rem;
  padding: 1.35rem;
  border-radius: 28px;
  border: 1px solid rgba(87, 214, 255, 0.16);
  background:
    radial-gradient(
      circle at top left,
      rgba(87, 214, 255, 0.1),
      transparent 32%
    ),
    linear-gradient(180deg, rgba(15, 30, 52, 0.94), rgba(9, 18, 32, 0.9));
  box-shadow: var(--shadow);
}

.applied-process-header h3,
.applied-process-header p {
  margin: 0;
}

.applied-process-header h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.applied-process-header p {
  margin-top: 0.7rem;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.applied-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.applied-step {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease,
    background 0.3s ease;
}

.applied-step:hover {
  transform: translateY(-4px);
  border-color: rgba(141, 255, 191, 0.26);
  background: rgba(255, 255, 255, 0.07);
}

.applied-step-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.applied-step-number {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(141, 255, 191, 0.22),
    rgba(87, 214, 255, 0.16)
  );
  color: var(--accent-2);
  font-weight: 800;
  flex-shrink: 0;
}

.applied-step h4,
.applied-step p {
  margin: 0;
}

.applied-step h4 {
  font-size: 1.03rem;
}

.applied-step p {
  margin-top: 0.8rem;
  color: var(--muted);
  line-height: 1.75;
}

.applied-note {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(87, 214, 255, 0.08);
  border: 1px solid rgba(87, 214, 255, 0.14);
  color: #dff2ff;
  line-height: 1.75;
}

.flow-section {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.flow-card {
  position: relative;
  padding: 1.45rem;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(20, 37, 61, 0.92),
    rgba(9, 18, 31, 0.84)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 180px;
}

.flow-card.failure {
  border-color: rgba(255, 123, 123, 0.28);
}

.flow-card.fix {
  border-color: rgba(255, 209, 102, 0.28);
}

.flow-card.improved {
  border-color: rgba(141, 255, 191, 0.28);
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 2rem;
  opacity: 0.88;
  animation: pulse 2.8s ease-in-out infinite;
}

.flow-wrapper {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 2.4rem;
}

.chart {
  margin-top: 2.4rem;
  padding: 1.2rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

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

.chart-column {
  padding: 1.3rem;
  border-radius: 22px;
  min-height: 100%;
  background: linear-gradient(
    180deg,
    rgba(18, 34, 58, 0.94),
    rgba(9, 18, 32, 0.88)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-column h3 {
  margin: 0 0 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
}

.chart-column ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 2;
}

.chart-column.criteria h3 {
  color: var(--accent-2);
}

.chart-column.constraints h3 {
  color: var(--accent-3);
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 2.4rem;
}

.vocab-card {
  padding: 1.35rem;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(18, 34, 58, 0.94),
    rgba(9, 18, 32, 0.88)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.vocab-card:hover {
  transform: translateY(-6px);
  border-color: rgba(141, 255, 191, 0.26);
}

.vocab-card h3,
.vocab-card p {
  margin: 0;
}

.vocab-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.18rem;
  color: #eaf4ff;
}

.vocab-card p {
  margin-top: 0.65rem;
  color: var(--muted);
  line-height: 1.8;
}

.feedback-panel {
  position: relative;
  margin-top: 2.4rem;
  padding: 1.6rem;
  border-radius: 28px;
  border: 1px solid rgba(87, 214, 255, 0.18);
  background:
    radial-gradient(
      circle at top left,
      rgba(87, 214, 255, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, rgba(14, 29, 49, 0.94), rgba(9, 18, 32, 0.9));
  overflow: hidden;
}

.feedback-panel::after {
  content: "";
  position: absolute;
  inset: auto -70px -70px auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(141, 255, 191, 0.08);
  filter: blur(6px);
}

.feedback-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  margin-top: 1.4rem;
}

.feedback-box {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 120px;
}

.feedback-loop {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px dashed rgba(87, 214, 255, 0.45);
  animation: spin 12s linear infinite;
}

.feedback-loop::before,
.feedback-loop::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  right: 4px;
}

.feedback-loop::before {
  top: 14px;
  transform: rotate(44deg);
}

.feedback-loop::after {
  bottom: 14px;
  left: 4px;
  right: auto;
  transform: rotate(224deg);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 0 0 2.6rem;
  color: rgba(238, 245, 255, 0.6);
  font-size: 0.95rem;
}

@keyframes dash {
  to {
    stroke-dashoffset: -180;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

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

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

@keyframes mascotFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -8px, 0) rotate(0deg) scale(0.92);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(
        var(--drift-x, 0px),
        var(--fall-distance, 340px),
        0
      )
      rotate(var(--rotate-end, 180deg)) scale(1);
  }
}

@keyframes detailsReveal {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@supports selector(::details-content) {
  .career-card,
  .roadmap-step {
    interpolate-size: allow-keywords;
  }

  .career-card::details-content,
  .roadmap-step::details-content {
    block-size: 0;
    overflow: hidden;
    transition:
      block-size 0.5s cubic-bezier(0.16, 1, 0.3, 1),
      content-visibility 0.5s allow-discrete;
  }

  .career-card[open]::details-content,
  .roadmap-step[open]::details-content {
    block-size: auto;
  }
}

@media (max-width: 1100px) {
  .hero-grid,
  .process-layout,
  .cards-grid,
  .chart-grid {
    grid-template-columns: 1fr;
  }

  .flow-wrapper,
  .feedback-visual {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .cycle-step {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 760px) {
  section {
    padding: 3.5rem 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .applied-grid,
  .vocab-grid {
    grid-template-columns: 1fr;
  }

  .cycle-shell {
    --orbit-radius: 168px;
    width: min(100%, 420px);
  }

  .cycle-center {
    inset: 28%;
  }

  .cycle-step {
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%) rotate(var(--angle))
      translateY(calc(-1 * var(--orbit-radius)))
      rotate(calc(-1 * var(--angle)));
  }

  .cycle-step .icon {
    width: 2.3rem;
    height: 2.3rem;
    font-size: 1rem;
  }

  .center-step-title {
    font-size: 1.2rem;
  }

  .center-step-copy {
    font-size: 0.88rem;
  }

  .chart {
    padding: 0.9rem;
  }
}

@media (max-width: 520px) {
  .section-heading {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .cycle-shell {
    --orbit-radius: 132px;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.03);
  }

  .cycle-center {
    inset: 24%;
    padding: 1rem 0.85rem;
  }

  .cycle-step {
    width: 50px;
    height: 50px;
  }

  .cycle-step .icon {
    width: 2rem;
    height: 2rem;
    font-size: 0.92rem;
  }

  .center-step-num {
    width: 2.7rem;
    height: 2.7rem;
    font-size: 1.3rem;
  }

  .center-step-title {
    font-size: 1rem;
  }

  .center-step-copy {
    font-size: 0.82rem;
    line-height: 1.65;
  }
}

@media (pointer: coarse) {
  .cursor-reticle {
    display: none;
  }
}

.home-page {
  min-height: 100vh;
}

.home-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

.home-hero {
  width: min(100%, 820px);
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 32px;
  background:
    radial-gradient(
      circle at top left,
      rgba(87, 214, 255, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(141, 255, 191, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, rgba(16, 32, 54, 0.92), rgba(10, 22, 38, 0.78));
  box-shadow: var(--shadow);
}

.home-title {
  margin: 1rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.home-copy {
  max-width: 620px;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.3rem;
}

.home-button {
  position: relative;
  display: grid;
  min-height: 112px;
  place-items: center;
  padding: 1.2rem;
  border: 0;
  border-radius: 24px;
  font: inherit;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  overflow: hidden;
  isolation: isolate;
}

.home-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(87, 214, 255, 0.16) 42%,
    rgba(141, 255, 191, 0.18) 52%,
    transparent 64%
  );
  opacity: 0;
  transform: translateX(-60%);
  transition:
    opacity 0.25s ease,
    transform 0.55s ease;
}

.home-button:hover {
  transform: translateY(-5px);
  border-color: rgba(141, 255, 191, 0.34);
  background: rgba(255, 255, 255, 0.085);
  box-shadow: 0 18px 42px rgba(87, 214, 255, 0.14);
}

.home-button:hover::before {
  opacity: 1;
  transform: translateX(60%);
}

.home-button-primary {
  color: #04111d;
  background: linear-gradient(135deg, var(--accent), #4ba3ff);
  box-shadow: 0 18px 42px rgba(87, 214, 255, 0.24);
}

.home-button-secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.055);
}

.home-button-secondary:hover {
  border-color: rgba(141, 255, 191, 0.28);
  background: rgba(255, 255, 255, 0.085);
}

.home-source-action {
  display: flex;
  justify-content: center;
  margin-top: 1.1rem;
}

.home-source-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 260px);
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(87, 214, 255, 0.18);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(87, 214, 255, 0.07);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.home-source-button:hover {
  transform: translateY(-3px);
  border-color: rgba(141, 255, 191, 0.28);
  color: var(--accent-2);
  background: rgba(141, 255, 191, 0.08);
}

.source-list {
  display: grid;
  gap: 1rem;
  margin-top: 2.4rem;
}

.source-card {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(18, 34, 58, 0.94),
    rgba(9, 18, 32, 0.88)
  );
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.source-card:hover {
  transform: translateY(-4px);
  border-color: rgba(87, 214, 255, 0.26);
}

.source-card h3,
.source-card p {
  margin: 0;
}

.source-card h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.source-card p {
  margin-top: 0.55rem;
  color: var(--muted);
  line-height: 1.7;
}

.source-card a {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--accent);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.source-card a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.careers-hero .hero-panel {
  transform: rotate(1deg);
}

.tech-compare-grid,
.career-grid,
.ctso-grid {
  display: grid;
  gap: 1.2rem;
  margin-top: 2.4rem;
}

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

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

.tech-card {
  position: relative;
  overflow: hidden;
}

.tech-card::after {
  content: "";
  position: absolute;
  inset: auto -48px -58px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(87, 214, 255, 0.08);
  filter: blur(4px);
}

.tech-label {
  display: inline-grid;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border: 1px solid rgba(87, 214, 255, 0.22);
  border-radius: 18px;
  color: var(--accent);
  background: rgba(87, 214, 255, 0.1);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.tech-card h3 {
  margin-top: 1rem;
}

.example-box {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(141, 255, 191, 0.16);
  border-radius: 18px;
  background: rgba(141, 255, 191, 0.06);
  color: #dff7ea;
  line-height: 1.65;
}

.career-card {
  padding: 1.4rem;
  border-radius: var(--radius);
  background:
    radial-gradient(
      circle at top right,
      rgba(87, 214, 255, 0.1),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(17, 31, 53, 0.9), rgba(10, 20, 35, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.career-card:hover {
  transform: translateY(-6px);
  border-color: rgba(141, 255, 191, 0.28);
}

.career-card[open] {
  border-color: rgba(87, 214, 255, 0.3);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(87, 214, 255, 0.08);
}

.career-card summary {
  display: grid;
  gap: 1rem;
  list-style: none;
  outline: none;
  transition: transform 0.3s ease;
}

.career-card summary::-webkit-details-marker {
  display: none;
}

.career-card summary::after {
  content: "+";
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid rgba(87, 214, 255, 0.2);
  border-radius: 999px;
  background: rgba(87, 214, 255, 0.08);
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 800;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.career-card[open] summary::after {
  content: "-";
  transform: rotate(180deg);
  background: rgba(141, 255, 191, 0.1);
  color: var(--accent-2);
}

.career-card-top {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-right: 2.5rem;
}

.career-icon {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(141, 255, 191, 0.22),
    rgba(87, 214, 255, 0.16)
  );
  color: var(--accent-2);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.career-card h3,
.career-card p {
  margin: 0;
}

.career-card p {
  margin-top: 1rem;
  color: var(--muted);
  line-height: 1.75;
}

.career-card summary p {
  margin-top: 0;
}

.expand-cue {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem 0.75rem;
  border: 1px solid rgba(141, 255, 191, 0.18);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(141, 255, 191, 0.07);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.career-card[open] .expand-cue {
  border-color: rgba(87, 214, 255, 0.2);
  color: var(--accent);
  background: rgba(87, 214, 255, 0.08);
}

.career-expanded {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: detailsReveal 0.46s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.career-detail {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.career-detail strong {
  color: #eaf4ff;
}

.career-detail span {
  color: var(--muted);
  line-height: 1.65;
}

.career-expanded .career-detail {
  margin-top: 0;
}

.salary-dashboard {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
  padding: 1.2rem;
  border: 1px solid rgba(87, 214, 255, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at top left,
      rgba(87, 214, 255, 0.12),
      transparent 32%
    ),
    linear-gradient(180deg, rgba(15, 30, 52, 0.94), rgba(9, 18, 32, 0.9));
  box-shadow: var(--shadow);
}

.salary-note {
  grid-column: 1 / -1;
  margin: 0.2rem 0 0;
  color: rgba(238, 245, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.65;
}

.salary-tile {
  padding: 1.15rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
}

.salary-tile span,
.salary-tile strong {
  display: block;
}

.salary-tile span {
  color: var(--muted);
  font-size: 0.92rem;
}

.salary-tile strong {
  margin-top: 0.45rem;
  color: var(--accent-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
}

.salary-tile p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.roadmap-step {
  position: relative;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(18, 34, 58, 0.94),
    rgba(9, 18, 32, 0.88)
  );
  min-height: 190px;
  transition:
    transform 0.32s ease,
    border-color 0.32s ease,
    box-shadow 0.32s ease,
    background 0.32s ease;
}

.roadmap-step::after {
  content: "";
  position: absolute;
  top: 2rem;
  right: -1rem;
  width: 1rem;
  height: 1px;
  background: rgba(87, 214, 255, 0.34);
}

.roadmap-step:last-child::after {
  display: none;
}

.roadmap-step:hover,
.roadmap-step[open] {
  transform: translateY(-6px);
  border-color: rgba(87, 214, 255, 0.3);
  background: linear-gradient(
    180deg,
    rgba(23, 47, 78, 0.96),
    rgba(9, 18, 32, 0.9)
  );
  box-shadow: 0 18px 42px rgba(87, 214, 255, 0.12);
}

.roadmap-step summary {
  display: grid;
  list-style: none;
  outline: none;
}

.roadmap-step summary::-webkit-details-marker {
  display: none;
}

.roadmap-step summary::after {
  content: "+";
  position: absolute;
  top: 1.15rem;
  right: 1.15rem;
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border: 1px solid rgba(87, 214, 255, 0.18);
  border-radius: 999px;
  background: rgba(87, 214, 255, 0.08);
  color: var(--accent);
  font-weight: 800;
  transition:
    transform 0.28s ease,
    color 0.28s ease,
    background 0.28s ease;
}

.roadmap-step[open] summary::after {
  content: "-";
  transform: rotate(180deg);
  color: var(--accent-2);
  background: rgba(141, 255, 191, 0.1);
}

.roadmap-step span {
  display: inline-grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 999px;
  background: rgba(87, 214, 255, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.roadmap-step h3,
.roadmap-step p {
  margin: 0;
}

.roadmap-step h3 {
  margin-top: 1rem;
  padding-right: 1.9rem;
}

.roadmap-step p {
  margin-top: 0.65rem;
  color: var(--muted);
  line-height: 1.65;
}

.roadmap-action {
  margin-top: 1rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(141, 255, 191, 0.16);
  border-radius: 16px;
  background: rgba(141, 255, 191, 0.065);
  color: #dff7ea;
  line-height: 1.6;
  animation: detailsReveal 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.roadmap-action strong {
  color: var(--accent-2);
}

.job-flow {
  display: grid;
  grid-template-columns: repeat(9, auto);
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.04);
  overflow-x: auto;
}

.flow-node {
  min-width: 128px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(87, 214, 255, 0.18);
  border-radius: 18px;
  background: rgba(87, 214, 255, 0.08);
  color: #eaf8ff;
  font-weight: 800;
  text-align: center;
}

.system-flow {
  grid-template-columns: repeat(7, auto);
}

.flow-node.final {
  border-color: rgba(141, 255, 191, 0.28);
  background: rgba(141, 255, 191, 0.1);
  color: var(--accent-2);
}

.flow-connector {
  color: var(--accent);
  font-size: 1.35rem;
  animation: pulse 2.8s ease-in-out infinite;
}

.takeaway-panel {
  margin-top: 2.4rem;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid rgba(141, 255, 191, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at top right,
      rgba(141, 255, 191, 0.12),
      transparent 34%
    ),
    linear-gradient(180deg, rgba(16, 32, 54, 0.92), rgba(10, 22, 38, 0.78));
  box-shadow: var(--shadow);
}

.takeaway-panel p {
  max-width: 880px;
  margin: 0;
  color: #d9ecff;
  font-size: 1.12rem;
  line-height: 1.85;
}

.foundations-hero .hero-panel {
  transform: rotate(-1deg);
}

.robot-type-card {
  position: relative;
  overflow: hidden;
}

.robot-type-card::after {
  content: "";
  position: absolute;
  inset: auto -52px -62px auto;
  width: 150px;
  height: 150px;
  border-radius: 999px;
  background: rgba(141, 255, 191, 0.08);
  filter: blur(4px);
}

.robot-type-card > * {
  position: relative;
  z-index: 1;
}

.robot-flip-card {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.1rem;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: inherit;
  font: inherit;
  perspective: 1000px;
}

.robot-flip-card:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}

.robot-flip-inner,
.robot-flip-face {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
}

.robot-flip-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.robot-flip-card:hover .robot-flip-inner,
.robot-flip-card:focus-visible .robot-flip-inner {
  transform: rotateY(180deg);
}

.robot-flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backface-visibility: hidden;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.robot-flip-front {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(7, 17, 31, 0.08), rgba(7, 17, 31, 0.08)),
    #f6f9fc;
  transform: rotateY(180deg);
}

.robot-flip-front::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(87, 214, 255, 0.2), transparent 36%),
    linear-gradient(315deg, rgba(141, 255, 191, 0.14), transparent 34%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.robot-card-image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.45rem;
  object-fit: contain;
}

.robot-flip-back {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.65rem;
  padding: 1.15rem;
  text-align: center;
  background:
    radial-gradient(
      circle at top left,
      rgba(87, 214, 255, 0.2),
      transparent 36%
    ),
    linear-gradient(180deg, rgba(12, 27, 47, 0.98), rgba(6, 14, 26, 0.98));
  transform: rotateY(0deg);
}

.robot-flip-back strong {
  color: var(--accent-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}

.robot-flip-back span {
  max-width: 280px;
  color: var(--muted);
  line-height: 1.65;
}

.robot-flip-back .flip-cue,
.power-flip-summary .flip-cue,
.component-flip-summary .flip-cue,
.schematic-flip-summary .flip-cue,
.system-diagram-summary .flip-cue {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 0.25rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(87, 214, 255, 0.2);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(87, 214, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.system-diagram-panel {
  display: block;
  width: 100%;
  margin-top: 2.4rem;
  padding: 1.2rem;
  border: 1px solid rgba(87, 214, 255, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at top left,
      rgba(87, 214, 255, 0.12),
      transparent 30%
    ),
    linear-gradient(180deg, rgba(15, 30, 52, 0.94), rgba(9, 18, 32, 0.9));
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.system-diagram-flip {
  color: inherit;
  font: inherit;
  text-align: left;
  perspective: 1200px;
}

.system-diagram-flip:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 6px;
}

.system-diagram-inner {
  position: relative;
  display: block;
  width: 100%;
  min-height: 540px;
  transform-style: preserve-3d;
  transition: transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
}

.system-diagram-flip:hover .system-diagram-inner,
.system-diagram-flip:focus-visible .system-diagram-inner {
  transform: rotateY(180deg);
}

.system-diagram-face {
  position: absolute;
  inset: 0;
  display: grid;
  min-width: 760px;
  border-radius: 18px;
  overflow: hidden;
  backface-visibility: hidden;
}

.system-diagram-summary {
  align-content: center;
  justify-items: center;
  gap: 0.9rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  background:
    radial-gradient(
      circle at top left,
      rgba(87, 214, 255, 0.22),
      transparent 36%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(141, 255, 191, 0.16),
      transparent 32%
    ),
    linear-gradient(180deg, rgba(12, 27, 47, 0.98), rgba(6, 14, 26, 0.98));
  border: 1px solid rgba(87, 214, 255, 0.18);
}

.system-diagram-summary strong {
  color: var(--accent-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.system-diagram-summary span:not(.flip-cue) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.system-diagram-image {
  background: #f6f9fc;
  transform: rotateY(180deg);
}

.robot-system-diagram {
  display: block;
  width: 100%;
  min-width: 760px;
  height: 100%;
  border-radius: 18px;
  object-fit: contain;
  transition:
    transform 0.45s ease,
    filter 0.45s ease;
}

.system-diagram-panel:hover .robot-system-diagram {
  transform: scale(1.015);
  filter: saturate(1.08) contrast(1.04);
}

.comparison-table-wrap {
  margin-top: 2.4rem;
  padding: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.robot-comparison-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--text);
}

.robot-comparison-table th,
.robot-comparison-table td {
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.robot-comparison-table th:last-child,
.robot-comparison-table td:last-child {
  border-right: 0;
}

.robot-comparison-table tbody tr:last-child th,
.robot-comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

.robot-comparison-table thead th {
  background: rgba(87, 214, 255, 0.1);
  color: #eaf8ff;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.robot-comparison-table tbody th {
  color: var(--accent-2);
  font-weight: 800;
}

.robot-comparison-table tbody td {
  color: var(--muted);
}

.robot-comparison-table thead th:first-child {
  border-top-left-radius: 18px;
}

.robot-comparison-table thead th:last-child {
  border-top-right-radius: 18px;
}

.electrical-hero .hero-panel {
  transform: rotate(1deg);
}

.media-placeholder,
.diagram-placeholder,
.circuit-placeholder {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 210px;
  margin-top: 1.2rem;
  border: 1px dashed rgba(87, 214, 255, 0.3);
  border-radius: 20px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: 24px 24px;
  overflow: hidden;
}

.media-placeholder::before,
.diagram-placeholder::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.media-placeholder.small {
  min-height: 150px;
}

.media-placeholder.large {
  min-height: 320px;
}

.power-flip-card {
  --power-card-height: clamp(260px, 28vw, 340px);
  display: block;
  width: 100%;
  height: var(--power-card-height);
  margin-top: 1.2rem;
  padding: 0;
  border: 1px dashed rgba(87, 214, 255, 0.3);
  border-radius: 20px;
  background: transparent;
  color: inherit;
  font: inherit;
  perspective: 1000px;
}

.power-flip-card:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 5px;
}

.power-flip-inner,
.power-flip-face {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.power-flip-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.power-flip-card:hover .power-flip-inner,
.power-flip-card:focus-visible .power-flip-inner {
  transform: rotateY(180deg);
}

.power-flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.power-flip-image {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(7, 17, 31, 0.08), rgba(7, 17, 31, 0.08)),
    #f6f9fc;
  transform: rotateY(180deg);
}

.power-flip-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(87, 214, 255, 0.18), transparent 36%),
    linear-gradient(315deg, rgba(141, 255, 191, 0.12), transparent 34%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.power-flip-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: calc(100% - 2.4rem);
  height: calc(100% - 2.4rem);
  box-sizing: border-box;
  object-fit: contain;
}

.power-flip-summary {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.65rem;
  padding: 1.15rem;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(
      circle at top left,
      rgba(87, 214, 255, 0.2),
      transparent 36%
    ),
    linear-gradient(180deg, rgba(12, 27, 47, 0.98), rgba(6, 14, 26, 0.98));
  background-size: 24px 24px, 24px 24px, auto, auto;
}

.power-flip-summary strong {
  color: var(--accent-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
}

.power-flip-summary span:not(.flip-cue) {
  max-width: 280px;
  color: var(--muted);
  line-height: 1.65;
}

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

.component-flip-card {
  display: block;
  width: 100%;
  height: 150px;
  margin-top: 1rem;
  padding: 0;
  border: 1px dashed rgba(87, 214, 255, 0.3);
  border-radius: 20px;
  background: transparent;
  color: inherit;
  font: inherit;
  perspective: 1000px;
}

.component-flip-card:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 5px;
}

.component-flip-inner,
.component-flip-face {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

.component-flip-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1);
}

.component-flip-card:hover .component-flip-inner,
.component-flip-card:focus-visible .component-flip-inner {
  transform: rotateY(180deg);
}

.component-flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.component-flip-summary {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.6rem;
  padding: 1rem;
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(
      circle at top left,
      rgba(87, 214, 255, 0.16),
      transparent 36%
    ),
    linear-gradient(180deg, rgba(12, 27, 47, 0.98), rgba(6, 14, 26, 0.98));
  background-size: 24px 24px, 24px 24px, auto, auto;
}

.component-flip-summary strong {
  color: var(--accent-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
}

.component-flip-image {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(7, 17, 31, 0.08), rgba(7, 17, 31, 0.08)),
    #f6f9fc;
  transform: rotateY(180deg);
}

.component-flip-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(87, 214, 255, 0.18), transparent 36%),
    linear-gradient(315deg, rgba(141, 255, 191, 0.12), transparent 34%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.component-flip-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: calc(100% - 1rem);
  height: calc(100% - 1rem);
  object-fit: contain;
}

.circuit-placeholder {
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 0.8rem;
  min-height: 160px;
  padding: 1rem;
}

.circuit-placeholder.parallel {
  grid-template-columns: auto 1fr auto;
}

.circuit-node,
.circuit-branch span,
.diagram-terminal {
  position: relative;
  z-index: 1;
  display: inline-grid;
  min-height: 3.2rem;
  place-items: center;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(141, 255, 191, 0.2);
  border-radius: 16px;
  background: rgba(141, 255, 191, 0.08);
  color: #dff7ea;
  font-weight: 800;
  text-align: center;
}

.circuit-line,
.diagram-wire {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(87, 214, 255, 0.15), var(--accent));
  box-shadow: 0 0 14px rgba(87, 214, 255, 0.22);
}

.circuit-branch {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
}

.circuit-branch::before {
  content: "";
  position: absolute;
  inset: 1.6rem 50%;
  width: 2px;
  background: rgba(87, 214, 255, 0.4);
  transform: translateX(-50%);
}

.label-strip {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.label-strip span {
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(87, 214, 255, 0.16);
  border-radius: 16px;
  background: rgba(87, 214, 255, 0.07);
  color: #dff2ff;
  font-weight: 700;
}

.motor-flow,
.robot-example-flow {
  grid-template-columns: repeat(7, auto);
}

.diagram-placeholder {
  min-height: 420px;
  margin-top: 0;
}

.diagram-placeholder-grid {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 780px);
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.2rem;
}

.schematic-flip-card {
  display: block;
  width: 100%;
  min-height: 420px;
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: inherit;
  font: inherit;
  perspective: 1200px;
}

.schematic-flip-card:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 6px;
}

.schematic-flip-inner,
.schematic-flip-face {
  display: block;
  width: 100%;
  min-height: 420px;
  border-radius: 18px;
}

.schematic-flip-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
}

.schematic-flip-card:hover .schematic-flip-inner,
.schematic-flip-card:focus-visible .schematic-flip-inner {
  transform: rotateY(180deg);
}

.schematic-flip-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  backface-visibility: hidden;
  border: 1px dashed rgba(87, 214, 255, 0.3);
}

.schematic-flip-summary {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.9rem;
  padding: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(
      circle at top left,
      rgba(87, 214, 255, 0.2),
      transparent 36%
    ),
    linear-gradient(180deg, rgba(12, 27, 47, 0.98), rgba(6, 14, 26, 0.98));
  background-size: 24px 24px, 24px 24px, auto, auto;
}

.schematic-flip-summary strong {
  color: var(--accent-2);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.schematic-flip-summary span:not(.flip-cue) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.schematic-flip-image {
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(7, 17, 31, 0.08), rgba(7, 17, 31, 0.08)),
    #f6f9fc;
  transform: rotateY(180deg);
}

.schematic-flip-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(87, 214, 255, 0.16), transparent 36%),
    linear-gradient(315deg, rgba(141, 255, 191, 0.1), transparent 34%);
  mix-blend-mode: multiply;
  pointer-events: none;
}

.schematic-flip-image img {
  position: relative;
  z-index: 1;
  display: block;
  width: calc(100% - 1.4rem);
  height: calc(100% - 1.4rem);
  object-fit: contain;
}

@media (max-width: 680px) {
  .home-main {
    padding: 1rem;
  }

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

@media (max-width: 1100px) {
  .tech-compare-grid,
  .component-grid,
  .salary-dashboard,
  .roadmap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .roadmap-step::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .careers-hero .hero-panel,
  .foundations-hero .hero-panel,
  .electrical-hero .hero-panel {
    transform: none;
  }

  .tech-compare-grid,
  .component-grid,
  .career-grid,
  .ctso-grid,
  .salary-dashboard,
  .roadmap {
    grid-template-columns: 1fr;
  }

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

  .flow-connector {
    animation: none;
    transform: rotate(90deg);
  }

  .system-diagram-inner {
    min-height: 390px;
  }

  .circuit-placeholder,
  .circuit-placeholder.parallel,
  .diagram-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .circuit-line,
  .diagram-wire {
    width: 2px;
    height: 42px;
    justify-self: center;
  }

  .motor-flow,
  .robot-example-flow {
    grid-template-columns: 1fr;
  }

  .diagram-placeholder {
    min-height: 360px;
  }

  .schematic-flip-card,
  .schematic-flip-inner,
  .schematic-flip-face {
    min-height: 360px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .robot-flip-inner,
  .power-flip-inner,
  .component-flip-inner,
  .schematic-flip-inner,
  .robot-system-diagram,
  .system-diagram-inner {
    transition: none;
  }
}
