:root {
  color-scheme: dark;
  --background: #18181b;
  --text: #d8dad2;
  --text-muted: rgba(216, 218, 210, 0.7);
  --text-quiet: rgba(216, 218, 210, 0.48);
  --brand: #cc6426;
  --info: #448d9c;
  --border: #5c5c5c;
  --border-soft: rgba(92, 92, 92, 0.6);
  --surface: rgba(216, 218, 210, 0.035);
  --surface-strong: rgba(216, 218, 210, 0.07);
  --page: min(1160px, calc(100vw - 48px));
  --radius-small: 10px;
  --radius-medium: 16px;
  --radius-large: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--background); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--background);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
::selection { color: var(--background); background: var(--brand); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
[hidden] { display: none !important; }

.page { width: var(--page); margin-inline: auto; }
:where([id]) { scroll-margin-top: 88px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(24, 24, 27, 0.94);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.95rem;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.signal-mark {
  display: inline-flex;
  width: 25px;
  align-items: center;
  flex: 0 0 auto;
}

.signal-mark::before {
  width: 18px;
  height: 2px;
  content: "";
  background: var(--brand);
}

.signal-mark::after {
  width: 7px;
  height: 7px;
  margin-left: -1px;
  border-radius: 50%;
  content: "";
  background: var(--brand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 620;
}

.nav-links a { transition: color 160ms ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  background: transparent;
}

.menu-button span { display: block; width: 18px; height: 1px; margin: 5px auto; background: var(--text); }

.home-hero {
  display: grid;
  padding-block: 58px 48px;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(48px, 8vw, 108px);
  align-items: end;
}

.eyebrow {
  display: flex;
  margin: 0 0 20px;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow .signal-mark { width: 23px; }
.eyebrow .signal-mark::before { width: 16px; }

.home-hero h1,
.section-heading h2,
.product-hero h1,
.product-section h2,
.contact-copy h2 {
  margin: 0;
  font-weight: 620;
  letter-spacing: -0.05em;
  line-height: 0.98;
  text-wrap: balance;
}

.home-hero h1 { max-width: 740px; font-size: clamp(2.8rem, 5vw, 4.75rem); }
.home-hero-copy > p:last-of-type { max-width: 600px; margin: 20px 0 0; color: var(--text-muted); font-size: clamp(1rem, 1.35vw, 1.12rem); line-height: 1.62; }

.hero-actions { display: flex; margin-top: 24px; align-items: center; gap: 18px; }
.primary-action,
.secondary-action,
.card-action,
.product-action,
.contact-submit {
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-small);
  font-size: 0.82rem;
  font-weight: 720;
  transition: transform 190ms var(--ease), background 190ms ease, border-color 190ms ease;
}

.primary-action,
.contact-submit,
.product-action.available {
  border: 1px solid var(--brand);
  color: var(--background);
  background: var(--brand);
}

.primary-action:hover,
.contact-submit:hover,
.product-action.available:hover { transform: translateY(-2px); background: #d46f34; }

.secondary-action,
.card-action {
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
}
.secondary-action:hover,
.card-action:hover { color: var(--text); border-color: var(--text-muted); }

.hero-facts-panel {
  position: relative;
  display: flex;
  min-height: 264px;
  padding: 28px 24px;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-facts-panel::before {
  position: absolute;
  inset: -18px -44px;
  z-index: -2;
  content: "";
  background: url("assets/jokin-workbench-abstract.png") 64% center / cover no-repeat;
  opacity: 0.52;
  filter: saturate(0.7);
  mask-image: radial-gradient(ellipse at 62% 50%, #000 22%, rgba(0,0,0,.88) 52%, transparent 90%);
}
.hero-facts-panel::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(24, 24, 27, 0.52);
}
.studio-facts { width: 100%; border-top: 1px solid var(--border); }
.studio-fact { display: grid; padding: 14px 12px; grid-template-columns: 1fr auto; gap: 16px; border-bottom: 1px solid var(--border-soft); background: var(--background); }
.studio-fact span:first-child { color: var(--text-muted); font-size: 0.75rem; }
.studio-fact span:last-child { color: var(--info); font-size: 0.78rem; font-weight: 680; text-align: right; }

.section { padding-block: 92px; border-top: 1px solid var(--border-soft); }
#software { padding-top: 58px; }
.section-heading {
  display: grid;
  margin-bottom: 26px;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: end;
}
.section-heading h2 { font-size: clamp(2.35rem, 4vw, 4rem); }
.section-heading > p { max-width: 480px; margin: 0 0 4px auto; color: var(--text-muted); }

.phase-rule {
  margin-bottom: 26px;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.phase-rule summary {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.phase-rule summary::-webkit-details-marker { display: none; }
.phase-rule summary::after { content: "+"; color: var(--info); font-size: 1rem; }
.phase-rule[open] summary::after { content: "−"; }
.phase-definitions { display: grid; padding-bottom: 20px; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.phase-definitions div { padding-top: 12px; border-top: 1px solid var(--border-soft); }
.phase-definitions strong { display: block; margin-bottom: 6px; color: var(--info); font-size: 0.71rem; }
.phase-definitions p { margin: 0; color: var(--text-quiet); font-size: 0.72rem; line-height: 1.55; }

.software-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.software-card {
  display: flex;
  min-height: 400px;
  padding: 24px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface);
  transition: transform 240ms var(--ease), background 180ms ease;
}
.software-card:hover { transform: translateY(-3px); background: var(--surface-strong); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-number { color: var(--text-quiet); font-size: 0.72rem; font-variant-numeric: tabular-nums; }

.product-identity {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--background);
}
.product-identity::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--info);
}

.glyph-mediawatcher { display: flex; width: 34px; height: 34px; align-items: center; justify-content: center; gap: 7px; }
.glyph-mediawatcher span { display: block; width: 8px; height: 28px; border-radius: 3px; background: var(--text); }
.glyph-mediawatcher span:first-child { transform: skewY(34deg); }
.glyph-mediawatcher span:last-child { transform: skewY(-34deg); }

.glyph-techtorrent { position: relative; width: 36px; height: 36px; }
.glyph-techtorrent::before {
  position: absolute;
  top: 3px;
  left: 14px;
  width: 8px;
  height: 22px;
  border-radius: 3px;
  content: "";
  background: var(--text);
}
.glyph-techtorrent::after {
  position: absolute;
  right: 3px;
  bottom: 4px;
  left: 3px;
  height: 9px;
  border-right: 3px solid var(--text);
  border-bottom: 3px solid var(--text);
  border-left: 3px solid var(--text);
  border-radius: 0 0 5px 5px;
  content: "";
}
.glyph-techtorrent span {
  position: absolute;
  top: 17px;
  left: 9px;
  width: 0;
  height: 0;
  border-top: 8px solid var(--text);
  border-right: 9px solid transparent;
  border-left: 9px solid transparent;
}

.glyph-dockdeck { display: grid; width: 36px; gap: 5px; }
.glyph-dockdeck span { display: block; height: 6px; border-radius: 2px; background: var(--text); }
.glyph-dockdeck span:nth-child(1) { width: 22px; }
.glyph-dockdeck span:nth-child(2) { width: 32px; }
.glyph-dockdeck span:nth-child(3) { width: 16px; }

.card-body { padding-top: 28px; }
.card-body h3 { margin: 0 0 10px; font-size: 1.45rem; font-weight: 680; letter-spacing: -0.035em; }
.card-purpose { min-height: 72px; margin: 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.62; }
.card-status { display: grid; margin-top: 24px; padding-top: 18px; gap: 7px; border-top: 1px solid var(--border-soft); }
.status-meta { display: flex; align-items: center; gap: 8px; color: var(--info); font-size: 0.7rem; font-weight: 720; letter-spacing: 0.045em; text-transform: uppercase; }
.status-meta::before { width: 7px; height: 7px; border-radius: 50%; content: ""; background: var(--info); }
.status-now { margin: 0; color: var(--text-muted); font-size: 0.78rem; line-height: 1.5; }
.status-updated { color: var(--text-quiet); font-size: 0.68rem; }
.card-footer { display: flex; margin-top: auto; padding-top: 24px; align-items: center; justify-content: space-between; gap: 16px; }
.card-action { min-width: 118px; }
.card-action.disabled { color: var(--border); border-color: var(--border); pointer-events: none; }
.card-availability { color: var(--text-quiet); font-size: 0.71rem; }

.studio-note { display: grid; padding-block: 58px; grid-template-columns: 180px 1fr; gap: 54px; border-top: 1px solid var(--border-soft); }
.studio-note h2 { margin: 0; color: var(--info); font-size: 0.75rem; letter-spacing: 0.07em; text-transform: uppercase; }
.studio-note p { max-width: 790px; margin: 0; color: var(--text-muted); font-size: clamp(1.1rem, 2.2vw, 1.8rem); font-weight: 520; letter-spacing: -0.025em; line-height: 1.38; }

.support-lab-section { padding: 0 0 68px; }
.support-lab-card {
  display: grid;
  padding: 24px;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-medium);
  background: var(--surface);
}
.support-lab-icon {
  position: relative;
  width: 68px;
  height: 68px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--background);
}
.support-lab-icon::before {
  position: absolute;
  top: 32px;
  left: 15px;
  width: 30px;
  height: 3px;
  border-radius: 999px;
  content: "";
  background: var(--text);
}
.support-lab-icon::after {
  position: absolute;
  top: 28px;
  right: 14px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  content: "";
  background: var(--info);
}
.support-lab-copy { min-width: 0; }
.support-lab-label { display: block; margin-bottom: 7px; color: var(--info); font-size: 0.7rem; font-weight: 720; letter-spacing: 0.06em; text-transform: uppercase; }
.support-lab-copy h2 { margin: 0; font-size: 1.5rem; letter-spacing: -0.035em; }
.support-lab-copy p { max-width: 650px; margin: 8px 0 0; color: var(--text-muted); font-size: 0.86rem; line-height: 1.58; }
.support-lab-action-wrap { display: grid; gap: 8px; justify-items: stretch; }
.support-lab-action {
  display: inline-flex;
  min-height: 44px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand);
  border-radius: var(--radius-small);
  color: var(--background);
  background: var(--brand);
  font-size: 0.82rem;
  font-weight: 720;
  transition: transform 190ms var(--ease), background 190ms ease;
}
.support-lab-action:hover { transform: translateY(-2px); background: #d46f34; }
.support-link-status { color: var(--text-quiet); font-size: 0.68rem; text-align: center; }

.contact-section { padding-block: 80px; border-top: 1px solid var(--border-soft); }
.contact-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 80px; }
.contact-copy h2 { font-size: clamp(2.3rem, 4vw, 3.9rem); }
.contact-copy p { max-width: 430px; margin: 18px 0 0; color: var(--text-muted); }
.contact-email { display: inline-block; margin-top: 22px; padding-bottom: 3px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 0.84rem; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-small);
  color: var(--text);
  background: var(--surface);
}
.contact-form input { min-height: 48px; padding: 0 14px; }
.contact-form textarea { grid-column: 1 / -1; min-height: 120px; padding: 13px 14px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-quiet); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--text-muted); outline: 0; }
.contact-form-footer { display: flex; grid-column: 1 / -1; align-items: center; justify-content: space-between; gap: 20px; }
.contact-form-footer p { margin: 0; color: var(--text-quiet); font-size: 0.72rem; }
.contact-submit { min-width: 120px; }

