:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #111113;
  --muted: #6a6a72;
  --panel: #f5f5f7;
  --line: #e8e8ec;
  --accent: #8b6ce6;
  --accent-2: #c58bd4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.landing-page {
  min-height: 100dvh;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #f7f8fb 100%);
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  min-height: 64px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.landing-header a {
  color: var(--ink);
}

.landing-header nav {
  display: flex;
  gap: 28px;
}

.landing-page main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: calc(100dvh - 64px);
}

.site-header,
.hero-banner,
.site-footer,
.page-hero,
.policy-grid,
.support-layout {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-cta,
.button.primary {
  color: #ffffff;
  background: var(--ink);
}

.nav-cta {
  min-width: 104px;
}

.button {
  padding: 0 24px;
}

.hero-banner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 24px;
  min-height: 0;
  padding: 16px 0;
}

.hero-copy {
  display: grid;
  align-self: center;
  justify-items: center;
  max-width: 760px;
  text-align: center;
}

.hero-mark {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 760;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(58px, 7.6vw, 116px);
  line-height: 0.94;
  font-weight: 780;
}

.landing-page h1 {
  max-width: 760px;
  font-size: clamp(56px, 6.2vw, 88px);
}

.hero-copy p {
  max-width: 610px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.28;
  font-weight: 400;
}

.hero-copy .button {
  margin-top: 24px;
}

.app-store-badge {
  display: inline-flex;
  margin-top: 24px;
}

.app-store-badge img {
  width: 196px;
  height: auto;
}

.shelf-demo {
  position: relative;
  width: 100%;
  min-height: 366px;
  overflow: hidden;
  border-top: 1px solid rgba(211, 214, 224, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 247, 251, 0.98)),
    #f7f7fa;
  box-shadow: 0 -26px 70px rgba(43, 48, 66, 0.1);
  isolation: isolate;
}

.shelf-glass {
  position: relative;
  z-index: 1;
  width: calc(100% - 56px);
  min-height: inherit;
  margin: 0 auto;
  padding: 12px 0;
}

.shelf-demo-toolbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

.shelf-search,
.shelf-tabs button,
.shelf-actions span {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(218, 220, 228, 0.95);
  box-shadow: 0 1px 2px rgba(35, 39, 52, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.shelf-search {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  width: clamp(260px, 22vw, 380px);
  height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  color: #7a7a84;
  font-size: 14px;
  font-weight: 650;
}

.shelf-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #4f515c;
  background: transparent;
  font: inherit;
}

.shelf-search input::placeholder {
  color: #7a7a84;
  opacity: 1;
}

.shelf-search svg,
.shelf-card-head svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.shelf-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  max-width: calc(100% - 760px);
  overflow: hidden;
}

.shelf-tabs button {
  --folder-color: #9da0aa;
  --folder-active-bg: rgba(157, 160, 170, 0.12);
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  color: #666873;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  font-family: inherit;
  white-space: nowrap;
}

.shelf-tabs button.active {
  color: var(--folder-color);
  background: var(--folder-active-bg);
  border-color: var(--folder-color);
}

.shelf-tabs i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a9aab1;
}

