.feature-page {
  --feature-accent: #1d4ed8;
  --feature-accent-deep: #163fae;
  --feature-soft: #dbe8ff;
}

.feature-page-decoration {
  --feature-accent: #d65a3a;
  --feature-accent-deep: #9f351f;
  --feature-soft: #ffe1d8;
}

.feature-page .site-header {
  margin-bottom: 22px;
}

.feature-page .brand-mark {
  background: linear-gradient(180deg, color-mix(in srgb, var(--feature-accent) 72%, white), var(--feature-accent));
}

.feature-page .eyebrow,
.feature-page .feature-link,
.feature-page .feature-check svg {
  color: var(--feature-accent-deep);
}

.feature-hero {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(480px, 1.12fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
  min-height: 660px;
  padding: 58px 0 74px;
}

.feature-hero-copy h1 {
  max-width: 10.5ch;
  margin-bottom: 22px;
  font-size: clamp(3.5rem, 6.2vw, 6rem);
  line-height: .93;
  letter-spacing: -.045em;
}

.feature-hero-copy .hero-text {
  max-width: 610px;
  margin-inline: 0;
  color: #576176;
  font-size: 1.13rem;
}

.feature-hero-copy .hero-actions {
  justify-content: flex-start;
}

.feature-page .button-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--feature-accent) 72%, white), var(--feature-accent));
  box-shadow: 0 12px 28px color-mix(in srgb, var(--feature-accent) 25%, transparent);
}

.feature-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
}

.feature-note::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--feature-accent);
  box-shadow: 0 0 0 5px var(--feature-soft);
  content: "";
}

.feature-visual {
  position: relative;
  min-width: 0;
}

.feature-visual::before {
  position: absolute;
  z-index: -1;
  inset: -12% -8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--feature-accent) 22%, transparent), transparent 67%);
  content: "";
  filter: blur(10px);
}

.product-window {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--feature-accent) 16%, var(--line));
  border-radius: 22px;
  background: #f8faff;
  box-shadow: 0 32px 80px rgba(23, 37, 69, .2);
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid #dce2ed;
  background: rgba(255, 255, 255, .94);
}

.window-bar > i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ccd3df;
}

.window-mode {
  display: flex;
  gap: 3px;
  margin-left: auto;
  padding: 4px;
  border-radius: 9px;
  background: #edf1f8;
  font-size: .7rem;
  font-style: normal;
  font-weight: 900;
}

.window-mode span {
  padding: 5px 10px;
  border-radius: 6px;
  color: #7a8498;
}

.window-mode .is-active {
  color: var(--feature-accent-deep);
  background: white;
  box-shadow: 0 2px 7px rgba(25, 38, 68, .1);
}

.design-canvas {
  position: relative;
  height: 500px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(232, 238, 249, .42), transparent 55%),
    #f7f9fd;
}

