/* Kaisha — Office Management landing (aligned to dashboard PurpleHue) */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* Same tokens as main.css dashboard */
  --paper: #f4f0e8;
  --paper-warm: #ebe5d8;
  --ink: #0a0a0a;
  --ink-muted: #3d3d3d;
  --ink-light: #6b6b6b;
  --purple: #7c3aed;
  --purple-bright: #a78bfa;
  --purple-neon: #c4b5fd;
  --purple-deep: #5b21b6;
  --purple-glow: rgba(124, 58, 237, 0.55);
  --accent-50: #f5f3ff;
  --accent-100: #ede9fe;
  --gray-300: #c4b8a8;
  --panel-border: 3px;
  --radius-sm: 2px;
  /* Exact dashboard font stacks from main.css */
  --font-manga: 'Space Grotesk', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Share Tech Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 4rem;
  --max: 1200px;
  --shadow-md: 3px 3px 0 rgba(10, 10, 10, 0.1);
  --shadow-lg: 5px 5px 0 rgba(10, 10, 10, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Dashboard-matching screentone + violet wash */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: radial-gradient(circle, var(--ink) 1px, transparent 1px);
  background-size: 6px 6px;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 28% 24% at 72% 18%, rgba(167, 139, 250, 0.18), transparent 62%),
    radial-gradient(ellipse 22% 20% at 12% 78%, rgba(91, 33, 182, 0.1), transparent 58%),
    radial-gradient(ellipse 18% 16% at 88% 72%, rgba(124, 58, 237, 0.08), transparent 55%);
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Paper grain — same texture weight as dashboard login */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: 0.28;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
}

.ink-bleed {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 30% 25% at 50% 18%, rgba(124, 58, 237, 0.1), transparent 60%),
    radial-gradient(ellipse 22% 20% at 85% 75%, rgba(124, 58, 237, 0.06), transparent 55%);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 3px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(244, 240, 232, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--ink);
  box-shadow: var(--shadow-md);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 2.15rem;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.logo-chapter {
  font-family: var(--font-manga);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border: 2px solid var(--ink);
  background: var(--purple-bright);
  color: var(--ink);
  transform: rotate(-3deg);
}

.nav {
  display: none;
  gap: 1.75rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  transition: color 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width 0.3s var(--ease);
}

.nav a:hover::after {
  width: 100%;
}

.header-cta {
  display: none;
}

.nav-toggle {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 99;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}

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

.btn-purple {
  background: var(--purple);
  color: #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-purple:hover {
  background: var(--purple-deep);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-ink {
  background: #fff;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-ink:hover {
  background: var(--accent-50);
}

.btn-neon {
  background: var(--purple);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-manga);
  font-size: 0.95rem;
  font-weight: 700;
}

.btn-neon:hover {
  background: var(--purple-deep);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost-light:hover {
  border-color: var(--purple-neon);
  color: var(--purple-neon);
}

.btn-lg {
  padding: 0.95rem 1.75rem;
  font-size: 0.95rem;
}

/* Typography blocks */
.panel-label {
  font-family: var(--font-manga);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-deep);
  margin-bottom: 0.75rem;
}

.panel-label.light {
  color: var(--purple-neon);
}

.section-copy h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-copy h2 em {
  font-style: normal;
  color: var(--purple-deep);
}

.section-lede {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.5rem;
}

.section-copy.centered {
  text-align: center;
}

.section-copy.centered .section-lede {
  margin-left: auto;
  margin-right: auto;
}

.feature-cards {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.feature-cards--row {
  margin-top: 1.75rem;
  grid-template-columns: 1fr;
}

.feature-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 0.9rem 1rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-left: 5px solid var(--purple);
  border-radius: var(--radius-sm);
  box-shadow: 2px 2px 0 rgba(10, 10, 10, 0.06);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.feature-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(10, 10, 10, 0.1);
}

.feature-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.85rem;
  height: 1.85rem;
  padding: 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--purple-deep);
  background: var(--accent-50);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
}

.feature-card strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.25rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

