/* ===== JMS Assistant — Journey Marketing Studio ===== */

:root {
  --blue: #3B82F6;
  --indigo: #4F46E5;
  --violet: #7C3AED;
  --ink: #14212E;
  --muted: #64748B;
  --body: #3D4B5C;
  --bg: #FAFBFF;
  --card: #FFFFFF;
  --line: #E6EAF4;
  --grad: linear-gradient(135deg, var(--blue), var(--indigo) 52%, var(--violet));
  --radius: 18px;
  --shadow-soft: 0 8px 30px rgba(20, 33, 46, .07);
  --shadow-lift: 0 16px 44px rgba(79, 70, 229, .16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.015em; }

img { display: block; max-width: 100%; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px;
  border-radius: 999px; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 6px 20px rgba(79, 70, 229, .30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost {
  color: var(--ink); border: 1.5px solid var(--line); background: #fff;
}
.btn-ghost:hover { transform: translateY(-2px); border-color: #C7D2FE; box-shadow: var(--shadow-soft); }
.btn-small { min-height: 44px; padding: 9px 22px; font-size: 15px; }
.btn-large { font-size: 17px; padding: 14px 34px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 255, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 24px rgba(20, 33, 46, .05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-wordmark { font-weight: 800; font-size: 17px; color: var(--ink); letter-spacing: .01em; }
.nav-wordmark em { font-style: normal; font-weight: 600; color: var(--muted); letter-spacing: .15em; font-size: 13px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) {
  color: var(--body); text-decoration: none; font-weight: 500; font-size: 15.5px;
  padding: 10px 2px;
}
.nav-links a:not(.btn):hover { color: var(--indigo); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 64px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -40% -20% auto;
  height: 620px;
  background:
    radial-gradient(38% 55% at 28% 38%, rgba(59, 130, 246, .16), transparent 70%),
    radial-gradient(34% 50% at 72% 30%, rgba(124, 58, 237, .13), transparent 70%),
    radial-gradient(30% 44% at 52% 62%, rgba(79, 70, 229, .10), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 840px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: 13.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--indigo);
  background: rgba(79, 70, 229, .08); border: 1px solid rgba(79, 70, 229, .18);
  padding: 7px 16px; border-radius: 999px;
}
.hero h1 { font-size: clamp(38px, 6vw, 60px); font-weight: 800; margin: 26px 0 20px; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero-sub { font-size: clamp(17px, 2.2vw, 19.5px); max-width: 640px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  margin-top: 58px; padding-top: 34px; border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-size: clamp(26px, 3.6vw, 34px); font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats dd { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ---------- product mockup ---------- */
.product { padding: 30px 0 80px; }
.mockup {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  box-shadow: 0 30px 80px rgba(20, 33, 46, .12);
  max-width: 880px; margin: 0 auto;
}
.mockup-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; background: #F3F5FB; border-bottom: 1px solid var(--line);
}
.dot { width: 11px; height: 11px; border-radius: 50%; background: #D9DEEC; }
.mockup-url {
  margin-left: 14px; font-size: 12.5px; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 14px;
}
.mockup-body { display: flex; min-height: 340px; }
.mockup-side {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 18px 14px; border-right: 1px solid var(--line); background: #FBFCFF;
}
.side-item { width: 22px; height: 22px; border-radius: 7px; background: #E7EBF6; }
.side-item.active { background: var(--grad); }
.mockup-main { flex: 1; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.mockup-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.mcard {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px;
}
.mcard-label { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.mcard-value { font-size: 21px; font-weight: 800; color: var(--ink); }
.mcard-trend { font-size: 11.5px; font-weight: 700; }
.mcard-trend.up { color: #0E9F6E; }
.mcard-trend.down { color: #E02424; }
.mockup-chart-wrap { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.mockup-chart-head {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px;
}
.mockup-chart-head span:first-child {
  font-size: 12px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .05em;
}
.mchip {
  font-size: 11px; font-weight: 700; color: #0E9F6E;
  background: rgba(14, 159, 110, .1); padding: 2px 10px; border-radius: 999px;
}
.mockup-chart { display: flex; align-items: flex-end; gap: 10px; height: 110px; }
.mcol { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; height: 100%; }
.mcol span { font-size: 9.5px; color: var(--muted); text-align: center; }
.mbar {
  height: var(--h); border-radius: 6px 6px 2px 2px;
  background: var(--grad); opacity: .85;
}
.mockup-rows { display: flex; flex-direction: column; gap: 10px; }
.mrow { display: flex; align-items: center; gap: 12px; }
.mrow-label { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.mval { font-size: 12px; font-weight: 800; color: var(--ink); min-width: 44px; text-align: right; }
.mtag {
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  padding: 3px 10px; border-radius: 999px; color: #fff; min-width: 46px; text-align: center;
}
.mtag.tof { background: var(--blue); }
.mtag.mof { background: var(--indigo); }
.mtag.bof { background: var(--violet); }
.mline { height: 10px; border-radius: 999px; background: #EDF0F9; position: relative; flex: 1; }
.mline::after {
  content: ""; position: absolute; inset: 0; width: var(--w);
  border-radius: 999px; background: var(--grad); opacity: .8;
}
.mockup-caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }

/* ---------- sections ---------- */
.section-title { font-size: clamp(28px, 4vw, 38px); font-weight: 800; text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin: 12px auto 0; max-width: 560px; }

.features { padding: 40px 0 90px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px;
}
.fcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #C7D2FE; }
.ficon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--grad); display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.ficon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 1.8; }
.fcard h3 { font-size: 18.5px; margin-bottom: 8px; }
.fcard p { font-size: 15px; color: var(--body); }

/* ---------- how it works ---------- */
.how { padding: 70px 0 90px; background: linear-gradient(180deg, #F4F6FE, var(--bg)); }
.steps {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px;
}
.step { text-align: left; }
.step-no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 17px;
}
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; }

/* ---------- about ---------- */
.about { padding: 80px 0; }
.about-inner {
  text-align: center; max-width: 640px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.about h2 { font-size: clamp(24px, 3.4vw, 30px); }

.about-invite { font-size: 15.5px; color: var(--muted); }
.about-invite a { color: var(--indigo); font-weight: 600; }

/* ---------- faq ---------- */
.faq { padding: 10px 0 90px; }
.faq-inner { max-width: 720px; }
.faq-list { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 0 22px;
  transition: border-color .2s ease;
}
.faq-list details[open] { border-color: #C7D2FE; }
.faq-list summary {
  cursor: pointer; font-weight: 700; color: var(--ink); font-size: 16.5px;
  padding: 18px 0; list-style: none; position: relative; padding-right: 34px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--indigo);
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 0 18px; font-size: 15px; }
.faq-list details a { color: var(--indigo); font-weight: 600; }

/* ---------- contact ---------- */
.contact { padding: 10px 0 100px; }
.contact-card {
  text-align: center; padding: 64px 32px;
  border-radius: 26px; background: var(--ink); color: #C9D4E3;
  background-image:
    radial-gradient(60% 90% at 18% 0%, rgba(59, 130, 246, .25), transparent 60%),
    radial-gradient(60% 90% at 85% 100%, rgba(124, 58, 237, .28), transparent 60%);
}
.contact-card h2 { color: #fff; font-size: clamp(26px, 3.6vw, 34px); margin-bottom: 10px; }
.contact-card .btn { margin-top: 26px; }
.contact-note { margin-top: 18px; font-size: 14px; color: #8CA0B8; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; background: #fff; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--muted); font-size: 14.5px; text-decoration: none; padding: 8px 0; }
.footer-links a:hover { color: var(--indigo); }

/* ---------- legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 70px 24px 100px; }
.legal h1 { font-size: 34px; margin-bottom: 6px; }
.legal .legal-date { color: var(--muted); font-size: 14.5px; margin-bottom: 36px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 15.5px; }
.legal ul { padding-left: 22px; margin: 10px 0; }
.legal a { color: var(--indigo); }

/* ---------- reveal animations ---------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
}
.reveal.in-view { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .fcard { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 64px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .mockup-cards { grid-template-columns: repeat(2, 1fr); }
  .mockup-side { display: none; }
}