.site-footer { display: flex; min-height: 108px; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--border-soft); color: var(--text-quiet); font-size: 0.7rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--text); }

/* Product page */
.product-breadcrumb { display: flex; padding-top: 32px; align-items: center; gap: 8px; color: var(--text-quiet); font-size: 0.75rem; }
.product-breadcrumb a:hover { color: var(--text); }
.product-breadcrumb span:last-child { color: var(--info); }

.product-hero {
  display: grid;
  padding-block: 70px 74px;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 72px;
  align-items: end;
}
.product-heading { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.product-heading .product-identity { width: 82px; height: 82px; }
.product-title-group h1 { font-size: clamp(3.2rem, 6vw, 6.1rem); }
.product-title-group > p { max-width: 650px; margin: 24px 0 0; color: var(--text-muted); font-size: clamp(1rem, 1.4vw, 1.15rem); }
.product-status-panel { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-medium); background: var(--surface); }
.product-status-panel .status-now { margin-top: 10px; }
.product-status-panel .status-updated { display: block; margin-top: 8px; }
.product-action-slot { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.product-action-slot p { margin: 0 0 12px; color: var(--text-quiet); font-size: 0.72rem; }
.product-action { width: 100%; }
.product-action.disabled { border: 1px solid var(--border); color: var(--border); background: transparent; pointer-events: none; }

.product-section { padding-block: 82px; border-top: 1px solid var(--border-soft); }
.product-section-header { display: grid; margin-bottom: 34px; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.product-section h2 { font-size: clamp(2rem, 4vw, 3.75rem); }
.product-section-header p { max-width: 500px; margin: 0 0 4px auto; color: var(--text-muted); }

.screenshot-gallery { border: 1px solid var(--border); border-radius: var(--radius-large); overflow: hidden; background: rgba(0,0,0,0.12); }
.gallery-toolbar { display: flex; min-height: 58px; padding: 9px 12px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border-soft); }
.gallery-tabs { display: flex; gap: 5px; }
.gallery-tab { min-height: 38px; padding: 0 12px; border: 1px solid transparent; border-radius: 8px; color: var(--text-muted); background: transparent; font-size: 0.78rem; font-weight: 680; }
.gallery-tab:hover { color: var(--text); }
.gallery-tab[aria-selected="true"] { color: var(--info); border-color: var(--border); background: var(--surface); }
.gallery-caption { color: var(--text-quiet); font-size: 0.7rem; }
.gallery-stage { background: #0b0b0d; }
.gallery-stage img { width: 100%; height: auto; opacity: 1; transition: opacity 180ms ease; }
.gallery-stage img.swapping { opacity: 0; }

.problem-solution { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.story-block { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius-medium); background: var(--surface); }
.story-label { display: block; margin-bottom: 20px; color: var(--info); font-size: 0.71rem; font-weight: 720; letter-spacing: 0.06em; text-transform: uppercase; }
.story-block h3 { margin: 0 0 12px; font-size: 1.5rem; letter-spacing: -0.035em; }
.story-block p { margin: 0; color: var(--text-muted); }

.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-item { padding: 26px; border-right: 1px solid var(--border-soft); }
.feature-item:last-child { border-right: 0; }
.feature-item span { color: var(--info); font-size: 0.7rem; }
.feature-item h3 { margin: 32px 0 9px; font-size: 1.05rem; }
.feature-item p { margin: 0; color: var(--text-muted); font-size: 0.86rem; }

.support-callout { display: flex; padding: 28px; align-items: center; justify-content: space-between; gap: 32px; border: 1px solid var(--border); border-radius: var(--radius-medium); background: var(--surface); }
.support-callout h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.support-callout p { max-width: 570px; margin: 10px 0 0; color: var(--text-muted); }

@media (max-width: 980px) {
  :root { --page: min(100% - 36px, 760px); }
  .home-hero, .product-hero, .contact-grid { grid-template-columns: 1fr; }
  .hero-facts-panel { min-height: 230px; }
  .software-grid { grid-template-columns: 1fr; }
  .software-card { min-height: 340px; }
  .product-status-panel { max-width: none; }
}

@media (max-width: 680px) {
  :root { --page: calc(100vw - 28px); }
  .site-header { backdrop-filter: none; }
  .nav { min-height: 62px; }
  .menu-button { display: block; }
  .nav-links {
    position: absolute;
    top: 62px;
    right: 14px;
    left: 14px;
    display: none;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--border);
    border-radius: var(--radius-medium);
    background: var(--background);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: flex; min-height: 44px; align-items: center; }
  .home-hero { padding-block: 44px 38px; gap: 28px; }
  .home-hero h1 { font-size: clamp(2.65rem, 11.5vw, 3.3rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary-action, .secondary-action { width: 100%; }
  .hero-facts-panel { min-height: 205px; padding: 20px 14px; }
  .section { padding-block: 60px; }
  #software { padding-top: 48px; }
  .section-heading, .product-section-header { grid-template-columns: 1fr; gap: 18px; }
  .section-heading > p, .product-section-header p { margin-left: 0; }
  .phase-definitions { grid-template-columns: 1fr; }
  .software-card { min-height: 0; }
  .studio-note { grid-template-columns: 1fr; gap: 18px; }
  .support-lab-section { padding-bottom: 56px; }
  .support-lab-card { grid-template-columns: 56px 1fr; gap: 18px; }
  .support-lab-icon { width: 56px; height: 56px; }
  .support-lab-icon::before { top: 27px; left: 11px; width: 28px; }
  .support-lab-icon::after { top: 23px; right: 9px; }
  .support-lab-action-wrap { grid-column: 1 / -1; }
  .support-lab-action { width: 100%; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-form textarea, .contact-form-footer { grid-column: 1; }
  .contact-form-footer { align-items: stretch; flex-direction: column; }
  .contact-submit { width: 100%; }
  .site-footer { padding-block: 28px; align-items: flex-start; flex-direction: column; }
  .product-hero { padding-block: 48px 58px; gap: 36px; }
  .product-heading { grid-template-columns: 1fr; }
  .product-title-group h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
  .gallery-toolbar { align-items: flex-start; flex-direction: column; }
  .problem-solution { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-item { border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .feature-item:last-child { border-bottom: 0; }
  .support-callout { align-items: flex-start; flex-direction: column; }
}

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

/* Easter egg — hidden link to /uc/index.html */
.easter-egg {
  color: inherit;
  text-decoration: none;
  cursor: default;
  transition: text-decoration-color 160ms var(--ease, ease), color 160ms var(--ease, ease);
}
.easter-egg:hover,
.easter-egg:focus-visible {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  color: var(--accent, #f07326);
}
.easter-egg:focus-visible {
  outline: none;
}
