@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;800&display=swap');

:root {
  --bg: #f4f4f2;
  --ink: #3f423f;
  --muted: #5f625e;
  --line: rgba(18, 18, 18, 0.14);
  --glass: rgba(255, 255, 255, 0.5);
  --glass-dark: rgba(18, 18, 18, 0.38);
  --accent: #f03a24;
  --cobalt: #1e49ff;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.16);
  font-family: Inter, 'Noto Sans SC', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.82), rgba(242,242,240,0.88) 44%, rgba(18,18,18,0.04) 44%),
    var(--bg);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 44px 50px 34px 186px;
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.62);
  background: var(--glass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52), 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(24px) saturate(1.15);
  -webkit-backdrop-filter: blur(24px) saturate(1.15);
}

.side-nav {
  position: fixed;
  z-index: 20;
  inset: 44px auto 44px 32px;
  width: 112px;
  border-radius: 8px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  padding: 28px 0;
}

.nav-mark {
  display: grid;
  justify-items: center;
  gap: 8px;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1;
  font-weight: 650;
}

.nav-mark img {
  width: 98px;
  height: auto;
  display: block;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.mark img {
  width: 116px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 36px;
  width: 100%;
}

.nav-links a,
.mobile-menu a {
  color: var(--ink);
  text-decoration: none;
  display: grid;
  gap: 8px;
  justify-items: center;
  font-size: 13px;
}

.nav-links span,
.mobile-menu span,
.accent,
.section-symbol {
  color: var(--accent);
}

.icon-button,
.round-action {
  width: 54px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.45);
  transition: transform 180ms ease, background 180ms ease;
}

.icon-button:hover,
.round-action:hover,
.text-link:hover,
.article-card:hover,
.product-row:hover {
  transform: translateY(-3px);
}

.mobile-top,
.mobile-menu {
  display: none;
}

.hero-section {
  min-height: 870px;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(560px, 1.1fr);
  gap: 22px;
  align-items: start;
}

.hero-copy {
  padding-top: 54px;
  min-width: 0;
}

.identity-line {
  margin: 0 0 154px;
  font-size: 18px;
  line-height: 1.35;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 520px;
  margin-bottom: 30px;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.06;
  font-weight: 500;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
}

.lead {
  max-width: 438px;
  font-size: 21px;
  line-height: 1.42;
  color: #20211f;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 92px;
}

.text-link,
.feature-card button,
.product-row button,
.product-actions a,
.detail-actions button,
.admin-actions button,
.drawer-content button,
.seed-row button {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 0 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero-visual {
  position: relative;
  min-height: 840px;
  margin-right: -50px;
  overflow: hidden;
  background: #111;
}

.hero-visual > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-glass {
  position: absolute;
  top: 48px;
  right: 92px;
  width: 390px;
  min-height: 96px;
  border-radius: 8px;
  padding: 31px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
  text-align: left;
}

.feature-card {
  position: absolute;
  right: 92px;
  bottom: 198px;
  width: 390px;
  min-height: 340px;
  border-radius: 8px;
  color: white;
  background: var(--glass-dark);
  padding: 34px;
}

.card-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.44);
}

.feature-card h2 {
  font-size: 38px;
  line-height: 1.08;
  font-weight: 400;
}

.feature-card p {
  max-width: 300px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78);
}

.feature-card button {
  color: white;
  border-bottom-color: rgba(255, 255, 255, 0.58);
  margin-top: 42px;
}

.slider {
  position: absolute;
  right: 92px;
  bottom: 116px;
  width: 390px;
  height: 64px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 26px;
  background: rgba(20, 20, 20, 0.42);
}

.slider button {
  border: 0;
  background: transparent;
  color: white;
  font-size: 22px;
}

.slider span {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.24);
}

.slider .active-bar {
  background: var(--accent);
}

.about-strip,
.article-detail,
.admin-section {
  border-radius: 8px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr auto;
  align-items: start;
  gap: 42px;
  padding: 34px 44px;
  margin: 28px 0 74px;
}

.about-strip {
  grid-template-columns: 0.85fr 1.15fr;
}

.about-strip h2,
.article-detail h2,
.product-copy h2,
.qa-copy h2,
.admin-section h2 {
  font-size: clamp(28px, 3.2vw, 48px);
  line-height: 1.08;
  font-weight: 450;
}

