*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --pink: #f06191;
  --sky: #4a8cf2;
  --mint: #5ec8b0;
  --cream: #e8f4fc;
  --text: #384750;
  --text-light: #788f9b;
  --text-muted: #9aadb6;
  --shadow: 0 8px 32px rgba(74, 140, 242, 0.16);
  --radius: 16px;
  --header-h: 60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Nunito", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sky); text-decoration: none; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 140, 242, 0.12);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--sky);
}

.logo-cat {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: 20px;
  transition: color 0.2s, background 0.2s;
}

.header-nav a:hover {
  color: var(--pink);
  background: rgba(240, 97, 145, 0.08);
}

.header-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--sky));
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 20px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(240, 97, 145, 0.22), transparent 50%),
    radial-gradient(ellipse at 80% 10%, rgba(74, 140, 242, 0.28), transparent 45%),
    radial-gradient(ellipse at 50% 90%, rgba(94, 200, 176, 0.2), transparent 40%),
    linear-gradient(180deg, #d6ecfa 0%, var(--cream) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--sky));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 5vw, 3.3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(135deg, var(--pink), var(--mint));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 480px;
  margin-bottom: 16px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 28px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--sky));
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: #fff;
  color: var(--sky);
  border: 2px solid rgba(74, 140, 242, 0.3);
}

.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-disabled {
  opacity: 0.65;
  pointer-events: none;
}

.hero-mascot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cat-float {
  width: min(220px, 50vw);
  animation: float 3s ease-in-out infinite;
  filter: drop-shadow(0 12px 24px rgba(74, 140, 242, 0.25));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 64px);
  gap: 8px;
  margin-top: 8px;
}

.demo-cell {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop-in 0.6s ease backwards;
  animation-delay: calc(var(--cell) * 0.1s);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.demo-cell img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.demo-cell .mark-x {
  font-weight: 900;
  font-size: 1.4rem;
  color: rgba(56, 71, 80, 0.45);
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 72px 20px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 40px;
}

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

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.feature-card:hover { transform: translateY(-4px); }

.feature-icon {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 16px;
}

.feature-icon img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { font-size: 0.92rem; color: var(--text-light); }

.preview { text-align: center; }

.preview-board {
  display: inline-flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 36px;
  padding: 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.board-row { display: flex; gap: 8px; }

.board-cell {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.board-cell img {
  width: 65%;
  height: 65%;
  object-fit: contain;
}

.board-cell .mark-x {
  font-weight: 900;
  color: rgba(56, 71, 80, 0.4);
  font-size: 1.2rem;
}

.board-cell.highlight {
  outline: 3px solid var(--pink);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08) drop-shadow(0 0 8px rgba(240, 97, 145, 0.45)); }
}

.howto-steps {
  list-style: none;
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.howto-steps li {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(74, 140, 242, 0.2);
  color: var(--text-light);
}

.howto-steps strong { color: var(--sky); }

.download-card {
  background: linear-gradient(135deg, rgba(240, 97, 145, 0.12), rgba(74, 140, 242, 0.12));
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: var(--shadow);
}

.download-cat { width: 120px; flex-shrink: 0; }
.download-card h2 { font-size: 1.75rem; margin-bottom: 8px; }
.download-card p { color: var(--text-light); margin-bottom: 20px; }
.download-note { font-size: 0.85rem !important; margin-top: 12px !important; margin-bottom: 0 !important; }

.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  padding: 48px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.footer-cat { width: 36px; height: 36px; object-fit: contain; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; }
.footer-links a:hover { color: var(--pink); }

.footer-contact { font-size: 0.88rem; margin-bottom: 16px; }
.footer-contact a { color: rgba(255, 255, 255, 0.65); }
.footer-copy { font-size: 0.8rem; color: rgba(255, 255, 255, 0.4); }

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-mascot { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .download-card { flex-direction: column; text-align: center; padding: 32px 24px; }
}

body.subpage { background: var(--cream); }

.page-shell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(240, 97, 145, 0.15), transparent 45%),
    radial-gradient(ellipse at 85% 0%, rgba(74, 140, 242, 0.2), transparent 40%),
    linear-gradient(180deg, #d6ecfa 0%, var(--cream) 100%);
  z-index: 0;
  pointer-events: none;
}

.page-center {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 28px) 20px 48px;
}

