/* wmark.me — main stylesheet */

:root {
  --accent:        #228CD4;
  --accent-alt:    #1a9be8;
  --accent-grad:   linear-gradient(135deg, #228CD4 0%, #1a9be8 100%);
  --accent-light:  rgba(34, 140, 212, 0.1);
  --bg:            #ffffff;
  --bg2:           #F6FBFF;
  --fg:            #111827;
  --fg2:           #374151;
  --muted:         #6B7280;
  --card-bg:       #F6FBFF;
  --card-border:   #D8EAF5;
  --header-bg:     rgba(255,255,255,0.92);
  --shadow:        0 1px 3px rgba(0,0,0,0.07), 0 4px 16px rgba(34,140,212,0.06);
  --shadow-lg:     0 8px 32px rgba(34,140,212,0.15);
  --radius:        12px;
  --radius-sm:     8px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0A0E14;
    --bg2:          #10161E;
    --fg:           #E8F4FF;
    --fg2:          #BACED8;
    --muted:        #7A9AAF;
    --card-bg:      #141E2A;
    --card-border:  #1E3040;
    --header-bg:    rgba(10,14,20,0.92);
    --shadow:       0 1px 3px rgba(0,0,0,0.3), 0 4px 16px rgba(0,0,0,0.2);
    --shadow-lg:    0 8px 32px rgba(34,140,212,0.18);
  }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  padding: 0 5%;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em;
  background: var(--accent-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-decoration: none; flex-shrink: 0;
}
.logo:hover { text-decoration: none; opacity: 0.85; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  background: none; border: 1px solid var(--card-border);
  border-radius: 6px; padding: 5px 10px; color: var(--muted); cursor: pointer;
  font-size: 0.82rem; font-weight: 600; line-height: 1.4;
  transition: all 0.2s; display: flex; align-items: center; gap: 4px;
}
.icon-btn:hover { color: var(--fg); border-color: var(--accent); }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all 0.2s; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent-grad); color: #fff; }
.btn-primary:hover {
  opacity: 0.9; transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(34,140,212,0.4); text-decoration: none;
}
.btn-outline { background: transparent; color: var(--fg); border: 1px solid var(--card-border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-lg { padding: 14px 28px; font-size: 1rem; border-radius: 10px; }
.btn-block { width: 100%; justify-content: center; }

/* ── Nav ─────────────────────────────────────────────── */
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--fg2); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: color 0.2s; }
.site-nav a:hover, .site-nav a.active { color: var(--accent); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  padding: 88px 5% 80px; text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(34,140,212,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 25%, rgba(26,155,232,0.07) 0%, transparent 60%);
  position: relative; overflow: hidden;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-light); border: 1px solid rgba(34,140,212,0.2);
  border-radius: 20px; padding: 5px 14px;
  font-size: 0.82rem; font-weight: 600; color: var(--accent); margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.025em; margin-bottom: 20px;
  background: linear-gradient(135deg, #1477b8 0%, #228CD4 50%, #1a9be8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--muted);
  max-width: 620px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 52px; }

