:root {
  --orange: #ff5a00;
  --orange-2: #ff7a1a;
  --orange-3: #ffb000;
  --black: #111111;
  --ink: #292929;
  --muted: #717171;
  --line: #e9e9e9;
  --soft: #f7f7f7;
  --white: #ffffff;
  font-family: Inter, "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 5vw, 54px);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(233, 233, 233, .72);
}

.brand,
.phone-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand {
  font-size: 16px;
  font-weight: 900;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--orange);
  box-shadow: inset -10px -10px 0 rgba(0, 0, 0, .08);
  display: inline-block;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.brand-mark::before {
  width: 24px;
  height: 24px;
  left: 3px;
  top: 4px;
  background: var(--white);
  opacity: .92;
  transform: rotate(16deg);
}

.brand-mark::after {
  width: 18px;
  height: 18px;
  right: 2px;
  bottom: 3px;
  background: var(--orange-3);
  transform: rotate(-20deg);
}

.brand-mark.small {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.menu-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--black);
}

.hero,
.value-section,
.demo-section,
.screens-section,
.flow-section {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 54px 22px;
}

.hero {
  display: grid;
  gap: 30px;
  padding-top: 46px;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

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

h1 {
  font-size: clamp(42px, 11vw, 72px);
  line-height: 1.1;
  font-weight: 950;
}

h2 {
  font-size: clamp(30px, 7vw, 48px);
  line-height: 1.18;
  font-weight: 950;
}

.lead,
.value-section > p,
.flow-list p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.primary-cta,
.record-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 16px;
  background: var(--orange);
  color: var(--white);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(255, 90, 0, .24);
  cursor: pointer;
}

.hero-art {
  min-height: 238px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.lowpoly-tube {
  width: 152px;
  height: 194px;
  transform: rotate(-12deg);
  position: relative;
  clip-path: polygon(18% 8%, 78% 0, 92% 78%, 62% 100%, 8% 88%);
  background:
    linear-gradient(148deg, transparent 0 36%, rgba(255,255,255,.55) 36% 53%, transparent 53%),
    linear-gradient(28deg, #ff5a00 0 48%, #ff7a1a 48% 72%, #d94300 72%);
  box-shadow: 0 22px 42px rgba(255, 90, 0, .2);
}

.lowpoly-tube::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 50px;
  width: 66px;
  height: 82px;
  background: var(--white);
  clip-path: polygon(0 0, 100% 12%, 82% 100%, 16% 82%);
  opacity: .92;
}

.lowpoly-tube::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 48px;
  height: 44px;
  background: var(--orange-3);
  clip-path: polygon(50% 0, 100% 100%, 0 78%);
}

.poly {
  position: absolute;
  clip-path: polygon(50% 0, 100% 72%, 18% 100%, 0 28%);
}

.poly-a {
  width: 38px;
  height: 35px;
  left: 18%;
  top: 30px;
  background: var(--orange-3);
}

.poly-b {
  width: 44px;
  height: 40px;
  right: 18%;
  bottom: 34px;
  background: #ededed;
}

.poly-c {
  width: 25px;
  height: 24px;
  right: 28%;
  top: 28px;
  background: var(--orange);
}

.poly-d {
  width: 28px;
  height: 28px;
  left: 29%;
  bottom: 42px;
  background: #dadada;
}

.app-preview,
.demo-panel,
.phone-screen {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .07);
}

.app-preview {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.preview-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.preview-top p,
.loss-result span,
.field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.preview-top strong {
  display: block;
  margin-top: 4px;
  color: var(--orange);
  font-size: 38px;
  line-height: 1;
  font-weight: 950;
}

.preview-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff1e8;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
}

.scan-box {
  height: 108px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(255,90,0,.18) 16% 18%, transparent 18% 48%, rgba(255,90,0,.18) 48% 50%, transparent 50%),
    var(--soft);
  display: grid;
  place-items: center;
  gap: 7px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
}

.scan-icon {
  width: 32px;
  height: 32px;
  background: var(--orange);
  clip-path: polygon(20% 0, 92% 22%, 70% 100%, 0 74%);
}

