:root {
  --bg: #f3e5d2;
  --bg-strong: #e2b98f;
  --surface: rgba(255, 248, 239, 0.78);
  --surface-strong: rgba(255, 250, 245, 0.92);
  --line: rgba(123, 77, 47, 0.18);
  --text: #3b2318;
  --muted: #6e4a35;
  --accent: #9f5d33;
  --accent-deep: #6d3416;
  --shadow: 0 24px 80px rgba(76, 38, 18, 0.14);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 244, 230, 0.95), transparent 30%),
    radial-gradient(circle at top right, rgba(229, 176, 125, 0.34), transparent 25%),
    linear-gradient(180deg, #efddc6 0%, #f8f0e5 48%, #ead2b1 100%);
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 91, 53, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 91, 53, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 88%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  margin-bottom: 16px;
  border-radius: 999px;
  color: var(--accent-deep);
  text-decoration: none;
  border: 1px solid rgba(115, 67, 36, 0.14);
  background: rgba(255, 251, 247, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero,
.section {
  position: relative;
  z-index: 1;
}

.language-switch {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 18px;
}

.lang-button {
  min-width: 52px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(115, 67, 36, 0.14);
  background: rgba(255, 251, 247, 0.9);
  color: var(--accent-deep);
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.lang-button:hover {
  transform: translateY(-1px);
}

.lang-button.is-active {
  background: linear-gradient(135deg, rgba(180, 112, 64, 0.95), rgba(115, 56, 24, 0.92));
  border-color: transparent;
  color: #fff7f0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  min-height: 48vh;
}

.hero-copy,
.hero-card,
.panel,
.feature-card,
.shot-card,
.closing-card,
.timeline-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-copy {
  padding: 30px 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(255, 251, 247, 0.92), rgba(247, 222, 197, 0.78)),
    radial-gradient(circle at bottom right, rgba(193, 128, 78, 0.24), transparent 38%),
    radial-gradient(circle at top left, rgba(255, 245, 232, 0.96), transparent 42%);
  overflow: hidden;
}

.eyebrow,
.hero-card-label {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent-deep);
  margin: 0 0 12px;
}

.hero h1 {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(4rem, 8vw, 7.4rem);
  line-height: 0.88;
  font-weight: 600;
}

.hero-summary {
  margin: 16px 0 0;
  max-width: 620px;
  font-size: clamp(1.12rem, 2vw, 1.45rem);
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.hero-actions a {
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 1rem;
  transition: transform 180ms ease, background-color 180ms ease;
}

.hero-actions a:hover {
  transform: translateY(-2px);
}

.primary-link {
  background: var(--accent);
  color: #fff6ef;
}

.secondary-link {
  border: 1px solid rgba(109, 52, 22, 0.16);
  color: var(--accent-deep);
  background: rgba(255, 251, 247, 0.72);
}

.hero-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.95), rgba(245, 220, 191, 0.82));
}

.stat-grid,
.feature-grid,
.gallery-grid {
  display: grid;
  gap: 16px;
}

.stat-grid {
  grid-template-columns: 1fr;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--surface-strong);
  border: 1px solid rgba(132, 83, 48, 0.14);
}

.stat-value {
  display: block;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 600;
}

.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.96rem;
  color: var(--muted);
}

.section {
  margin-top: 28px;
}

.intro-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.panel {
  padding: 28px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.panel h2,
.closing-card h2 {
  margin: 0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 600;
}

.panel p,
.feature-card p,
.closing-card p,
.timeline-item p,
.shot-card figcaption {
  margin: 12px 0 0;
  line-height: 1.75;
  color: var(--muted);
  font-size: 1rem;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  padding: 24px 22px;
}

.feature-card h3,
.timeline-item h3 {
  margin: 0;
  font-size: 1.2rem;
}

.architecture-layout {
  display: block;
}

.architecture-panel {
  padding: 28px 26px;
}

.architecture-lead {
  margin: 0;
  max-width: 700px;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.1;
  font-weight: 600;
  color: var(--text);
}

.architecture-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.architecture-flow-card,
.closing-meta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 18px;
  background: rgba(255, 252, 248, 0.92);
  border: 1px solid rgba(116, 66, 35, 0.14);
  color: var(--accent-deep);
  font-weight: 700;
}

