:root {
  color-scheme: light;
  --ink: #29231f;
  --muted: #706760;
  --cream: #fffaf4;
  --peach: #ff9d76;
  --peach-dark: #e86f49;
  --apricot: #ffd7b8;
  --yellow: #ffcf5a;
  --sage: #c9d9c3;
  --line: rgba(75, 55, 43, 0.12);
  --shadow: 0 22px 70px rgba(76, 54, 40, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.7;
}

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

.site-header {
  width: min(1160px, calc(100% - 40px));
  height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px 13px 16px 16px;
  color: #fff;
  background: var(--peach-dark);
  box-shadow: 0 8px 20px rgba(232, 111, 73, 0.24);
}

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

nav a:hover,
nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: var(--peach-dark);
}

.hero {
  width: min(1160px, calc(100% - 40px));
  min-height: 660px;
  margin: 20px auto 88px;
  padding: 72px 68px;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 56px;
  overflow: hidden;
  border: 1px solid rgba(255, 157, 118, 0.2);
  border-radius: 42px;
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 207, 90, 0.42), transparent 22%),
    radial-gradient(circle at 71% 74%, rgba(201, 217, 195, 0.62), transparent 28%),
    linear-gradient(135deg, #fffaf4 0%, #fff0e6 100%);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--peach-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

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

h1 {
  margin-bottom: 26px;
  font-size: clamp(42px, 5.4vw, 70px);
  line-height: 1.16;
  letter-spacing: -0.045em;
}

h1 span {
  color: var(--peach-dark);
}

.hero-intro {
  max-width: 580px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  min-width: 132px;
  padding: 12px 22px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 12px 26px rgba(41, 35, 31, 0.2);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.availability {
  margin: 20px 0 0;
  color: #92877f;
  font-size: 12px;
}

.keyboard-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 20px auto 0;
  padding: 88px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  backdrop-filter: blur(16px);
}

.cat-bubble {
  position: absolute;
  top: -88px;
  right: 34px;
  width: 180px;
  height: 150px;
  display: grid;
  place-items: center;
  border: 8px solid #fff;
  border-radius: 52% 52% 46% 46%;
  background: var(--peach);
  box-shadow: 0 18px 40px rgba(132, 76, 49, 0.2);
}

.ear {
  position: absolute;
  top: -30px;
  width: 58px;
  height: 70px;
  border: 8px solid #fff;
  border-radius: 12px 44px 20px 44px;
  background: var(--peach);
  transform: rotate(18deg);
}

.ear.left {
  left: 4px;
}

.ear.right {
  right: 4px;
  transform: scaleX(-1) rotate(18deg);
}

.cat-face {
  position: relative;
  z-index: 1;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.06em;
}

.suggestion-bar {
  min-height: 52px;
  margin-bottom: 14px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  border-radius: 16px;
  background: #f5efe9;
  font-size: 12px;
  white-space: nowrap;
}

.suggestion-bar span {
  padding: 8px 11px;
  border-radius: 10px;
  background: #fff;
}

.suggestion-bar .ai-label {
  color: #8e431f;
  background: var(--apricot);
  font-weight: 800;
}

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

.keys span {
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #615750;
  background: #fff;
  box-shadow: 0 3px 0 #ddd2ca;
  font-size: 13px;
  font-weight: 700;
}

.keys .wide {
  grid-column: span 1;
}

.keys .space {
  grid-column: span 3;
  color: #988b82;
}

.keys .accent {
  color: #fff;
  background: var(--peach-dark);
  box-shadow: 0 3px 0 #ba4f2e;
}

.section,
.about-section {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto 120px;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 42px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.25;
  letter-spacing: -0.035em;
}

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

.feature-card {
  min-height: 270px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
}

.feature-card.warm {
  background: #fff0e5;
}

.feature-number {
  color: var(--peach-dark);
  font-weight: 900;
}

.feature-card h3 {
  margin: 54px 0 12px;
  font-size: 22px;
}

.feature-card p,
.about-section > p {
  color: var(--muted);
}

.privacy-section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto 120px;
  padding: 76px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 76px;
  border-radius: 38px;
  color: #fff;
  background: var(--ink);
}

.eyebrow.light {
  color: var(--yellow);
}

.privacy-points p {
  margin-bottom: 0;
  padding: 20px 0;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.privacy-points span {
  color: rgba(255, 255, 255, 0.68);
}

.about-section {
  text-align: center;
}

.about-section > p {
  max-width: 720px;
  margin: 0 auto 46px;
}

.app-meta {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.app-meta div {
  padding: 24px;
}

.app-meta div + div {
  border-left: 1px solid var(--line);
}

.app-meta dt {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

.app-meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 32px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.footer-brand {
  color: var(--ink);
}

footer > p {
  grid-column: 1;
  margin: 0;
}

.footer-links {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  gap: 10px;
}

.policy-page {
  width: min(860px, calc(100% - 40px));
  margin: 54px auto 100px;
}

.policy-header {
  margin-bottom: 44px;
  padding: 56px;
  border-radius: 34px;
  background: #fff0e5;
}

.policy-header h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 6vw, 58px);
}

.policy-header p {
  margin: 0;
  color: var(--muted);
}

.policy-content {
  padding: 12px 56px 48px;
}

.policy-content h2 {
  margin: 44px 0 12px;
  font-size: 23px;
  letter-spacing: -0.02em;
}

.policy-content p {
  color: #5f5751;
}

.back-link {
  margin-left: 56px;
  color: var(--peach-dark);
  font-weight: 800;
}

.simple-footer {
  display: block;
  text-align: center;
}

@media (max-width: 860px) {
  .site-header {
    height: 76px;
  }

  nav a:not(:last-child) {
    display: none;
  }

  .hero {
    padding: 56px 36px 62px;
    grid-template-columns: 1fr;
    gap: 110px;
  }

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

  .feature-grid,
  .privacy-section {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 230px;
  }

  .privacy-section {
    padding: 54px 40px;
    gap: 28px;
  }

  .app-meta {
    grid-template-columns: 1fr;
  }

  .app-meta div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .site-header,
  .hero,
  .section,
  .privacy-section,
  .about-section,
  footer,
  .policy-page {
    width: min(100% - 28px, 1160px);
  }

  .brand {
    font-size: 16px;
  }

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

  nav {
    gap: 12px;
  }

  .hero {
    min-height: 0;
    margin-top: 8px;
    margin-bottom: 72px;
    padding: 42px 22px 38px;
    border-radius: 28px;
  }

  h1 {
    font-size: 39px;
  }

  .hero-intro {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
  }

  .keyboard-card {
    padding: 76px 10px 12px;
    border-radius: 22px;
  }

  .cat-bubble {
    right: 18px;
    width: 150px;
    height: 124px;
  }

  .suggestion-bar span:last-child {
    display: none;
  }

  .keys {
    gap: 6px;
  }

  .keys span {
    height: 40px;
    border-radius: 9px;
    font-size: 11px;
  }

  .section,
  .about-section,
  .privacy-section {
    margin-bottom: 76px;
  }

  .feature-card {
    padding: 26px;
  }

  .privacy-section {
    padding: 42px 24px;
    border-radius: 28px;
  }

  .privacy-points p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  footer {
    display: block;
  }

  footer > p {
    margin: 12px 0;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .policy-page {
    margin-top: 24px;
  }

  .policy-header {
    padding: 36px 24px;
    border-radius: 26px;
  }

  .policy-content {
    padding: 0 12px 38px;
  }

  .back-link {
    margin-left: 12px;
  }
}

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

  .button {
    transition: none;
  }
}
