/* ============================================================
   PARTA.APP — Ecosystem Home
   Dark neutral base · Per-app accent palettes
   Font: Syne (display) + DM Sans (body)
   ============================================================ */

:root {
  --bg:        #0d0d0f;
  --bg-2:      #111115;
  --bg-3:      #16161c;
  --border:    rgba(255,255,255,0.07);
  --text:      #e8e8ec;
  --text-muted:#8888a0;
  --white:     #ffffff;

  /* App accent colors */
  --mujo:      #c9b99a;   /* beige */
  --mujo-dark: #1a1610;
  --labels:    #4a90d9;   /* blue */
  --labels-dark:#0d1a2e;
  --research:  #f0c040;   /* yellow */
  --research-dark:#1a1600;
  --cibarius:  #9b6fc4;   /* violet */
  --cibarius-dark:#150e22;
  --eazy:      #5ba8e8;   /* light blue */
  --eazy-dark: #0a1525;
  --smartpick: #444455;   /* muted */
  --smartpick-dark:#111118;

  --radius:    12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.15;
  color: var(--white);
}

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

img { max-width: 100%; border-radius: 0; background: transparent; }

/* ── Utility ── */
.section-label {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-primary-p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-primary-p:hover { background: var(--text); color: var(--bg); transform: translateY(-1px); }

.btn-ghost-p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.btn-ghost-p:hover { border-color: rgba(255,255,255,0.25); color: var(--white); }

/* ── Navbar ── */
.parta-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13,13,15,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-inner .nav-logo {
  flex-shrink: 0;
}

.nav-inner > ul.nav-links {
  margin-left: auto;
}

.nav-logo img { display: block; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  list-style: none;
  flex-direction: column;
  padding: 16px 32px 20px;
  gap: 16px;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  font-size: 15px;
  color: var(--text-muted);
}
.nav-mobile.open { display: flex; }

/* ── Hero ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}
.g1 {
  width: 600px; height: 600px;
  background: #4a90d9;
  top: -100px; right: -100px;
}
.g2 {
  width: 400px; height: 400px;
  background: #9b6fc4;
  bottom: 0; left: 10%;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 200;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
  color: var(--white);
}
.hero-title span { color: var(--text-muted); }

.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-tags {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-tags span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Apps Grid ── */
#apps {
  padding: 120px 32px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}
.section-header h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.section-header p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* App card base */
.app-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-2);
  transition: transform var(--transition), border-color var(--transition);
  overflow: hidden;
}
.app-card:hover { transform: translateY(-4px); }

.app-card-inner {
  padding: 32px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.app-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--bg-3);
}

.app-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--bg-3);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.app-badge--soon {
  background: transparent;
  border-color: var(--border);
}

.app-body { flex: 1; }

.app-name {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--white);
  margin-bottom: 6px;
}
.app-name .kanji {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 16px;
}

.app-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-style: italic;
}

.app-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.app-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.app-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text);
}
.app-features li i { font-size: 14px; }

.app-footer {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-top: auto;
}