.architecture-flow-arrow {
  color: rgba(109, 52, 22, 0.5);
  font-size: 1.4rem;
  font-weight: 700;
}

.architecture-caption {
  margin: 22px 0 0;
  max-width: 720px;
}

.flat-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}

.flat-list li + li {
  margin-top: 10px;
}

.flow-layout {
  display: block;
}

.flow-label,
.flow-screen-type {
  margin: 0;
  color: var(--accent-deep);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.flow-stage {
  padding: 24px;
}

.flow-nav-panel {
  width: 100%;
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(255, 251, 247, 0.74);
  border: 1px solid rgba(118, 70, 38, 0.12);
}

.flow-stage-top h3 {
  margin: 8px 0 0;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 600;
}

.flow-controls {
  display: flex;
  gap: 10px;
}

.flow-control,
.flow-action {
  border: 1px solid rgba(115, 67, 36, 0.14);
  background: rgba(255, 251, 247, 0.9);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 11px 16px;
  cursor: pointer;
  font: inherit;
  transition: transform 180ms ease, background-color 180ms ease;
}

.flow-control:hover,
.flow-action:hover {
  transform: translateY(-2px);
}

.flow-preview-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}

.flow-content-row {
  display: grid;
  grid-template-columns: minmax(280px, 370px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.phone-frame {
  width: min(100%, 370px);
  padding: 14px;
  border-radius: 32px;
  background: linear-gradient(180deg, #4d2a17, #24120a);
  box-shadow: 0 20px 60px rgba(40, 18, 8, 0.28);
}

.phone-screen {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: #f5ecdf;
}

.phone-screen-demo {
  min-height: 640px;
  padding: 0;
  background: #eadbc8;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 24px;
}

.flow-hotspots {
  position: absolute;
  inset: 0;
}

.flow-stage-figure {
  position: relative;
  margin: 0;
  aspect-ratio: 1440 / 3120;
  background: #f3e5d2;
}

.flow-stage-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.demo-screen {
  position: relative;
  min-height: 610px;
  border-radius: 20px;
  overflow: hidden;
  color: #5b3a28;
}

.demo-layer-image {
  position: absolute;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.demo-room-bg {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-room-rug-img {
  left: -5%;
  bottom: 3%;
  width: 108%;
  height: 17%;
  object-fit: contain;
}

.demo-room-cat-img {
  left: 4%;
  bottom: 16%;
  width: 20%;
  height: 20%;
  object-fit: contain;
}

.demo-room-table-img {
  right: 4%;
  bottom: 12%;
  width: 36%;
  height: 14%;
  object-fit: contain;
}

.demo-room-diary-img {
  right: 10%;
  bottom: 17.2%;
  width: 26%;
  height: 8%;
  object-fit: contain;
}

.demo-room-flowerpot-img {
  right: 3%;
  bottom: 25%;
  width: 5.5%;
  height: 6.5%;
  object-fit: contain;
}

.demo-room {
  background:
    linear-gradient(180deg, #f9efe3 0 58%, #e4b780 58% 72%, #d0a06a 72% 100%);
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 2;
  padding: 18px 16px 0;
}

.demo-brand {
  color: #a36c3e;
}

.demo-brand strong {
  display: block;
  font-size: 1.6rem;
}

.demo-brand span {
  display: block;
  margin-top: 4px;
  font-size: 0.84rem;
}

.demo-paw {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent center/contain no-repeat;
  box-shadow: 0 12px 28px rgba(88, 47, 22, 0.16);
  cursor: pointer;
}

.demo-object,
.demo-button,
.demo-menu-card,
.demo-chip,
.demo-icon-action,
.demo-card-action {
  border: 0;
  font: inherit;
  cursor: pointer;
}

.demo-object {
  appearance: none;
}

.demo-object:disabled,
.demo-button:disabled {
  cursor: default;
}

.demo-wall-calendar {
  position: absolute;
  top: 82px;
  left: 7.2%;
  width: 85.5%;
  height: 31.2%;
  padding: 12px 14px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ecd0a4, #f7ebd5);
  box-shadow: 0 12px 28px rgba(117, 68, 34, 0.16);
}

.demo-wall-calendar-paper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.demo-wall-calendar-board {
  position: absolute;
  left: 5.8%;
  right: 5.8%;
  top: 16.1%;
  height: 68.2%;
  width: 89%;
  object-fit: fill;
}

.demo-calendar-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a36c3e;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 16% 0 16%;
}

.demo-calendar-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-top: 10px;
}

.demo-calendar-cell {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: rgba(255, 248, 237, 0.42);
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  color: #8d5b23;
}

.demo-calendar-cell.is-today,
.demo-calendar-cell.is-marked {
  background: #f4d8ad;
  font-weight: 700;
}

.demo-rug {
  position: absolute;
  left: -8px;
  right: -8px;
  bottom: 42px;
  height: 124px;
  border-radius: 50% 50% 16px 16px;
  background: radial-gradient(circle at center, #c97f4f, #a15a33 70%);
  opacity: 0.92;
}

.demo-cat {
  position: absolute;
  left: 20px;
  bottom: 110px;
  width: 132px;
  height: 198px;
  display: grid;
  place-items: center;
  border-radius: 34px 34px 28px 28px;
  background: linear-gradient(180deg, #e4a568, #9c5f37);
  color: #fff4e8;
  font-size: 3rem;
  box-shadow: 0 18px 34px rgba(103, 53, 26, 0.26);
}

.demo-table {
  position: absolute;
  right: 18px;
  bottom: 96px;
  width: 206px;
  height: 114px;
  border-radius: 20px;
  background: linear-gradient(180deg, #7a4d33, #4d2d1e);
}

.demo-diary {
  position: absolute;
  right: 42px;
  bottom: 120px;
  width: 154px;
  height: 72px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f2d4a7, #dca868);
  color: #6d3416;
  box-shadow: 0 12px 20px rgba(73, 36, 18, 0.22);
}

.demo-menu-stack {
  position: absolute;
  top: 86px;
  right: 12px;
  width: 154px;
  display: grid;
  gap: 6px;
  z-index: 3;
}

.demo-menu-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f0ddbf, #d4b087);
  color: #8d5b23;
  box-shadow: 0 8px 16px rgba(95, 53, 28, 0.16);
}

.demo-menu-card img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}

.demo-menu-card span {
  font-size: 0.82rem;
}

.demo-paper-screen,
.demo-profile-screen,
.demo-auth-screen,
.demo-calendar-screen {
  background: linear-gradient(180deg, #fbf3e8, #f1dcc6);
}

.demo-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.demo-back {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent center/contain no-repeat;
  color: transparent;
  font-size: 0;
}

.demo-pill {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f6d8d6;
  color: #7a1f24;
}

.demo-book {
  margin: 14px auto 0;
  width: 84%;
  min-height: 372px;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, #f6e5c7, #ead1a4);
  box-shadow: 0 16px 34px rgba(121, 73, 39, 0.16);
}

.demo-date {
  text-align: center;
  color: #7a5540;
  font-size: 0.88rem;
  font-weight: 700;
}

.demo-title-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.demo-title-row h4 {
  margin: 0;
  font-size: 1.08rem;
  color: #8a6247;
}

.demo-body {
  margin-top: 14px;
  line-height: 1.68;
  font-size: 0.84rem;
  color: #6a4834;
  white-space: pre-line;
}

.demo-rec-card {
  margin-top: 14px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.72);
  border: 1px solid rgba(126, 74, 40, 0.12);
}

.demo-rec-card strong,
.demo-panel-card strong {
  display: block;
  font-size: 1rem;
  color: #6d3416;
}

.demo-rec-card p,
.demo-panel-card p,
.demo-body-note,
.demo-auth-copy p {
  margin: 8px 0 0;
  line-height: 1.65;
  color: #6e4a35;
}

.demo-bottom-nav {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.demo-icon-action {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f3d4a9, #d19456);
  color: #6d3416;
  box-shadow: 0 10px 22px rgba(87, 47, 22, 0.18);
}

.demo-question-card,
.demo-panel-card,
.demo-graph-card,
.demo-form-card {
  border-radius: 22px;
  background: rgba(255, 251, 246, 0.9);
  border: 1px solid rgba(126, 74, 40, 0.12);
  box-shadow: 0 14px 28px rgba(117, 68, 34, 0.08);
}

.demo-question-card {
  margin-top: 68px;
  padding: 18px;
}

.demo-question-card strong {
  display: block;
  font-size: 1.1rem;
}

.demo-answer-box {
  height: 104px;
  margin-top: 16px;
  border-radius: 18px;
  background: #f1e0ca;
  border: 1px dashed rgba(132, 83, 48, 0.34);
}

.demo-write-actions {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 10px;
}

.demo-button {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f3d4a9, #db9f61);
  color: #6d3416;
  box-shadow: 0 10px 18px rgba(104, 57, 29, 0.14);
}

.demo-panel-card {
  padding: 18px;
}

.demo-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(75, 41, 19, 0.28);
}

.demo-modal {
  width: 84%;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8ead8, #ecd1ab);
  padding: 18px 16px 16px;
  box-shadow: 0 18px 34px rgba(72, 35, 16, 0.2);
}

.demo-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(160, 102, 58, 0.14);
  color: #6d3416;
}

.demo-radar {
  width: 118px;
  height: 118px;
  margin: 14px auto;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(214, 139, 72, 0.45) 0 30%, transparent 31% 100%),
    conic-gradient(from 0deg, #d28a55, #f2c286, #b86c3d, #f2c286, #d28a55);
  display: grid;
  place-items: center;
  color: #fff8f1;
  font-weight: 700;
}

.demo-modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.demo-calendar-screen .demo-calendar-board {
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ecd0a4, #f6ead4);
  box-shadow: 0 16px 30px rgba(117, 68, 34, 0.12);
}

.demo-calendar-screen .demo-calendar-grid {
  gap: 7px;
}

.demo-date-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.demo-date-card {
  padding: 8px 12px;
  border-radius: 16px;
  background: #f1e0ca;
  color: #7a5540;
}

.demo-plus {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent center/contain no-repeat;
  color: transparent;
  font-size: 0;
}

.demo-schedule-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.demo-schedule-item {
  padding: 12px 14px;
  border-radius: 16px;
  background: center/100% 100% no-repeat;
  border: 0;
  text-align: left;
}

.demo-schedule-item strong {
  display: block;
}

.demo-footer-action {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.demo-profile-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 251, 246, 0.9);
  border: 1px solid rgba(126, 74, 40, 0.12);
  display: flex;
  gap: 14px;
  align-items: center;
}

.demo-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f3d4a9, #db9f61);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
}

.demo-settings {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent center/contain no-repeat;
  color: transparent;
  font-size: 0;
}

.demo-graph-card {
  margin-top: 12px;
  padding: 14px;
}

.demo-graph-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  align-items: end;
  height: 132px;
  margin-top: 12px;
}

.demo-graph-bars span {
  display: block;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, #df9f67, #a35c31);
}

.demo-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.demo-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1e0ca;
  color: #7a5540;
}