.about-strip p,
.article-detail p,
.product-copy > p,
.qa-copy p,
.admin-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
  max-width: 720px;
  white-space: pre-line;
  text-wrap: pretty;
  word-break: normal;
  overflow-wrap: anywhere;
}

.product-copy,
.qa-copy {
  min-width: 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 36px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 20px;
  font-weight: 500;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.article-card {
  overflow: hidden;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.38);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.article-card.selected {
  border-color: rgba(240, 58, 36, 0.7);
  box-shadow: var(--shadow);
}

.article-card img {
  width: 100%;
  aspect-ratio: 1.08;
  object-fit: cover;
}

.article-body {
  padding: 30px 32px 28px;
}

.article-meta,
.counter-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #333;
  font-size: 14px;
  margin-bottom: 28px;
}

.article-card h3 {
  min-height: 92px;
  font-size: clamp(28px, 2.4vw, 42px);
  line-height: 1.02;
  font-weight: 450;
}

.article-card p {
  min-height: 72px;
  line-height: 1.45;
  color: var(--muted);
}

.counter-row {
  align-items: center;
  margin: 30px 0 0;
}

.article-detail {
  grid-template-columns: 1fr auto;
  margin-top: 44px;
}

.detail-actions,
.admin-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.detail-actions span {
  white-space: nowrap;
  color: var(--muted);
}

.product-section,
.qa-section {
  display: grid;
  grid-template-columns: minmax(340px, 0.86fr) minmax(460px, 1.14fr);
  gap: 56px;
  margin: 96px 0;
  align-items: start;
}

.product-section {
  display: block;
}

.product-image {
  display: none;
}

.product-image img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: contain;
}

.product-list {
  display: grid;
  gap: 16px;
  margin-top: 42px;
}

.product-row {
  border-radius: 8px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  column-gap: 34px;
  align-items: center;
  transition: transform 180ms ease;
}

.product-row-image {
  display: block;
  grid-row: 1 / 6;
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  padding: 18px;
  min-height: 260px;
}

.product-row.selected-product {
  border-color: rgba(240, 58, 36, 0.72);
  background: rgba(255, 255, 255, 0.62);
}

.product-row span {
  color: var(--accent);
  font-size: 14px;
}

.product-row h3 {
  margin: 16px 0 12px;
  font-size: 28px;
  font-weight: 500;
}

.product-row p {
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-line;
  word-break: normal;
  overflow-wrap: anywhere;
}

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

.qa-section {
  grid-template-columns: 0.76fr 1.24fr;
}

.seed-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.seed-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.38);
}

.qa-console {
  border-radius: 8px;
  min-height: 520px;
  padding: 26px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: rgba(255, 255, 255, 0.56);
}

.console-head {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: end;
  padding: 24px 0;
}

.message {
  max-width: 78%;
  padding: 15px 17px;
  border-radius: 8px;
  line-height: 1.5;
  color: #1b1b1b;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.message span {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
}

.message p {
  margin: 0;
  white-space: pre-line;
}

.message.user {
  align-self: flex-end;
  color: white;
  background: rgba(10, 10, 10, 0.72);
}

.message.user span {
  color: rgba(255, 255, 255, 0.78);
}

.ask-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.ask-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.52);
  outline: 0;
}

.admin-section {
  grid-template-columns: 1fr auto;
  margin-bottom: 44px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 30px;
  color: var(--muted);
}

.footer a {
  color: var(--ink);
  text-decoration: none;
}

.drawer {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(4px);
}

.drawer-panel {
  position: relative;
  width: min(520px, calc(100vw - 24px));
  margin: 12px;
  border-radius: 8px;
  padding: 42px;
  background: rgba(247, 247, 245, 0.78);
  animation: slideIn 220ms ease-out;
}

.close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.drawer-content {
  display: grid;
  gap: 18px;
  padding-top: 28px;
}

.drawer-content h2 {
  font-size: 34px;
  line-height: 1.08;
  font-weight: 460;
}

.drawer-content p,
.drawer-content li,
.drawer-content label {
  color: var(--muted);
  line-height: 1.55;
}

.share-url {
  display: grid;
  gap: 8px;
}

.share-url input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
}

.drawer-content ul {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.search-results {
  display: grid;
  gap: 10px;
}

.search-results button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  display: grid;
  gap: 6px;
  text-align: left;
}

