:root {
  color-scheme: light;
  --canvas: #f1f1ef;
  --surface: rgba(255, 255, 255, 0.56);
  --surface-solid: #fbfbfa;
  --ink: #292929;
  --ink-soft: #292929;
  --ink-muted: rgba(41, 41, 41, 0.66);
  --ink-faint: rgba(41, 41, 41, 0.46);
  --line: rgba(41, 41, 41, 0.14);
  --line-strong: rgba(41, 41, 41, 0.26);
  --orange: #F37021;
  --orange-deep: #D75F28;
  --peach: #ffb47f;
  --coral: #f47a62;
  --rose: #d89bb7;
  --shadow-soft: 0 14px 40px rgba(50, 45, 39, 0.08);
  --content-width: 1120px;
  --nav-height: 4rem;
  --radius-card: 1.15rem;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--canvas);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(215, 95, 40, 0.72);
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.icon-small {
  width: 1rem;
  height: 1rem;
}

.page-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--canvas);
}

.page-shell > main {
  min-height: calc(100svh + 1px);
}

.page-shell::before,
.page-shell::after {
  position: absolute;
  z-index: -2;
  display: block;
  pointer-events: none;
  content: "";
  filter: blur(48px);
  will-change: transform;
}

.page-shell::before {
  top: -13rem;
  right: -13rem;
  width: 52rem;
  height: 30rem;
  background: radial-gradient(ellipse at 35% 58%, rgba(255, 179, 127, 0.62), rgba(247, 138, 105, 0.44) 38%, rgba(217, 155, 183, 0.28) 60%, transparent 73%);
  transform: rotate(-7deg);
  animation: page-glow-one 42s ease-in-out infinite alternate;
}

.page-shell::after {
  top: 8rem;
  left: -21rem;
  width: 43rem;
  height: 30rem;
  background: radial-gradient(ellipse at 65% 42%, rgba(255, 198, 151, 0.42), rgba(224, 159, 184, 0.22) 48%, transparent 72%);
  transform: rotate(18deg);
  animation: page-glow-two 50s ease-in-out infinite alternate;
}

.ambient {
  position: absolute;
  z-index: -1;
  display: block;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(58px);
  will-change: transform;
}

.ambient-one {
  top: 34rem;
  right: -15rem;
  width: 34rem;
  height: 20rem;
  background: rgba(244, 122, 98, 0.26);
  transform: rotate(-12deg);
  animation: ambient-drift-one 38s ease-in-out infinite alternate;
}

.ambient-two {
  top: 64rem;
  left: -16rem;
  width: 32rem;
  height: 18rem;
  background: rgba(255, 185, 126, 0.2);
  transform: rotate(16deg);
  animation: ambient-drift-two 46s ease-in-out infinite alternate;
}

.ambient-three {
  top: 110rem;
  right: 12%;
  width: 22rem;
  height: 14rem;
  background: rgba(216, 155, 183, 0.18);
  animation: ambient-drift-three 54s ease-in-out infinite alternate;
}

@keyframes page-glow-one {
  from {
    transform: translate3d(0, 0, 0) rotate(-7deg) scale(1);
  }

  to {
    transform: translate3d(-1.5rem, 1rem, 0) rotate(-4deg) scale(1.025);
  }
}

@keyframes page-glow-two {
  from {
    transform: translate3d(0, 0, 0) rotate(18deg) scale(1);
  }

  to {
    transform: translate3d(1.25rem, -1rem, 0) rotate(14deg) scale(1.035);
  }
}

@keyframes ambient-drift-one {
  from {
    transform: translate3d(0, 0, 0) rotate(-12deg) scale(1);
  }

  to {
    transform: translate3d(-1.75rem, 1.25rem, 0) rotate(-8deg) scale(1.04);
  }
}

@keyframes ambient-drift-two {
  from {
    transform: translate3d(0, 0, 0) rotate(16deg) scale(1);
  }

  to {
    transform: translate3d(1.5rem, -1.5rem, 0) rotate(20deg) scale(1.035);
  }
}