.demo-chip.is-active {
  background: #b56f41;
  color: #fff7ef;
}

.demo-form-card {
  padding: 16px;
  margin-top: 14px;
}

.demo-field + .demo-field {
  margin-top: 12px;
}

.demo-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: #7a5540;
}

.demo-input {
  min-height: 40px;
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(126, 74, 40, 0.14);
  background: #fffaf4;
  padding: 10px 12px;
  color: #5b3a28;
}

.demo-auth-copy {
  margin-top: 68px;
  text-align: center;
}

.demo-auth-copy h4 {
  margin: 0;
  font-size: 1.6rem;
  color: #a36c3e;
}

.demo-auth-actions {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.flow-hotspot {
  position: absolute;
  border: 0;
  border-radius: 999px;
  background: rgba(111, 60, 28, 0.18);
  box-shadow:
    inset 0 0 0 2px rgba(255, 246, 234, 0.88),
    0 0 0 2px rgba(103, 53, 26, 0.68),
    0 10px 24px rgba(57, 28, 12, 0.24);
  cursor: pointer;
  animation: hotspotPulse 1.8s ease-in-out infinite;
}

.flow-hotspot::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(61, 31, 16, 0.96);
  color: #fffaf4;
  white-space: nowrap;
  font-size: 0.8rem;
  line-height: 1;
  opacity: 0;
  transition: opacity 160ms ease;
  box-shadow: 0 10px 24px rgba(41, 18, 7, 0.24);
}

