:root {
  --bg: #ffffff;
  --soft: #fbf8ff;
  --soft-2: #f5efff;
  --text: #1f1e2f;
  --muted: #737184;
  --line: #ebe6f4;
  --purple: #7b4df4;
  --pink: #ea5bb8;
  --gradient: linear-gradient(135deg, #ea5bb8 0%, #8b5cf6 100%);
  --shadow: 0 24px 70px rgba(54, 38, 95, .10);
  --radius: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Yu Gothic", sans-serif;
  letter-spacing: -.02em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(235, 230, 244, .9);
  backdrop-filter: blur(16px);
}

.brand img { height: 40px; width: auto; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a:hover { color: var(--purple); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-select {
  height: 42px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.header-cta,
.primary-btn,
.floating-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(139, 92, 246, .25);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}

.header-cta:hover,
.primary-btn:hover,
.floating-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 42px rgba(139, 92, 246, .30);
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  padding: 90px 0;
}

.hero-copy::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -34px;
  top: 48px;
  width: min(700px, calc(100% + 68px));
  height: calc(100% - 96px);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 34px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 26px 80px rgba(44, 38, 61, .12);
  backdrop-filter: blur(14px);
}

.eyebrow,
.section-head > p,
.section-kicker {
  margin: 0 0 16px;
  color: var(--purple);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(44px, 6.5vw, 82px);
  line-height: 1.05;
  letter-spacing: -.07em;
}

.hero-lead {
  max-width: 560px;
  margin: 24px 0 32px;
  color: #4c4a5e;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
  font-weight: 700;
}

.trust-bar {
  width: min(980px, calc(100% - 40px));
  margin: -34px auto 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-bar div {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #3f3d52;
  font-size: 15px;
}

.section {
  padding: clamp(86px, 9vw, 128px) clamp(20px, 5vw, 72px);
}

.section-white { background: #fff; }
.section-lavender { background: linear-gradient(180deg, #fbf8ff 0%, #f6f0ff 100%); }

.section-head {
  width: min(820px, 100%);
  margin: 0 auto 54px;
  text-align: center;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.18;
  letter-spacing: -.06em;
}

.section-head > p:last-child,
.why-section .section-head p[data-i18n="why.lead"] {
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  font-weight: 700;
  letter-spacing: -.02em;
  text-transform: none;
}

.feature-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card,
.why-card,
.demo-frame,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 50px rgba(54, 38, 95, .07);
}

.feature-card {
  padding: 30px;
  display: flex;
  min-height: 420px;
  flex-direction: column;
}

.feature-card img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  margin-bottom: auto;
}

.feature-card h3 {
  margin: 48px 0 14px;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: -.055em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
  font-weight: 700;
}

.demo-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: 52px;
}

.demo-layout h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.2vw, 54px);
  letter-spacing: -.06em;
}

.demo-layout p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  font-weight: 700;
}

.demo-frame {
  min-height: 360px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gradient) border-box;
  border: 1px solid transparent;
}

.demo-frame span {
  font-size: 24px;
  font-weight: 900;
}

.demo-frame ol {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}

.demo-frame li {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--soft);
  color: #4d4668;
  font-weight: 800;
}

.why-grid {
  width: min(960px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.why-card {
  padding: 32px;
}

.why-card span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--soft-2);
  color: var(--purple);
  font-size: 24px;
  font-weight: 900;
}

.why-card h3 {
  margin: 24px 0 12px;
  font-size: 22px;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.85;
}

