body {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 35%, #ffffff 85%);
  min-height: 100vh;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: var(--dojo-slate);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 5vw;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.95rem;
  color: var(--dojo-slate);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--dojo-cyan), var(--dojo-amber));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: transparent;
  color: var(--dojo-slate);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: rgba(15, 23, 42, 0.75);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  transition: color 0.2s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--dojo-navy);
}

.hero {
  padding: 5rem 5vw 4rem;
  text-align: center;
  color: var(--dojo-slate);
}
.hero .eyebrow {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: rgba(15, 23, 42, 0.55);
  margin-bottom: 1.5rem;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(15, 23, 42, 0.75);
}

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

.btn {
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--dojo-cyan), var(--dojo-amber));
  color: #0f172a;
  box-shadow: var(--dojo-shadow);
}

.btn-outline {
  border: 1px solid rgba(15, 23, 42, 0.25);
  color: var(--dojo-slate);
}

.btn:hover {
  transform: translateY(-2px);
}

.section {
  padding: 4rem 5vw;
}

.section h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  margin-bottom: 1.25rem;
  color: var(--dojo-slate);
}

.section-lead {
  font-size: 1.15rem;
  color: var(--dojo-muted);
  max-width: 760px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  border-radius: var(--dojo-radius);
  padding: 1.75rem;
  box-shadow: var(--dojo-shadow);
  border: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card h3 {
  margin: 0;
  font-size: 1.25rem;
}

.card p {
  color: var(--dojo-muted);
  margin: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--dojo-muted);
}

.timeline {
  border-left: 2px solid rgba(15, 23, 42, 0.12);
  padding-left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.timeline-step {
  position: relative;
  padding-left: 1.5rem;
}

.timeline-step::before {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--dojo-cyan);
  background: #fff;
  top: 0.3rem;
  left: -22px;
}

.pill-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.pill-muted {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
}

.highlight {
  background: #f8fafc;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: start;
}

.bullet-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: grid;
  gap: 0.5rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.5rem;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--dojo-cyan);
  font-weight: 700;
}

.contrast {
  background: #fff;
  color: var(--dojo-slate);
}

.contrast h4 {
  color: var(--dojo-slate);
}

.contrast p {
  color: rgba(15, 23, 42, 0.7);
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.list-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.featured-apps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.dojo-grid {
  padding: 0.5rem;
}

.app-card {
  background: #fff;
  color: var(--dojo-slate);
  border-radius: var(--dojo-radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  isolation: isolate;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.app-card h3 {
  margin-top: 0;
  font-size: 1.4rem;
}

.app-card small {
  color: rgba(15, 23, 42, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

.dojo-card {
  --dojo-accent: #38bdf8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 246, 250, 0.96) 40%, rgba(236, 239, 244, 0.98) 100%);
  position: relative;
  overflow: hidden;
}

.featured-apps .dojo-card:nth-of-type(1) {
  --dojo-accent: #38bdf8;
}

.featured-apps .dojo-card:nth-of-type(2) {
  --dojo-accent: #8b5cf6;
}

.featured-apps .dojo-card:nth-of-type(3) {
  --dojo-accent: #f59e0b;
}

.featured-apps .dojo-card:nth-of-type(4) {
  --dojo-accent: #22c55e;
}

.dojo-pr {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 250, 0.95)), url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
}

.dojo-civpro {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 250, 0.95)), url("https://images.unsplash.com/photo-1529429617124-aee8990bafad?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
}

.dojo-crim {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 250, 0.95)), url("https://images.unsplash.com/photo-1521737604893-d14cc237f11d?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
}

.dojo-evidence {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 250, 0.95)), url("https://images.unsplash.com/photo-1474367658825-e5858839e99d?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
}

.dojo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 35%), linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.6;
  animation: ambient-shift 10s ease-in-out infinite alternate;
}

.dojo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 55%);
  opacity: 0;
  animation: sheen 8s ease-in-out infinite;
}

.dojo-roofline {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  align-items: center;
  gap: 0.35rem;
  position: relative;
  z-index: 2;
}

.dojo-roofline .beam {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(135deg, #e2e8f0, var(--dojo-accent));
  background-size: 200% 100%;
  animation: beam-sweep 6s ease-in-out infinite;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 10px rgba(0, 0, 0, 0.25);
  position: relative;
}

.dojo-roofline .beam:nth-child(2) {
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dojo-accent), rgba(255, 255, 255, 0.18), var(--dojo-accent));
  background-size: 200% 100%;
}

.dojo-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.5rem 0;
  position: relative;
  z-index: 2;
}

.dojo-status {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 3;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9);
}

.dojo-door {
  margin-top: auto;
  padding: 1.1rem 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 60%),
    rgba(8, 12, 22, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.dojo-door .door-label {
  font-size: 0.9rem;
  color: rgba(15, 23, 42, 0.75);
}

.dojo-door .btn {
  padding: 0.65rem 1.4rem;
  border: 1px solid rgba(15, 23, 42, 0.28);
  background: rgba(255, 255, 255, 0.8);
}

.dojo-door .door-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 3;
}

.dojo-door::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.06), rgba(15, 23, 42, 0.06) 1px, transparent 1px, transparent 12px);
  opacity: 0.4;
  z-index: 0;
}

.dojo-door::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dojo-accent);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08), 0 0 20px rgba(0, 0, 0, 0.12);
  z-index: 1;
  animation: knob-pulse 3.5s ease-in-out infinite;
}

.dojo-door-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 0.7;
  transition: transform 220ms ease;
  z-index: 2;
  pointer-events: none;
}

.dojo-door-panel.panel-left {
  left: 0;
  transform: translateX(0);
}

.dojo-door-panel.panel-right {
  right: 0;
  transform: translateX(0);
}

.dojo-card:hover .dojo-door-panel.panel-left {
  transform: translateX(-16%);
}

.dojo-card:hover .dojo-door-panel.panel-right {
  transform: translateX(16%);
}

.dojo-card:hover .dojo-door {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.24);
}

.dojo-card:hover .dojo-door {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.24);
}

@keyframes beam-sweep {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes sheen {
  0%, 40% {
    opacity: 0;
    transform: translateX(-40%);
  }
  50% {
    opacity: 0.25;
    transform: translateX(10%);
  }
  100% {
    opacity: 0;
    transform: translateX(40%);
  }
}

@keyframes ambient-shift {
  from {
    transform: translateY(0);
    opacity: 0.55;
  }
  to {
    transform: translateY(-8px);
    opacity: 0.85;
  }
}

@keyframes knob-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12), 0 0 20px rgba(0, 0, 0, 0.35);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.16), 0 0 26px rgba(0, 0, 0, 0.45);
  }
}

.cta-panel {
  text-align: center;
  background: #fff;
  border-radius: var(--dojo-radius);
  padding: 3rem 2rem;
  box-shadow: var(--dojo-shadow);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.site-footer {
  background: #0a1022;
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 5vw;
  margin-top: auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-columns h4 {
  margin-top: 0;
  color: #fff;
}

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
}

.copyright {
  margin-top: 2rem;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 768px) {
  .primary-nav {
    display: none;
    padding-top: 1rem;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 0.85rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 3rem;
  }
}