.app-link {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.app-link:hover { gap: 10px; }
.app-link--muted { color: var(--text-muted); cursor: default; }

/* Per-app accent colors */
.app-card[data-app="mujo"] { border-color: rgba(201,185,154,0.15); }
.app-card[data-app="mujo"]:hover { border-color: rgba(201,185,154,0.35); }
.app-card[data-app="mujo"] .app-icon { background: var(--mujo-dark); color: var(--mujo); }
.app-card[data-app="mujo"] .app-features li i { color: var(--mujo); }
.app-card[data-app="mujo"] .app-link { color: var(--mujo); }

.app-card[data-app="labels"] { border-color: rgba(74,144,217,0.15); }
.app-card[data-app="labels"]:hover { border-color: rgba(74,144,217,0.35); }
.app-card[data-app="labels"] .app-icon { background: var(--labels-dark); color: var(--labels); }
.app-card[data-app="labels"] .app-features li i { color: var(--labels); }
.app-card[data-app="labels"] .app-link { color: var(--labels); }

.app-card[data-app="research"] { border-color: rgba(240,192,64,0.15); }
.app-card[data-app="research"]:hover { border-color: rgba(240,192,64,0.35); }
.app-card[data-app="research"] .app-icon { background: var(--research-dark); color: var(--research); }
.app-card[data-app="research"] .app-features li i { color: var(--research); }
.app-card[data-app="research"] .app-link { color: var(--research); }

.app-card[data-app="cibarius"] { border-color: rgba(155,111,196,0.15); }
.app-card[data-app="cibarius"]:hover { border-color: rgba(155,111,196,0.35); }
.app-card[data-app="cibarius"] .app-icon { background: var(--cibarius-dark); color: var(--cibarius); }
.app-card[data-app="cibarius"] .app-features li i { color: var(--cibarius); }
.app-card[data-app="cibarius"] .app-link { color: var(--cibarius); }

.app-card[data-app="eazy"] { border-color: rgba(91,168,232,0.15); }
.app-card[data-app="eazy"]:hover { border-color: rgba(91,168,232,0.35); }
.app-card[data-app="eazy"] .app-icon { background: var(--eazy-dark); color: var(--eazy); }
.app-card[data-app="eazy"] .app-features li i { color: var(--eazy); }
.app-card[data-app="eazy"] .app-link { color: var(--eazy); }

.app-card--soon { opacity: 0.5; }
.app-card--soon:hover { transform: none; opacity: 0.6; }

/* ── Infrastructure ── */
#infrastructure {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 120px 32px;
}

.infra-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.infra-text h2 {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}

.infra-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 15px;
}

.infra-props {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 36px;
}

.infra-prop {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.infra-prop > i {
  font-size: 20px;
  color: var(--labels);
  margin-top: 2px;
  flex-shrink: 0;
}
.infra-prop strong {
  display: block;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 2px;
}
.infra-prop span {
  font-size: 13px;
  color: var(--text-muted);
}

/* Diagram */
.infra-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.infra-diagram {
  position: relative;
  width: 320px;
  height: 320px;
}

.diag-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid rgba(74,144,217,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 2;
  box-shadow: 0 0 40px rgba(74,144,217,0.15);
}
.diag-center i { font-size: 24px; color: var(--labels); }
.diag-center span { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }

.diag-spoke {
  position: absolute;
  top: 50%; left: 50%;
}

.diag-app {
  position: absolute;
  transform: translate(-50%, -50%);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  white-space: nowrap;
  color: var(--text);
}

.diag-spoke--1 .diag-app { top: -120px; left: 0px; }
.diag-spoke--2 .diag-app { top: -70px; left: 110px; }
.diag-spoke--3 .diag-app { top: 30px; left: 120px; }
.diag-spoke--4 .diag-app { top: 100px; left: 20px; }
.diag-spoke--5 .diag-app { top: 70px; left: -110px; }

/* ── CMS Strip ── */
#cms-strip {
  padding: 80px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.cms-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
}

.cms-text h3 {
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}

.cms-text p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}

.cms-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cms-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.cms-feat i { color: var(--labels); font-size: 16px; }

/* ── Contact ── */
#contact {
  padding: 120px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-text h2 {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.contact-text p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 36px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}
.contact-info i { color: var(--labels); font-size: 16px; }
.contact-info a { color: var(--labels); }
.contact-info a:hover { text-decoration: underline; }

/* Form */
.parta-form { display: flex; flex-direction: column; gap: 20px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 8px; }

.form-group label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group .form-control {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  padding: 12px 16px;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}
.form-group .form-control:focus { border-color: rgba(255,255,255,0.25); }
.form-group .form-control::placeholder { color: var(--text-muted); }

textarea.form-control { resize: vertical; min-height: 120px; }

