* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --ink: #202426;
  --muted: #626a6d;
  --paper: #fffaf2;
  --surface: #ffffff;
  --line: #e8dfd2;
  --green: #1f7a5a;
  --blue: #2f6fed;
  --gold: #f0b85a;
  --shadow: 0 18px 50px rgba(32, 36, 38, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "Segoe UI", sans-serif;
  line-height: 1.75;
  background: var(--paper);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px max(22px, calc((100vw - 1080px) / 2));
  background: rgba(255, 250, 242, 0.94);
  border-bottom: 1px solid rgba(232, 223, 210, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 96px max(24px, calc((100vw - 1080px) / 2)) 72px;
  background: #fff8ed;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/mogunote-icon.png");
  background-repeat: no-repeat;
  background-size: min(620px, 78vw);
  background-position: right max(24px, calc((100vw - 1080px) / 2)) center;
  opacity: 0.22;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 250, 242, 0.62);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-weight: 800;
  font-size: 0.94rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.22;
}

h1 {
  font-size: 3.5rem;
}

.lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: #3e4649;
  font-size: 1.18rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(32, 36, 38, 0.08);
}

.button.primary {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.section {
  padding: 72px max(24px, calc((100vw - 1080px) / 2));
}

.section.alt {
  background: #ffffff;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading p {
  margin: 12px 0 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature {
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(32, 36, 38, 0.06);
}

.feature strong {
  display: block;
  margin-bottom: 10px;
  color: var(--green);
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.list {
  margin: 18px 0 0;
  padding-left: 1.2em;
  color: var(--muted);
}

.legal-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal-layout h1 {
  font-size: 2.3rem;
}

.legal-layout h2 {
  margin-top: 34px;
  font-size: 1.28rem;
}

.legal-layout p,
.legal-layout li {
  color: var(--muted);
}

.date {
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer {
  padding: 34px max(24px, calc((100vw - 1080px) / 2));
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 82vh;
    padding-top: 72px;
  }

  .hero::before {
    background-size: 420px;
    background-position: center bottom 8px;
    opacity: 0.18;
  }

  h1 {
    font-size: 2.6rem;
  }

  .feature-grid,
  .split {
    grid-template-columns: 1fr;
  }
}