.flow-hotspot:hover,
.flow-hotspot:focus-visible {
  background: rgba(111, 60, 28, 0.3);
}

.flow-hotspot:hover::after,
.flow-hotspot:focus-visible::after {
  opacity: 1;
}

.flow-hotspot-circle {
  border-radius: 999px;
}

.flow-hotspot-pill {
  border-radius: 999px;
}

.flow-hotspot-rounded {
  border-radius: 22px;
}

.flow-hotspot-frame {
  border-radius: 24px;
  background: rgba(111, 60, 28, 0.08);
  box-shadow:
    inset 0 0 0 2px rgba(255, 244, 230, 0.95),
    0 0 0 2px rgba(103, 53, 26, 0.64),
    0 10px 24px rgba(57, 28, 12, 0.18);
}

.flow-hotspot-ghost {
  background: transparent;
  box-shadow: none;
  animation: none;
}

.flow-hotspot-ghost::after {
  opacity: 0;
  pointer-events: none;
}

.flow-interaction-hint {
  margin: 12px 0 0;
  color: var(--accent-deep);
  font-size: 0.95rem;
  line-height: 1.65;
}

@keyframes hotspotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      inset 0 0 0 2px rgba(255, 246, 234, 0.88),
      0 0 0 2px rgba(103, 53, 26, 0.68),
      0 10px 24px rgba(57, 28, 12, 0.24);
  }
  50% {
    transform: scale(1.04);
    box-shadow:
      inset 0 0 0 2px rgba(255, 250, 244, 0.96),
      0 0 0 3px rgba(103, 53, 26, 0.76),
      0 14px 30px rgba(57, 28, 12, 0.28);
  }
}

