@charset "UTF-8";
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-padding-top: 80px;
  scroll-behavior: smooth;
  min-height: 100vh;
  background: #ffffff;
}
html[data-theme=dark] {
  background: #000;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #1f2937;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: linear-gradient(to bottom, #EBEDFD, #FDFCF3 70%, #B5DAFF);
}
html[data-theme=dark] body {
  color: #e5e7eb;
  background: #000;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #2563eb;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main {
  flex: 1;
}

.footer {
  background: #f3f4f6;
  padding: 3rem 0 4rem;
  text-align: center;
}
html[data-theme=dark] .footer {
  background: #000;
}

.footer p {
  margin-bottom: 0.25rem;
}
.footer p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-between {
  justify-content: space-between;
}

.flex-center {
  justify-content: center;
  align-items: center;
}

.gap-sm {
  gap: 0.5rem;
}

.gap-md {
  gap: 1rem;
}

.gap-lg {
  gap: 1.5rem;
}

.mt-sm {
  margin-top: 0.5rem;
}

.mt-md {
  margin-top: 1rem;
}

.mt-lg {
  margin-top: 1.5rem;
}

.mt-xl {
  margin-top: 2rem;
}

.mt-2xl {
  margin-top: 3rem;
}

.mb-sm {
  margin-bottom: 0.5rem;
}

.mb-md {
  margin-bottom: 1rem;
}

.mb-lg {
  margin-bottom: 1.5rem;
}

.mb-xl {
  margin-bottom: 2rem;
}

.mb-2xl {
  margin-bottom: 3rem;
}

.text-muted {
  color: #6b7280;
}
html[data-theme=dark] .text-muted {
  color: #9ca3af;
}

.w-100 {
  width: 100%;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.d-none {
  display: none;
}

@media (min-width: 640px) {
  .d-sm-block {
    display: block;
  }
}

@keyframes ripple-expand {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-expand 0.55s linear;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.2);
}

.btn-ghost .ripple {
  background: rgba(0, 0, 0, 0.07);
}

