:root {
  --entry-ink: #edf3f1;
  --entry-muted: #9babae;
  --entry-faint: #6f7e82;
  --entry-night: #071019;
  --entry-panel: #0c1821;
  --entry-line: rgba(164, 202, 207, .19);
  --entry-cyan: #9bc6ce;
  --entry-cyan-strong: #c6e3e5;
  --entry-copper: #d4aa73;
  --entry-copper-strong: #efd09c;
  --entry-focus: #f1ca89;
}

* { box-sizing: border-box; }

html { background: var(--entry-night); }

body.entry-page {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--entry-ink);
  font-family: Inter, "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(rgba(125, 169, 177, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 169, 177, .045) 1px, transparent 1px),
    #071019;
  background-size: 46px 46px;
}

body.entry-page::before,
body.entry-page::after {
  position: fixed;
  z-index: -1;
  content: "";
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
  transition: transform .6s ease, opacity .6s ease, background .6s ease;
}

body.entry-page::before {
  top: -32vw;
  left: -15vw;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(57, 96, 105, .32), rgba(57, 96, 105, 0) 68%);
}

body.entry-page::after {
  right: -24vw;
  bottom: -40vw;
  width: 78vw;
  height: 78vw;
  background: radial-gradient(circle, rgba(146, 100, 55, .2), rgba(146, 100, 55, 0) 68%);
}

body.entry-page--home:has(.mode-card--image:is(:hover, :focus-visible))::after {
  transform: translate(-8vw, -10vw) scale(1.12);
  background: radial-gradient(circle, rgba(166, 112, 65, .3), rgba(166, 112, 65, 0) 68%);
}

body.entry-page--home:has(.mode-card--cad:is(:hover, :focus-visible))::before {
  transform: translate(24vw, 9vw) scale(1.12);
  background: radial-gradient(circle, rgba(70, 128, 142, .38), rgba(70, 128, 142, 0) 68%);
}

a { color: inherit; }

.entry-header {
  width: min(1240px, calc(100% - 64px));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--entry-line);
}

.entry-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--entry-ink);
  font-size: 17px;
  font-weight: 760;
  letter-spacing: .01em;
  text-decoration: none;
}

.entry-brand__mark {
  position: relative;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(225, 190, 132, .72);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px rgba(205, 160, 96, .08);
}

.entry-brand__mark::before,
.entry-brand__mark span {
  content: "";
  display: block;
  border-radius: 50%;
  border: 1px solid rgba(196, 226, 226, .54);
}

.entry-brand__mark::before { width: 12px; height: 12px; }
.entry-brand__mark span { position: absolute; width: 4px; height: 4px; background: var(--entry-copper); border: 0; }

.entry-header__note {
  color: var(--entry-muted);
  font-size: 13px;
  letter-spacing: .03em;
}

.entry-back-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--entry-cyan-strong);
  font-size: 14px;
  font-weight: 690;
  text-decoration: none;
}

.entry-main,
.preview-main {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
}

.entry-hero {
  padding: clamp(64px, 8vw, 108px) 0 76px;
  text-align: center;
}

.entry-eyebrow {
  margin: 0 0 14px;
  color: var(--entry-copper-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.entry-hero h1,
.preview-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6.2vw, 78px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}

.entry-intro {
  max-width: 670px;
  margin: 24px auto 0;
  color: var(--entry-muted);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.65;
}

.mode-grid {
  margin-top: clamp(48px, 7vw, 76px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  text-align: left;
}

.mode-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--entry-line);
  border-radius: 22px;
  background: rgba(9, 20, 29, .92);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .03);
  color: var(--entry-ink);
  text-decoration: none;
  transform: translateY(0);
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}

.mode-card:hover,
.mode-card:focus-visible {
  z-index: 1;
  transform: translateY(-7px);
  outline: 0;
  box-shadow: 0 34px 96px rgba(0, 0, 0, .38), inset 0 1px rgba(255, 255, 255, .06);
}

