:root {
  --bg: #f5f5f2;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --ink: #111827;
  --muted: #5f6673;
  --line: #dedfda;
  --accent: #111827;
  --accent-soft: #dce8ff;
  --blue: #3b82f6;
  --shadow: 0 22px 60px rgba(17, 24, 39, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans JP", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(17, 24, 39, 0.1), transparent 26%),
    linear-gradient(180deg, #f8f8f5 0%, var(--bg) 100%);
}

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

.page-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 20px 20px 48px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
}

.site-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 40px 0 28px;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--blue);
}

.hero h1,
.section-heading h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-family: "Space Grotesk", sans-serif;
}

.hero h1 {
  font-size: clamp(3.4rem, 8vw, 6.2rem);
  max-width: 9ch;
}

.hero-text {
  max-width: 54ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.hero-panel {
  position: relative;
}

.phone-frame {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.68)),
    linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(17, 24, 39, 0.05));
  box-shadow: var(--shadow);
}

.phone-status {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}

.scan-card,
.result-item,
.feature-card,
.privacy-card {
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.scan-card {
  padding: 14px;
  border-radius: 24px;
}

.scan-image {
  position: relative;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.12), rgba(17, 24, 39, 0.04)),
    linear-gradient(135deg, #dbeafe, #eef2ff 45%, #e5e7eb);
}

.scan-image::before,
.scan-image::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.scan-image::after {
  inset: auto 22px 22px 22px;
  height: 58px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.scan-line {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 18%;
  height: 2px;
  background: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  animation: scan 3.2s infinite ease-in-out;
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(140px);
    opacity: 1;
  }
}

.scan-meta {
  padding: 16px 6px 6px;
}

.scan-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.scan-meta h2 {
  margin: 12px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.scan-meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.result-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.result-item {
  padding: 14px 16px;
  border-radius: 18px;
}

.result-item strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 16px;
}

.result-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.result-category {
  font-family: "Space Grotesk", sans-serif;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 52px;
}

.stat {
  padding: 18px 20px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.65);
}

.stat-value {
  display: block;
  margin-bottom: 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.stat-label {
  color: var(--muted);
  line-height: 1.6;
}

.section {
  padding: 28px 0 36px;
}

.section-contrast {
  padding: 32px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.03), rgba(255, 255, 255, 0.5));
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.feature-grid,
.privacy-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.privacy-card {
  padding: 22px;
  border-radius: var(--radius-xl);
}

.feature-index {
  display: inline-flex;
  margin-bottom: 22px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}

.feature-card h3,
.privacy-card h3,
.timeline-step h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.feature-card p,
.privacy-card p,
.timeline-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.timeline-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--ink);
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  padding: 20px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a,
.legal-footer a {
  color: var(--muted);
}

.legal-shell {
  max-width: 920px;
}

.legal-page {
  padding: 28px 0 16px;
}

.legal-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: "Space Grotesk", sans-serif;
}

.legal-updated {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.legal-section {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  line-height: 1.9;
}

.legal-section ul {
  margin: 0;
  padding-left: 20px;
}

.legal-footer {
  margin-top: 28px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .site-header,
  .site-footer,
  .hero,
  .stats,
  .feature-grid,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    display: grid;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding-inline: 14px;
  }

  .site-header {
    top: 10px;
    padding: 14px;
    border-radius: 22px;
  }

  .hero {
    gap: 20px;
    padding-top: 22px;
  }

  .section-contrast {
    padding: 20px;
  }

  .timeline-step {
    grid-template-columns: 1fr;
  }

  .timeline-number {
    width: 48px;
    height: 48px;
  }
}