.shelf-tabs button:nth-child(2) { --folder-color: #ff5b5b; --folder-active-bg: rgba(255, 91, 91, 0.12); }
.shelf-tabs button:nth-child(3) { --folder-color: #d9a62b; --folder-active-bg: rgba(217, 166, 43, 0.16); }
.shelf-tabs button:nth-child(4) { --folder-color: #39b768; --folder-active-bg: rgba(57, 183, 104, 0.13); }
.shelf-tabs button:nth-child(5) { --folder-color: #e58a3f; --folder-active-bg: rgba(229, 138, 63, 0.14); }
.shelf-tabs button:nth-child(6) { --folder-color: #b544dc; --folder-active-bg: rgba(181, 68, 220, 0.14); }

.shelf-tabs button i {
  background: var(--folder-color);
}

.shelf-actions {
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shelf-actions span {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #565965;
}

.shelf-actions svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.shelf-actions span:nth-child(2) svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.4;
}

.shelf-actions span:nth-child(3) svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.9;
}

.shelf-actions span:nth-child(4) svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}

.cloud-action i {
  position: absolute;
  top: -4px;
  right: -2px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #34c759;
}

.cloud-action i svg {
  width: 11px;
  height: 11px;
  stroke: #ffffff;
  stroke-width: 4;
}

.shelf-cards {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 14px;
  margin-top: 12px;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.shelf-cards::-webkit-scrollbar {
  display: none;
}

.shelf-card {
  flex: 0 0 292px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(216, 219, 228, 0.96);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(48, 52, 68, 0.06);
  scroll-snap-align: start;
}

.shelf-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 15px;
  color: #fff;
  background: #f1514d;
}

.note-card .shelf-card-head { background: #d9a62b; }
.image-card .shelf-card-head { background: #39b768; }
.file-card .shelf-card-head { background: #e58a3f; }
.code-card .shelf-card-head { background: #b544dc; }

.shelf-card-head strong,
.shelf-card-head small,
.shelf-card-foot strong,
.shelf-card-foot span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shelf-card-head strong {
  max-width: 180px;
  font-size: 15px;
  line-height: 1.05;
}

.shelf-card-head small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.shelf-card > img,
.shelf-card-preview {
  width: 100%;
  height: 180px;
}

.shelf-card > img {
  object-fit: cover;
  background: #eee;
}

.shelf-card-preview {
  display: grid;
  align-content: center;
  padding: 14px;
}

.note-preview {
  background: #fff8de;
}

.note-preview strong {
  color: #2d2e35;
  font-size: 18px;
  line-height: 1.05;
}

.note-preview p {
  max-width: none;
  margin-top: 8px;
  color: #68614b;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 650;
}

.file-preview {
  justify-items: center;
  gap: 8px;
  background: #fff3ea;
  text-align: center;
}

.file-preview b {
  display: grid;
  place-items: center;
  width: 46px;
  height: 54px;
  border: 1px solid rgba(229, 138, 63, 0.36);
  border-radius: 8px;
  color: #c36b24;
  background: #ffffff;
  font-size: 15px;
  line-height: 1;
}

.file-preview span {
  max-width: 210px;
  overflow: hidden;
  color: #6c5b50;
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-preview {
  align-content: center;
  background: #201f28;
}

.code-preview code {
  color: #f2eaff;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
}

.shelf-card-foot {
  padding: 9px 14px 10px;
  background: #ffffff;
  text-align: center;
}

.shelf-card-foot strong {
  color: #2d2e35;
  font-size: 16px;
  line-height: 1.1;
}

.shelf-card-foot span {
  margin-top: 7px;
  color: #7a7b84;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 700;
}

.shelf-empty {
  display: grid;
  place-items: center;
  flex: 0 0 292px;
  min-height: 292px;
  border: 1px dashed rgba(190, 194, 207, 0.9);
  border-radius: 14px;
  color: #747783;
  background: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.landing-footer {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
}

.site-footer div {
  display: flex;
  gap: 24px;
}

.site-footer span a {
  color: var(--ink);
}

.page-main {
  padding-bottom: 80px;
}

.privacy-page {
  padding-bottom: 88px;
}

.privacy-hero,
.privacy-summary,
.policy-document {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.privacy-hero {
  padding: 78px 0 38px;
  border-top: 1px solid var(--line);
}

.page-kicker {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.privacy-hero h1 {
  max-width: 760px;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.98;
  font-weight: 780;
}

.privacy-hero > p:not(.page-kicker) {
  max-width: 760px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.42;
  font-weight: 500;
}

.privacy-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 18px 0 54px;
}

.privacy-summary article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.privacy-summary strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.privacy-summary p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.policy-document {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.policy-index {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 54px;
}

.policy-index a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
}

.policy-index a:hover,
.policy-index a:focus-visible {
  color: var(--ink);
}

.policy-content {
  display: grid;
  gap: 0;
  max-width: 860px;
}

.policy-content section {
  scroll-margin-top: 28px;
  padding: 46px 0;
  border-top: 1px solid var(--line);
}

.policy-content section:first-child {
  padding-top: 0;
  border-top: 0;
}

.policy-content h2 {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  font-weight: 760;
}

.policy-content p,
.policy-content li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
}

.policy-content p {
  max-width: 780px;
  margin-top: 16px;
}

.policy-content ul {
  display: grid;
  gap: 10px;
  max-width: 780px;
  margin: 18px 0 0;
  padding-left: 22px;
}

.policy-content .button {
  margin-top: 22px;
}

.data-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.data-list article {
  display: grid;
  grid-template-columns: 0.9fr 1fr 0.95fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.data-list strong {
  font-size: 16px;
  line-height: 1.3;
}

.data-list p,
.data-list span {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.42;
}

.data-list span {
  color: #4f4f57;
  font-weight: 650;
}

.page-hero {
  display: grid;
  justify-items: start;
  padding: 90px 0 56px;
}

.page-hero img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 28px;
}

.support-hero-icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: var(--panel);
}

.support-hero-icon svg {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.page-hero h1 {
  font-size: clamp(42px, 5vw, 74px);
  line-height: 1;
  font-weight: 760;
}

.page-hero p {
  max-width: 780px;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.35;
}

.policy-grid,
.support-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.policy-card,
.support-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.policy-card h2,
.support-card h2 {
  font-size: 24px;
  line-height: 1.1;
}

.policy-card p,
.support-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.support-card.main-support {
  grid-column: span 2;
}

.support-card .button {
  margin-top: 22px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@media (max-width: 1180px) {
  .shelf-demo {
    min-height: 366px;
  }

  .shelf-demo-toolbar {
    display: grid;
    grid-template-columns: clamp(180px, 24vw, 260px) minmax(0, 1fr) auto;
    gap: 12px;
  }

  .shelf-search,
  .shelf-actions {
    position: static;
  }

  .shelf-search {
    width: 100%;
  }

  .shelf-actions {
    justify-self: end;
  }

  .shelf-tabs {
    display: flex;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .shelf-tabs::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .landing-header nav {
    display: flex;
  }

  .hero-banner,
  .policy-grid,
  .support-layout {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    min-height: auto;
    gap: 20px;
    padding: 20px 0 8px;
  }

  .shelf-cards {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
  }

  .shelf-card {
    flex: 0 0 250px;
    scroll-snap-align: start;
  }

  .support-card.main-support {
    grid-column: span 1;
  }

  .privacy-summary {
    grid-template-columns: 1fr;
  }
  
  .data-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .landing-page main {
    display: block;
    min-height: calc(100dvh - 64px);
  }

  .site-header,
  .hero-banner,
  .site-footer,
  .privacy-hero,
  .privacy-summary,
  .policy-document,
  .page-hero,
  .policy-grid,
  .support-layout {
    width: min(100% - 24px, 1120px);
  }

  .nav-cta {
    min-width: 94px;
  }

  .landing-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    min-height: 64px;
    padding: 10px 0 8px;
  }

  .landing-header nav {
    gap: 20px;
  }

  .hero-banner {
    min-height: calc(100dvh - 64px);
    align-items: center;
    gap: 14px;
    padding: 24px 0 40px;
  }

  .hero-mark {
    width: 70px;
    height: 70px;
    margin-bottom: 0;
  }

  .hero-brand {
    gap: 14px;
    margin-bottom: 22px;
    font-size: 28px;
  }

  h1 {
    font-size: clamp(52px, 16vw, 76px);
  }

  .landing-page h1 {
    font-size: clamp(46px, 14vw, 62px);
  }

  .hero-copy p {
    margin-top: 14px;
    font-size: 17px;
  }

  .hero-copy .button {
    width: 100%;
    margin-top: 18px;
  }

  .shelf-demo {
    display: none;
  }

  .shelf-glass {
    width: min(100% - 16px, 1680px);
    padding: 12px 0;
  }

  .shelf-demo-toolbar {
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 6px;
  }

  .shelf-search {
    gap: 6px;
    height: 38px;
    padding: 0 11px;
    font-size: 13px;
  }

  .shelf-search svg {
    width: 18px;
    height: 18px;
  }

  .shelf-search input {
    min-width: 54px;
  }

  .shelf-actions span {
    width: 30px;
    height: 30px;
  }

  .shelf-actions span:nth-child(n+2) {
    display: grid;
  }

  .shelf-actions {
    gap: 4px;
  }

  .shelf-actions svg {
    width: 17px;
    height: 17px;
  }

  .shelf-actions span:nth-child(2) svg {
    width: 15px;
    height: 15px;
  }

  .shelf-actions span:nth-child(3) svg {
    width: 18px;
    height: 18px;
  }

  .shelf-actions span:nth-child(4) svg {
    width: 17px;
    height: 17px;
  }

  .cloud-action i {
    width: 15px;
    height: 15px;
  }

  .shelf-cards {
    margin-top: 16px;
  }

  .shelf-tabs {
    justify-content: flex-start;
  }

  .shelf-card {
    flex-basis: 224px;
    border-radius: 12px;
  }

  .shelf-card > img,
  .shelf-card-preview {
    height: 132px;
  }

  .shelf-card-head {
    height: 50px;
    padding: 0 12px;
  }

  .shelf-card-foot {
    padding: 10px 12px 12px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 24px 0;
  }

  .landing-footer {
    min-height: 40px;
    padding: 8px 0;
  }

  .privacy-hero {
    padding: 50px 0 28px;
  }

  .privacy-hero h1 {
    font-size: clamp(48px, 14vw, 62px);
  }

  .privacy-summary {
    padding-bottom: 36px;
  }

  .policy-document {
    padding-top: 26px;
  }

  .policy-content {
    gap: 0;
  }

  .policy-content p,
  .policy-content li {
    font-size: 16px;
  }

  .policy-content section {
    padding: 36px 0;
  }

  .policy-index {
    gap: 8px;
    margin-bottom: 34px;
  }

  .policy-index a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }
}
