:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #0b1b33;
  --ink-sub: #41506b;
  --mute: #5e6e87;
  --blue: #0a5bd6;
  --blue-deep: #063a8c;
  --blue-pale: #dce9ff;
  --sky: #eef4ff;
  --canvas: #f4f8ff;
  --line: #d3dcea;
  --line-strong: #bcc8dc;
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 6px;
  --shadow: 0 30px 60px -34px rgba(11, 27, 51, 0.32);
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --max: 1160px;
  --header-h: 61px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    repeating-linear-gradient(90deg, rgba(11, 27, 51, 0.022) 0 1px, transparent 1px 46px) fixed,
    repeating-linear-gradient(0deg, rgba(11, 27, 51, 0.022) 0 1px, transparent 1px 46px) fixed,
    linear-gradient(180deg, var(--paper) 0%, var(--canvas) 64%) fixed,
    var(--canvas);
  color: var(--ink);
  font-family:
    "IBM Plex Sans", "IBM Plex Sans JP", ui-sans-serif, system-ui, -apple-system,
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--blue-pale);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
ul,
figure {
  margin-top: 0;
}

h1,
h2 {
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 30;
  transform: translateY(-140%);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  width: 100%;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid rgba(211, 220, 234, 0.8);
  background: rgba(255, 255, 255, 0.88);
  padding: 13px max(20px, calc((100vw - var(--max)) / 2));
  backdrop-filter: blur(18px);
  transition:
    background 180ms var(--ease),
    box-shadow 180ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px -28px rgba(11, 27, 51, 0.32);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  color: var(--ink-sub);
  font-size: 13px;
  font-weight: 500;
}

.site-nav a {
  transition: color 160ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--blue-deep);
}

.header-actions,
.hero-actions,
.request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition:
    transform 160ms var(--ease),
    background 160ms var(--ease),
    border-color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}

.button.compact {
  min-height: 34px;
  padding-inline: 13px;
  font-size: 12px;
}

.button.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 26px -16px rgba(10, 91, 214, 0.75);
}

.button.primary:hover,
.button.primary:focus-visible {
  border-color: var(--blue-deep);
  background: var(--blue-deep);
  box-shadow: 0 16px 30px -16px rgba(6, 58, 140, 0.7);
}

.button.secondary {
  border-color: var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--sky);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-section {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 50% -30%, rgba(10, 91, 214, 0.13), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.9) 100%);
}

.hero-shell {
  display: grid;
  grid-template-rows: repeat(4, auto) minmax(280px, 1fr);
  width: 100%;
  min-height: calc(100svh - var(--header-h));
  margin: 0 auto;
  padding: clamp(24px, 4vh, 52px) clamp(20px, 3.5vw, 72px) 0;
  text-align: center;
}

h1 {
  margin: 0 auto;
  font-size: clamp(34px, 4.6vw, 64px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.hero-lead {
  max-width: 720px;
  margin: 14px auto 0;
  color: var(--ink-sub);
  font-size: clamp(15px, 1.3vw, 18px);
}

.hero-actions {
  justify-content: center;
  margin-top: clamp(18px, 3vh, 26px);
}

.preview-stage {
  width: 100%;
  min-height: 0;
  margin-top: clamp(24px, 4vh, 40px);
  padding-bottom: clamp(24px, 4vh, 44px);
}

.app-window {
  display: flex;
  flex-direction: column;
  height: 100%;
  aspect-ratio: 1120 / 720;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow:
    0 24px 60px -28px rgba(11, 27, 51, 0.35),
    0 90px 150px -70px rgba(11, 27, 51, 0.3);
}

.window-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: calc(100% * 40 / 720);
  min-height: 32px;
  flex: 0 0 auto;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdff 0%, #f3f7fd 100%);
}

.wc-dots {
  display: flex;
  gap: 7px;
  justify-self: start;
}

.wc-dots i {
  width: 10px;
  height: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--line);
}

.wc-url {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 4px 14px;
  color: var(--mute);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 1;
}

.wc-lock {
  flex: 0 0 auto;
  color: var(--blue);
}

.window-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.window-body img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

.section {
  padding: 96px 24px;
  scroll-margin-top: calc(var(--header-h) + 8px);
}

.section-heading {
  width: min(100%, 760px);
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading h2,
.history-copy h2,
.request-section h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.section-heading p,
.history-copy p,
.request-section p {
  margin-bottom: 0;
  color: var(--ink-sub);
  font-size: 16px;
}

@supports (word-break: auto-phrase) {
  .hero-lead,
  .section-heading p,
  .history-copy p,
  .request-section p {
    word-break: auto-phrase;
  }
}

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

.feature-grid article,
.friendly-compare article,
.history-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px -34px rgba(11, 27, 51, 0.28);
}

