@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg: #eef3ff;
  --bg-2: #f7fbff;
  --ink: #0f172a;
  --muted: #54607a;
  --accent: #2563eb;
  --accent-2: #0ea5e9;
  --accent-3: #1d4ed8;
  --card: rgba(255, 255, 255, 0.96);
  --stroke: #d7e3f7;
  --shadow: 0 32px 70px rgba(15, 23, 42, 0.16);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 720px at 5% -10%, rgba(37, 99, 235, 0.22), transparent 60%),
    radial-gradient(900px 620px at 90% 5%, rgba(14, 165, 233, 0.2), transparent 55%),
    radial-gradient(720px 520px at 50% 120%, rgba(96, 165, 250, 0.2), transparent 55%),
    linear-gradient(160deg, var(--bg), var(--bg-2));
  background-attachment: fixed;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.7), transparent 35%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.5), transparent 30%);
  opacity: 0.55;
}

body::after {
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.2) 2px,
    transparent 2px,
    transparent 12px
  );
  opacity: 0.18;
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

main {
  display: grid;
  gap: 24px;
}

.hero {
  display: grid;
  gap: 20px;
  animation: rise-in 0.7s ease-out both;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--muted);
}

.badge::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.25);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  margin: 0;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  color: var(--muted);
}

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

.hero-tile {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 16px;
  backdrop-filter: blur(6px);
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-tile strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 6px;
}

.hero-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 30px rgba(28, 26, 23, 0.12);
}

.layout {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.convert-grid {
  align-items: stretch;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: float-in 0.7s ease-out 0.15s both;
}

.card h2 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 24px;
}

.card h3 {
  font-family: var(--font-display);
  margin: 12px 0 6px;
  font-size: 16px;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.dropzone {
  border: 2px dashed rgba(47, 140, 255, 0.35);
  border-radius: 22px;
  padding: 30px;
  min-height: 180px;
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.65)),
    radial-gradient(circle at top, rgba(37, 99, 235, 0.12), transparent 60%);
}

.dropzone.ready {
  border-color: var(--accent);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at top, rgba(29, 78, 216, 0.16), transparent 60%);
  box-shadow: 0 18px 32px rgba(37, 99, 235, 0.16);
}

.dropzone:hover {
  border-color: var(--accent-3);
  background: rgba(255, 255, 255, 0.96);
}

.dropzone input {
  display: none;
}

.dropzone strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.dropzone span {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 600;
  font-size: 14px;
}

.field input,
.field select {
  border-radius: 12px;
  border: 1px solid var(--stroke);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  background: white;
}

.advanced {
  border-top: 1px dashed var(--stroke);
  padding-top: 16px;
}

.advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.advanced .fields {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-stack {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 15px;
  color: white;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-block {
  width: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(37, 99, 235, 0.28);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.status {
  min-height: 22px;
  font-size: 14px;
  color: var(--muted);
}

.status.success {
  color: #1d4ed8;
}

.status.error {
  color: #b63d2a;
}

.file-name {
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 8px 14px;
  width: fit-content;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.file-name.is-ready {
  color: var(--ink);
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.16);
}

.file-name.is-empty {
  color: var(--muted);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.12), rgba(14, 165, 233, 0.08));
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.12);
}

.notice-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.18);
  margin-top: 4px;
}

.notice-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  margin-bottom: 6px;
}

.notice-text p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.notice-text a {
  color: var(--ink);
  font-weight: 600;
}

.placeholder {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
}

.download-body {
  display: grid;
  gap: 12px;
}

.download-empty {
  font-size: 14px;
  color: var(--muted);
  padding: 12px 0;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.download-list li {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.download-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.download-list a:hover {
  color: var(--accent-2);
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid rgba(47, 140, 255, 0.35);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 15px;
  background: rgba(255, 255, 255, 0.96);
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.download-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(47, 140, 255, 0.22);
}

.download-actions {
  margin-top: auto;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

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

.footer-sep {
  color: var(--muted);
  font-size: 12px;
}

.stats-layout {
  display: grid;
  gap: 24px;
}

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

.stat-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  display: grid;
  gap: 6px;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}

.stat-value {
  font-size: 28px;
  font-family: var(--font-display);
}

.stat-meta {
  font-size: 13px;
  color: var(--muted);
}

.stats-info {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.stats-info strong {
  color: var(--ink);
  font-weight: 600;
}

.stats-error {
  font-size: 14px;
  color: #b63d2a;
}

.chart-card {
  grid-column: 1 / -1;
}

.chart {
  display: grid;
  gap: 16px;
}

.chart-legend {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
}

.legend-views {
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
}

.legend-converts {
  background: linear-gradient(180deg, #7dd3fc, var(--accent-2));
}

.legend-scanned {
  background: linear-gradient(180deg, #fb923c, #f97316);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16px, 1fr));
  gap: 10px;
  align-items: end;
  min-height: 180px;
  padding: 12px 8px 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.chart-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0;
}

.chart-day {
  display: grid;
  gap: 6px;
  align-items: end;
}

.chart-bars {
  display: grid;
  gap: 4px;
  align-items: end;
  height: 140px;
}

.chart-bar {
  width: 100%;
  border-radius: 6px;
  min-height: 6px;
}

.chart-bar.views {
  background: linear-gradient(180deg, var(--accent), var(--accent-3));
}

.chart-bar.converts {
  background: linear-gradient(180deg, #7dd3fc, var(--accent-2));
}

.chart-bar.scanned {
  background: linear-gradient(180deg, #fdba74, #f97316);
}

.chart-label {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
}

.legal-page .card {
  animation: float-in 0.6s ease-out both;
}

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

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.step strong {
  font-weight: 600;
}

.seo-block .steps {
  margin-top: 10px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.7);
  padding: 12px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}

.faq p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 680px) {
  .page {
    padding: 32px 18px 48px;
  }

  .card {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