/* Watermark demo visual */
.wm-demo {
  position: relative; display: inline-block; max-width: 500px; width: 100%;
  margin: 0 auto; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--card-border);
}
.wm-demo-img {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1477b8 0%, #228CD4 50%, #5bc4f0 100%);
  display: flex; align-items: center; justify-content: center;
}
.wm-demo-img svg { opacity: 0.2; width: 90px; height: 90px; }
.wm-label {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  font-size: clamp(1.3rem, 5vw, 2.2rem); font-weight: 800;
  color: rgba(255,255,255,0.5); white-space: nowrap;
  letter-spacing: 0.1em; pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.wm-corner {
  position: absolute; bottom: 10px; right: 14px;
  font-size: 0.72rem; font-weight: 700;
  color: rgba(255,255,255,0.55); letter-spacing: 0.08em;
}

/* ── Platform badges ─────────────────────────────────── */
.platforms { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.platform-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; background: var(--card-bg);
  border: 1px solid var(--card-border); border-radius: 9px;
  font-size: 0.85rem; font-weight: 600; color: var(--fg2);
  text-decoration: none; transition: all 0.2s;
}
.platform-badge:hover {
  border-color: var(--accent); color: var(--accent);
  transform: translateY(-1px); box-shadow: var(--shadow); text-decoration: none;
}
.platform-badge svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Sections ────────────────────────────────────────── */
.section { padding: 80px 5%; }
.section-alt { background: var(--bg2); }
.section-title {
  text-align: center; font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 800; margin-bottom: 14px; letter-spacing: -0.025em;
}
.section-subtitle {
  text-align: center; color: var(--muted); max-width: 560px;
  margin: 0 auto 52px; font-size: 1.05rem; line-height: 1.7;
}

/* ── Feature grid ────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; max-width: 1100px; margin: 0 auto;
}
.feature-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px 24px; transition: all 0.25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.feature-icon {
  font-size: 1.6rem; margin-bottom: 14px; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-light); border-radius: 11px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* ── Steps ───────────────────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; max-width: 960px; margin: 0 auto;
}
.step { text-align: center; padding: 28px 20px; }
.step-number {
  width: 46px; height: 46px; background: var(--accent-grad); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.15rem; font-weight: 800;
  margin: 0 auto 16px; box-shadow: 0 4px 12px rgba(34,140,212,0.35);
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.88rem; line-height: 1.65; }

/* ── Pricing ─────────────────────────────────────────── */
.pricing-preview {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;
  max-width: 820px; margin: 0 auto;
}
/* period selector */
.pricing-tabs {
  display: flex; justify-content: center; gap: 4px;
  margin-bottom: 40px; background: var(--card-bg);
  border: 1px solid var(--card-border); border-radius: 10px;
  padding: 4px; width: fit-content; margin-left: auto; margin-right: auto;
}
.pricing-tab {
  padding: 8px 20px; border-radius: 7px; cursor: pointer; border: none;
  background: transparent; font-size: 0.9rem; font-weight: 500; color: var(--muted);
  transition: all 0.2s;
}
.pricing-tab.active { background: var(--accent-grad); color: #fff; font-weight: 600; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; max-width: 1160px; margin: 0 auto;
}
.pricing-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 28px 22px;
  display: flex; flex-direction: column; transition: all 0.25s;
}
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(34,140,212,0.07) 0%, var(--card-bg) 60%);
  box-shadow: var(--shadow-lg);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  background: var(--accent-grad); color: #fff;
  border-radius: 12px; padding: 2px 8px; margin-bottom: 10px; align-self: flex-start;
}
.plan-name {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--muted); margin-bottom: 10px;
}
.plan-name.featured { color: var(--accent); }
.plan-price { font-size: 2rem; font-weight: 800; line-height: 1; margin-bottom: 4px; letter-spacing: -0.02em; }
.plan-price sup { font-size: 1rem; font-weight: 700; vertical-align: super; margin-right: 2px; }
.plan-price .period-price { display: block; }
.plan-period { color: var(--muted); font-size: 0.82rem; margin-bottom: 18px; }
.plan-features { list-style: none; margin-bottom: 20px; flex: 1; }
.plan-features li {
  padding: 7px 0; font-size: 0.87rem; color: var(--fg2);
  display: flex; align-items: flex-start; gap: 7px;
  border-bottom: 1px solid var(--card-border);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before { content: '✓'; color: var(--accent); font-weight: 700; font-size: 0.85rem; flex-shrink: 0; margin-top: 1px; }
.plan-features li.no::before { content: '—'; color: var(--muted); }
.plan-cta { margin-top: auto; }
.plan-save { color: #22c55e; font-size: 0.78rem; font-weight: 600; margin-bottom: 4px; }

/* ── Download page ───────────────────────────────────── */
.download-section { padding: 48px 5% 80px; max-width: 780px; margin: 0 auto; }
.download-item {
  display: flex; align-items: center; gap: 20px;
  padding: 24px 28px; background: var(--card-bg);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  margin-bottom: 16px; transition: all 0.2s;
}
.download-item:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.download-item-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-light); border-radius: 12px;
}
.download-item-icon svg { width: 28px; height: 28px; }
.download-item-info { flex: 1; }
.download-item-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.download-item-info p { font-size: 0.85rem; color: var(--muted); }