.faq-list {
  width: min(820px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq-list details {
  padding: 0 24px;
}

.faq-list summary {
  cursor: pointer;
  padding: 22px 0;
  font-size: 18px;
  font-weight: 900;
}

.faq-list p {
  margin: 0;
  padding: 0 0 22px;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 700;
}

.pre-footer-cta {
  padding: 56px 20px;
  background: #fff;
  text-align: center;
}

.pre-footer-cta p {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.final-cta {
  padding: clamp(80px, 9vw, 120px) 20px;
  text-align: center;
  background: linear-gradient(180deg, #fbf8ff 0%, #f2eaff 100%);
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -.07em;
}

.final-cta p {
  margin: 22px auto 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
  font-weight: 800;
}

.final-cta small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 800;
}

.floating-cta {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
}

.floating-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.footer {
  padding: 56px clamp(20px, 5vw, 72px) 34px;
  border-top: 1px solid var(--line);
  background: #faf8ff;
}

.footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.footer-brand img {
  height: 44px;
  width: auto;
}

.footer-brand p {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-links h3 {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--purple);
}

.footer-links a {
  display: block;
  margin: 10px 0;
  color: var(--muted);
  font-weight: 700;
}

.copyright {
  grid-column: 1 / -1;
  margin: 24px 0 0;
  color: #9a96aa;
  font-size: 13px;
}

.legal-page {
  background: #fbf8ff;
}

.legal-header {
  background: rgba(255,255,255,.9);
}

.legal-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 100px;
  display: grid;
  grid-template-columns: 240px minmax(0, 820px);
  gap: 44px;
}

.legal-toc {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.legal-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--purple);
}

.legal-toc a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.legal-article {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}

.legal-article h1 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.025em;
}

.full-legal-article [data-full-legal] > h1 {
  margin: 0 0 34px;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.35;
}

.full-legal-article [data-full-legal] > h2 {
  margin: 36px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  scroll-margin-top: 110px;
}

.full-legal-article [data-full-legal] > h3 {
  margin: 18px 0 14px;
  color: #292637;
  font-size: 15px;
  font-weight: 700;
}

.full-legal-article [data-full-legal] > p {
  margin: 0 0 14px;
}

.updated {
  margin: 12px 0 42px;
  color: var(--muted);
  font-weight: 800;
}

.legal-article section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-article h2 {
  margin: 0 0 16px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
}

.legal-article p,
.legal-article li {
  color: #555266;
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
}

.full-legal-article [data-full-legal] > p,
.full-legal-article [data-full-legal] li {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
}

@media (max-width: 640px) {
  .legal-article { padding: 24px 20px; border-radius: 22px; }
  .legal-article h1,
  .full-legal-article [data-full-legal] > h1 { font-size: 28px; font-weight: 800; }
  .legal-article h2,
  .full-legal-article [data-full-legal] > h2 { font-size: 18px; font-weight: 800; }
  .full-legal-article [data-full-legal] > h3 { font-size: 15px; font-weight: 700; }
  .legal-article p,
  .legal-article li,
  .full-legal-article [data-full-legal] > p,
  .full-legal-article [data-full-legal] li { font-size: 16px; font-weight: 400; line-height: 1.75; }
}

.info-box {
  padding: 20px;
  border-radius: 22px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--purple);
  font-weight: 900;
}

@media (max-width: 860px) {
  .site-header {
    height: 68px;
    padding: 0 16px;
  }

  .brand img { height: 34px; }
  .desktop-nav { display: none; }
  .language-select { max-width: 112px; height: 38px; font-size: 12px; }
  .header-cta { min-height: 38px; padding: 0 14px; font-size: 13px; }

  .hero {
    min-height: calc(100svh - 68px);
    place-items: end start;
  }

  .hero-copy {
    width: 100%;
    padding: 44svh 20px 44px;
  }

  .hero-copy::before {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: 24px;
    width: auto;
    height: 310px;
    border-radius: 28px;
    background: rgba(255,255,255,.84);
  }

  .hero h1 {
    font-size: 42px;
  }

  .trust-bar {
    margin-top: 0;
    width: 100%;
    border-radius: 0;
    grid-template-columns: 1fr;
    box-shadow: none;
  }

  .trust-bar div {
    min-height: 54px;
  }

  .feature-grid,
  .why-grid,
  .demo-layout,
  .footer,
  .footer-links,
  .legal-main {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 76px 20px;
  }

  .feature-card {
    min-height: auto;
  }

  .feature-card h3 {
    margin-top: 40px;
  }

  .demo-layout {
    gap: 28px;
  }

  .floating-cta {
    right: 16px;
    bottom: 18px;
    min-height: 42px;
    padding: 0 18px;
    font-size: 14px;
  }

  .legal-toc {
    position: static;
  }
}