.mode-card--image:hover,
.mode-card--image:focus-visible { border-color: rgba(230, 183, 124, .66); background: rgba(24, 24, 26, .96); }
.mode-card--cad:hover,
.mode-card--cad:focus-visible { border-color: rgba(154, 204, 214, .66); background: rgba(9, 24, 33, .98); }

.mode-card__visual {
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--entry-line);
  background: #08131b;
}

.mode-card--image .mode-card__visual {
  background:
    linear-gradient(118deg, rgba(117, 70, 42, .25), transparent 44%),
    linear-gradient(300deg, rgba(47, 91, 98, .28), transparent 50%),
    #0a151d;
}

.mode-card--cad .mode-card__visual {
  background: linear-gradient(145deg, rgba(25, 62, 78, .4), transparent 58%), #07131b;
}

.mode-card__visual svg { width: 100%; height: auto; display: block; }

.mode-card__body {
  flex: 1;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
}

.mode-card__kicker {
  margin-bottom: 11px;
  color: var(--entry-copper-strong);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.mode-card--cad .mode-card__kicker { color: var(--entry-cyan-strong); }

.mode-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3.1vw, 39px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
}

.mode-card p {
  margin: 18px 0 0;
  color: var(--entry-muted);
  font-size: 15px;
  line-height: 1.62;
}

.mode-card__warning,
.mode-card__detail {
  min-height: 44px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  border-top: 1px solid var(--entry-line);
  border-bottom: 1px solid var(--entry-line);
  color: #d8c5a7;
  font-size: 12px;
  line-height: 1.45;
}

.mode-card__detail { color: #b7d4d7; }

.mode-card__action {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--entry-ink);
  font-size: 14px;
  font-weight: 780;
}

.mode-card__action span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--entry-line);
  border-radius: 50%;
  color: var(--entry-copper-strong);
  transition: transform .24s ease, border-color .24s ease;
}

.mode-card--cad .mode-card__action span { color: var(--entry-cyan-strong); }
.mode-card:hover .mode-card__action span,
.mode-card:focus-visible .mode-card__action span { transform: translateX(3px); border-color: currentColor; }

.entry-footer {
  width: min(1240px, calc(100% - 64px));
  min-height: 92px;
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--entry-line);
  color: var(--entry-faint);
  font-size: 12px;
}

.entry-footer p { margin: 0; }
.entry-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.entry-footer a { color: var(--entry-muted); text-decoration: none; }
.entry-footer a:hover { color: var(--entry-ink); }

.preview-main { padding: clamp(54px, 7vw, 96px) 0 80px; }

.preview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: center;
}

.preview-hero h1 { margin: 0; }

.preview-lead {
  max-width: 650px;
  margin: 25px 0 0;
  color: var(--entry-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.62;
}

.preview-warning {
  max-width: 620px;
  margin-top: 30px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid rgba(217, 170, 107, .45);
  border-radius: 12px;
  background: rgba(77, 50, 27, .22);
  color: #ead1aa;
  font-size: 13px;
  line-height: 1.4;
}

.preview-warning span {
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-weight: 700;
}

.preview-secondary { margin: 18px 0 0; color: var(--entry-faint); font-size: 13px; line-height: 1.6; }

.preview-actions { margin-top: 28px; display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }

.preview-disabled,
.preview-cad-link {
  min-height: 50px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
}

.preview-disabled {
  border: 1px solid rgba(162, 180, 182, .2);
  background: rgba(132, 148, 150, .08);
  color: #78878a;
  cursor: not-allowed;
}

.preview-cad-link {
  gap: 10px;
  border: 1px solid rgba(147, 198, 207, .46);
  color: var(--entry-cyan-strong);
  text-decoration: none;
}

.preview-cad-link:focus-visible,
.entry-back-link:focus-visible,
.entry-brand:focus-visible,
.entry-footer a:focus-visible {
  outline: 2px solid var(--entry-focus);
  outline-offset: 4px;
}

.preview-availability { margin: 12px 0 0; color: var(--entry-faint); font-size: 11px; }

.preview-object {
  min-width: 0;
  display: grid;
  place-items: center;
}

.preview-object__frame {
  width: min(100%, 510px);
  overflow: hidden;
  border: 1px solid var(--entry-line);
  border-radius: 50% 50% 17px 17px;
  background:
    radial-gradient(circle at 50% 34%, rgba(95, 146, 152, .26), transparent 39%),
    rgba(8, 19, 27, .86);
  box-shadow: 0 36px 100px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .03);
}

