:root {
  color-scheme: light;

  --bg: #ffffff;
  --paper: #f7faf9;
  --paper-blue: #f3f8fb;
  --surface: #ffffff;
  --surface-soft: #f2f5f7;

  --ink: #0b1220;
  --ink-soft: #243044;
  --muted: #687386;
  --muted-2: #98a2b3;

  --line: #e5eaf0;
  --line-strong: #d2d9e3;

  --navy: #0b1220;
  --navy-2: #14223a;
  --accent: #10b981;
  --accent-ink: #047857;
  --accent-soft: #e9fbf3;
  --sky: #38bdf8;
  --sky-soft: #ecf8ff;
  --warn: #f59e0b;

  --shadow-xs: 0 1px 2px rgba(11, 18, 32, 0.04);
  --shadow-sm: 0 8px 24px rgba(11, 18, 32, 0.08);
  --shadow-lg: 0 34px 80px -34px rgba(11, 18, 32, 0.42);

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --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;
  -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,
figure,
dl,
dd {
  margin: 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.84);
  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: 800;
  letter-spacing: 0;
}

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

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

.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: var(--radius-xs);
}

.nav-cta:hover {
  background: #e9edf2;
}

/* Shared text */

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

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

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

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

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

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

.section-heading.center {
  max-width: 760px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading h2,
.flow-section h2,
.cta-inner h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
}

.section-lead,
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

/* Hero */

.hero {
  position: relative;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 86px clamp(20px, 5vw, 56px) 92px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 clamp(20px, 5vw, 56px) auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  align-items: center;
  gap: 64px;
}

.hero-copy {
  min-width: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 38px;
}

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

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

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

.primary-action.on-dark:hover {
  background: #19cf96;
}

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

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-metrics div {
  padding: 16px 20px 16px 0;
}