/* Panel 01 — Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 2rem) clamp(1.25rem, 5vw, 3rem) 4rem;
  overflow: hidden;
}

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

.ink-sketches {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ink-splash {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: min(420px, 70vw);
  height: min(420px, 70vw);
}

.splash-core {
  position: absolute;
  inset: 30%;
  border-radius: 45% 55% 50% 50%;
  background: radial-gradient(ellipse at 40% 35%, var(--purple-bright), var(--purple-deep));
  filter: blur(1px);
  animation: splash-pulse 4s ease-in-out infinite;
}

.splash-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--purple);
  opacity: 0.35;
}

.splash-ring.r1 { animation: ring-expand 3s ease-out infinite; }
.splash-ring.r2 { animation: ring-expand 3s ease-out 1s infinite; }
.splash-ring.r3 { animation: ring-expand 3s ease-out 2s infinite; }

@keyframes splash-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes ring-expand {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.speed-lines {
  position: absolute;
  inset: -10%;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 1s, transform 1.2s var(--ease);
}

.speed-lines.is-live {
  opacity: 0.45;
  transform: scale(1);
}

.speed-lines i {
  display: block;
  height: 140%;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 35%,
    var(--ink) 45%,
    var(--ink) 48%,
    transparent 55%,
    transparent 100%
  );
  transform-origin: center top;
  opacity: 0.12;
}

.speed-lines i:nth-child(odd) { transform: rotate(12deg); }
.speed-lines i:nth-child(even) { transform: rotate(-8deg); }
.speed-lines i:nth-child(3n) { opacity: 0.2; transform: rotate(18deg); }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 38rem;
}

.volume-mark {
  font-family: var(--font-manga);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--ink-light);
}

.chapter-tag {
  display: inline-block;
  font-family: var(--font-manga);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.65rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--accent-50);
  color: var(--purple-deep);
  margin-bottom: 1.25rem;
  box-shadow: 2px 2px 0 var(--ink);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero h1 .chapter-line {
  display: block;
}

.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--purple-deep);
  margin-top: 0.25rem;
}

.hero-lede {
  color: var(--ink-muted);
  font-size: 1.08rem;
  margin-bottom: 1.75rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}

.manga-sfx {
  font-family: var(--font-manga);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.scroll-line {
  width: 2px;
  height: 2.5rem;
  background: linear-gradient(var(--ink), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 10vw, 7rem) clamp(1.25rem, 5vw, 3rem);
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.panel-frame {
  border: var(--panel-border) solid var(--ink);
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.panel-frame.diagonal {
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

/* Panel 02 — Hosting */
.hosting-inner {
  display: grid;
  gap: 2.5rem;
  padding: clamp(2rem, 5vw, 3rem);
}

.hosting-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 280px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(ellipse 50% 45% at 50% 48%, rgba(167, 139, 250, 0.14), transparent 70%),
    var(--paper-warm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

#core-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.attack-waves {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wave {
  position: absolute;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0,
    var(--ink) 3px,
    transparent 3px,
    transparent 10px
  );
  opacity: 0;
}

.wave.w-left {
  left: -20%;
  top: 20%;
  width: 40%;
  height: 60%;
  transform: skewX(-15deg);
}

.wave.w-right {
  right: -20%;
  top: 15%;
  width: 40%;
  height: 65%;
  transform: skewX(15deg);
}

.wave.w-top {
  top: -15%;
  left: 10%;
  width: 80%;
  height: 30%;
  background: repeating-linear-gradient(
    0deg,
    #ef4444 0,
    #ef4444 2px,
    transparent 2px,
    transparent 8px
  );
}

.sfx-dodo {
  position: absolute;
  top: 8%;
  right: 5%;
  font-family: var(--font-manga);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.75rem);
  color: var(--ink);
  text-shadow:
    3px 3px 0 var(--purple-bright),
    -2px -2px 0 #fff;
  opacity: 0;
  transform: scale(2) rotate(-8deg);
  z-index: 5;
  letter-spacing: 0.06em;
}

.sfx-dodo.is-slam {
  opacity: 1;
  transform: scale(1) rotate(-4deg);
}

.shield-burst {
  position: absolute;
  inset: 15%;
  pointer-events: none;
  opacity: 0;
  z-index: 4;
}

.shield-burst.is-active {
  opacity: 1;
}

.shield-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--purple-bright);
  box-shadow:
    0 0 24px var(--purple-glow),
    inset 0 0 36px rgba(124, 58, 237, 0.18);
}

.shield-fill {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.4), transparent 70%);
}

.core-ink-frame {
  position: absolute;
  inset: 20%;
  pointer-events: none;
  opacity: 0.5;
  z-index: 2;
}

.core-sketch {
  width: 100%;
  height: 100%;
}

/* Panel 03 — Studio */
.studio {
  background: #fff;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.manga-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(4, minmax(52px, 1fr));
  gap: 3px;
  min-height: 320px;
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  box-shadow: var(--shadow-lg);
  margin: 2rem 0 1.25rem;
  overflow: hidden;
}