/* ── Payment page ────────────────────────────────────── */
.payment-wrap { max-width: 520px; margin: 0 auto; padding: 40px 5% 80px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--fg2); margin-bottom: 6px; }
.form-group input, .form-group select {
  width: 100%; padding: 11px 14px;
  background: var(--card-bg); color: var(--fg);
  border: 1px solid var(--card-border); border-radius: 8px;
  font-size: 0.95rem; transition: border-color 0.2s; outline: none;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus, .form-group select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,140,212,0.12);
}
.notice {
  background: var(--accent-light); border: 1px solid rgba(34,140,212,0.2);
  border-radius: 8px; padding: 14px 16px;
  font-size: 0.88rem; color: var(--fg2); margin-bottom: 24px; line-height: 1.6;
}

/* ── Legal pages ─────────────────────────────────────── */
.legal-content { max-width: 780px; margin: 0 auto; padding: 0 5% 80px; }
.legal-content h2 { font-size: 1.25rem; font-weight: 700; margin: 40px 0 12px; }
.legal-content h3 { font-size: 1rem; font-weight: 700; margin: 24px 0 8px; color: var(--fg2); }
.legal-content p, .legal-content li { color: var(--muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 10px; }
.legal-content ul { padding-left: 22px; margin-bottom: 14px; }
.legal-content li { margin-bottom: 6px; }
.legal-content strong { color: var(--fg); }

/* ── 404 ─────────────────────────────────────────────── */
.notfound {
  min-height: 60vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 5%;
}
.notfound-inner h1 {
  font-size: 7rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 16px;
}
.notfound-inner p { color: var(--muted); font-size: 1.1rem; margin-bottom: 28px; }

/* ── CTA section ─────────────────────────────────────── */
.cta-section {
  background: var(--accent-grad);
  color: #fff; text-align: center; padding: 88px 5%;
}
.cta-section-inner {
  max-width: 640px; margin: 0 auto;
}
.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; margin-bottom: 16px; letter-spacing: -0.02em;
}
.cta-section p {
  font-size: 1.1rem; opacity: 0.88; margin-bottom: 36px; line-height: 1.7;
}
.cta-section .btn-primary { background: #fff; color: var(--accent); }
.cta-section .btn-primary:hover { background: rgba(255,255,255,0.92); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.cta-section .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.cta-section .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }
.cta-actions { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--card-border); padding: 56px 5% 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; max-width: 1100px; margin: 0 auto 40px;
}
.footer-logo {
  font-size: 1.2rem; font-weight: 800; letter-spacing: -0.03em;
  background: var(--accent-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; display: inline-block; margin-bottom: 12px;
}
.footer-col h4 {
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--fg2); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }
.footer-col p { color: var(--muted); font-size: 0.9rem; line-height: 1.7; }
.footer-bottom {
  max-width: 1100px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--card-border);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted); font-size: 0.85rem; flex-wrap: wrap; gap: 12px;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ── Inner page hero ─────────────────────────────────── */
.page-hero {
  padding: 64px 5% 52px; text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(34,140,212,0.08) 0%, transparent 70%);
}
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 10px; }
.page-hero p { color: var(--muted); font-size: 1.05rem; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}
@media (max-width: 768px) {
  .site-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .download-item { flex-wrap: wrap; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-header { padding: 0 4%; }
  .hero { padding: 56px 4% 52px; }
  .section { padding: 56px 4%; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ── i18n ────────────────────────────────────────────── */
[data-lang] { display: none; }
[data-lang].lang-active { display: block; }
span[data-lang].lang-active, a[data-lang].lang-active { display: inline; }

/* ── Utilities ───────────────────────────────────────── */
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.tag {
  display: inline-block; background: var(--accent-light); color: var(--accent);
  border-radius: 20px; padding: 3px 10px; font-size: 0.78rem; font-weight: 600;
}
