:root {
  --bg: #f4f7fb;
  --paper: #ffffff;
  --ink: #142033;
  --muted: #53657d;
  --line: #d6e0ec;
  --navy: #102642;
  --blue: #1f67d2;
  --blue2: #0d9bd7;
  --yellow: #ffd84d;
  --green: #2ba67a;
  --shadow: 0 18px 48px rgba(16, 38, 66, .14);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.7;
  padding-top: var(--topbar-h, 0px);
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: #fff;
  background: rgba(0, 128, 179, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
}

section[id],
main[id] {
  scroll-margin-top: calc(var(--topbar-h, 0px) + 18px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  min-width: 270px;
}

.brand__logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand__name {
  font-size: 21px;
  font-weight: 850;
}

.brand__tag {
  font-size: 13px;
  color: rgba(255, 255, 255, .74);
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.topnav a {
  color: rgba(255, 255, 255, .84);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 10px;
  border-radius: var(--radius);
}

.topnav a:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.topbar__cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16, 38, 66, .14);
}

.btn--primary {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
}

.btn--ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .28);
}

.btn--light {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
}

.note {
  display: inline-block;
  padding: 9px;
  color: var(--yellow);
  font-size: 14px;
  font-weight: 900;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: #102642;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 18, 44, .9) 0%, rgba(8, 26, 58, .78) 34%, rgba(8, 26, 58, .28) 66%, rgba(8, 26, 58, .2) 100%),
    url("../assets/img/gigascope-json-works-hero.png");
  background-size: cover;
  background-position: center;
}

.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 540px;
  padding: 72px 0 84px;
}

.hero__content {
  max-width: 650px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue2);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

.hero h1 {
  margin: 0;
  font-size: 58px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero__lead {
  margin: 22px 0 0;
  max-width: 620px;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

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

.section {
  padding: 76px 0;
}

.section--tint {
  background: #e9f2fb;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.section--contact {
  color: #fff;
  background: var(--navy);
  padding: 64px 0;
}

.section__head {
  max-width: 1120px;
  margin-bottom: 28px;
}

.section__title {
  margin: 0;
  font-size: 34px;
  line-height: 1.28;
  letter-spacing: 0;
}

.section__desc {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

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

.feature-card,
.usecase,
.spec,
.accordion {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 22px;
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.feature-card:nth-child(2) .feature-card__icon {
  background: var(--green);
}

.feature-card:nth-child(3) .feature-card__icon {
  background: #6a55d9;
}

.feature-card:nth-child(4) .feature-card__icon {
  background: #0d9bd7;
}

.feature-card:nth-child(5) .feature-card__icon {
  background: #ae12ec;
}

.feature-card h3,
.usecase h3,
.screenshot figcaption {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.38;
}

.feature-card p,
.usecase p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.screenshot {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 38, 66, .08);
  overflow: hidden;
}

.screenshot img {
  display: block;
  width: 100%;
  aspect-ratio: 1280 / 964;
  object-fit: cover;
  object-position: top center;
  background: #dbe6f2;
}

.screenshot figcaption {
  padding: 14px 16px 16px;
  color: var(--ink);
  font-weight: 850;
}

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

.usecase {
  padding: 24px;
}

.spec {
  overflow: hidden;
}

.spec__row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 20px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.spec__row:last-child {
  border-bottom: 0;
}

.spec__label {
  color: var(--muted);
  font-weight: 850;
}

.accordion {
  overflow: hidden;
}

.accordion+.accordion {
  margin-top: 12px;
}

.accordion summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 18px 48px 18px 20px;
  font-weight: 850;
  background: #f7faff;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 16px;
  color: var(--blue);
  font-size: 22px;
  line-height: 1;
}

.accordion[open] summary::after {
  content: "-";
}

.accordion__body {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
}

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

.contact {
  text-align: center;
  margin: 32px 0 0 50px;
}

.contact__logo {
  width: min(240px, 70%);
  margin: 80px 0 6px 80px;
  display: block;
}

.contact__name {
  font-size: 28px;
  font-weight: 900;
}

.contact__link {
  color: rgba(255, 255, 255, .86);
}

.contact__row {
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(0, .86fr);
  gap: 44px;
  align-items: start;
}

.contact-copy {
  display: grid;
  align-content: start;
}

.contact-copy .eyebrow {
  color: var(--yellow);
}

.contact-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 36px;
  line-height: 1.22;
  letter-spacing: 0;
}

.contact-copy p {
  margin: 16px 0 0;
  max-width: 34rem;
  color: rgba(255, 255, 255, .78);
}

.contact-copy .contact-accordion {
  margin-top: 28px;
}

.contact-layout>.contact {
  margin-top: 0;
}

.contact-accordion {
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.contact-accordion summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 22px 64px 22px 24px;
  cursor: pointer;
  list-style: none;
  background: #fff;
}

.contact-accordion summary::-webkit-details-marker {
  display: none;
}

.contact-accordion summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue2));
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
}

.contact-accordion[open] summary::after {
  content: "-";
}

.contact-accordion summary strong,
.contact-accordion summary small {
  display: block;
}

.contact-accordion summary strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.35;
}

.contact-accordion summary small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  color: var(--ink);
  background: #f7faff;
  border-top: 1px solid var(--line);
}

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

.form-field {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: #f9fbfe;
  font: inherit;
  font-weight: 500;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue2);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(13, 155, 215, .16);
}

.contact-form__trap {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form__submit {
  justify-self: start;
  min-width: 150px;
  border: 0;
}

.footer {
  padding: 24px 0;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer strong {
  color: var(--ink);
}

@media (max-width: 980px) {
  .topnav {
    display: none;
  }

  .hero__inner {
    min-height: auto;
  }

  .hero h1 {
    font-size: 44px;
  }

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

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

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

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 24px, var(--max));
  }

  .topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand__name {
    font-size: 18px;
  }

  .topbar__cta {
    width: 100%;
  }

  .topbar__cta .btn {
    flex: 1;
  }

  .hero__inner {
    padding: 46px 0 58px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__bg {
    background:
      linear-gradient(90deg, rgba(5, 18, 44, .94) 0%, rgba(8, 26, 58, .86) 52%, rgba(8, 26, 58, .38) 100%),
      linear-gradient(180deg, rgba(4, 13, 32, .16), rgba(4, 13, 32, .62)),
      url("../assets/img/gigascope-json-studio-hero.png");
    background-size: cover;
    background-position: center right 34%;
  }

  .section {
    padding: 54px 0;
  }

  .section__title {
    font-size: 26px;
  }

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

  .spec__row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section--contact {
    padding: 54px 0;
  }

  .contact-copy h2 {
    font-size: 28px;
  }

  .contact-accordion summary {
    min-height: 76px;
    padding: 18px 58px 18px 18px;
  }

  .contact-accordion summary::after {
    right: 18px;
  }

  .contact-form {
    padding: 20px;
  }

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

  .contact-form__submit {
    width: 100%;
  }
}