.grid-panel {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--ink);
  overflow: hidden;
  transition: background 0.3s;
}

.grid-panel.is-placed {
  background: #fff;
}

.grid-panel.is-placed .slot-content {
  opacity: 1;
  transform: scale(1);
}

.slot-label {
  position: absolute;
  top: 4px;
  left: 6px;
  font-family: var(--font-manga);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--ink-light);
  z-index: 2;
}

.slot-content {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}

.gp-nav {
  grid-column: 1 / 7;
  grid-row: 1;
}

.gp-nav .slot-content {
  background: linear-gradient(90deg, var(--ink) 30%, transparent 30%);
  background-size: 12px 100%;
  opacity: 0;
}

.gp-nav.is-placed .slot-content::after {
  content: "Kaisha Workspace";
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
}

.gp-hero {
  grid-column: 1 / 5;
  grid-row: 2 / 4;
}

.gp-hero.is-placed .slot-content {
  background:
    radial-gradient(ellipse 55% 45% at 50% 40%, rgba(167, 139, 250, 0.45), transparent),
    radial-gradient(ellipse 30% 28% at 72% 20%, rgba(124, 58, 237, 0.12), transparent),
    var(--paper-warm);
}

.gp-btn {
  grid-column: 5 / 7;
  grid-row: 2;
}

.gp-btn.is-placed .slot-content {
  background: var(--purple);
  margin: 0.5rem;
  border-radius: 2px;
}

.gp-card.c1 {
  grid-column: 5 / 7;
  grid-row: 3;
}

.gp-card.c2 {
  grid-column: 1 / 3;
  grid-row: 4;
}

.gp-card.is-placed .slot-content {
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(10, 10, 10, 0.04) 4px,
    rgba(10, 10, 10, 0.04) 8px
  );
  border: 1px dashed var(--ink-light);
  margin: 6px;
}

.gp-footer {
  grid-column: 3 / 7;
  grid-row: 4;
}

.gp-footer.is-placed .slot-content {
  background: var(--ink);
  margin: 4px;
  opacity: 1;
}

.ink-brush {
  position: absolute;
  width: 36px;
  height: 72px;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(2px 2px 0 rgba(124, 58, 237, 0.45));
}

.ink-brush.is-active {
  opacity: 1;
}

.sfx-pah {
  position: absolute;
  font-family: var(--font-manga);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--purple-deep);
  text-shadow: 2px 2px 0 var(--ink);
  opacity: 0;
  z-index: 11;
  pointer-events: none;
}

.sfx-pah.is-flash {
  opacity: 1;
}

.studio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.stroke-btn {
  padding: 0.5rem 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  border: 2px solid var(--ink);
  background: var(--paper);
  transition: background 0.2s, transform 0.2s;
}

.stroke-btn.is-active,
.stroke-btn:hover {
  background: var(--accent-100);
  color: var(--purple-deep);
  transform: translateY(-1px);
  box-shadow: 2px 2px 0 var(--ink);
}

/* Panel 04 — Morph */
.customize {
  background: var(--paper-warm);
}

.morph-spread {
  position: relative;
  border: 3px solid var(--ink);
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.5rem;
  margin: 2rem 0;
  overflow: hidden;
}

.screentone-layer {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: radial-gradient(circle, var(--ink) 1px, transparent 1px);
  background-size: 6px 6px;
  pointer-events: none;
  transition: background-size 0.5s;
}

.morph-spread[data-tone="dense"] .screentone-layer {
  background-size: 4px 4px;
  opacity: 0.18;
}

.morph-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 2;
}

.morph-tab {
  padding: 0.45rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  border: 2px solid var(--ink);
  background: var(--paper);
}

.morph-tab.is-active {
  background: var(--purple);
  color: #fff;
}

.morph-silhouette {
  position: relative;
  min-height: 280px;
  z-index: 2;
}

.silhouette-base {
  position: absolute;
  inset: 10% 15%;
  border: 3px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}

.morph-panel {
  position: absolute;
  inset: 10% 15%;
  padding: 1rem;
  border: 3px solid var(--ink);
  background: #fff;
  opacity: 0;
  transform: scale(0.92) rotate(-2deg);
  transition: opacity 0.4s, transform 0.5s var(--ease);
  pointer-events: none;
}

.morph-silhouette[data-form="corporate"] .mp-corporate,
.morph-silhouette[data-form="commerce"] .mp-commerce,
.morph-silhouette[data-form="dashboard"] .mp-dashboard {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  pointer-events: auto;
}

.morph-panel header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ink);
}

