/* ============================================================
   MelloCatch LP — Stylesheet
   Aesthetic: editorial × technical precision
   Palette: deep navy + cobalt + electric green accent
   ============================================================ */

:root {
  --bg: #f4f1ea;
  --bg-dark: #0a1628;
  --bg-card: #ffffff;
  --ink: #0a1628;
  --ink-soft: #4a5a73;
  --ink-mute: #8593a8;
  --line: #d8d2c4;
  --line-dark: #1a2942;
  --blue: #1e4bd8;
  --blue-deep: #0a1f8a;
  --blue-light: #e8edfb;
  --green: #00c26a;
  --green-soft: #d4f5e4;
  --yellow: #ffd84d;
  --font-jp: 'Zen Kaku Gothic New', sans-serif;
  --font-display: 'Fraunces', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-jp);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; }

/* ========== Grain overlay ========== */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ========== Ticker ========== */
.ticker {
  background: var(--bg-dark);
  color: var(--bg);
  overflow: hidden;
  border-bottom: 1px solid var(--line-dark);
}
.ticker__track {
  display: inline-flex;
  gap: 2.5rem;
  padding: 0.55rem 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
  animation: slide 40s linear infinite;
}
.ticker__track span { flex-shrink: 0; }
@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ========== Header ========== */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 241, 234, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hdr__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}
.logo-mark {
  color: var(--blue);
  font-size: 1.5rem;
}
.hdr__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.hdr__nav a { transition: opacity 0.2s; }
.hdr__nav a:hover { opacity: 0.6; }
.hdr__cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s;
}
.hdr__cta:hover {
  background: var(--blue);
  transform: translateY(-1px);
  opacity: 1 !important;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 5rem 2rem 6rem;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
.hero__inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.hero__meta {
  display: inline-flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.pill--accent {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.hero__title {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(2.2rem, 7vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.hero__title-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero__title-line:nth-child(2) { animation-delay: 0.15s; }
.hero__title-line--big {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.15em;
}
.hero__title em {
  color: var(--blue);
  position: relative;
  display: inline-block;
}
.hero__title em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1em;
  height: 0.15em;
  background: var(--green);
  z-index: -1;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 3.5rem;
  line-height: 1.85;
}

/* ========== Clock ========== */
.clock {
  display: inline-block;
  background: var(--bg-dark);
  color: var(--bg);
  padding: 2rem 3rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  position: relative;
  box-shadow: 0 20px 60px rgba(10, 22, 40, 0.15);
}
.clock::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.clock__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  margin-bottom: 0.5rem;
}
.clock__time {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.clock__sep {
  color: var(--blue);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% { opacity: 0.3; }
}
.clock__sub {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--ink-mute);
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  font-family: var(--font-jp);
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(10, 22, 40, 0.3);
  background: var(--blue);
}
.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn--full { width: 100%; justify-content: center; }
.btn--large {
  padding: 1.3rem 2.5rem;
  font-size: 1.05rem;
}
.btn__arrow {
  transition: transform 0.2s;
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ========== Section common ========== */
section { padding: 6rem 2rem; }
.section__head {
  max-width: 1280px;
  margin: 0 auto 4rem;
  text-align: center;
}
.section__head--light .section__kicker { color: var(--blue-light); }
.section__head--light .section__title { color: var(--bg); }
.section__kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--blue);
  margin-bottom: 1rem;
}
.section__title {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 3.5rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

/* ========== Problem ========== */
.problem {
  background: var(--bg-dark);
  color: var(--bg);
}
.problem .section__kicker { color: var(--green); }
.problem .section__title { color: var(--bg); }
.problem__grid {
  max-width: 1100px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.problem__card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-dark);
  padding: 2rem;
  border-radius: 4px;
  transition: border-color 0.3s, transform 0.3s;
}
.problem__card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}
.problem__num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--blue);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
}
.problem__text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--bg);
}

.problem__quote {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  position: relative;
}
.quote__mark {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--blue);
  line-height: 0.5;
  display: block;
  margin-bottom: 1rem;
}
.problem__quote p {
  font-size: 1.15rem;
  color: var(--bg);
  line-height: 1.9;
}
.problem__quote strong { color: var(--yellow); font-weight: 700; }
.quote__answer {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 1.6rem !important;
  color: var(--green) !important;
}

/* ========== Features ========== */
.features {
  background: var(--bg);
}
.features .section__kicker { color: var(--blue); }

.features__list {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
.feature {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--line);
}
.feature:last-child { border-bottom: none; padding-bottom: 0; }
.feature--reverse { grid-template-columns: 1fr 200px; }
.feature--reverse .feature__label { order: 2; text-align: right; }

.feature__label {
  position: sticky;
  top: 100px;
}
.feature__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-mute);
  line-height: 1;
}
.feature__cat {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.75rem;
  background: var(--blue);
  color: var(--bg);
  border-radius: 2px;
}
.feature__title {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}
.feature__desc {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.9;
  max-width: 640px;
}
.feature__list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.feature__list li {
  padding-left: 0.5rem;
}
.feature__stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.stat {
  border-left: 3px solid var(--blue);
  padding-left: 1rem;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--ink);
}
.stat__num span {
  font-size: 1rem;
  color: var(--ink-mute);
  margin-left: 0.2rem;
}
.stat__lbl {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-mute);
  margin-top: 0.3rem;
  letter-spacing: 0.1em;
}

