:root {
  --ink: #141414;
  --paper: #f8f7f4;
  --white: #ffffff;
  --muted: #ebe7df;
  --line: #d7d0c5;
  --teal: #117b7a;
  --teal-dark: #0b5655;
  --red: #9f3f36;
  --amber: #c7963e;
  --graphite: #252a2d;
  --soft-text: #57534d;
  --shadow: 0 18px 55px rgba(20, 20, 20, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.7;
}

.gateway {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(17, 123, 122, 0.16), rgba(199, 150, 62, 0.14)),
    var(--paper);
}

.gateway-panel {
  width: min(720px, 100%);
  padding: clamp(30px, 6vw, 58px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.gateway-panel h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.18;
}

.gateway-panel p {
  color: var(--soft-text);
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px clamp(20px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0));
}

.site-header.solid,
.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(248, 247, 244, 0.94);
  border-bottom: 1px solid rgba(20, 20, 20, 0.08);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-sub {
  font-size: 13px;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

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

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 88vh;
  overflow: hidden;
  color: var(--white);
  background: var(--graphite);
}

.brand-hero {
  display: grid;
  min-height: 84vh;
  align-items: end;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(248, 247, 244, 0.98) 0%, rgba(235, 231, 223, 0.92) 52%, rgba(17, 123, 122, 0.18) 100%),
    var(--paper);
}

.brand-hero-inner {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 132px 0 74px;
}

.brand-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(42px, 7.2vw, 86px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.brand-hero .hero-copy {
  color: var(--soft-text);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.52) 44%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 124px 0 54px;
}

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

.hero h1,
.section h2,
.legal-content h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(40px, 7vw, 76px);
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border 0.18s ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--teal);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.button.secondary.dark {
  color: var(--ink);
  border-color: rgba(20, 20, 20, 0.24);
  background: transparent;
}

.button.full {
  width: 100%;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px;
  margin: 42px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(10px);
}

.hero-facts div {
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts dt {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.hero-facts dd {
  margin: 0;
  font-weight: 800;
}

.section {
  padding: clamp(70px, 9vw, 116px) 0;
}

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

.two-column,
.price-layout,
.proof-layout,
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: start;
}

.section h2 {
  font-size: clamp(30px, 4.4vw, 52px);
}

.section-copy,
.lead-block p,
.contact p {
  color: var(--soft-text);
  font-size: 17px;
}

.lead-block p:first-child {
  margin-top: 0;
}

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

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.feature-card,
.price-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(20, 20, 20, 0.05);
}

.feature-card {
  padding: 24px;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--white);
  background: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--soft-text);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 2px;
  content: "✓";
  color: var(--teal);
  font-weight: 900;
}

.price-card {
  padding: clamp(24px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.plan-name {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 800;
}

.price {
  margin: 0;
  font-weight: 800;
  line-height: 1;
}

.price span {
  font-size: clamp(56px, 8vw, 82px);
}

.tax,
.fine-print {
  color: var(--soft-text);
}

.tax {
  margin: 10px 0 24px;
}

.fine-print {
  margin: 18px 0 0;
  font-size: 13px;
}

.proof-layout {
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
}

.proof-stat {
  display: grid;
  gap: 12px;
  padding: 32px;
  border: 1px solid var(--line);
  border-left: 8px solid var(--teal);
  border-radius: 8px;
  background: var(--white);
}

.proof-stat span {
  color: var(--red);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

.proof-stat strong {
  font-size: 22px;
}

.case-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: center;
}

.case-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact {
  color: var(--white);
  background: var(--graphite);
}

.contact .eyebrow {
  color: #f2c36e;
}

.contact p {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  padding: 42px clamp(20px, 4vw, 56px) 26px;
  color: var(--white);
  background: #101315;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.footer-inner p,
.copyright {
  color: rgba(255, 255, 255, 0.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.copyright {
  width: min(1120px, 100%);
  margin: 30px auto 0;
  font-size: 13px;
}

.compact {
  padding: 24px clamp(20px, 4vw, 56px);
}

.compact p {
  width: min(920px, 100%);
  margin: 0 auto;
}

.legal-page {
  padding: 118px 20px 76px;
}

.legal-content {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.legal-content h1 {
  margin-bottom: 24px;
  font-size: clamp(34px, 5vw, 54px);
}

.legal-content h2 {
  margin: 34px 0 10px;
  font-size: 22px;
}

.legal-content p,
.legal-content li,
.commerce-table dd {
  color: var(--soft-text);
}

.legal-content a {
  color: var(--teal-dark);
  font-weight: 800;
}

.updated {
  margin-top: 36px;
  font-size: 14px;
}

.notice {
  padding: 14px 16px;
  border: 1px solid rgba(159, 63, 54, 0.28);
  border-radius: 8px;
  color: var(--ink) !important;
  background: #fff1ee;
  font-weight: 700;
}

.commerce-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.commerce-table div {
  display: grid;
  grid-template-columns: minmax(180px, 0.36fr) 1fr;
  border-bottom: 1px solid var(--line);
}

.commerce-table div:last-child {
  border-bottom: 0;
}

.commerce-table dt,
.commerce-table dd {
  margin: 0;
  padding: 16px;
}

.commerce-table dt {
  background: var(--muted);
  font-weight: 800;
}

@media (max-width: 860px) {
  .site-header {
    min-height: 64px;
    padding: 10px 18px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .hero {
    min-height: 92vh;
  }

  .brand-hero {
    min-height: auto;
  }

  .brand-hero-inner {
    width: min(100% - 32px, 640px);
    padding: 112px 0 54px;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.54) 58%, rgba(0, 0, 0, 0.74) 100%);
  }

  .hero-content {
    width: min(100% - 32px, 640px);
    padding-bottom: 34px;
  }

  .hero-facts,
  .feature-grid,
  .two-column,
  .price-layout,
  .proof-layout,
  .contact-inner,
  .case-feature,
  .footer-inner,
  .commerce-table div {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .hero-facts div:last-child {
    border-bottom: 0;
  }

  .footer-inner {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .legal-content {
    padding: 24px 18px;
  }

  .commerce-table dt,
  .commerce-table dd {
    padding: 12px 14px;
  }
}

@media (max-width: 460px) {
  .brand-sub {
    display: none;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