.morph-panel h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

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

.mp-grid i,
.mp-shop i {
  display: block;
  aspect-ratio: 1;
  background: var(--paper-warm);
  border: 1px solid var(--ink);
}

.mp-shop {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.mp-charts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.mp-charts i {
  display: block;
  height: 36px;
  background: linear-gradient(180deg, var(--purple-bright), var(--paper-warm));
  border: 1px solid var(--ink);
}

.mp-charts i:nth-child(4),
.mp-charts i:nth-child(5),
.mp-charts i:nth-child(6) {
  height: 52px;
}

.morph-sfx {
  position: absolute;
  bottom: 5%;
  right: 3%;
  font-family: var(--font-manga);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: var(--purple);
  opacity: 0.4;
  transform: rotate(-6deg);
}

/* Panel 05 — Subtle employee desk preview */
.talent-inner {
  display: grid;
  gap: 2.5rem;
}

.hope-horizon {
  position: relative;
  padding: 0.35rem;
}

.hh-card {
  background: #fff;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hh-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--gray-300);
  background: var(--paper);
}

.hh-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.2rem;
}

.hh-card-head h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.hh-chip {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  border: 1px solid #b7e4c7;
  border-radius: var(--radius-sm);
  background: #E6F5EE;
  color: #1D7A4E;
  font-size: 0.68rem;
  font-weight: 600;
}

.hh-card-body {
  padding: 1.25rem 1.1rem 1rem;
  text-align: center;
}

.hh-shift {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.hh-timer {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0.4rem 0 0.35rem;
  line-height: 1.1;
}

.hh-note {
  font-size: 0.75rem;
  color: var(--ink-light);
}

.hh-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--gray-300);
}

.hh-metric {
  padding: 0.75rem 0.65rem;
  text-align: center;
  border-right: 1px solid var(--gray-300);
}

.hh-metric:last-child {
  border-right: none;
}

.hh-metric span {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.hh-metric b {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.footer-signin {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.footer-signin:hover {
  color: var(--purple-neon);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem clamp(1.25rem, 5vw, 3rem);
  border-top: 3px solid var(--purple);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 0.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  font-size: 0.88rem;
}

.footer-nav a:hover {
  color: var(--purple-neon);
}

.copyright {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* Responsive */
@media (min-width: 768px) {
  .nav,
  .header-cta {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hosting-inner {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
  }

  .talent-inner {
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
  }

  .feature-cards--row {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .scroll-line {
    animation: none;
  }
}

/* ── Sign-in modal ── */
.signin-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.signin-modal[hidden] {
  display: none !important;
}

.signin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(4px);
}

.signin-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(92vh, 720px);
  overflow: auto;
  animation: signin-pop 0.28s var(--ease);
}

@keyframes signin-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.signin-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  box-shadow: 2px 2px 0 rgba(10, 10, 10, 0.08);
  cursor: pointer;
}

.signin-modal__close:hover {
  background: var(--accent-50);
  color: var(--purple-deep);
}

.login-card--modal {
  position: relative;
  width: 100%;
  text-align: left;
  background: #fff;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  box-shadow: 6px 6px 0 var(--ink);
  padding: 1.75rem 1.5rem 1.5rem;
}

body.signin-open {
  overflow: hidden;
}

.login-brand {
  text-align: center;
  margin-bottom: 1.35rem;
}

.login-brand .logo {
  justify-content: center;
  margin-bottom: 0.75rem;
}

.login-brand .kaisha-logo,
.login-brand .logo img {
  width: 110px;
  height: auto;
  max-height: 102px;
  display: block;
  object-fit: contain;
  margin-inline: auto;
}

.login-brand h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.login-brand p {
  color: var(--ink-muted);
  font-size: 0.9rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.22);
}

.form-control::placeholder {
  color: var(--ink-light);
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 2.75rem;
}

.password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 2px;
  background: transparent;
  color: var(--ink-light);
  cursor: pointer;
  padding: 0;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: var(--purple);
}

.password-toggle .icon {
  display: block;
  pointer-events: none;
}

.btn-block {
  width: 100%;
}

.login-card--modal .btn-neon {
  margin-top: 0.25rem;
}

.hidden {
  display: none !important;
}

.login-error {
  color: #b91c1c;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.login-switch {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.login-switch a,
.login-switch-btn {
  color: var(--purple);
  text-decoration: underline;
}

.login-switch-btn {
  appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.signin-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-light);
}

.signin-note a {
  color: var(--purple);
  text-decoration: underline;
  font-weight: 600;
}
