/* MarkNote — Product Page Styles */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-hover: #1a1a1a;
  --border-color: #222222;
  --border-subtle: #1a1a1a;
  --text-primary: #e5e5e5;
  --text-secondary: #999999;
  --text-muted: #666666;
  --accent-start: #7c5cfc;
  --accent-end: #38bdf8;
  --accent-gradient: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  --success: #22c55e;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "SF Mono", "Fira Code", "JetBrains Mono", monospace;
  --max-width: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

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

/* ===== Nav ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-mark {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__link {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

.nav__link:hover {
  color: var(--text-primary);
}

.nav__lang-select {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  outline: none;
}

.nav__lang-select:hover {
  color: var(--text-primary);
  border-color: var(--text-secondary);
}

/* CJK font stacks */
[lang="zh-CN"] { font-family: system-ui, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; }
[lang="zh-TW"] { font-family: system-ui, "PingFang TC", "Noto Sans TC", sans-serif; }
[lang="ja"] { font-family: system-ui, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif; }
[lang="ko"] { font-family: system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }

/* ===== Hero ===== */

.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px 60px;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-start);
  background: rgba(124, 92, 252, 0.1);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero__title-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__screenshot {
  margin-top: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  aspect-ratio: 16 / 10;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  font-family: var(--font-mono);
  overflow: hidden;
}

.hero__screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.15s;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--accent-gradient);
  color: #fff;
}

.btn--primary:hover {
  opacity: 0.9;
}

.btn--secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn--secondary:hover {
  border-color: var(--text-muted);
}

.btn:disabled {
  opacity: 0.5;
  cursor: wait;
}

/* ===== Features ===== */

.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.features__subheading {
  grid-column: 1 / -1;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 32px 0 8px;
}

.features__subheading:first-of-type {
  margin-top: 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s, background 0.15s;
}

.feature-card:hover {
  border-color: var(--text-muted);
  background: var(--bg-card-hover);
}

.feature-card__icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.feature-card__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-card__desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-gradient);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ===== Pricing ===== */

.pricing {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 24px;
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.pricing-card--pro {
  border-color: var(--accent-start);
  box-shadow: 0 0 0 1px var(--accent-start), 0 4px 24px rgba(124, 92, 252, 0.08);
}

.pricing-card__name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.pricing-card__price {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.pricing-card__period {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-card__features {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.pricing-card__features li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-card__features li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

/* ===== Footer ===== */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 24px;
  text-align: center;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__links a:hover {
  color: var(--text-secondary);
}

/* ===== Thanks Page ===== */

.thanks {
  max-width: 560px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}

.thanks__icon {
  font-size: 48px;
  margin-bottom: 24px;
}

.thanks__title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.thanks__desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.thanks__steps {
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}

.thanks__steps ol {
  padding-left: 20px;
}

.thanks__steps li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
}

.thanks__steps code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-secondary);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ===== Responsive ===== */

@media (max-width: 640px) {
  .nav__inner {
    padding: 0 16px;
  }

  .hero {
    padding: 48px 16px 40px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }

  .features,
  .pricing {
    padding: 48px 16px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
  }
}