.preview-object svg { width: 100%; height: auto; display: block; }

.workflow-section {
  margin-top: clamp(72px, 10vw, 126px);
  padding-top: 44px;
  border-top: 1px solid var(--entry-line);
}

.workflow-section h2 {
  max-width: 650px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.workflow-steps {
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  counter-reset: none;
}

.workflow-steps li {
  min-width: 0;
  min-height: 150px;
  padding: 0 20px 20px;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--entry-line);
}

.workflow-steps li:first-child { padding-left: 0; border-left: 0; }
.workflow-steps span { color: var(--entry-copper); font: 700 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.workflow-steps strong { margin-top: 28px; color: var(--entry-ink); font-size: 15px; line-height: 1.25; }
.workflow-steps small { margin-top: 8px; color: var(--entry-faint); font-size: 12px; line-height: 1.5; }

@media (max-width: 860px) {
  .mode-grid { grid-template-columns: 1fr; }
  .mode-card__visual { min-height: 200px; }
  .preview-hero { grid-template-columns: 1fr; }
  .preview-object { order: -1; }
  .preview-object__frame { width: min(82vw, 460px); }
  .workflow-steps { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .workflow-steps li { min-height: 130px; padding-top: 20px; border-top: 1px solid var(--entry-line); }
  .workflow-steps li:first-child { padding-left: 20px; border-left: 1px solid var(--entry-line); }
}

@media (max-width: 600px) {
  .entry-header,
  .entry-main,
  .preview-main,
  .entry-footer { width: min(100% - 32px, 1240px); }
  .entry-header { min-height: 70px; }
  .entry-header__note { display: none; }
  .entry-hero { padding: 48px 0 56px; }
  .entry-hero h1,
  .preview-hero h1 { font-size: clamp(39px, 13vw, 56px); }
  .entry-intro { font-size: 16px; }
  .mode-grid { margin-top: 38px; gap: 16px; }
  .mode-card { border-radius: 16px; }
  .mode-card__visual { min-height: 0; }
  .mode-card__body { padding: 24px; }
  .mode-card h2 { font-size: 30px; }
  .entry-footer { align-items: flex-start; flex-direction: column; }
  .entry-footer nav { gap: 14px 18px; }
  .preview-main { padding-top: 44px; }
  .preview-hero { gap: 38px; }
  .preview-object__frame { width: 100%; }
  .preview-actions { align-items: stretch; flex-direction: column; }
  .preview-disabled,
  .preview-cad-link { width: 100%; }
  .workflow-section { margin-top: 72px; }
  .workflow-steps { grid-template-columns: 1fr; }
  .workflow-steps li,
  .workflow-steps li:first-child { min-height: auto; padding: 20px 0; border-left: 0; border-top: 1px solid var(--entry-line); }
  .workflow-steps strong { margin-top: 14px; }
}

@media (max-width: 360px) {
  .entry-header,
  .entry-main,
  .preview-main,
  .entry-footer { width: min(100% - 24px, 1240px); }
  .entry-brand { font-size: 15px; }
  .entry-back-link { font-size: 12px; }
  .entry-hero { padding-top: 32px; }
  .mode-grid { margin-top: 26px; }
  .mode-card__body { padding: 21px; }
  .mode-card h2 { font-size: 28px; }
  .mode-card p { font-size: 14px; }
}

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