.btn-primary {
  background: linear-gradient(to bottom, #FF9A00 0%, #E05000 100%);
  color: white;
  z-index: 0;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, #FFB340 0%, #C94000 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}
.btn-primary:hover::after {
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #1f2937;
}
.btn-ghost:hover {
  background: #f3f4f6;
  border-color: #2563eb;
}
html[data-theme=dark] .btn-ghost {
  border-color: #374151;
  color: #e5e7eb;
}
html[data-theme=dark] .btn-ghost:hover {
  background: rgb(40.1918604651, 53.1569767442, 71.3081395349);
  border-color: #2563eb;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
html[data-theme=dark] .card {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  background-color: #f3f4f6;
  color: #6b7280;
}
html[data-theme=dark] .badge {
  background-color: #111827;
  color: #9ca3af;
}

.badge-blue {
  background-color: rgb(223.8571428571, 232.7142857143, 252.1428571429);
  color: #1e40af;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  color: white;
  font-size: 1rem;
  width: 100%;
  justify-content: space-between;
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}
.theme-toggle .theme-icon {
  font-size: 1.5rem;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 1.5rem;
  background-color: transparent;
  box-shadow: none;
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  display: flex;
  align-items: center;
}

.navbar.active {
  background-color: #111;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.navbar-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.4rem;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  margin: 0 auto;
}

.navbar-brand:hover {
  text-decoration: none;
}

.sidemenu .toggle {
  width: 24px;
  height: 18px;
  position: relative;
  padding: 10px;
  transform: rotate(0deg);
  transition: 0.5s ease-in-out;
  cursor: pointer;
  z-index: 2000;
}

.sidemenu .toggle span {
  display: block;
  position: absolute;
  height: 3px;
  width: 24px;
  background: #fff;
  border-radius: 1px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: 0.25s ease-in-out;
}

.sidemenu .toggle span:nth-child(1) {
  top: 0px;
  width: 85%;
}

.sidemenu .toggle span:nth-child(2) {
  top: 8px;
}

.sidemenu .toggle span:nth-child(3) {
  top: 16px;
  width: 65%;
}

.sidemenu .toggle.open span:nth-child(1) {
  top: 8px;
  width: 28px;
  height: 4px;
  transform: rotate(135deg);
}

.sidemenu .toggle.open span:nth-child(2) {
  opacity: 0;
  left: -60px;
}

.sidemenu .toggle.open span:nth-child(3) {
  top: 8px;
  width: 28px;
  height: 4px;
  transform: rotate(-135deg);
}

.sidemenu-main {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out;
}

.sidemenu-open {
  overflow-y: hidden;
}

.sidemenu-open .sidemenu-main {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.sidemenu-left {
  z-index: 1001;
  position: relative;
  height: 100dvh;
  width: 100%;
  max-width: 600px;
  padding: 0 2rem;
  background: #09090f;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidemenu-left ul {
  list-style: none;
  padding-top: 8vh;
  margin-top: 1rem;
  padding-bottom: 3vh;
  flex-grow: 1;
}

.sidemenu-left ul li {
  padding: 0.5rem 0;
  margin: 0;
}

.sidemenu-left ul li h3 {
  padding: 0;
  margin: 0;
  font-size: 2rem;
}

.sidemenu-left ul li h3 a {
  text-decoration: none;
  color: #fff;
  transition: opacity 0.2s;
}

.sidemenu-left ul li h3 a:hover {
  opacity: 0.8;
}

.sidemenu-footer {
  padding: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sidemenu-ring {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: 0.7;
}

.sidemenu-footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sidemenu-external-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-decoration: none;
}
.sidemenu-external-link:hover {
  color: #fff;
  text-decoration: underline;
}

.sidemenu-footer-copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
}

.sidemenu-right {
  position: fixed;
  width: 100%;
  height: 100dvh;
  right: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 900;
}

@media (max-width: 768px) {
  .sidemenu-left {
    max-width: 100%;
  }
  .sidemenu-right {
    display: none;
  }
}
@media (min-width: 769px) {
  .sidemenu-left {
    max-width: 40%;
  }
}
.story-beats {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.story-beat {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .story-beat {
    grid-template-columns: 2fr 3fr;
  }
  .story-beat:nth-child(even) .story-beat-image {
    order: 2;
  }
  .story-beat:nth-child(even) .story-beat-text {
    order: 1;
  }
}

.story-beat-image {
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 40%, transparent 100%);
}
.story-beat-image img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  display: block;
  opacity: 0.85;
  margin: 0 auto;
}

.story-beat-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.story-beat-text p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0;
}

.hero-ring {
  width: 170px;
  height: 170px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 8vh;
}
html[data-theme=dark] .hero {
  background: linear-gradient(to bottom, #0d1230, #060810);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #fff;
}
@media (max-width: 640px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-tagline {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}
html[data-theme=dark] .hero-tagline {
  color: #9ca3af;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.section {
  padding: 4rem 0 7rem;
  background: #fafbff;
}
html[data-theme=dark] .section {
  background: linear-gradient(to bottom, #0d1230, #060810);
}

section.section:nth-of-type(even) {
  background: #eeeffe;
}
html[data-theme=dark] section.section:nth-of-type(even) {
  background: linear-gradient(to bottom, #1a1035, #060810);
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #2563eb;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.agentic-split {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
}
@media (min-width: 768px) {
  .agentic-split {
    grid-template-columns: 2fr 3fr;
  }
}

.agentic-split > div {
  padding-top: 1.5rem;
}

.agentic-split-ship img {
  width: 100%;
  max-width: 400px;
  display: block;
  margin: 0 auto;
}

.pullquote {
  border-left: 4px solid #4a2570;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}
html[data-theme=dark] .pullquote {
  border-left-color: rgb(137.466442953, 79.4832214765, 197.0167785235);
}

.pullquote-text {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.pullquote-attribution {
  font-size: 0.875rem;
  color: #6b7280;
  font-style: normal;
}
html[data-theme=dark] .pullquote-attribution {
  color: #9ca3af;
}

.why-body {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.why-body:last-child {
  margin-bottom: 0;
}

.section-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-intro {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 640px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
html[data-theme=dark] .section-intro {
  color: #9ca3af;
}

.system-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
}
html[data-theme=dark] .system-card {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.08);
}

.screenshot-main {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
  display: block;
  border: 1px solid #e5e7eb;
  margin-bottom: 0.5rem;
  cursor: zoom-in;
}
html[data-theme=dark] .screenshot-main {
  border-color: #374151;
}

.screenshot-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 6px;
}

.screenshot-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s, outline-color 0.2s;
}
.screenshot-thumb:hover {
  opacity: 1;
}
.screenshot-thumb.active {
  opacity: 1;
  outline: 3px solid #9d6bda;
  outline-offset: 2px;
}

.system-card-header {
  margin-bottom: 1.5rem;
}

.system-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.system-subtitle {
  color: #6b7280;
  font-size: 1.125rem;
}
html[data-theme=dark] .system-subtitle {
  color: #9ca3af;
}

.system-card-body {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .system-card-body {
    grid-template-columns: 2fr 3fr;
    align-items: start;
  }
}

.system-description p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.system-details h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
html[data-theme=dark] .system-details h4 {
  color: #9ca3af;
}
.system-details ul {
  list-style: none;
  margin-left: 0;
  margin-bottom: 1rem;
  padding: 0;
}
.system-details li {
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
  font-size: 0.875rem;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}
.system-details li:last-child {
  border-bottom: none;
}
.system-details li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #2563eb;
}
html[data-theme=dark] .system-details li {
  color: #9ca3af;
  border-bottom-color: #374151;
}

.packages-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
}

.package-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}
html[data-theme=dark] .package-item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.package-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #4a2570;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}
.package-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
}
html[data-theme=dark] .package-icon {
  background: rgb(111.9932885906, 55.9966442953, 169.5033557047);
}

.package-name {
  font-family: "Courier New", Courier, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4a2570;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}
html[data-theme=dark] .package-name {
  color: rgb(150.3020134228, 98.6510067114, 203.3489932886);
}

.package-tagline {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.package-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
  flex: 1;
}

.signal-logo-display {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  background: #0a0a0f;
  border-radius: 8px;
}

.signal-card-logo {
  width: 120px;
  height: auto;
}

.stack-ship {
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
}

.stack-ship-img {
  width: 500px;
  max-width: 100%;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 100%);
  opacity: 0.9;
}

