:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #ffffff;
  --paper: #fafbfc;
  --surface-soft: #f5f7fa;

  /* Ink (deep navy base) */
  --ink: #0b1220;
  --ink-soft: #1f2a3d;
  --muted: #6b7384;
  --muted-2: #9aa3b2;

  /* Lines */
  --line: #e8ebf0;
  --line-strong: #d8dde6;

  /* Brand */
  --navy: #0b1220;
  --navy-2: #14223a;
  --accent: #10b981;
  --accent-ink: #047857;
  --accent-soft: #ecfdf5;

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(11, 18, 32, 0.04);
  --shadow-sm: 0 4px 14px rgba(11, 18, 32, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(11, 18, 32, 0.25);

  /* Typography */
  --font-sans: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont,
    "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo,
    Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01", "palt";
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: rgba(16, 185, 129, 0.18);
}

a {
  color: inherit;
  text-decoration: none;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand img {
  border-radius: 7px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a {
  transition: color 0.18s ease;
}

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

.nav-cta {
  padding: 7px 14px;
  color: var(--ink);
  background: var(--surface-soft);
  border-radius: 8px;
  font-weight: 600;
  transition: background 0.18s ease;
}

.nav-cta:hover {
  background: #eceff4;
  color: var(--ink);
}

/* ---------- Eyebrow / labels ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: var(--accent);
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 128px) clamp(20px, 5vw, 56px) clamp(40px, 6vw, 80px);
  text-align: center;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -10% -20% auto -20%;
  height: 600px;
  background:
    radial-gradient(40% 60% at 50% 0%, rgba(16, 185, 129, 0.10), transparent 70%),
    radial-gradient(50% 80% at 50% 0%, rgba(11, 18, 32, 0.04), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

h1 {
  max-width: 880px;
  margin: 0 auto 22px;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-lead {
  max-width: 640px;
  margin: 0 auto 36px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  font-weight: 500;
  line-height: 1.75;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: clamp(56px, 8vw, 96px);
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition: transform 0.18s ease, background 0.18s ease;
}

.primary-action:hover {
  background: var(--navy-2);
  transform: translateY(-1px);
}

.primary-action.on-dark {
  background: var(--accent);
  color: #04231a;
}

.primary-action.on-dark:hover {
  background: #14cf95;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 0.18s ease, gap 0.18s ease;
}

.text-action:hover {
  color: var(--accent-ink);
  gap: 10px;
}

/* Phone frame */

.hero-shot {
  margin: 0 auto;
  width: min(320px, 78vw);
}

.phone-frame {
  position: relative;
  padding: 6px;
  background: linear-gradient(180deg, #1a2336, #0b1220);
  border-radius: 38px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 0 0 1px rgba(11, 18, 32, 0.08),
    var(--shadow-lg);
}

.phone-frame img {
  width: 100%;
  border-radius: 32px;
}

.phone-frame.small {
  border-radius: 30px;
  padding: 5px;
}

.phone-frame.small img {
  border-radius: 25px;
}

/* ---------- Section base ---------- */

.section {
  padding: clamp(72px, 10vw, 132px) clamp(20px, 5vw, 56px);
}

.section-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
}

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

.section-heading h2,
.flow-section h2,
.cta-inner h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.section-lead,
.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

/* ---------- Flow section ---------- */

.flow-section {
  border-top: 1px solid var(--line);
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  position: relative;
  padding: 30px 32px 30px 0;
}

.flow-list li + li {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.flow-num {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.flow-list h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.flow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Insight / features ---------- */

.insight-section {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 64px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.feature {
  padding: 32px;
  background: #ffffff;
  transition: background 0.18s ease;
}

.feature:hover {
  background: #fbfdfc;
}

.feature-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 4px 10px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

/* Screen pair */

.screen-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}

.screen-pair .phone-frame {
  width: 100%;
}

.screen-pair .offset {
  margin-top: 56px;
}

/* ---------- Plans ---------- */

.plans-section {
  background: #ffffff;
}

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

.plan {
  position: relative;
  padding: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.plan:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.plan h3 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.plan p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.plan.featured {
  border-color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #fbfffd);
  box-shadow: var(--shadow-sm);
}

.plan-tag {
  position: absolute;
  top: -10px;
  left: 24px;
  padding: 4px 10px;
  color: #04231a;
  background: var(--accent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ---------- CTA ---------- */

.cta-section {
  padding: 0 clamp(20px, 5vw, 56px) clamp(64px, 8vw, 104px);
}

.cta-inner {
  padding: clamp(48px, 8vw, 88px) clamp(28px, 6vw, 80px);
  text-align: center;
  color: #f1f4f9;
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(16, 185, 129, 0.16), transparent 60%),
    linear-gradient(180deg, #0e1830, var(--ink));
  border-radius: 20px;
}

.cta-inner h2 {
  color: #ffffff;
  margin-bottom: 14px;
}

.cta-inner p {
  max-width: 560px;
  margin: 0 auto 28px;
  color: rgba(241, 244, 249, 0.7);
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer a {
  transition: color 0.18s ease;
}

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

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .site-header {
    position: sticky;
  }

  .flow-list {
    grid-template-columns: 1fr;
  }

  .flow-list li {
    padding: 26px 0;
    border-top: 1px solid var(--line);
  }

  .flow-list li + li {
    padding-left: 0;
    border-left: none;
  }

  .flow-list li:first-child {
    border-top: none;
    padding-top: 8px;
  }

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

  .plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15.5px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a:not(.nav-cta) {
    display: none;
  }

  .hero {
    text-align: left;
    padding-top: 48px;
  }

  h1 {
    margin-left: 0;
    font-size: clamp(2.4rem, 11vw, 3rem);
  }

  .hero-lead {
    margin-left: 0;
  }

  .lead-br {
    display: none;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .primary-action {
    width: 100%;
  }

  .text-action {
    justify-content: flex-start;
  }

  .hero-shot {
    width: min(260px, 70vw);
  }

  .section {
    padding-block: 64px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .screen-pair {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .screen-pair .offset {
    margin-top: 32px;
  }

  .cta-inner {
    border-radius: 16px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .primary-action:hover,
  .plan:hover,
  .text-action:hover {
    transform: none;
    gap: 6px;
  }
}
