@font-face {
  font-family: "HarmonyOS Sans";
  src: url("./fonts/HarmonyOS_Sans_Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "HarmonyOS Sans";
  src: url("./fonts/HarmonyOS_Sans_Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "HarmonyOS Sans";
  src: url("./fonts/HarmonyOS_Sans_Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

:root {
  --bg: #efeee9;
  --bg-strong: #e8e4dc;
  --card: rgba(255, 255, 255, 0.72);
  --card-strong: #fbfaf7;
  --text: #1f1d1a;
  --muted: #8d8678;
  --line: rgba(161, 153, 132, 0.18);
  --accent: #b0a487;
  --accent-strong: #8f8165;
  --dark-card: #1f1c19;
  --shadow: 0 18px 40px rgba(88, 73, 40, 0.08);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 22px;
  --radius-sm: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "HarmonyOS Sans", "PingFang SC", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(202, 195, 178, 0.24), transparent 28%),
    linear-gradient(180deg, #f4f2ec 0%, var(--bg) 100%);
}

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

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

.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: rgba(255, 251, 245, 0.64);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

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

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.header-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.header-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 180ms ease, color 180ms ease;
}

.header-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
  gap: 42px;
  align-items: center;
  padding: 72px 0 54px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hero h1,
.section-heading h2,
.download-card h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero-text,
.section-side-text,
.rhythm-copy p,
.soft-panel p,
.feature-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.hero-text {
  max-width: 580px;
  margin: 24px 0 0;
  font-size: 18px;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 16px 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(98, 83, 52, 0.12);
}

.button-primary {
  background: #1f1d1a;
  color: #f7f3eb;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(161, 153, 132, 0.18);
  color: var(--text);
}

.hero-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.note-pill,
.soft-panel,
.feature-card,
.time-panel,
.download-card {
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: var(--card);
  box-shadow: var(--shadow);
}

.note-pill {
  padding: 18px 20px;
  border-radius: 24px;
}

.note-pill strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.note-pill span {
  display: block;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.hero-visual {
  position: relative;
  min-height: 640px;
}

.visual-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
}

.orb-a {
  inset: 30px auto auto 40px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.7);
}

.orb-b {
  inset: auto 10px 60px auto;
  width: 220px;
  height: 220px;
  background: rgba(202, 195, 178, 0.24);
}

.device-card {
  position: absolute;
  inset: 36px 44px 68px 32px;
  padding: 22px;
  border-radius: 38px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.58));
  box-shadow: 0 24px 60px rgba(96, 81, 52, 0.12);
  backdrop-filter: blur(20px);
}

.device-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 14px;
}

.mock-photo {
  position: relative;
  margin-top: 18px;
  min-height: 335px;
  padding: 22px;
  border-radius: 28px;
  overflow: hidden;
  background: #d7d3cb;
}

.photo-glow {
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(27, 24, 21, 0.04), rgba(27, 24, 21, 0.12)),
    url("./assets/hero-photo.jpeg");
  background-size: cover;
  background-position: center;
}

.photo-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 16px 18px;
  border-radius: 18px;
  color: #f8f6f1;
  font-size: 16px;
  line-height: 1.6;
  background: linear-gradient(180deg, rgba(27, 24, 21, 0.1), rgba(27, 24, 21, 0.7));
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
}

.mini-card img,
.floating-title img,
.feature-icon img {
  width: 26px;
  height: 26px;
}

.mini-card span {
  font-size: 14px;
  font-weight: 500;
}

.floating-card {
  position: absolute;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: rgba(255, 252, 246, 0.88);
  box-shadow: 0 18px 40px rgba(96, 81, 52, 0.1);
  backdrop-filter: blur(18px);
}

.card-calendar {
  top: 18px;
  right: 0;
  width: 250px;
  padding: 18px;
}

.floating-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 500;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.heatmap span {
  display: block;
  aspect-ratio: 1;
  border-radius: 7px;
  background: #ece9e2;
}

.heatmap span.mid {
  background: #d2cab9;
}

.heatmap span.active {
  background: #aba088;
}

.card-stats {
  right: 36px;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  padding: 20px 24px;
}

.stat strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 54px 0;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 52px);
}

.section-heading.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 28px;
  align-items: end;
}

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

.soft-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.soft-panel h3,
.feature-copy-panel h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.feature-stack {
  display: grid;
  gap: 22px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  align-items: stretch;
  padding: 24px;
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: var(--card);
  box-shadow: var(--shadow);
}

.feature-row:nth-child(even) .feature-media {
  order: 2;
}

.feature-row:nth-child(even) .feature-copy-panel {
  order: 1;
}

.feature-media,
.feature-copy-panel {
  min-height: 320px;
  border-radius: 32px;
}

.feature-copy-panel {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-copy-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 16px;
}

.feature-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4));
}

.feature-media.photo::before,
.feature-widget-image {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 24, 21, 0.04), rgba(27, 24, 21, 0.22)),
    url("./assets/hero-photo.jpeg");
  background-size: cover;
  background-position: center;
}

.feature-media.photo::before {
  inset: 18px;
  border-radius: 24px;
}