.search-results span {
  color: var(--accent);
  font-size: 13px;
}

.search-results strong {
  font-size: 17px;
  font-weight: 550;
}

.drawer-content li,
.drawer-content label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.share-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.52);
}

.share-card img {
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
}

.share-card div {
  padding: 20px;
}

.share-card span {
  color: var(--accent);
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.48);
}

.comment-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.comment-list span {
  color: var(--accent);
}

@keyframes slideIn {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .search-glass,
  .about-strip,
  .qa-console {
    animation: floatIn 700ms ease both;
  }

  .feature-card.feature-motion-next {
    animation: featureSlideNext 360ms ease both;
  }

  .feature-card.feature-motion-prev {
    animation: featureSlidePrev 360ms ease both;
  }

  .article-card img {
    transition: transform 500ms ease;
  }

  .article-card:hover img {
    transform: scale(1.04);
  }
}

@keyframes featureSlideNext {
  from {
    opacity: 0.6;
    transform: translateX(22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes featureSlidePrev {
  from {
    opacity: 0.6;
    transform: translateX(-22px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .site-shell {
    padding: 24px;
  }

  .side-nav {
    display: none;
  }

  .mobile-top {
    position: sticky;
    top: 12px;
    z-index: 25;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .mark {
    font-size: 18px;
    font-weight: 650;
  }

  .mobile-menu {
    position: fixed;
    z-index: 60;
    inset: 12px;
    border-radius: 8px;
    padding: 84px 30px 30px;
    display: grid;
    align-content: start;
    gap: 24px;
    background: rgba(250, 250, 248, 0.88);
  }

  .mobile-menu a {
    justify-items: start;
    grid-template-columns: 40px 1fr;
    align-items: center;
    font-size: 22px;
  }

  .hero-section,
  .product-section,
  .qa-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  .identity-line {
    margin-bottom: 40px;
  }

  .hero-actions {
    margin-top: 36px;
  }

  .hero-visual {
    min-height: 680px;
    margin-right: 0;
    border-radius: 8px;
  }

  .search-glass,
  .feature-card,
  .slider {
    left: 24px;
    right: 24px;
    width: auto;
  }

  .feature-card {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    min-height: 0;
    margin: 104px 24px 18px;
    z-index: 2;
  }

  .slider {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    margin: 0 24px 24px;
    z-index: 2;
  }

  .about-strip,
  .article-detail,
  .admin-section {
    grid-template-columns: 1fr;
  }

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

  .product-image {
    display: none;
  }

  .product-row {
    padding: 16px;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: start;
  }

  .product-row-image {
    display: block;
    grid-row: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    padding: 12px;
    min-height: 0;
    margin-bottom: 18px;
  }
}

@media (max-width: 620px) {
  .site-shell {
    padding: 16px;
    width: 100%;
    overflow-x: hidden;
  }

  h1 {
    max-width: 340px;
    font-size: clamp(34px, 10vw, 42px);
    line-height: 1.1;
    word-break: normal;
    overflow-wrap: normal;
  }

  .lead,
  .about-strip p,
  .article-detail p,
  .product-copy > p,
  .qa-copy p,
  .admin-section p {
    font-size: 16px;
    line-height: 1.72;
    max-width: none;
    width: 100%;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  .hero-visual {
    min-height: 560px;
  }

  .search-glass {
    top: 24px;
    min-height: 74px;
    padding: 22px 18px;
    font-size: 14px;
  }

  .feature-card {
    bottom: auto;
    margin-top: 128px;
    min-height: 284px;
    padding: 24px;
  }

  .feature-card h2 {
    font-size: 30px;
  }

  .slider {
    bottom: auto;
  }

  .about-strip,
  .article-detail,
  .admin-section {
    padding: 24px;
    gap: 18px;
    margin-bottom: 46px;
  }

  .product-copy h2,
  .qa-copy h2 {
    margin-bottom: 16px;
  }

  .section-heading {
    align-items: flex-start;
    gap: 18px;
  }

  .article-body {
    padding: 24px;
  }

  .article-card h3 {
    min-height: auto;
  }

  .product-section,
  .qa-section {
    margin: 62px 0;
    gap: 28px;
  }

  .message {
    max-width: 92%;
  }

  .detail-actions,
  .admin-actions,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .drawer-panel {
    padding: 30px 22px;
  }
}