.feature-grid article,
.friendly-compare article {
  padding: 24px;
  transition:
    transform 200ms var(--ease),
    border-color 200ms var(--ease),
    box-shadow 200ms var(--ease);
}

.feature-grid article:hover,
.friendly-compare article:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 26px 52px -34px rgba(11, 27, 51, 0.4);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.card-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.card-num {
  color: var(--blue);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.feature-grid h3,
.friendly-compare h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.feature-grid p,
.friendly-compare p {
  margin-bottom: 0;
  color: var(--mute);
  font-size: 14px;
}

.history-section {
  display: grid;
  width: min(100%, var(--max));
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1fr);
  align-items: center;
  gap: 42px;
}

.history-panel {
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
}

.panel-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #19a15f;
  box-shadow: 0 0 0 4px rgba(25, 161, 95, 0.14);
}

.panel-meta {
  margin-left: auto;
  color: var(--mute);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 400;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.metric-row div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 14px;
}

.metric-row span {
  display: block;
  color: var(--mute);
  font-size: 12px;
}

.metric-row strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 26px;
  font-weight: 500;
}

.history-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 12px 0;
  color: var(--ink-sub);
  font-size: 13px;
}

.history-list li:first-child {
  border-top: 0;
}

.history-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-list time {
  color: var(--mute);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.friendly-compare {
  display: grid;
  width: min(100%, var(--max));
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.request-section {
  display: grid;
  width: min(calc(100% - 48px), var(--max));
  margin: 16px auto 88px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  border: 1px solid #17325e;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% -20%, rgba(10, 91, 214, 0.5), transparent 46%),
    radial-gradient(circle at -10% 120%, rgba(6, 58, 140, 0.55), transparent 42%),
    linear-gradient(150deg, #12294f 0%, var(--ink) 62%);
  color: #ffffff;
  padding: clamp(30px, 4vw, 48px);
}

.request-section .eyebrow {
  color: #8ab6ff;
}

.request-section h2 {
  max-width: 760px;
  color: #ffffff;
}

.request-section p {
  max-width: 660px;
  color: rgba(214, 228, 247, 0.82);
}

.request-section .button.secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: transparent;
  color: #ffffff;
}

.request-section .button.secondary:hover,
.request-section .button.secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.09);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  color: var(--mute);
  font-size: 13px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.footer-tagline {
  margin-left: 4px;
  border-left: 1px solid var(--line);
  padding-left: 14px;
  color: var(--mute);
  font-weight: 400;
}

.footer-copy {
  margin: 0;
}

.footer-link {
  color: var(--ink-sub);
  font-weight: 500;
  transition: color 160ms var(--ease);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--blue-deep);
}

html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 650ms var(--ease),
    transform 650ms var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

html.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.feature-grid article:nth-child(2) {
  --reveal-delay: 0.08s;
}

.feature-grid article:nth-child(3) {
  --reveal-delay: 0.16s;
}

.friendly-compare article:nth-child(2) {
  --reveal-delay: 0.06s;
}

.friendly-compare article:nth-child(3) {
  --reveal-delay: 0.12s;
}

.friendly-compare article:nth-child(4) {
  --reveal-delay: 0.18s;
}

@media (min-width: 1081px) {
  .hero-shell {
    height: calc(100svh - var(--header-h));
    min-height: 620px;
  }
}

@media (max-width: 1080px) {
  .app-window {
    width: 100%;
    height: auto;
  }

  .history-section {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .history-panel {
    max-width: 640px;
  }

  .friendly-compare {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 16px;
  }

  .site-nav {
    display: none;
  }

  .hero-shell {
    padding: 44px 16px 0;
  }

  h1 {
    font-size: clamp(32px, 9vw, 46px);
  }

  .section {
    padding: 72px 16px;
  }

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

  .request-section {
    width: min(calc(100% - 32px), var(--max));
  }
}

@media (max-width: 580px) {
  .header-actions .primary {
    min-width: 0;
    padding-inline: 10px;
  }

  .hero-actions,
  .request-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-actions .button {
    width: auto;
    padding-inline: 10px;
  }

  .friendly-compare {
    grid-template-columns: 1fr;
  }

  .preview-stage {
    padding-bottom: 18px;
  }

  .app-window {
    aspect-ratio: 1 / 1.05;
  }

  .window-body img {
    object-position: 54% top;
    transform: scale(1.24);
    transform-origin: 54% top;
  }

  .metric-row {
    gap: 8px;
  }

  .metric-row div {
    padding: 10px;
  }

  .metric-row strong {
    font-size: 21px;
  }

  .history-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .panel-meta {
    display: none;
  }

  .site-footer {
    display: grid;
    gap: 10px;
  }
}

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

  html.has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
