/* Doumen product homepage — self-contained, no external fonts or scripts. */

:root {
  --bg: #fbfafc;
  --bg-soft: #f4f1f7;
  --surface: #ffffff;
  --text: #1c1c22;
  --text-soft: #5c5c6b;
  --text-faint: #8b8b9a;
  --line: rgba(28, 28, 34, 0.08);
  --shadow: 0 18px 40px -24px rgba(38, 25, 60, 0.35);
  --shadow-soft: 0 10px 30px -20px rgba(38, 25, 60, 0.4);
  --pink: #f4a4c2;
  --violet: #a99cf0;
  --sky: #7fd0ea;
  --mint: #8fdcc6;
  --peach: #f7c08a;
  --accent: #7a5cf0;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101014;
    --bg-soft: #17171d;
    --surface: #1b1b22;
    --text: #f2f2f6;
    --text-soft: #b6b6c2;
    --text-faint: #86868f;
    --line: rgba(255, 255, 255, 0.1);
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
    --shadow-soft: 0 10px 30px -20px rgba(0, 0, 0, 0.9);
    --accent: #b7a6ff;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro SC", "SF Pro Text",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: var(--shadow-soft);
}

.brand span { font-size: 18px; }

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-soft);
  font-size: 15px;
  transition: color 0.18s ease;
}

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

.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
  white-space: nowrap;
}

.lang-switch:hover { color: var(--text); background: var(--bg-soft); }

@media (max-width: 720px) {
  .site-nav a.nav-link { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 40px;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.01em;
  font-weight: 800;
}

.hero h1 .grad {
  background: linear-gradient(115deg, var(--pink), var(--violet) 48%, var(--sky));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede {
  margin: 20px 0 0;
  font-size: clamp(16px, 1.7vw, 18px);
  color: var(--text-soft);
  max-width: 34em;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.hero-meta {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-faint);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4% 4%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(244, 164, 194, 0.55), rgba(169, 156, 240, 0.5) 50%, rgba(127, 208, 234, 0.5));
  filter: blur(48px);
  opacity: 0.75;
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .hero { padding: 48px 0 24px; }
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual img { width: min(78%, 340px); }
}

/* ---------- Sections ---------- */

.section { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }

.section-head { max-width: 44em; margin-bottom: 40px; }

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.01em;
  font-weight: 800;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 16px;
}

/* ---------- Feature cards ---------- */

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}

.feature-card h3 {
  margin: 18px 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Screenshot rail ---------- */

.shots-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 6px 4px 26px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.shots-rail figure {
  flex: 0 0 auto;
  width: clamp(220px, 27vw, 300px);
  margin: 0;
  scroll-snap-align: center;
}

.shots-rail img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.shots-rail figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}

/* ---------- About band ---------- */

.about-band { padding: 72px 0; }

.about-card {
  background: linear-gradient(135deg, #fdeef4, #f0ecfd 48%, #e7f7fb);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  box-shadow: var(--shadow);
}

@media (prefers-color-scheme: dark) {
  .about-card {
    background: linear-gradient(135deg, #241a2a, #1e1b32 48%, #16262e);
  }
}

.about-card img.app-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  margin: 0 auto 22px;
  box-shadow: var(--shadow);
}

.about-card h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
}

.about-card p {
  margin: 12px auto 0;
  max-width: 44em;
  color: var(--text-soft);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 48px 0 40px;
  font-size: 14px;
  color: var(--text-soft);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--text);
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a { text-decoration: none; color: var(--text-soft); }
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-bottom .filing a {
  text-decoration: none;
  color: inherit;
}

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

@media (max-width: 640px) {
  .footer-grid { flex-direction: column; gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
