:root {
  color-scheme: light;
  --bg: #f7f4ed;
  --surface: #ffffff;
  --surface-raised: #f1ede4;
  --line: rgba(35, 45, 59, 0.13);
  --text: #1d2735;
  --muted: #667085;
  --yellow: #c88905;
  --yellow-text: #7a5706;
  --cyan: #087f99;
  --purple: #7257c8;
  --green: #17885f;
  --max-width: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(35, 45, 59, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 45, 59, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background: linear-gradient(180deg, transparent 70%, rgba(247, 244, 237, 0.94));
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.page-glow {
  position: absolute;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.14;
  pointer-events: none;
}

.page-glow-left {
  top: 90px;
  left: -260px;
  background: var(--cyan);
}

.page-glow-right {
  top: 480px;
  right: -260px;
  background: var(--purple);
}

.site-header,
main,
footer {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 96px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-frame {
  display: grid;
  width: 58px;
  height: 58px;
  padding: 3px;
  overflow: hidden;
  background: var(--yellow);
  border: 1px solid rgba(200, 137, 5, 0.55);
  border-radius: 17px;
  box-shadow: 0 10px 30px rgba(138, 98, 0, 0.13);
  place-items: center;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 13px;
  background: #fff;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: 0.02em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.header-badge {
  padding: 9px 14px;
  color: var(--yellow-text);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid rgba(200, 137, 5, 0.28);
  border-radius: 999px;
  background: rgba(255, 241, 196, 0.66);
}

.hero {
  display: flex;
  min-height: 690px;
  padding: 96px 0 76px;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-kicker,
.eyebrow,
.section-heading p {
  color: var(--yellow-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-kicker span {
  width: 28px;
  height: 1px;
  background: var(--yellow);
}

.hero h1 {
  max-width: 900px;
  margin: 25px 0 24px;
  font-size: clamp(48px, 7.4vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.hero h1 em {
  position: relative;
  color: var(--yellow);
  font-style: normal;
}

.hero h1 em::after {
  position: absolute;
  right: 2%;
  bottom: -10px;
  left: 2%;
  height: 8px;
  content: "";
  background: url("data:image/svg+xml,%3Csvg width='400' height='10' viewBox='0 0 400 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 7C88 1 267 2 398 5' stroke='%23C88905' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

.hero-lead {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-lead strong {
  color: var(--text);
}

.hero-actions {
  display: grid;
  width: min(100%, 660px);
  margin-top: 42px;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.route-button {
  display: grid;
  min-height: 68px;
  padding: 0 18px;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
}

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

.route-domestic:hover {
  border-color: rgba(8, 127, 153, 0.5);
  background: rgba(8, 127, 153, 0.08);
}

.route-overseas:hover {
  border-color: rgba(114, 87, 200, 0.5);
  background: rgba(114, 87, 200, 0.08);
}

.route-index {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.route-button svg,
.action-button svg,
.hero-note svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-note {
  display: flex;
  margin-top: 30px;
  padding: 10px 14px;
  align-items: center;
  gap: 9px;
  color: #7a5706;
  font-size: 13px;
  border: 1px solid rgba(200, 137, 5, 0.2);
  border-radius: 10px;
  background: rgba(255, 241, 196, 0.58);
}

.section-heading {
  display: flex;
  margin-bottom: 34px;
  align-items: flex-start;
  gap: 20px;
}

.section-number {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: #1d2735;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 900;
  border-radius: 50%;
  background: var(--yellow);
  place-items: center;
}

.section-heading p {
  margin: 1px 0 7px;
}

.section-heading h2,
.task-copy h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.guide-section {
  padding: 78px 0 110px;
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.guide-card {
  position: relative;
  padding: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(249, 247, 241, 0.98));
  box-shadow: 0 24px 70px rgba(40, 49, 63, 0.1);
  scroll-margin-top: 24px;
}

.guide-card::before {
  position: absolute;
  top: -100px;
  right: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  filter: blur(35px);
  opacity: 0.1;
  content: "";
}

.domestic-card::before {
  background: var(--cyan);
}

.overseas-card::before {
  background: var(--purple);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-tag,
.step-count,
.step-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.card-tag {
  padding: 7px 10px;
  border-radius: 8px;
}

.domestic-card .card-tag {
  color: var(--cyan);
  background: rgba(8, 127, 153, 0.1);
}

.overseas-card .card-tag {
  color: var(--purple);
  background: rgba(114, 87, 200, 0.1);
}

.step-count {
  color: #7a8493;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.guide-card > h3 {
  margin: 24px 0 7px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.card-description {
  margin: 0 0 36px;
  color: var(--muted);
}

.steps {
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  position: relative;
  display: grid;
  padding-bottom: 30px;
  grid-template-columns: 38px 1fr;
  gap: 16px;
}

.steps li:last-child {
  padding-bottom: 0;
}

.steps li::after {
  position: absolute;
  top: 38px;
  bottom: 0;
  left: 18px;
  width: 1px;
  content: "";
  background: var(--line);
}

.steps li:last-child::after {
  display: none;
}

.step-marker {
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-raised);
  place-items: center;
}

.domestic-card .step-marker {
  border-color: rgba(8, 127, 153, 0.32);
}

.overseas-card .step-marker {
  border-color: rgba(114, 87, 200, 0.32);
}

.step-content {
  min-width: 0;
  padding-top: 1px;
}

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

.step-content h4 {
  margin: 5px 0 8px;
  font-size: 19px;
}

.step-content p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.step-content .site-link-note {
  color: #b42318;
  font-weight: 750;
}

.compact-step {
  padding-bottom: 8px;
}

.action-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  padding: 0 15px;
  align-items: center;
  justify-content: space-between;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(29, 39, 53, 0.035);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.action-button:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 39, 53, 0.28);
  background: rgba(29, 39, 53, 0.075);
}

.site-button {
  border-color: rgba(180, 35, 24, 0.24);
  background: rgba(180, 35, 24, 0.055);
}

.task-section {
  display: grid;
  margin-bottom: 112px;
  padding: 64px;
  align-items: center;
  border: 1px solid rgba(200, 137, 5, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 220, 118, 0.22), transparent 35%),
    #ffffff;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}

.task-copy .section-number {
  margin-bottom: 28px;
}

.task-copy .eyebrow {
  margin: 0 0 8px;
}

.location-list {
  display: flex;
  margin-top: 32px;
  gap: 12px;
}

.location-list div {
  display: flex;
  min-width: 125px;
  padding: 14px 16px;
  flex-direction: column;
  border-left: 3px solid var(--yellow);
  background: rgba(29, 39, 53, 0.045);
}

.location-list span {
  color: var(--muted);
  font-size: 12px;
}

.location-list strong {
  margin-top: 3px;
  font-size: 18px;
}

.interface-demo {
  position: relative;
  min-height: 330px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #090d14;
  box-shadow: 0 30px 60px rgba(40, 49, 63, 0.2);
}

.demo-toolbar {
  display: flex;
  height: 48px;
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.demo-brand {
  color: #687486;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.demo-terminal,
.demo-config {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #dce2e9;
  font-size: 12px;
}

.demo-terminal b,
.demo-config b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55d69e;
  box-shadow: 0 0 10px rgba(85, 214, 158, 0.55);
}

.demo-body {
  display: flex;
  padding: 44px 24px;
  flex-direction: column;
  gap: 13px;
}

.demo-line {
  width: 64%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}

.demo-line.wide {
  width: 88%;
}

.demo-line.short {
  width: 42%;
}

.demo-status {
  width: fit-content;
  margin-top: 20px;
  padding: 9px 12px;
  color: #55d69e;
  font-size: 11px;
  border: 1px solid rgba(85, 214, 158, 0.18);
  border-radius: 8px;
  background: rgba(85, 214, 158, 0.06);
}

.demo-config {
  position: absolute;
  bottom: 22px;
  left: 28px;
}

.terminal-callout,
.config-callout {
  position: absolute;
  padding: 7px 9px;
  color: #1d2735;
  font-size: 10px;
  font-weight: 800;
  border-radius: 7px;
  background: var(--yellow);
  box-shadow: 0 8px 20px rgba(138, 98, 0, 0.2);
}

.terminal-callout {
  top: -14px;
  right: 12px;
}

.config-callout {
  bottom: -14px;
  left: 12px;
}

.final-notice {
  display: grid;
  min-height: 170px;
  margin-bottom: 38px;
  padding: 34px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: auto 1fr auto;
  gap: 20px;
}

.final-notice img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border: 3px solid var(--yellow);
  border-radius: 20px;
  background: #fff;
}

.final-notice p {
  margin: 0 0 5px;
  color: var(--muted);
}

.final-notice h2 {
  margin: 0;
  font-size: 25px;
}

.final-notice a {
  padding: 11px 14px;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

footer {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  color: #778191;
  font-size: 12px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10;
  max-width: calc(100% - 48px);
  padding: 13px 17px;
  visibility: hidden;
  color: #dff8ed;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(85, 214, 158, 0.32);
  border-radius: 12px;
  background: #122b23;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .guide-grid,
  .task-section {
    grid-template-columns: 1fr;
  }

  .task-section {
    padding: 48px;
    gap: 52px;
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    min-height: 82px;
  }

  .brand-logo-frame {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .brand-logo {
    border-radius: 11px;
  }

  .brand-copy strong {
    max-width: 132px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand-copy span {
    font-size: 8px;
  }

  .header-badge {
    padding: 7px 9px;
    font-size: 10px;
  }

  .hero {
    min-height: auto;
    padding: 72px 0 64px;
  }

  .hero h1 {
    margin-top: 20px;
    font-size: clamp(41px, 13vw, 62px);
  }

  .hero-lead {
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .guide-section {
    padding: 64px 0 80px;
  }

  .section-heading {
    gap: 14px;
  }

  .section-heading h2,
  .task-copy h2 {
    font-size: 31px;
  }

  .guide-card {
    padding: 25px 20px;
    border-radius: 22px;
  }

  .guide-card > h3 {
    font-size: 29px;
  }

  .steps li {
    grid-template-columns: 34px 1fr;
    gap: 12px;
  }

  .step-marker {
    width: 34px;
    height: 34px;
  }

  .steps li::after {
    top: 34px;
    left: 16px;
  }

  .task-section {
    margin-bottom: 72px;
    padding: 34px 20px 42px;
    border-radius: 22px;
  }

  .location-list {
    flex-direction: column;
  }

  .interface-demo {
    min-height: 280px;
  }

  .final-notice {
    padding: 28px 8px;
    grid-template-columns: auto 1fr;
  }

  .final-notice img {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  .final-notice h2 {
    font-size: 19px;
  }

  .final-notice a {
    grid-column: 1 / -1;
    text-align: center;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
    text-align: center;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
  }
}