/* ========== Mock window ========== */
.feature__mock {
  grid-column: 2;
  margin-top: 2rem;
}
.mock__window {
  background: var(--bg-dark);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(10, 22, 40, 0.2);
  max-width: 560px;
}
.mock__bar {
  background: #1a2942;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mock__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.mock__bar span:nth-child(1) { background: #ff5f56; }
.mock__bar span:nth-child(2) { background: #ffbd2e; }
.mock__bar span:nth-child(3) { background: #27c93f; }
.mock__url {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-mute);
}
.mock__body {
  padding: 1.5rem;
  color: var(--bg);
}
.mock__row {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.mock__row:last-child { border-bottom: none; }
.mock__lbl {
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}
.mock__val { color: var(--bg); }
.mock__row--status .mock__val { color: var(--green); }
.mock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  margin: auto 0;
  animation: pulse 1.5s ease-in-out infinite;
}

/* ========== Flow ========== */
.flow {
  background: var(--blue-light);
}
.flow__steps {
  max-width: 820px;
  margin: 0 auto;
  list-style: none;
  counter-reset: step;
  position: relative;
}
.flow__steps::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), transparent);
}
.flow__step {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
.flow__num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
}
.flow__body {
  background: var(--bg-card);
  padding: 1.5rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  flex: 1;
}
.flow__body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.flow__body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}
.flow__body code {
  background: var(--bg);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--blue-deep);
}

/* ========== Pricing ========== */
.pricing {
  background: var(--bg-dark);
  color: var(--bg);
}
.price-card {
  max-width: 540px;
  margin: 0 auto;
  background: var(--bg-card);
  color: var(--ink);
  padding: 3rem;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}
.price-card__ribbon {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--ink);
  padding: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  border-radius: 999px;
}
.price-card__head {
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.price-card__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}
.price-card__name span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}
.price-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
}
.price-card__yen {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
}
.price-card__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-card__tax {
  font-size: 0.9rem;
  color: var(--ink-mute);
  margin-left: 0.5rem;
}
.price-card__list {
  list-style: none;
  margin-bottom: 2rem;
}
.price-card__list li {
  padding: 0.6rem 0 0.6rem 1.8rem;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px dashed var(--line);
}
.price-card__list li:last-child { border-bottom: none; }
.price-card__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}
.price-card__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.price-card__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.price-card__field span {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
}
.price-card__field input {
  padding: 0.9rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-jp);
  font-size: 1rem;
  transition: border-color 0.2s;
}
.price-card__field input:focus {
  outline: none;
  border-color: var(--blue);
}
.price-card__note {
  font-size: 0.8rem;
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.7;
  margin-top: 0.5rem;
}

/* ========== FAQ ========== */
.faq__list {
  max-width: 820px;
  margin: 0 auto;
}
.faq__item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq__item summary {
  padding: 1.5rem 0;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
  transition: color 0.2s;
}
.faq__item summary:hover { color: var(--blue); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1.5rem;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue);
  transition: transform 0.3s;
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
}
.faq__item p {
  padding: 0 0 1.5rem;
  color: var(--ink-soft);
  line-height: 1.9;
  font-size: 0.95rem;
}

/* ========== Final CTA ========== */
.final-cta {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(30, 75, 216, 0.3), transparent 70%);
}
.final-cta__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}
.final-cta h2 {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}
.final-cta p {
  font-size: 1.05rem;
  color: var(--ink-mute);
  margin-bottom: 2.5rem;
}
.final-cta .btn--primary {
  background: var(--bg);
  color: var(--ink);
}
.final-cta .btn--primary:hover {
  background: var(--green);
  color: var(--ink);
}

/* ========== Footer ========== */
.ftr {
  background: var(--bg-dark);
  color: var(--bg);
  padding: 4rem 2rem 2rem;
  border-top: 1px solid var(--line-dark);
}
.ftr__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 3rem;
}
.ftr__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.35rem;
  margin-bottom: 1rem;
}
.ftr__brand p {
  font-size: 0.85rem;
  color: var(--ink-mute);
  line-height: 1.8;
}
.ftr__links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.85rem;
}
.ftr__links a:hover { color: var(--blue); }
.ftr__legal p {
  font-size: 0.75rem;
  color: var(--ink-mute);
  line-height: 1.8;
}
.ftr__copy {
  grid-column: 1 / -1;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--line-dark);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .hdr__nav { display: none; }
  .hdr__cta { display: inline-flex; }

  section { padding: 4rem 1.5rem; }
  .hero { padding: 3rem 1.5rem 4rem; }

  .feature, .feature--reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .feature--reverse .feature__label { order: 0; text-align: left; }
  .feature__label { position: static; }
  .feature__mock { grid-column: 1; }

  .flow__step {
    grid-template-columns: 48px 1fr;
    gap: 1rem;
  }
  .flow__num { width: 48px; height: 48px; font-size: 1.2rem; }
  .flow__body { padding: 1.2rem; }

  .price-card { padding: 2rem 1.5rem; }

  .ftr__inner { grid-template-columns: 1fr; gap: 2rem; }

  .clock { padding: 1.5rem 2rem; }
}

@media (min-width: 769px) {
  .hdr__nav a:not(.hdr__cta) { display: inline-flex; }
}

@media (max-width: 500px) {
  .hdr__nav a:not(.hdr__cta) { display: none; }
}