@keyframes ambient-drift-three {
  from {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  to {
    transform: translate3d(-1rem, 1.25rem, 0) rotate(5deg) scale(1.05);
  }
}

.noise {
  display: none;
}

.section-container,
.site-header {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 2rem), var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: var(--nav-height);
  margin-top: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(22px) saturate(115%);
  -webkit-backdrop-filter: blur(22px) saturate(115%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  overflow: hidden;
  border: 1px solid rgba(41, 41, 41, 0.2);
  border-radius: 0.72rem;
  background: linear-gradient(145deg, #fff, rgba(255, 174, 124, 0.5));
  object-fit: cover;
}

.brand-orbit {
  position: absolute;
  width: 1.62rem;
  height: 0.62rem;
  border: 1px solid rgba(41, 41, 41, 0.58);
  border-radius: 50%;
  transform: rotate(45deg);
}

.brand-orbit-two {
  border-color: var(--orange);
  transform: rotate(-45deg);
}

.brand-core {
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 50%;
  background: var(--ink);
}

.brand-copy {
  display: flex;
  line-height: 1;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 0.86rem;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
  background: rgba(243, 112, 33, 0.11);
}

.nav-link.is-active {
  font-weight: 650;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.83rem;
  font-weight: 700;
  transition: background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.account-control {
  position: relative;
}

.account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  transition: background 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.account-trigger:hover,
.account-trigger[aria-expanded="true"] {
  border-color: rgba(215, 95, 40, 0.35);
  background: rgba(243, 112, 33, 0.1);
}

.account-trigger:active {
  transform: scale(0.98);
}

.account-trigger-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--orange-deep);
  border-radius: 50%;
  background: rgba(243, 112, 33, 0.12);
}

.account-trigger-label {
  font-size: 0.82rem;
  font-weight: 700;
}

.account-chevron {
  transition: transform 180ms var(--ease);
}

.account-trigger[aria-expanded="true"] .account-chevron {
  transform: rotate(180deg);
}

.account-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 0.7rem);
  right: 0;
  width: min(19rem, calc(100vw - 2rem));
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(50, 45, 39, 0.14);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
}

.account-menu-profile {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.4rem;
}

.account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--orange-deep);
  border: 1px solid rgba(215, 95, 40, 0.22);
  border-radius: 50%;
  background: rgba(243, 112, 33, 0.1);
  font-weight: 800;
}

.account-profile-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.1rem;
}

.account-profile-copy strong,
.account-profile-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-profile-copy strong {
  font-size: 0.86rem;
}

.account-profile-copy .account-name-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.4rem;
  overflow: visible;
  white-space: normal;
}

.account-profile-copy .account-role-badge {
  flex: 0 0 auto;
  padding: 0.16rem 0.45rem;
  border: 1px solid rgba(243, 112, 33, 0.24);
  border-radius: 999px;
  background: rgba(243, 112, 33, 0.1);
  color: var(--orange-deep);
  font-size: 0.64rem;
  font-weight: 750;
  line-height: 1.2;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.account-profile-copy span {
  color: var(--ink-muted);
  font-size: 0.72rem;
}

.account-menu-divider {
  height: 1px;
  margin: 0.65rem 0;
  background: var(--line);
}

.account-menu-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0 0.7rem;
  color: var(--ink);
  border-radius: 0.7rem;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 650;
  text-align: left;
}

.account-menu-item:hover {
  background: rgba(243, 112, 33, 0.1);
}

.account-menu-item:disabled,
.account-menu-item[aria-disabled="true"] {
  cursor: default;
  color: var(--ink-muted);
  opacity: 0.78;
}

.account-menu-item:disabled:hover,
.account-menu-item[aria-disabled="true"]:hover {
  background: transparent;
}

.account-menu-item .icon {
  color: var(--orange-deep);
}

.button-primary:hover {
  background: var(--orange-deep);
  box-shadow: 0 10px 24px rgba(215, 95, 40, 0.25);
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.98);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.button {
  border: 1px solid transparent;
}

.button-primary {
  color: #fffaf6;
  background: var(--orange);
}

.hero {
  display: flex;
  align-items: center;
  min-height: 34rem;
  padding-top: clamp(4.5rem, 9vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.hero-copy {
  max-width: 54rem;
}

.hero h1 {
  max-width: 38rem;
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  font-weight: 720;
  letter-spacing: -0.075em;
  line-height: 0.91;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--orange-deep);
  font-style: normal;
  font-weight: 650;
}

.hero-tagline {
  margin: 1.25rem 0 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  letter-spacing: 0.04em;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.4rem 0 2rem;
}

.brand-footer .brand-mark {
  width: 1.9rem;
  height: 1.9rem;
}

.site-footer > p,
.footer-year {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.74rem;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 1rem;
  bottom: 1rem;
  max-width: min(22rem, calc(100% - 2rem));
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 0.78rem;
}

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

.js [data-reveal] {
  opacity: 0;
  transform: translateY(0.45rem);
  transition: opacity 360ms var(--ease), transform 360ms var(--ease);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.js [data-reveal="fade-down"] {
  transform: translateY(-0.35rem);
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .section-container,
  .site-header {
    width: min(calc(100% - 1.25rem), var(--content-width));
  }

  .site-header {
    top: 0.65rem;
    margin-top: 0.65rem;
    gap: 0.45rem;
    padding-left: 0.7rem;
  }

  .brand-copy strong {
    font-size: 0.9rem;
    letter-spacing: 0;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    min-height: 2.5rem;
    padding: 0 0.58rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .account-trigger {
    min-height: 2.5rem;
    padding-right: 0.55rem;
  }

  .account-trigger-label,
  .account-chevron {
    display: none;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .manage-gate,
  .account-trigger,
  .account-menu,
  .toast {
    background: var(--surface-solid);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  .site-header,
  .manage-gate {
    border-color: rgba(41, 41, 41, 0.42);
  }
}
