:root {
  --brand-red: #ff4d57;
  --brand-red-dark: #d73a41;
  --ink: #1f2933;
  --muted: #52606d;
  --bg: #f7f7fa;
  --surface: #ffffff;
  --line: #e4e7eb;
  --radius: 18px;
  --shadow: 0 24px 56px -26px rgba(15, 23, 42, 0.35);
  --glass-shadow: 0 32px 60px -34px rgba(215, 58, 65, 0.5);
  font-family: 'Inter', 'Noto Sans JP', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

a {
  color: var(--brand-red);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(92%, 1080px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 231, 235, 0.9);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.5rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-red);
  letter-spacing: 0.03em;
}

nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
}

main {
  display: block;
}

.hero {
  padding: clamp(4rem, 10vw, 6.5rem) 0 4rem;
  background: linear-gradient(135deg, rgba(255, 77, 87, 0.12), transparent 70%);
}

.hero-copy {
  padding: clamp(2.25rem, 5vw, 2.85rem);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trust-note {
  font-weight: 600;
  color: var(--brand-red-dark);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.tagline {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--brand-red);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.6rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46ch;
}

.actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: var(--brand-red);
  color: #ffffff;
  box-shadow: 0 20px 40px -24px rgba(255, 77, 87, 0.8);
}

.btn.primary:hover,
.btn.primary:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 48px -20px rgba(215, 58, 65, 0.4);
}

.btn.secondary {
  border-color: rgba(31, 41, 51, 0.1);
  color: var(--ink);
  background: #ffffff;
}

.browser-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.browser-badges span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 77, 87, 0.08);
  color: var(--brand-red-dark);
  border-radius: 999px;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  overflow: hidden;
}

.hero-visual img,
.feature img,
.tutorial-visuals img,
.two-column img,
.download-card img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fefefe;
}

.storefront-illustration {
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  will-change: transform;
}

.storefront-illustration:hover,
.storefront-illustration:focus-visible {
  transform: scale(1.05);
  box-shadow: 0 28px 60px -30px rgba(215, 58, 65, 0.5);
}

.section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section h2 {
  font-size: clamp(2rem, 1.7rem + 1vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 60ch;
}

.feature-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(228, 231, 235, 0.8);
}

.feature h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--muted);
}

.highlighted {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.currency-list {
  margin-top: 2rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.currency-list li {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(228, 231, 235, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tutorial-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(228, 231, 235, 0.85);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}

.steps h3 {
  margin-top: 0;
  color: var(--brand-red-dark);
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.tutorial-visuals {
  display: grid;
  gap: 1.25rem;
}

.two-column {
  display: grid;
  gap: 2.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.checklist {
  padding-left: 1.2rem;
  color: var(--muted);
}

.checklist li {
  margin-bottom: 0.65rem;
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cards article {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: var(--radius);
  border: 1px solid rgba(228, 231, 235, 0.8);
  box-shadow: var(--shadow);
}

.cards h3 {
  margin-top: 0;
  color: var(--brand-red-dark);
}

.faq {
  display: grid;
  gap: 1rem;
}

.faq details {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(228, 231, 235, 0.9);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.cta {
  text-align: center;
}

.cta p {
  color: var(--muted);
  max-width: 60ch;
  margin: 0.75rem auto 2rem;
}

.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--line);
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.site-footer .logo {
  font-size: 1.15rem;
}

.footer-note,
.site-footer p {
  color: var(--muted);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.9rem;
}

.download-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2.5rem;
}

.download-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid rgba(228, 231, 235, 0.85);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.1rem;
}

.download-card h3 {
  margin: 0;
  color: var(--brand-red-dark);
}

.download-card p {
  margin: 0;
  color: var(--muted);
}

.download-card .btn {
  width: fit-content;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 77, 87, 0.1);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-red-dark);
}

.glass-accent {
  background: linear-gradient(135deg, rgba(255, 77, 87, 0.22), rgba(255, 255, 255, 0.72));
  border: 1px solid rgba(255, 77, 87, 0.35);
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
}

.glass-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.85;
}

.glass-accent > * {
  position: relative;
  z-index: 1;
}

.legal-page .site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(209, 67, 67, 0.2);
}

.legal-page main.section {
  padding-top: 8rem;
  padding-bottom: 6rem;
}

.legal-page .container.legal {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.7;
  gap: 1.5rem;
}

.legal-page .container.legal h1,
.legal-page .container.legal h2 {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
}

.legal-page .container.legal ul {
  padding-left: 1.25rem;
}

.legal-page .container.legal li {
  margin-bottom: 0.5rem;
}

.legal-page .footer-bottom {
  justify-content: space-between;
  gap: 1.5rem;
}

@supports ((backdrop-filter: blur(18px)) or (-webkit-backdrop-filter: blur(18px))) {
  .glass-accent {
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: linear-gradient(135deg, rgba(255, 77, 87, 0.24), rgba(255, 255, 255, 0.28));
  }
}

@media (max-width: 640px) {
  nav {
    display: none;
  }

  .site-header .container {
    justify-content: center;
  }

  .actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