.flow-detail-card {
  width: 100%;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 251, 247, 0.76);
  border: 1px solid rgba(118, 70, 38, 0.12);
}

.flow-description {
  margin: 12px 0 0;
  line-height: 1.8;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.flow-title-sequence {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 0;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.flow-title-step,
.flow-title-separator {
  display: inline-flex;
  align-items: center;
}

.flow-title-step {
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(115, 67, 36, 0.14);
  background: rgba(255, 251, 247, 0.84);
  color: var(--accent-deep);
  font-size: 1rem;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
  flex: 0 0 auto;
}

.flow-title-step:hover:not(.is-current) {
  transform: translateY(-1px);
  background: rgba(255, 247, 240, 0.98);
}

.flow-title-step.is-current {
  background: linear-gradient(135deg, rgba(180, 112, 64, 0.95), rgba(115, 56, 24, 0.92));
  color: #fff7f0;
  border-color: transparent;
  cursor: default;
}

.flow-title-separator {
  color: rgba(115, 67, 36, 0.45);
  font-weight: 700;
}

.flow-points {
  margin-top: 18px;
}

.flow-points li {
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(242, 225, 207, 0.5);
}

.flow-points li + li {
  margin-top: 10px;
}

.flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.screen-explorer {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.screen-sidebar,
.screen-preview {
  padding: 22px;
}

.screen-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.screen-filter {
  border: 1px solid rgba(115, 67, 36, 0.14);
  background: rgba(255, 251, 247, 0.84);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  font: inherit;
}

.screen-filter.is-active {
  background: var(--accent);
  color: #fff7ef;
}

.screen-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  max-height: 860px;
  overflow: auto;
  padding-right: 6px;
}

.screen-item {
  width: 100%;
  border: 1px solid rgba(115, 67, 36, 0.12);
  background: rgba(255, 251, 247, 0.8);
  color: var(--text);
  border-radius: 18px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.screen-item.is-active {
  background: linear-gradient(135deg, rgba(180, 112, 64, 0.95), rgba(115, 56, 24, 0.92));
  color: #fff7f0;
  border-color: transparent;
}

.screen-item small {
  display: block;
  margin-top: 4px;
  color: inherit;
  opacity: 0.82;
}

.screen-preview-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.screen-preview-top h3 {
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 2.6vw, 2.6rem);
  font-family: "Georgia", "Times New Roman", serif;
  font-weight: 600;
}

.screen-preview-meta {
  margin: 0;
  color: var(--muted);
  text-transform: lowercase;
}

.screen-preview-body {
  display: grid;
  grid-template-columns: minmax(280px, 370px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 18px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 22px;
  align-items: start;
}

.timeline-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b56f41, #e3a56f);
  color: #fff7f0;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 1.6rem;
}

.stack-shell {
  border: 1px solid rgba(115, 67, 36, 0.12);
  border-radius: 28px;
  background: rgba(255, 248, 239, 0.78);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stack-group {
  background: transparent;
}

.stack-group + .stack-group {
  border-top: 1px solid rgba(115, 67, 36, 0.1);
}

.stack-group > summary,
.stack-reason > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent-deep);
}

.stack-group > summary::-webkit-details-marker,
.stack-reason > summary::-webkit-details-marker {
  display: none;
}

.stack-group[open] > summary {
  border-bottom: 1px solid rgba(115, 67, 36, 0.1);
  background: rgba(255, 251, 247, 0.72);
}

.stack-content {
  padding: 18px 22px 22px;
}

.stack-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-chip {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 252, 248, 0.92);
  border: 1px solid rgba(116, 66, 35, 0.14);
  color: var(--accent-deep);
  font-size: 0.95rem;
  font-family: inherit;
}