.scene-render {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-render-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.scene-screenshot {
  aspect-ratio: 1868 / 1644;
  overflow: hidden;
  background: #f4f6fa;
}

.scene-screenshot .scene-render {
  object-fit: contain;
}

.design-canvas .scene-render {
  object-fit: contain;
  object-position: center;
}

.design-stage {
  position: absolute;
  top: 94px;
  left: 50%;
  width: 430px;
  height: 295px;
  transform: translateX(-48%) rotateX(58deg) rotateZ(-35deg);
  transform-style: preserve-3d;
}

.room-floor {
  position: absolute;
  inset: 0;
  border: 6px solid #aeb8c9;
  background:
    linear-gradient(90deg, transparent 49.5%, #b5bfce 49.5%, #b5bfce 51%, transparent 51%),
    linear-gradient(transparent 56%, #b5bfce 56%, #b5bfce 58%, transparent 58%),
    linear-gradient(135deg, #d9c6a4, #bda77e);
  box-shadow: 28px 34px 48px rgba(27, 40, 66, .17);
}

.room-floor::before,
.room-floor::after {
  position: absolute;
  z-index: 2;
  background: #eef2f7;
  box-shadow: inset -8px -4px 10px rgba(69, 83, 107, .08), 4px 6px 11px rgba(32, 45, 70, .12);
  content: "";
  transform-origin: bottom;
  transform: rotateX(-90deg);
}

.room-floor::before {
  right: -6px;
  bottom: -6px;
  width: 100%;
  height: 95px;
}

.room-floor::after {
  top: -6px;
  right: -6px;
  width: 100%;
  height: 88px;
}

.dimension-chip,
.view-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid #dce2ed;
  border-radius: 10px;
  background: rgba(255, 255, 255, .92);
  color: #4f5b70;
  box-shadow: 0 8px 20px rgba(23, 37, 69, .12);
  font-size: .72rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.dimension-chip { right: 24px; top: 78px; }
.view-chip { left: 22px; bottom: 22px; }

.dimension-chip b,
.view-chip b { color: var(--feature-accent-deep); }

.decor-canvas {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  height: 500px;
  background: #f5f4f1;
}

.decor-panel {
  position: relative;
  z-index: 2;
  padding: 18px 14px;
  border-right: 1px solid #e1ded7;
  background: rgba(255, 255, 255, .94);
}

.decor-panel strong { font-size: .83rem; }

.decor-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 14px 0 18px;
  padding: 3px;
  border-radius: 8px;
  background: #f0eee9;
}

.decor-tabs span {
  padding: 6px 2px;
  border-radius: 6px;
  color: #878177;
  font-size: .55rem;
  font-weight: 900;
  text-align: center;
}

.decor-tabs .is-active { color: var(--feature-accent-deep); background: #fff; }

.catalog-label {
  margin: 0 0 9px;
  color: #8b857a;
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

.catalog-item {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid #e7e2da;
  border-radius: 9px;
  background: #faf9f7;
  color: #6f675d;
  font-size: 1.45rem;
}

.catalog-item.is-active {
  border-color: color-mix(in srgb, var(--feature-accent) 55%, #e7e2da);
  background: var(--feature-soft);
}

.decor-room {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #f6efe7 0 48%, #d9b98b 48.3% 100%);
}

.decor-room::before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 46%;
  background: #eee2d5;
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  content: "";
}

.decor-room-scene::before {
  display: none;
}

.decor-room-scene .scene-render {
  position: absolute;
  inset: 0;
  object-position: 66% center;
}

.decor-window {
  position: absolute;
  top: 68px;
  left: 44px;
  width: 128px;
  height: 145px;
  border: 9px solid white;
  background: linear-gradient(150deg, #bcd5e8, #ecf2ef);
  box-shadow: 0 9px 24px rgba(75, 62, 46, .12);
}

.decor-window::before,
.decor-window::after {
  position: absolute;
  background: white;
  content: "";
}
.decor-window::before { inset: 0 auto 0 50%; width: 5px; }
.decor-window::after { inset: 50% 0 auto; height: 5px; }

.decor-sofa {
  position: absolute;
  z-index: 2;
  right: 54px;
  bottom: 82px;
  width: 230px;
  height: 82px;
  border-radius: 20px 20px 11px 11px;
  background: #9a6b55;
  box-shadow: 0 20px 24px rgba(77, 52, 38, .23);
}

.decor-sofa::before {
  position: absolute;
  inset: -64px 10px 46px;
  border-radius: 24px 24px 5px 5px;
  background: linear-gradient(90deg, #b27d64 49%, #9e6e58 49% 51%, #b27d64 51%);
  content: "";
}

.decor-rug {
  position: absolute;
  z-index: 1;
  right: 30px;
  bottom: 22px;
  width: 305px;
  height: 108px;
  background: repeating-linear-gradient(90deg, #eee3d1 0 8px, #e3d2b9 8px 10px);
  clip-path: polygon(12% 0, 100% 18%, 78% 100%, 0 73%);
}

.decor-table {
  position: absolute;
  z-index: 3;
  right: 70px;
  bottom: 34px;
  width: 95px;
  height: 38px;
  border-radius: 50%;
  background: #604d3e;
  box-shadow: 0 20px 0 -13px #4d3e32;
}

.decor-plant {
  position: absolute;
  z-index: 3;
  left: 30px;
  bottom: 52px;
  width: 48px;
  height: 58px;
  border-radius: 8px 8px 18px 18px;
  background: #b57550;
}

.decor-plant::before {
  position: absolute;
  left: -19px;
  bottom: 42px;
  width: 83px;
  height: 112px;
  border-radius: 60% 35% 58% 42%;
  background: radial-gradient(ellipse at 50% 100%, #64785a, #3f5a43 65%, transparent 67%);
  content: "";
}

.decor-painting {
  position: absolute;
  z-index: 2;
  top: 78px;
  right: 66px;
  width: 118px;
  height: 86px;
  border: 7px solid #5d4939;
  background: linear-gradient(145deg, #d99767 0 35%, #7f9875 35% 66%, #ead8b9 66%);
  box-shadow: 0 9px 24px rgba(75, 62, 46, .13);
}

.floating-swatch {
  position: absolute;
  z-index: 4;
  right: 18px;
  top: 20px;
  display: flex;
  gap: 6px;
  padding: 8px;
  border: 1px solid #dfdbd3;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 8px 22px rgba(63, 48, 33, .12);
}

.floating-swatch i { width: 16px; height: 16px; border-radius: 50%; }
.floating-swatch i:nth-child(1) { background: #b27d64; }
.floating-swatch i:nth-child(2) { background: #6d8f73; }
.floating-swatch i:nth-child(3) { background: #607d8b; }
.floating-swatch i:nth-child(4) { background: #d8b08c; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--feature-accent); }

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 0 70px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.proof-row div { padding: 22px 24px; background: rgba(255,255,255,.88); }
.proof-row strong { display: block; margin-bottom: 5px; font-size: 1rem; }
.proof-row span { color: var(--muted); font-size: .85rem; line-height: 1.5; }

.feature-section { padding: 90px 0; }
.feature-section + .feature-section { border-top: 1px solid var(--line); }

.center-heading { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.center-heading h2 { max-width: 18ch; margin-inline: auto; }
.center-heading p { max-width: 650px; margin: 0 auto; color: var(--muted); line-height: 1.7; }

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

.feature-card {
  min-height: 260px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  border-radius: 13px;
  color: var(--feature-accent-deep);
  background: var(--feature-soft);
  font-size: 1.2rem;
  font-weight: 900;
}

.feature-card h3 { font-size: 1.25rem; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  counter-reset: workflow;
}

.workflow article { position: relative; counter-increment: workflow; }
.workflow article::before {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: white;
  background: var(--feature-accent);
  content: counter(workflow, decimal-leading-zero);
  font-size: .75rem;
  font-weight: 900;
}
.workflow article:not(:last-child)::after {
  position: absolute;
  top: 20px;
  left: 54px;
  width: calc(100% - 38px);
  height: 1px;
  background: linear-gradient(90deg, var(--feature-accent), transparent);
  content: "";
}
.workflow h3 { font-size: 1.2rem; }
.workflow p { color: var(--muted); line-height: 1.65; }

.feature-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  margin: 70px 0 22px;
  padding: 48px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 30%, color-mix(in srgb, var(--feature-accent) 65%, white), transparent 30%),
    #111a2c;
  box-shadow: 0 24px 60px rgba(17, 26, 44, .22);
}

.feature-cta h2 { max-width: 15ch; margin: 0 0 10px; font-size: clamp(2rem, 4vw, 3.4rem); }
.feature-cta p { max-width: 590px; margin: 0; color: rgba(255,255,255,.7); line-height: 1.7; }
.feature-cta .button { background: #fff; color: #182239; box-shadow: 0 12px 30px rgba(0,0,0,.15); }

.feature-page .site-footer { margin-top: 54px; }

@media (max-width: 900px) {
  .feature-hero { grid-template-columns: 1fr; min-height: auto; padding-top: 52px; }
  .feature-hero-copy { text-align: center; }
  .feature-hero-copy h1, .feature-hero-copy .hero-text { margin-inline: auto; }
  .feature-hero-copy .hero-actions { justify-content: center; }
  .feature-note { justify-content: center; }
  .feature-visual { max-width: 700px; width: 100%; margin: 0 auto; }
  .product-window { transform: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .feature-cta { grid-template-columns: 1fr; text-align: center; }
  .feature-cta h2, .feature-cta p { margin-inline: auto; }
}

@media (max-width: 640px) {
  .feature-page .site-header { position: relative; top: 0; }
  .feature-page .header-actions .header-link:first-child { display: none; }
  .feature-hero { gap: 38px; padding: 30px 0 48px; }
  .feature-hero-copy h1 { font-size: clamp(2.75rem, 15vw, 4rem); }
  .feature-page-design .product-window,
  .feature-page-decoration .product-window { width: min(100%, 360px); margin-inline: auto; }
  .scene-screenshot { aspect-ratio: 658 / 1000; }
  .scene-screenshot .scene-render {
    object-fit: cover;
    object-position: top center;
  }
  .design-canvas, .decor-canvas { height: 350px; }
  .design-canvas .scene-render { object-fit: cover; object-position: center; }
  .design-stage { top: 82px; width: 300px; height: 205px; }
  .feature-page-decoration .window-bar,
  .feature-page-decoration .decor-panel,
  .feature-page-decoration .floating-swatch { display: none; }
  .feature-page-decoration .decor-canvas {
    display: block;
    height: auto;
    aspect-ratio: 658 / 1000;
  }
  .feature-page-decoration .decor-room { width: 100%; height: 100%; }
  .feature-page-decoration .decor-room-scene .scene-render {
    object-fit: cover;
    object-position: top center;
  }
  .decor-tabs { grid-template-columns: 1fr; }
  .decor-tabs span { padding: 5px; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-item:nth-child(n+4) { display: none; }
  .decor-window { top: 52px; left: 20px; width: 88px; height: 104px; }
  .decor-sofa { right: 20px; bottom: 60px; width: 155px; height: 55px; }
  .decor-sofa::before { inset: -44px 7px 31px; }
  .decor-rug { right: 6px; width: 210px; height: 80px; }
  .decor-table { right: 32px; width: 70px; }
  .decor-plant { left: 13px; transform: scale(.75); }
  .decor-painting { display: none; }
  .proof-row, .workflow { grid-template-columns: 1fr; }
  .workflow { gap: 24px; }
  .workflow article:not(:last-child)::after { top: 49px; left: 20px; width: 1px; height: 32px; }
  .feature-section { padding: 62px 0; }
  .feature-cta { padding: 34px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .product-window { transform: none; }
}