.feature-media-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  padding: 16px 18px;
  border-radius: 22px;
  color: #f7f3eb;
  background: linear-gradient(180deg, rgba(27, 24, 21, 0.08), rgba(27, 24, 21, 0.72));
  z-index: 1;
}

.feature-media-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}

.feature-media-badge img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.feature-media-overlay p {
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
}

.feature-media.calendar,
.feature-media.favorite,
.feature-media.stats,
.feature-media.widget {
  padding: 26px;
}

.mini-calendar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: min(100%, 320px);
  margin-left: auto;
  margin-right: auto;
  margin-top: 24px;
}

.mini-calendar span {
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #ece9e2;
}

.mini-calendar span.filled {
  background: #b0a487;
}

.favorite-card-preview {
  position: absolute;
  inset: auto 26px 26px 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
}

.favorite-card-preview img {
  width: 24px;
  height: 24px;
}

.favorite-card-preview span {
  font-size: 18px;
  font-weight: 500;
}

.mini-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: end;
  height: 100%;
  max-height: 220px;
  margin-top: 34px;
}

.mini-bars span {
  display: block;
  border-radius: 18px 18px 6px 6px;
  background: #cdc4b1;
}

.feature-widget-preview {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(100%, 260px);
  margin: 0 auto;
  padding: 14px;
  border-radius: 28px;
  background: #fffdf9;
}

.feature-widget-image {
  position: relative;
  inset: auto;
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
}

.feature-widget-preview span {
  color: #cac3b2;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.rhythm {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
}

.rhythm-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.rhythm-copy p {
  margin-top: 20px;
}

.rhythm-list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.rhythm-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.rhythm-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.rhythm-visual {
  display: grid;
  gap: 18px;
}

.time-panel {
  padding: 26px;
  border-radius: 32px;
}

.month-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 15px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.calendar-grid span {
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #ece9e2;
}

.calendar-grid span.filled {
  background: #b0a487;
}

.stats-panel {
  background: rgba(255, 255, 255, 0.6);
}

.bar-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  align-items: end;
  height: 210px;
  padding: 18px 0 8px;
}

.bar {
  border-radius: 14px 14px 4px 4px;
  background: #cdc4b1;
}

.bar-labels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.widget-preview-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.widget-card {
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.widget-card.small {
  padding: 10px;
  min-height: 356px;
}

.widget-card.medium {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: stretch;
  min-height: 300px;
  padding: 12px;
}

.widget-card.light {
  background: #fffdf9;
}

.widget-card.dark {
  background: var(--dark-card);
  color: #f7f3eb;
}

.widget-image {
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(27, 24, 21, 0.02), rgba(27, 24, 21, 0.1)),
    url("./assets/hero-photo.jpeg");
  background-size: cover;
  background-position: center;
  min-height: 236px;
}

.widget-card.small .widget-image {
  min-height: 258px;
}

.widget-card.small span,
.widget-copy span {
  display: block;
  margin-top: 14px;
  color: #cac3b2;
  font-size: 14px;
  font-weight: 500;
}

.widget-card.dark .widget-copy span,
.widget-card.dark.small span {
  color: rgba(247, 243, 235, 0.78);
}

.widget-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px 18px 18px 24px;
}

.widget-copy p {
  margin: 0;
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.4;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  border-radius: 34px;
}

.download-card h2 {
  max-width: 760px;
  font-size: clamp(28px, 4vw, 46px);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding: 24px 0 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a {
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: var(--text);
}

.legal-page {
  width: min(860px, 100%);
  margin: 72px auto 0;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 34px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.legal-page h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
}

.legal-updated {
  margin: 16px 0 34px;
  color: var(--muted);
}

.legal-page section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.legal-page h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.legal-page p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.legal-page p:last-child {
  margin-bottom: 0;
}

@media (max-width: 1120px) {
  .hero,
  .rhythm,
  .section-heading.split,
  .widget-preview-group {
    grid-template-columns: 1fr;
  }

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

  .feature-row,
  .feature-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .feature-row {
    padding: 18px;
    gap: 18px;
  }

  .feature-row:nth-child(even) .feature-media,
  .feature-row:nth-child(even) .feature-copy-panel {
    order: initial;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 24px, 1200px);
    padding-top: 18px;
  }

  .site-header {
    top: 10px;
    padding: 12px 14px;
  }

  .header-nav {
    display: none;
  }

  .hero {
    gap: 28px;
    padding-top: 42px;
  }

  .hero-notes,
  .manifesto-grid,
  .download-card,
  .widget-card.medium {
    grid-template-columns: 1fr;
  }

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

  .device-card {
    inset: 40px 8px 90px 8px;
  }

  .card-calendar {
    right: 8px;
    width: 208px;
  }

  .card-stats {
    right: 22px;
    left: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 36px 0;
  }

  .soft-panel,
  .feature-card,
  .time-panel,
  .download-card {
    padding: 22px;
  }

  .widget-card.small {
    min-height: 320px;
  }

  .widget-copy {
    padding: 18px 8px 10px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 36px;
  }

  .legal-page {
    margin-top: 42px;
    padding: 24px;
    border-radius: 26px;
  }
}