.preview-list {
  display: grid;
  gap: 14px;
}

.preview-list div,
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.preview-list div {
  justify-content: flex-start;
  font-size: 14px;
  font-weight: 900;
}

.mini-poly {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #fff0e7;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
}

.mini-poly::before {
  content: "";
  position: absolute;
  inset: 7px;
  background: var(--orange);
  clip-path: polygon(20% 0, 92% 22%, 70% 100%, 0 74%);
}

.value-section {
  display: grid;
  gap: 16px;
}

.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.demo-panel {
  padding: 22px;
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 9px;
}

select,
input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  color: var(--black);
  padding: 0 14px;
  font-size: 16px;
  font-weight: 850;
}

.grams-control {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  gap: 10px;
}

.grams-control button {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--soft);
  color: var(--black);
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.loss-result {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #fff3eb;
}

.loss-result strong {
  color: var(--orange);
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
}

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

.phone-screen {
  min-height: 500px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
}

.phone-bar {
  justify-content: space-between;
  font-size: 14px;
}

.menu-dots {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--soft);
  position: relative;
}

.menu-dots::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--black);
  clip-path: polygon(50% 0, 100% 48%, 52% 100%, 0 52%);
}

.screen-label {
  color: var(--orange);
  font-size: 11px;
  font-weight: 950;
}

.phone-screen h3 {
  font-size: 30px;
  line-height: 1.18;
  font-weight: 950;
}

.phone-screen h3 span {
  color: var(--orange);
}

.register-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 17px;
  display: grid;
  gap: 18px;
}

.row strong {
  display: block;
  font-size: 13px;
}

.row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.big-grams {
  font-size: 58px;
  line-height: 1;
  font-weight: 950;
}

.big-grams span {
  color: var(--muted);
  font-size: 18px;
}

.result-row {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.result-row b {
  color: var(--orange);
  font-size: 30px;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.metrics div {
  padding: 16px 14px;
  border-radius: 16px;
  background: var(--soft);
}

.metrics strong {
  display: block;
  font-size: 20px;
}

.metrics span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.chart {
  min-height: 160px;
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: auto;
  padding: 18px 8px 8px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(to bottom, transparent 0 33%, #eeeeee 33% 34%, transparent 34% 66%, #eeeeee 66% 67%, transparent 67%);
}

.chart i {
  flex: 1;
  min-height: 24px;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  clip-path: polygon(0 12%, 55% 0, 100% 12%, 100% 100%, 0 100%);
}

.chart i:nth-child(1) { height: 54%; }
.chart i:nth-child(2) { height: 72%; }
.chart i:nth-child(3) { height: 45%; }
.chart i:nth-child(4) { height: 88%; }
.chart i:nth-child(5) { height: 58%; }
.chart i:nth-child(6) { height: 36%; }

.flow-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.flow-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.flow-list li > span {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  clip-path: polygon(50% 0, 100% 42%, 78% 100%, 14% 88%, 0 30%);
  background: var(--orange);
  color: var(--white);
  font-weight: 950;
}

.flow-list strong {
  font-size: 17px;
}

.flow-list p {
  margin-top: 5px;
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 34px 22px 46px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (min-width: 900px) {
  .hero,
  .value-section,
  .demo-section,
  .screens-section,
  .flow-section {
    width: min(100%, 1060px);
  }

  .hero {
    grid-template-columns: 1fr 420px;
    align-items: center;
  }

  .hero-copy,
  .hero-art,
  .app-preview {
    grid-column: 1 / -1;
  }

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

  .hero-art,
  .app-preview {
    width: min(100%, 560px);
    justify-self: center;
  }

  .value-section,
  .demo-section,
  .screens-section,
  .flow-section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
}

@media (max-width: 720px) {
  .screen-stack {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 420px) {
  .hero,
  .value-section,
  .demo-section,
  .screens-section,
  .flow-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .loss-result strong {
    font-size: 36px;
  }

  .phone-screen h3 {
    font-size: 28px;
  }
}