button.stack-chip {
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

button.stack-chip:hover {
  transform: translateY(-1px);
}

.stack-chip.is-highlight {
  background: rgba(231, 193, 157, 0.78);
  border-color: rgba(159, 93, 51, 0.28);
  color: var(--accent-deep);
  font-weight: 700;
}

.stack-chip.is-active {
  background: linear-gradient(135deg, rgba(180, 112, 64, 0.95), rgba(115, 56, 24, 0.92));
  border-color: transparent;
  color: #fff7f0;
}

.stack-reason-display {
  margin-top: 16px;
}

.stack-reason-panel {
  display: none;
  border: 1px solid rgba(115, 67, 36, 0.12);
  border-radius: 20px;
  background: rgba(255, 252, 248, 0.9);
  padding: 18px 22px 20px;
}

.stack-reason-panel.is-active {
  display: block;
}

.stack-reason-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.closing-card {
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 248, 239, 0.95), rgba(237, 207, 174, 0.88));
}

.closing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 1024px) {
  .hero,
  .intro-strip,
  .architecture-layout,
  .feature-grid,
  .flow-layout,
  .screen-explorer,
  .screen-preview-body {
    grid-template-columns: 1fr;
  }

  .flow-content-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 12px;
  }

  .hero-copy,
  .hero-card,
  .panel,
  .feature-card,
  .closing-card,
  .timeline-item {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: 3.7rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

}