.stack-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .stack-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stack-item {
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  position: relative;
  display: block;
  border: 1px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.stack-item[href] {
  cursor: pointer;
}
.stack-item[href]::after {
  content: "↗";
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
  opacity: 0.4;
  transition: opacity 0.2s;
}
.stack-item[href]:hover {
  border-color: #e5e7eb;
  transform: translateY(-2px);
  text-decoration: none;
}
.stack-item[href]:hover::after {
  opacity: 1;
}
html[data-theme=dark] .stack-item {
  background: rgba(255, 255, 255, 0.075);
}
html[data-theme=dark] .stack-item[href]:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
html[data-theme=dark] .stack-item[href]::after {
  color: #9ca3af;
}

.stack-item-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.stack-item-icon--text {
  font-size: 1.75rem;
  line-height: 1;
}

.stack-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: invert(1);
}
html[data-theme=dark] .stack-logo {
  filter: invert(1);
}

.stack-item-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 0.25rem;
}

.stack-item-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}
html[data-theme=dark] .stack-item-desc {
  color: #9ca3af;
}

.values-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
html[data-theme=dark] .value-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.value-card-icon {
  margin-bottom: 1rem;
}
.value-card-icon svg {
  width: 40px;
  height: 40px;
  stroke: #4a2570;
  fill: none;
}
html[data-theme=dark] .value-card-icon svg {
  stroke: rgb(163.1375838926, 117.8187919463, 209.6812080537);
}

.value-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.value-card-body {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}
html[data-theme=dark] .value-card-body {
  color: #9ca3af;
}

.app-cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .app-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.app-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
}
html[data-theme=dark] .app-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.app-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.app-card--link:hover {
  border-color: rgba(167, 139, 250, 0.4);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
html[data-theme=dark] .app-card--link:hover {
  border-color: rgba(167, 139, 250, 0.4);
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.app-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(167, 139, 250, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-card-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.app-card-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}
html[data-theme=dark] .app-card-label {
  color: #e5e7eb;
}

.app-card-category {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(167, 139, 250, 0.75);
  margin: 0;
}

.app-card-desc {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 0.5rem;
}
html[data-theme=dark] .app-card-desc {
  color: #9ca3af;
}

.app-card-toolkit {
  display: flex;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.pkg-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem 0.2rem 0.4rem;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
}
html[data-theme=dark] .pkg-chip {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.pkg-label {
  font-size: 0.875rem;
  color: #6b7280;
}
html[data-theme=dark] .pkg-label {
  color: #9ca3af;
}

.app-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pkg-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pkg-icon svg {
  width: 14px;
  height: 14px;
  stroke: #6b7280;
  fill: none;
}
html[data-theme=dark] .pkg-icon svg {
  stroke: #9ca3af;
}

.app-card-features {
  list-style: disc;
  padding: 0 0 0 1.1rem;
  margin: 0;
}
.app-card-features li {
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: #6b7280;
}
.app-card-features li::marker {
  color: rgba(167, 139, 250, 0.5);
}
html[data-theme=dark] .app-card-features li {
  color: #9ca3af;
}
html[data-theme=dark] .app-card-features li::marker {
  color: rgba(167, 139, 250, 0.5);
}

.principles {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .principles {
    grid-template-columns: repeat(2, 1fr);
  }
}

.principle {
  padding: 1.5rem;
  border-left: 3px solid #4a2570;
}
html[data-theme=dark] .principle {
  border-left-color: rgb(124.6577181208, 62.3288590604, 188.6711409396);
}

.principle-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-image: url("/assets/images/habitualos_vortex2.png");
  background-size: cover;
  background-position: center;
  border-radius: 50%;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.principle-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.principle-body {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.6;
}
html[data-theme=dark] .principle-body {
  color: #9ca3af;
}

.writing-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.writing-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}
.writing-item:last-child {
  border-bottom: none;
}
html[data-theme=dark] .writing-item {
  border-bottom-color: #374151;
}

.writing-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-top: 2px;
}

.writing-item a {
  font-size: 1.125rem;
  font-weight: 500;
}

.writing-meta {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
  margin-bottom: 0;
}
html[data-theme=dark] .writing-meta {
  color: #9ca3af;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  cursor: zoom-out;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  padding: 0;
}
.lightbox-close:hover {
  opacity: 1;
}