.hero-metrics div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.hero-metrics dt {
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-metrics dd {
  margin-top: 3px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

/* Product preview */

.product-board {
  position: relative;
  min-height: 640px;
  padding: 24px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 18, 32, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f5fbf8 100%);
  background-size: 48px 48px, 48px 48px, auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.board-topline {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.board-topline strong {
  color: var(--accent-ink);
  font-weight: 700;
}

.phone-frame {
  position: relative;
  margin: 0;
  padding: 7px;
  background: linear-gradient(180deg, #1c2638, #07101f);
  border-radius: 40px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(11, 18, 32, 0.1),
    0 28px 56px -24px rgba(11, 18, 32, 0.44);
}

.phone-screen {
  aspect-ratio: 430 / 935;
  overflow: hidden;
  background: #0b1220;
  border-radius: 32px;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.hero-device {
  z-index: 2;
  width: 268px;
  margin: 68px auto 0;
}

.floating-note {
  position: absolute;
  z-index: 3;
  width: 230px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(210, 217, 227, 0.88);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.floating-note span,
.court-title span,
.panel-label,
.feature-tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.floating-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.45;
}

.floating-note p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.priority-note {
  top: 128px;
  left: 24px;
}

.drill-note {
  right: 24px;
  bottom: 82px;
}

.court-panel {
  position: absolute;
  z-index: 3;
  left: 34px;
  bottom: 34px;
  width: 218px;
  padding: 16px;
  background: rgba(7, 16, 31, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.court-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.court-title span {
  margin: 0;
  color: var(--sky);
}

.court-title strong {
  max-width: 92px;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: right;
}

.court-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  aspect-ratio: 3 / 2;
}

.court-grid span {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
}

.court-grid .warm {
  background: rgba(56, 189, 248, 0.3);
  border-color: rgba(56, 189, 248, 0.65);
}

.court-grid .hot {
  background: rgba(16, 185, 129, 0.34);
  border-color: rgba(16, 185, 129, 0.72);
}

/* Workflow */

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

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  list-style: none;
}

.workflow-grid li {
  min-height: 250px;
  padding: 28px;
  background: #ffffff;
}

.flow-num {
  display: inline-block;
  margin-bottom: 54px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.workflow-grid h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.35;
}

.workflow-grid p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.75;
}

/* Analysis */

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

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(440px, 0.98fr);
  align-items: center;
  gap: 72px;
}

.analysis-copy h2 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: 3.15rem;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: 0;
}

.analysis-copy .section-lead {
  max-width: 640px;
}

.analysis-points {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

.analysis-points article {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.analysis-points span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.analysis-points h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
  font-weight: 800;
}

.analysis-points p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.72;
}

.analysis-visual {
  position: relative;
  min-height: 620px;
}

.analysis-visual::before {
  content: "";
  position: absolute;
  inset: 56px 0 42px 66px;
  background:
    linear-gradient(90deg, rgba(11, 18, 32, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 18, 32, 0.05) 1px, transparent 1px),
    var(--paper-blue);
  background-size: 44px 44px, 44px 44px, auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.report-device {
  position: relative;
  z-index: 2;
  width: 260px;
  margin: 0 0 0 34px;
}

.decision-panel {
  position: absolute;
  right: 0;
  bottom: 54px;
  z-index: 3;
  width: min(330px, 72%);
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.decision-panel h3 {
  margin-bottom: 18px;
  font-size: 1.24rem;
  font-weight: 800;
}

.brief-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.brief-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.brief-row strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.55;
}

/* Product details */

.product-section {
  background: #ffffff;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.showcase-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: end;
  gap: 24px;
  min-height: 472px;
  padding: 28px 28px 0;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #f7fbf9);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.showcase-item.reverse {
  background: linear-gradient(180deg, #ffffff, #f4f9fc);
}

.feature-tag {
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 999px;
}

.showcase-item.reverse .feature-tag {
  color: #0369a1;
  background: var(--sky-soft);
}

.showcase-item h3 {
  margin-bottom: 12px;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.35;
}

.showcase-item p {
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.82;
}

.showcase-device {
  width: 210px;
  align-self: end;
  margin-bottom: -112px;
}

/* Plans */

.plans-section {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

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

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

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

.plan h3 {
  margin-bottom: 10px;
  font-size: 1.22rem;
  font-weight: 800;
}

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

.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: 700;
}

/* CTA */

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

.cta-inner {
  padding: 78px clamp(28px, 6vw, 80px);
  color: #f1f4f9;
  text-align: center;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, #111c32, var(--ink));
  background-size: 56px 56px, 56px 56px, auto;
  border-radius: var(--radius-lg);
}

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

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

/* 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: 1120px) {
  .hero-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 44px;
  }

  h1 {
    font-size: 3.85rem;
  }

  .priority-note {
    left: 16px;
  }

  .drill-note {
    right: 16px;
  }

  .analysis-layout {
    gap: 48px;
  }
}

@media (max-width: 980px) {
  .section {
    padding-block: 86px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-layout,
  .analysis-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 720px;
  }

  h1 {
    font-size: 3.45rem;
  }

  .product-board {
    min-height: 610px;
  }

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

  .analysis-copy h2,
  .section-heading h2,
  .flow-section h2,
  .cta-inner h2 {
    font-size: 2.45rem;
  }

  .analysis-visual {
    width: min(620px, 100%);
    margin: 0 auto;
  }

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

  .showcase-item {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
}

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

  .site-header {
    gap: 16px;
    padding-block: 12px;
  }

  .site-nav {
    gap: 14px;
  }

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

  .hero {
    padding-top: 46px;
    padding-bottom: 72px;
  }

  h1 {
    font-size: 2.68rem;
    line-height: 1.08;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.85;
  }

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

  .primary-action {
    width: 100%;
  }

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

  .hero-metrics {
    display: none;
  }

  .product-board {
    display: grid;
    gap: 14px;
    min-height: 0;
    padding: 16px;
    border-radius: 18px;
  }

  .board-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .hero-device {
    width: min(238px, 68vw);
    margin: 6px auto 0;
  }

  .floating-note,
  .court-panel {
    position: static;
    width: 100%;
  }

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

  .workflow-grid li {
    min-height: 0;
  }

  .flow-num {
    margin-bottom: 34px;
  }

  .section-heading.center {
    text-align: left;
  }

  .analysis-copy h2,
  .section-heading h2,
  .flow-section h2,
  .cta-inner h2 {
    font-size: 2rem;
  }

  .analysis-visual {
    display: grid;
    gap: 16px;
    min-height: 0;
  }

  .analysis-visual::before {
    display: none;
  }

  .report-device {
    width: min(238px, 68vw);
    margin: 0 auto;
  }

  .decision-panel {
    position: static;
    width: 100%;
  }

  .showcase-item,
  .showcase-item.reverse {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 24px 24px 0;
  }

  .showcase-device {
    width: min(230px, 66vw);
    margin: 0 auto -106px;
  }

  .cta-section {
    padding-bottom: 72px;
  }

  .cta-inner {
    padding: 52px 24px;
    border-radius: 18px;
  }

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

@media (max-width: 380px) {
  h1 {
    font-size: 2.42rem;
  }

  .site-header {
    padding-inline: 16px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .nav-cta {
    padding-inline: 11px;
  }
}

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

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