/* ============================================================
   Clipmoth LP — dark hero + violet glow, white body, amber buy CTA
   Accent roles are fixed: violet = brand/structure, amber = purchase only.
   ============================================================ */

:root {
  --violet: #7c3aed;
  --violet-deep: #5b21b6;
  --violet-ink: #2e1065;
  --violet-tint: #f5f3ff;
  --pink: #d946ef;
  --amber: #fbbf24;
  --amber-deep: #f59e0b;
  --ink: #17141f;
  --ink-2: #4b4658;
  --ink-3: #837d92;
  --line: #e8e5f0;
  --dark: #0d0a17;
  --paper: #ffffff;
  --paper-2: #f6f5fa;
  --ok: #0f766e;
  --err: #b91c1c;
  --radius: 18px;
  --font: "Inter", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) summary {
  word-break: keep-all;
  line-break: strict;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------------- header ---------------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 10, 23, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: #fff; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.links { display: flex; gap: 26px; margin-left: 12px; }
.links a { color: rgba(255, 255, 255, 0.66); font-size: 14px; font-weight: 500; transition: color 0.15s; }
.links a:hover { color: #fff; }
.bar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang-switch { display: flex; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; overflow: hidden; }
.lang-switch button {
  font-family: var(--font); font-size: 12px; font-weight: 600;
  color: rgba(255, 255, 255, 0.6); background: transparent; border: 0;
  padding: 6px 13px; cursor: pointer;
}
.lang-switch button.active { background: #fff; color: var(--dark); }
.nav-cta {
  font-size: 13.5px; font-weight: 700; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  padding: 8px 18px; transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.5); }

/* ---------------- hero ---------------- */
.hero {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding: 96px 0 0;
}
.hero-art { overflow: hidden; border-radius: 0; }
.hero-art {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 78% -8%, rgba(124, 58, 237, 0.55), transparent 65%),
    radial-gradient(560px 380px at 12% 8%, rgba(217, 70, 239, 0.22), transparent 60%),
    radial-gradient(900px 500px at 50% 118%, rgba(91, 33, 182, 0.35), transparent 65%);
}
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(760px 460px at 50% 10%, rgba(0, 0, 0, 0.85), transparent 75%);
  -webkit-mask-image: radial-gradient(760px 460px at 50% 10%, rgba(0, 0, 0, 0.85), transparent 75%);
}
.hero-inner { position: relative; text-align: center; }
.badge {
  display: inline-block;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em;
  color: #d8c9ff;
  border: 1px solid rgba(167, 139, 250, 0.4);
  background: rgba(124, 58, 237, 0.16);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(42px, 6.6vw, 82px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(92deg, #a78bfa 0%, #d946ef 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subtitle {
  max-width: 640px; margin: 0 auto 22px;
  font-size: 17px; color: rgba(255, 255, 255, 0.66);
}
.trust-row { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; }
.trust-row li {
  font-size: 13.5px; font-weight: 600; color: rgba(255, 255, 255, 0.78);
  display: flex; align-items: center; gap: 7px;
}
.trust-row li::before {
  content: "✓";
  color: #a78bfa; font-weight: 800; font-size: 13px;
}

/* tool card overlaps out of the hero band (H20) */
.card-slot { position: relative; z-index: 3; margin-top: 46px; margin-bottom: -108px; }
.downloader {
  background: #fff;
  color: var(--ink);
  border-radius: 22px;
  padding: 34px 36px 30px;
  max-width: 780px; margin: 0 auto;
  box-shadow: 0 30px 80px -18px rgba(13, 10, 23, 0.5), 0 4px 18px rgba(13, 10, 23, 0.12);
  border: 1px solid var(--line);
}
.downloader h2 { font-size: 17px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.01em; }
.dl-row { display: flex; gap: 10px; }
.dl-row input {
  flex: 1;
  font-family: var(--font); font-size: 15px;
  padding: 14px 18px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  min-width: 0;
}
.dl-row input:focus { border-color: var(--violet); background: #fff; }
.dl-row button {
  font-family: var(--font); font-size: 15px; font-weight: 700;
  color: #fff; background: var(--violet);
  border: 0; border-radius: 999px;
  padding: 14px 30px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.dl-row button:hover { background: var(--violet-deep); }
.dl-row button:active { transform: scale(0.98); }
.dl-row button:disabled { opacity: 0.55; cursor: default; }
.quota-line { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }
.quota-line.premium { color: var(--violet); font-weight: 600; }

.progress-wrap { display: none; margin-top: 16px; }
.progress-wrap.show { display: block; }
.progress-status { font-size: 13px; color: var(--ink-2); margin-bottom: 7px; }
.progress-bar { height: 7px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.progress-bar > div { height: 100%; width: 0%; background: linear-gradient(90deg, var(--violet), var(--pink)); border-radius: 999px; transition: width 0.25s; }

.result-box { display: none; margin-top: 14px; font-size: 14px; }
.result-box.show { display: block; }
.result-box.ok { color: var(--ok); font-weight: 500; }
.result-box.err { color: var(--err); }
.inline-cta {
  display: inline-block; margin-top: 10px; margin-right: 10px;
  font-size: 13.5px; font-weight: 700;
  color: var(--violet);
  border: 1.5px solid var(--violet);
  border-radius: 999px;
  padding: 8px 18px;
  transition: background 0.15s, color 0.15s;
}
.inline-cta:hover { background: var(--violet); color: #fff; }

/* ---------------- stats strip ---------------- */
.stats { padding: 176px 0 72px; background: var(--paper); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 6px 12px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .num { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); line-height: 1.2; }
.stat .num span { font-size: 17px; font-weight: 700; color: var(--ink-3); margin-left: 2px; }
.stat .num.accent { color: var(--violet); }
.stat .lbl { font-size: 13px; color: var(--ink-3); margin-top: 3px; }

/* ---------------- section heads ---------------- */
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--violet); margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.25; }
.sec-sub { font-size: 16px; color: var(--ink-3); margin-top: 12px; }
.sec-head.light .section-title { color: #fff; }
.sec-head.light .eyebrow { color: #a78bfa; }
.sec-head.light .sec-sub { color: rgba(255, 255, 255, 0.6); }

/* ---------------- formats (giant rounded container) ---------------- */
.formats {
  background: var(--paper-2);
  border-radius: 44px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 84px 0 90px;
}
.formats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.format-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.format-card .cap {
  height: 92px;
  display: flex; align-items: center; justify-content: center;
}
.format-card .cap svg { width: 38px; height: 38px; }
.cap-a { background: #ede9fe; color: var(--violet); }
.cap-b { background: #e0e7ff; color: #4f46e5; }
.cap-c { background: #fae8ff; color: #c026d3; }
.format-card .body { padding: 22px 24px 26px; }
.format-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.format-card p { font-size: 14px; color: var(--ink-2); }

/* how it works — numbered hairline list */
.how { margin-top: 88px; }
.steps { max-width: 780px; margin: 0 auto; }
.steps li {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 26px 8px;
  border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-no {
  font-size: 44px; font-weight: 900; letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--violet);
  line-height: 1; flex: 0 0 76px;
  padding-top: 4px;
}
.steps h3 { font-size: 17px; font-weight: 800; margin-bottom: 5px; }
.steps p { font-size: 14.5px; color: var(--ink-2); }

/* ---------------- platform band (dark, diagonal top) ---------------- */
.platforms {
  margin-top: 96px;
  background: var(--dark);
  color: #fff;
  clip-path: polygon(0 56px, 100% 0, 100% 100%, 0 100%);
  padding: 140px 0 96px;
  position: relative;
}
.platforms::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px 400px at 85% 20%, rgba(124, 58, 237, 0.4), transparent 65%);
}
.plat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.plat-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 26px 26px 30px;
}
.plat-card.live { border-color: rgba(167, 139, 250, 0.55); background: rgba(124, 58, 237, 0.12); }
.plat-status {
  display: inline-block;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em;
  color: #fff; background: var(--violet);
  border-radius: 999px; padding: 4px 12px;
  margin-bottom: 16px;
}
.plat-status.soon {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.6);
}
.plat-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.plat-card p { font-size: 14px; color: rgba(255, 255, 255, 0.62); }

/* ---------------- comparison ---------------- */
.compare { padding: 96px 0 40px; background: var(--paper); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 12px 2px 6px; }
table.cmp {
  width: 100%; min-width: 860px;
  border-collapse: separate; border-spacing: 0;
  font-size: 14px;
}
.cmp th, .cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th { font-size: 13px; font-weight: 700; color: var(--ink-3); border-bottom: 2px solid var(--line); }
.cmp thead th.me {
  color: var(--violet-ink); font-size: 15px; font-weight: 900;
  background: var(--violet-tint);
  border-bottom: 2px solid var(--violet);
  border-radius: 14px 14px 0 0;
}
.cmp td.me { background: var(--violet-tint); font-weight: 600; color: var(--violet-ink); }
.cmp tbody tr:last-child td.me { border-radius: 0 0 14px 14px; }
.cmp tbody td:first-child { font-weight: 600; color: var(--ink-2); }
.cmp .yes { color: var(--violet); font-weight: 900; }
.cmp .no { color: #cbc7d6; font-weight: 700; }

/* ---------------- premium ---------------- */
.premium-section { padding: 72px 0 96px; background: var(--paper); }
.premium-card {
  position: relative;
  max-width: 620px; margin: 0 auto;
  background: linear-gradient(180deg, #fff, var(--violet-tint));
  border: 1px solid #ddd3f7;
  border-radius: 26px;
  padding: 52px 48px;
  text-align: center;
  box-shadow: 0 24px 60px -24px rgba(91, 33, 182, 0.25);
}
.premium-card .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  color: var(--violet); margin-bottom: 14px;
}
.premium-card h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.22; margin-bottom: 16px; }
.premium-card .body { font-size: 15px; color: var(--ink-2); margin-bottom: 26px; }
.premium-features { text-align: left; max-width: 380px; margin: 0 auto 30px; }
.premium-features li {
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  padding: 8px 0 8px 30px;
  position: relative;
}
.premium-features li::before {
  content: "✓";
  position: absolute; left: 2px;
  color: var(--violet); font-weight: 900;
}
.btn-premium-big {
  display: inline-block;
  font-size: 16.5px; font-weight: 800;
  color: #241303;
  background: var(--amber);
  border-radius: 999px;
  padding: 16px 42px;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 10px 28px -10px rgba(245, 158, 11, 0.55);
}
.btn-premium-big:hover { background: var(--amber-deep); }
.btn-premium-big:active { transform: scale(0.98); }
.premium-card .note { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }

/* ---------------- faq ---------------- */
.faq { padding: 24px 0 100px; background: var(--paper); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 12px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  font-size: 15px; font-weight: 700;
  padding: 18px 48px 18px 22px;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  font-size: 20px; font-weight: 400; color: var(--violet);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] { border-color: #ddd3f7; }
.faq-item p { font-size: 14.5px; color: var(--ink-2); padding: 0 22px 20px; }

/* ---------------- final cta band ---------------- */
.cta-band {
  background: linear-gradient(115deg, var(--violet-deep) 0%, var(--violet) 55%, #9333ea 100%);
  color: #fff;
  text-align: center;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(700px 320px at 50% 50%, rgba(0, 0, 0, 0.9), transparent 80%);
  -webkit-mask-image: radial-gradient(700px 320px at 50% 50%, rgba(0, 0, 0, 0.9), transparent 80%);
}
.cta-band h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 10px; position: relative; }
.cta-band p { font-size: 16px; color: rgba(255, 255, 255, 0.78); margin-bottom: 30px; position: relative; }
.cta-pair { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; position: relative; }
.btn-fill {
  font-size: 15.5px; font-weight: 800;
  color: var(--violet-deep); background: #fff;
  border-radius: 999px; padding: 14px 34px;
  transition: transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.4);
}
.btn-fill:hover { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5); }
.btn-fill:active { transform: scale(0.98); }
.btn-ghost {
  font-size: 15.5px; font-weight: 700;
  color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px; padding: 14px 34px;
  transition: background 0.15s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------------- footer ---------------- */
footer.site { background: var(--dark); color: rgba(255, 255, 255, 0.55); padding: 44px 0; }
.foot-row { display: flex; flex-direction: column; gap: 18px; }
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: #fff; font-size: 15px; }
.foot-brand img { border-radius: 6px; }
.legal { font-size: 12.5px; max-width: 640px; }
.foot-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: 12.5px; }
.foot-links a { color: rgba(255, 255, 255, 0.75); font-weight: 600; }
.foot-links a:hover { color: #fff; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .formats-grid, .plat-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .stat:nth-child(3) { border-left: 0; }
}
@media (max-width: 720px) {
  .links { display: none; }
  .nav-cta { display: none; }
  .bar { gap: 12px; justify-content: space-between; }
  .lang-switch button { white-space: nowrap; padding: 6px 11px; }
  .hero { padding-top: 64px; }
  .subtitle { font-size: 15.5px; }
  .downloader { padding: 24px 20px 22px; }
  .dl-row { flex-direction: column; }
  .dl-row button { width: 100%; padding: 15px; }
  .card-slot { margin-bottom: -150px; }
  .stats { padding-top: 210px; }
  .formats { border-radius: 28px; margin: 0 10px; padding: 60px 0 64px; }
  .steps li { gap: 16px; }
  .step-no { flex: 0 0 54px; font-size: 34px; }
  .platforms { clip-path: polygon(0 28px, 100% 0, 100% 100%, 0 100%); padding: 96px 0 72px; }
  .premium-card { padding: 38px 24px; }
  .cta-band { padding: 64px 0; }
}