.form-check-group {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 12px;
}
.form-check-group input { margin-top: 3px; flex-shrink: 0; }
.form-check-group label {
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
  font-weight: 400;
}
.form-check-group a { color: var(--labels); }

.parta-form .btn-primary-p { justify-content: center; border-radius: var(--radius); padding: 14px; }
.parta-form .w-100 { width: 100%; }

.loading, .error-message, .sent-message { font-size: 13px; }
.loading { color: var(--text-muted); display: none; }
.error-message { color: #e06060; display: none; }
.sent-message { color: #60c060; display: none; }

/* ── Footer ── */
#footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 32px 32px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h5 {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--white); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .infra-inner { grid-template-columns: 1fr; gap: 60px; }
  .infra-visual { display: none; }
  .cms-inner { grid-template-columns: 1fr; padding: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .apps-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .cms-features { grid-template-columns: 1fr; }
  #hero { padding: 100px 20px 60px; }
  #apps, #infrastructure, #contact { padding: 80px 20px; }
  #cms-strip { padding: 40px 20px; }
  .cms-inner { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .footer-links { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   LIGHT MODE — body.light class
   Default: dark. Toggle adds .light to body.
   Matches Mujō palette.
═══════════════════════════════════════════ */

body.light {
  background: #f9f7f2;
  color: #1a1a1a;
}

body.light .parta-nav {
  background: rgba(249,247,242,0.92);
  border-bottom-color: rgba(0,0,0,0.08);
  backdrop-filter: blur(16px);
}

body.light .nav-links a       { color: #666; }
body.light .nav-links a:hover { color: #1a1a1a; }

body.light .lang-btn {
  border-color: rgba(0,0,0,0.12);
  color: #666;
}
body.light .lang-btn:hover    { border-color: rgba(0,0,0,0.3); color: #1a1a1a; }

body.light .lang-dropdown {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
body.light .lang-dropdown a            { color: #666; }
body.light .lang-dropdown a:hover      { background: rgba(0,0,0,0.04); color: #1a1a1a; }
body.light .lang-dropdown a[aria-selected="true"] { background: rgba(0,0,0,0.06); color: #1a1a1a; }

body.light .nav-toggle         { color: #1a1a1a; }
body.light .nav-mobile         { border-top-color: rgba(0,0,0,0.08); }
body.light .nav-mobile a       { color: #666; }

body.light h1, body.light h2, body.light h3,
body.light h4, body.light h5              { color: #1a1a1a; }

body.light .hero-bg .g1 { opacity: 0.06; }
body.light .hero-bg .g2 { opacity: 0.06; }
body.light .hero-title span    { color: #888; }
body.light .hero-sub           { color: #555; }
body.light .hero-label         { color: #888; }
body.light .hero-scroll        { color: #888; }

body.light .hero-tags span {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: #666;
}

body.light .btn-primary-p {
  background: #1a1a1a;
  color: #f9f7f2;
}
body.light .btn-primary-p:hover { background: #333; }

body.light .btn-ghost-p {
  border-color: rgba(0,0,0,0.15);
  color: #1a1a1a;
}
body.light .btn-ghost-p:hover { border-color: rgba(0,0,0,0.35); }

body.light .section-label      { color: #999; }
body.light .section-header p   { color: #555; }

body.light .app-card {
  background: #ffffff;
  border-color: rgba(0,0,0,0.07);
}
body.light .app-card:hover     { border-color: rgba(0,0,0,0.18); }

body.light .app-icon           { background: #f0ede8; }
body.light .app-badge          { background: #f0ede8; border-color: rgba(0,0,0,0.08); color: #888; }
body.light .app-name           { color: #1a1a1a; }
body.light .app-tagline        { color: #888; }
body.light .app-desc           { color: #555; }
body.light .app-features li    { color: #333; }
body.light .app-footer         { border-top-color: rgba(0,0,0,0.07); }
body.light .app-link--muted    { color: #aaa; }

/* Per-app accent overrides in light */
body.light .app-card[data-app="mujo"]     { border-color: rgba(201,185,154,0.25); }
body.light .app-card[data-app="mujo"]:hover { border-color: rgba(201,185,154,0.5); }
body.light .app-card[data-app="mujo"] .app-icon { background: #f5f0e8; }

body.light .app-card[data-app="labels"]   { border-color: rgba(74,144,217,0.2); }
body.light .app-card[data-app="labels"]:hover { border-color: rgba(74,144,217,0.4); }
body.light .app-card[data-app="labels"] .app-icon { background: #eef4fc; }

body.light .app-card[data-app="research"] { border-color: rgba(200,160,0,0.2); }
body.light .app-card[data-app="research"]:hover { border-color: rgba(200,160,0,0.4); }
body.light .app-card[data-app="research"] .app-icon { background: #fdf8e8; }

body.light .app-card[data-app="cibarius"] { border-color: rgba(155,111,196,0.2); }
body.light .app-card[data-app="cibarius"]:hover { border-color: rgba(155,111,196,0.4); }
body.light .app-card[data-app="cibarius"] .app-icon { background: #f5f0fc; }

body.light .app-card[data-app="eazy"]     { border-color: rgba(74,144,217,0.2); }
body.light .app-card[data-app="eazy"]:hover { border-color: rgba(74,144,217,0.4); }
body.light .app-card[data-app="eazy"] .app-icon { background: #eef4fc; }

body.light #infrastructure {
  background: #f0ede8;
  border-color: rgba(0,0,0,0.06);
}

body.light .infra-text p       { color: #555; }
body.light .infra-prop span    { color: #666; }
body.light .infra-prop strong  { color: #1a1a1a; }
body.light .infra-prop > i     { color: #4a90d9; }

body.light .diag-center {
  background: #ffffff;
  border-color: rgba(74,144,217,0.3);
}
body.light .diag-app {
  background: #ffffff;
  border-color: rgba(0,0,0,0.08);
  color: #333;
}

body.light .cms-inner {
  background: #f0ede8;
  border-color: rgba(0,0,0,0.06);
}
body.light .cms-text p         { color: #555; }
body.light .cms-feat           { color: #555; }

body.light .contact-text p     { color: #555; }
body.light .contact-info div   { color: #666; }
body.light .contact-info a     { color: #4a90d9; }

body.light .form-group label   { color: #888; }
body.light .form-control {
  background: #ffffff;
  border-color: rgba(0,0,0,0.12);
  color: #1a1a1a;
}
body.light .form-control:focus { border-color: rgba(0,0,0,0.3); }
body.light .form-control::placeholder { color: #bbb; }
body.light .form-check-group label { color: #666; }

body.light #footer {
  background: #f0ede8;
  border-top-color: rgba(0,0,0,0.06);
}
body.light .footer-brand p     { color: #888; }
body.light .footer-col h5      { color: #999; }
body.light .footer-col a       { color: #666; }
body.light .footer-col a:hover { color: #1a1a1a; }
body.light .footer-bottom      { border-top-color: rgba(0,0,0,0.06); color: #999; }
body.light .footer-bottom a    { color: #999; }
body.light .footer-bottom a:hover { color: #1a1a1a; }

/* Theme toggle button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: #8888a0;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: rgba(255,255,255,0.3);
  color: #ffffff;
}
body.light .theme-toggle {
  border-color: rgba(0,0,0,0.12);
  color: #666;
}
body.light .theme-toggle:hover {
  border-color: rgba(0,0,0,0.3);
  color: #1a1a1a;
}

.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
body.light .theme-toggle .icon-sun  { display: block; }
body.light .theme-toggle .icon-moon { display: none; }


.infra-svg { width: 360px; height: 360px; overflow: visible; color: #1a1a1a; }
body:not(.light) .infra-svg { color: #e8e8ec; }