.page-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 12px 48px rgba(74, 140, 242, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.page-card-head {
  text-align: center;
  padding: 36px 36px 28px;
  background: linear-gradient(180deg, rgba(240, 97, 145, 0.06), transparent);
  border-bottom: 1px dashed rgba(74, 140, 242, 0.15);
}

.page-card-head h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 900;
  margin: 12px 0 8px;
  line-height: 1.2;
}

.page-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 480px;
  margin: 0 auto;
}

.page-body { padding: 32px 36px 40px; }

.page-body > p {
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text-light);
}

.page-body > p + p:not(.page-meta) {
  margin-top: 8px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(74, 140, 242, 0.1);
  color: var(--text-muted);
  font-size: 0.93rem;
}

.page-body h2 {
  font-size: 1.08rem;
  font-weight: 800;
  margin: 32px 0 14px;
  padding: 10px 0 10px 14px;
  border-left: 4px solid var(--pink);
  background: linear-gradient(90deg, rgba(240, 97, 145, 0.08), transparent);
  border-radius: 0 8px 8px 0;
}

.page-body ul { padding-left: 1.1rem; margin: 8px 0 20px; }
.page-body li { color: var(--text-light); margin-bottom: 14px; line-height: 1.8; }
.page-body li strong { color: var(--sky); }
.page-body code {
  background: rgba(74, 140, 242, 0.08);
  color: var(--sky);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.88em;
}

.page-meta {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--sky);
  background: rgba(74, 140, 242, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.page-meta em { font-style: normal; font-weight: 600; }

.contact-box {
  background: linear-gradient(135deg, rgba(240, 97, 145, 0.1), rgba(74, 140, 242, 0.1));
  border-radius: 12px;
  padding: 24px 26px;
  margin: 20px 0 8px;
  border: 1px solid rgba(74, 140, 242, 0.15);
}

.contact-box p { margin-bottom: 8px !important; padding-bottom: 0 !important; border-bottom: none !important; }
.contact-box a { font-weight: 700; color: var(--sky); }

.doc-list { list-style: none; padding: 0; margin: 0 0 24px; }
.doc-list li { margin-bottom: 12px; }
.doc-list a {
  display: block;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(240, 97, 145, 0.06), rgba(74, 140, 242, 0.06));
  border-radius: 12px;
  font-weight: 700;
  color: var(--sky);
  border: 1px solid rgba(74, 140, 242, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.doc-list a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--pink);
}

.faq-list { list-style: none; padding: 0; }
.faq-list li {
  padding: 18px 0;
  border-bottom: 1px dashed rgba(74, 140, 242, 0.15);
  line-height: 1.75;
}
.faq-list li:last-child { border-bottom: none; }
.faq-list strong { color: var(--sky); }

.support-intro {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px dashed rgba(74, 140, 242, 0.15);
}

.support-intro p {
  border-bottom: none !important;
  margin-bottom: 12px !important;
  padding-bottom: 0 !important;
}

.support-cat {
  width: 88px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(74, 140, 242, 0.2));
}

.url-box {
  background: rgba(74, 140, 242, 0.06);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  font-size: 0.92rem;
  border: 1px solid rgba(74, 140, 242, 0.1);
}

.url-box a { word-break: break-all; }

body.subpage .site-footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  background: rgba(56, 71, 80, 0.92);
  backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
  .page-center { padding: calc(var(--header-h) + 16px) 14px 32px; }
  .page-card-head { padding: 28px 20px 22px; }
  .page-body { padding: 24px 20px 32px; }
  .support-intro { flex-direction: column; align-items: center; text-align: center; }
}
