:root {
  --paper: #f5f4ed;
  --sheet: #fffdf6;
  --black: #111111;
  --ink: #17213a;
  --ink-blue: #1b365d;
  --muted: #666153;
  --line: #d8d0bf;
  --gold: #baa477;
  --gold-dark: #8c7545;
  --clay: #c96442;
  --soft-shadow: 0 28px 80px rgba(27, 54, 93, 0.12);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family:
    ui-serif,
    "Iowan Old Style",
    "Palatino Linotype",
    "Songti SC",
    "Noto Serif CJK SC",
    Georgia,
    serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 0;
  padding: 18px max(20px, calc((100vw - 1180px) / 2));
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "PingFang SC",
    sans-serif;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: lowercase;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.nav-links {
  gap: 18px;
  color: rgba(23, 33, 58, 0.72);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "PingFang SC",
    sans-serif;
  font-size: 0.82rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
  gap: clamp(30px, 4vw, 58px);
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: clamp(36px, 6vw, 58px) 0 clamp(22px, 4vw, 42px);
}

.hero-copy {
  max-width: 760px;
}

.section-kicker,
.section-heading > span,
.see-it-copy > span,
.product-index {
  display: inline-block;
  color: var(--ink-blue);
  font-family:
    ui-monospace,
    "SFMono-Regular",
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-copy h1 {
  display: flex;
  gap: 0.18em;
  width: max-content;
  max-width: none;
  margin: 18px 0 22px;
  color: var(--black);
  font-size: clamp(3.35rem, 7vw, 5.65rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: lowercase;
  white-space: nowrap;
}

.title-main {
  color: var(--black);
}

.title-accent {
  color: var(--ink-blue);
}

.hero-description {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.tag-row span {
  border: 1px solid var(--clay);
  border-radius: 12px;
  background: var(--clay);
  padding: 8px 12px;
  color: #ffffff;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "PingFang SC",
    sans-serif;
  font-size: 0.78rem;
  white-space: nowrap;
}

.hero-art {
  position: relative;
  margin: 0;
  align-self: stretch;
  min-height: 360px;
}

.hero-art-shell {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 360px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-art-shell::before {
  content: none;
}

.hero-art img {
  position: relative;
  width: min(78%, 420px);
  max-height: 86%;
  object-fit: contain;
}

.see-it-section {
  border-block: 1px solid var(--line);
  background: rgba(255, 253, 246, 0.44);
  scroll-margin-top: 70px;
}

.see-it-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 3vw, 34px);
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 34px) 0 clamp(48px, 7vw, 88px);
}

.see-it-copy h2 {
  max-width: 980px;
  margin: 18px 0 0;
  color: var(--black);
  font-size: 29.6px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.see-it-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.see-it-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(27, 54, 93, 0.12);
  border-radius: 8px;
  background: var(--sheet);
  box-shadow: var(--soft-shadow);
}

.see-it-grid img {
  width: 100%;
  aspect-ratio: 800 / 457;
  object-fit: cover;
}

.principles-block {
  margin-top: -12px;
  padding-top: 0;
}

.products-section,
.partners-section {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: clamp(76px, 10vw, 128px) 0;
}

.products-section {
  padding-top: clamp(24px, 3vw, 34px);
  scroll-margin-top: 72px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: clamp(20px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 7vw, 76px);
}

.section-heading h2 {
  max-width: 760px;
  margin: 12px 0 0;
  font-size: clamp(2.45rem, 5.6vw, 5.7rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.product-heading,
.partner-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: clamp(22px, 3vw, 34px);
}

.product-heading h2,
.partner-heading h2 {
  max-width: 980px;
  margin: 18px 0 0;
  color: var(--black);
  font-size: 29.6px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.product-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  border-top: 0;
  padding: clamp(34px, 6vw, 72px) 0;
}

.products-section > .product-row + .product-row::before {
  position: absolute;
  top: 0;
  right: clamp(22px, 8vw, 120px);
  left: clamp(22px, 8vw, 120px);
  height: 1px;
  background: rgba(216, 208, 191, 0.58);
  content: "";
}

.products-section > .product-row-featured {
  border-top: 0;
  padding-top: 0;
}

.product-row-reverse {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.08fr);
}

.product-row-reverse .product-visual {
  order: 2;
}

.product-row-reverse .product-copy {
  order: 1;
}

.product-visual {
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(27, 54, 93, 0.12);
  border-radius: 8px;
  background: var(--sheet);
  box-shadow: var(--soft-shadow);
}

.visual-chat {
  position: relative;
  padding: 20px;
  background:
    linear-gradient(135deg, rgba(27, 54, 93, 0.08), transparent 32%),
    #fdfbf3;
}

.visual-bar {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 34px;
  border-bottom: 1px solid var(--line);
}

.visual-bar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
}

.chat-lines {
  display: grid;
  gap: 14px;
  width: min(70%, 420px);
  margin-top: 44px;
}

.line {
  display: block;
  height: 16px;
  border-radius: 999px;
  background: rgba(27, 54, 93, 0.14);
}

.line.wide {
  width: 100%;
}

.line.medium {
  width: 78%;
}

.line.short {
  width: 48%;
}

.answer-panel {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 18%;
  border: 1px solid rgba(27, 54, 93, 0.14);
  border-radius: 8px;
  background: var(--ink-blue);
  padding: clamp(24px, 4vw, 42px);
  color: #fffdf6;
}

.answer-panel span,
.notebook-sheet span {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-family:
    ui-monospace,
    "SFMono-Regular",
    Menlo,
    monospace;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.answer-panel strong,
.notebook-sheet strong {
  display: block;
  max-width: 13ch;
  font-size: clamp(1.55rem, 3.2vw, 3rem);
  font-weight: 500;
  line-height: 0.98;
}

.answer-panel p {
  max-width: 360px;
  margin: 18px 0 0;
  color: rgba(255, 253, 246, 0.74);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "PingFang SC",
    sans-serif;
  font-size: 0.92rem;
}

.visual-lab {
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  background:
    radial-gradient(circle at 85% 18%, rgba(186, 164, 119, 0.28), transparent 34%),
    linear-gradient(145deg, #1b365d, #17213a);
}

.notebook-sheet {
  width: min(100%, 500px);
  min-height: 300px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(186, 164, 119, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(27, 54, 93, 0.08) 1px, transparent 1px),
    var(--sheet);
  background-size: 28px 28px;
  padding: clamp(26px, 4vw, 42px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
}

.notebook-sheet strong {
  max-width: 16ch;
  color: var(--ink);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 48px;
}

.note-grid i {
  aspect-ratio: 1;
  border: 1px solid rgba(27, 54, 93, 0.12);
  border-radius: 4px;
  background: rgba(186, 164, 119, 0.14);
}

.visual-luck {
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(186, 164, 119, 0.18), transparent 34%),
    var(--ink-blue);
}

.visual-luck .mini-visual {
  width: min(100%, 500px);
  height: 260px;
  margin: 0;
}

.product-copy h3,
.principles-list h3 {
  margin: 12px 0 14px;
  font-size: clamp(1.85rem, 3.2vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.product-copy h3 {
  font-size: 24.8px;
}

.product-index {
  color: var(--gold-dark);
  font-family:
    ui-monospace,
    "SFMono-Regular",
    Menlo,
    monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

.product-copy p,
.principles-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.product-copy ul {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  color: rgba(23, 33, 58, 0.78);
  list-style: none;
}

.product-copy li {
  position: relative;
  padding-left: 20px;
}

.product-copy li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  content: "";
}

.partners-section {
  width: 100%;
  margin: 0;
  border-top: 1px solid var(--line);
  padding: clamp(24px, 3vw, 34px) 0 clamp(76px, 10vw, 128px);
  scroll-margin-top: 72px;
}

.partner-heading,
.partners-grid {
  width: min(100% - 40px, 1180px);
  margin-right: auto;
  margin-left: auto;
}

.partners-grid {
  display: grid;
  gap: 14px;
}

.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-logo {
  position: relative;
  display: grid;
  flex: 0 0 112px;
  place-items: center;
  width: 112px;
  min-height: 52px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.partner-logo img {
  width: min(112px, calc(100% - 24px));
  height: 34px;
  object-fit: contain;
}

.mini-visual {
  position: relative;
  display: grid;
  place-items: center;
  height: 220px;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid rgba(27, 54, 93, 0.12);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(186, 164, 119, 0.16), transparent 34%),
    var(--sheet);
}

.mini-visual::before,
.mini-visual::after {
  position: absolute;
  border: 1px solid rgba(27, 54, 93, 0.12);
  content: "";
}

.mini-visual::before {
  inset: 28px 44px;
}

.mini-visual::after {
  inset: 58px 18px 42px 96px;
  background: rgba(27, 54, 93, 0.08);
}

.mini-visual img {
  position: relative;
  z-index: 1;
  width: 86px;
  opacity: 0.84;
}

.mini-visual span {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 42%;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
}

.mini-visual-dark {
  background:
    linear-gradient(135deg, rgba(186, 164, 119, 0.18), transparent 36%),
    var(--ink-blue);
}

.mini-visual-dark::before,
.mini-visual-dark::after {
  border-color: rgba(255, 253, 246, 0.18);
}

.mini-visual-dark::after {
  background: rgba(255, 253, 246, 0.08);
}

.principles-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.principles-list article {
  min-height: 0;
  padding: clamp(24px, 4vw, 42px) clamp(24px, 4vw, 42px) clamp(20px, 3vw, 30px);
  border-right: 1px solid var(--line);
}

.principles-list article:last-child {
  border-right: 0;
}

.principles-list span {
  color: var(--gold-dark);
  font-family:
    ui-monospace,
    "SFMono-Regular",
    Menlo,
    monospace;
  font-size: 0.78rem;
}

.principles-list h3 {
  max-width: 9ch;
  font-size: clamp(1.55rem, 2.45vw, 2.35rem);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 34px;
  color: rgba(23, 33, 58, 0.68);
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Text",
    "PingFang SC",
    sans-serif;
  font-size: 0.82rem;
}

.site-footer a {
  color: inherit;
  font-weight: inherit;
  font-style: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .hero-section,
  .section-heading,
  .product-row,
  .product-row-reverse,
  .see-it-inner,
  .principles-list {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-copy h1 {
    max-width: 10ch;
  }

  .hero-art {
    min-height: 420px;
  }

  .hero-art-shell {
    min-height: 420px;
    border-radius: 22px 22px 6px 22px;
  }

  .product-row-reverse .product-visual,
  .product-row-reverse .product-copy {
    order: initial;
  }

  .principles-list article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .principles-list article:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .hero-section,
  .see-it-inner,
  .products-section,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .partner-heading,
  .partners-grid {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero-copy h1 {
    gap: 0.14em;
    font-size: clamp(2.4rem, 10.6vw, 3.4rem);
  }

  .hero-section {
    padding-top: 24px;
    padding-bottom: 16px;
  }

  .tag-row span {
    white-space: normal;
  }

  .hero-art,
  .hero-art-shell {
    min-height: 200px;
  }

  .hero-art img {
    width: min(60%, 240px);
    max-width: 240px;
  }

  .see-it-inner {
    padding: 34px 0;
  }

  .see-it-grid {
    gap: 10px;
  }

  .section-heading h2 {
    font-size: clamp(2.25rem, 14vw, 4.4rem);
  }

  .product-visual {
    min-height: 350px;
  }

  .partners-grid {
    gap: 10px;
  }

  .partners-row {
    gap: 10px 18px;
  }

  .partner-logo {
    width: 112px;
    min-height: 46px;
  }

  .answer-panel {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
