/* hatsubuy 對外官網。只做深色一種；配色刻意跟產品畫面、也跟任何電商品牌都不同。 */

:root {
  --bg: #0c0a1d;
  --bg-2: #13102b;
  --surface: #1a1638;
  --surface-2: #221d45;
  --ink: #f6f4ff;
  --muted: #bdb8dc;
  --line: rgba(255, 255, 255, 0.1);
  --sun-1: #ffb347;
  --sun-2: #ff6a5c;
  --sun-3: #ff3d8b;
  --violet: #8b7bff;
  --mint: #6ee7c8;
  --sun: linear-gradient(100deg, var(--sun-1) 0%, var(--sun-2) 45%, var(--sun-3) 100%);
  --radius: 22px;
  --font-display: "Space Grotesk", "Noto Sans TC", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[lang^="zh"] {
  /* 中文大標用 Noto Sans TC 的粗體比較穩；Space Grotesk 沒有中文字。 */
  --font-display: "Noto Sans TC", system-ui, sans-serif;
  --font-body: "Noto Sans TC", "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* 大標避免最後一行只剩一兩個字（中文尤其明顯，例如「柔。」單獨掉到下一行）。 */
h1,
h2,
h3 {
  text-wrap: balance;
}

:focus-visible {
  outline: 3px solid var(--sun-1);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: min(1200px, 100% - 40px);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

/* ---------- 頂列 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 29, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

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

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand__name {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topnav {
  display: flex;
  gap: 28px;
  margin-left: 16px;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.topnav a:hover {
  color: var(--ink);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.no-js .lang {
  display: none;
}

.lang__btn {
  min-width: 44px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 14px/1 var(--font-body);
  cursor: pointer;
}

.lang__btn[lang="zh-Hant"] {
  font-family: "Noto Sans TC", system-ui, sans-serif;
}

.lang__btn:hover {
  color: var(--ink);
}

.lang__btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- 按鈕 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 15px;
}

.btn--large {
  min-height: 56px;
  padding: 0 30px;
  font-size: 17px;
}

.btn--primary {
  background: var(--sun);
  color: #1b0716;
  box-shadow: 0 10px 30px -10px rgba(255, 74, 120, 0.7);
}

.btn--primary:hover {
  box-shadow: 0 16px 36px -10px rgba(255, 74, 120, 0.85);
}

.btn--ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.btn--light {
  background: #fff;
  color: #2a0d24;
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.5);
}

/* ---------- 主視覺 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 7vw, 100px);
  background:
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--bg);
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: min(900px, 120vw);
  height: min(900px, 120vw);
  background:
    radial-gradient(closest-side, rgba(255, 106, 92, 0.38), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(139, 123, 255, 0.35), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(110, 231, 200, 0.18);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

html[lang^="zh"] .hero__title {
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-size: clamp(40px, 6.2vw, 84px);
}

.hero__title-a,
.hero__title-b {
  display: block;
}

.hero__title-b {
  /* 寬度貼著字，漸層才會在字上從橘走到粉，而不是整行寬只看到橘色那一段。 */
  width: fit-content;
  background: var(--sun);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.hero__lead {
  max-width: 34em;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 20px);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

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

/* 示意卡片 */

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(440px, 100%);
  padding: 28px 0;
}

.mock {
  position: relative;
  z-index: 2;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(34, 29, 69, 0.95), rgba(19, 16, 43, 0.95));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(-2deg);
  animation: float 7s ease-in-out infinite;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.mock__dots {
  display: inline-flex;
  gap: 6px;
}

.mock__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.mock__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

html[lang^="zh"] .mock__label {
  letter-spacing: 0.1em;
}

.mock__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.mock__thumb {
  width: 76px;
  height: 76px;
  flex: none;
}

.mock__item-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock__item-name {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.3;
}

.mock__item-qty {
  color: var(--muted);
  font-size: 14px;
}

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

.mock__checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
}

.tick {
  position: relative;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 50%;
  background: rgba(110, 231, 200, 0.16);
}

.tick::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid var(--mint);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.mock__load {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.mock__load-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.mock__load-head strong {
  color: var(--mint);
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.meter__fill {
  display: block;
  width: 22%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), #a7f3d0);
}

.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 18px 40px -14px rgba(255, 61, 139, 0.75);
}

.chip svg {
  width: 20px;
  height: 20px;
}

.chip--got {
  right: -12px;
  top: 0;
  background: var(--sun);
  color: #1b0716;
  transform: rotate(4deg);
  animation: float 6s ease-in-out -2s infinite;
}

.orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(2px);
}

.orb--a {
  left: -28px;
  bottom: 6px;
  width: 92px;
  height: 92px;
  background: radial-gradient(circle at 30% 30%, #b7abff, var(--violet) 60%, #5b48e6);
}

.orb--b {
  right: 26px;
  bottom: -8px;
  width: 44px;
  height: 44px;
  background: radial-gradient(circle at 30% 30%, #ffe0b0, var(--sun-1) 60%, var(--sun-2));
}

@keyframes float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}

/* ---------- 區塊共用 ---------- */

.section {
  padding: clamp(72px, 10vw, 130px) 0;
}

.section--alt {
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(139, 123, 255, 0.16), transparent 70%),
    var(--bg-2);
}

.kicker {
  margin: 0 0 12px;
  color: var(--sun-1);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  /* 不轉大寫：產品名 hatsubuy 一律小寫。 */
}

.section__title {
  max-width: 18em;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

html[lang^="zh"] .section__title {
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}

.section__lead {
  max-width: 38em;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 19px);
}

/* ---------- 特色卡片 ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: clamp(40px, 5vw, 64px);
}

.card {
  position: relative;
  padding: 32px 30px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.card__icon {
  width: 46px;
  height: 46px;
  color: var(--violet);
}

.card__title {
  margin: 22px 0 10px;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

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

/* 「不給網站添負擔」是賣點不是附註（plan/marketing-site.md §4），所以給它最亮的那張卡。 */
.card--feature {
  border: 0;
  background: var(--sun);
  color: #1b0716;
  box-shadow: 0 30px 60px -28px rgba(255, 61, 139, 0.75);
}

.card--feature .card__icon {
  color: #1b0716;
}

.card--feature .card__body {
  color: #3a0f2c;
}

.card__tag {
  position: absolute;
  top: 28px;
  right: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #1b0716;
  color: #ffd2a6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- 發展藍圖 ---------- */

.phases {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}

.phases::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  top: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--sun-2), var(--violet) 55%, rgba(139, 123, 255, 0.25));
}

.phase {
  position: relative;
  padding: 72px 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(26, 22, 56, 0.85);
}

.phase::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 21px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 3px solid var(--violet);
}

.phase--now::before {
  background: var(--sun-2);
  border-color: #ffd2a6;
  box-shadow: 0 0 0 6px rgba(255, 106, 92, 0.25);
}

.phase--vision::before {
  border-style: dashed;
}

.phase__badge {
  position: absolute;
  top: 18px;
  left: 54px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(139, 123, 255, 0.45);
  color: #d2cbff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.phase--now .phase__badge {
  border-color: transparent;
  background: var(--sun);
  color: #1b0716;
}

.phase__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.25;
}

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

/* ---------- 申請使用 ---------- */

.access {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 7vw, 88px) clamp(24px, 6vw, 80px);
  border-radius: 32px;
  background:
    radial-gradient(50% 90% at 100% 100%, rgba(139, 123, 255, 0.55), transparent 70%),
    var(--sun);
  color: #1b0716;
  text-align: center;
}

.access__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

html[lang^="zh"] .access__title {
  font-weight: 900;
  letter-spacing: 0;
}

.access__lead {
  max-width: 32em;
  margin: 18px auto 32px;
  color: #3a0f2c;
  font-size: clamp(17px, 1.5vw, 20px);
}

.access__or {
  margin: 22px 0 0;
  color: #3a0f2c;
  font-size: 15px;
}

.access__or a {
  font-weight: 700;
}

/* ---------- 頁尾 ---------- */

.footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.footer p {
  margin: 0;
}

.footer__brand {
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

/* ---------- 版面斷點 ---------- */

@media (min-width: 1600px) {
  .wrap {
    width: min(1360px, 100% - 80px);
  }

  body {
    font-size: 18px;
  }

  .hero__visual {
    width: 500px;
  }
}

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    width: min(420px, 92%);
  }

  .cards,
  .phases {
    grid-template-columns: 1fr;
  }

  .phases::before {
    left: 30px;
    right: auto;
    top: 30px;
    bottom: 30px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--sun-2), var(--violet) 55%, rgba(139, 123, 255, 0.25));
  }

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

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

  .topbar__inner {
    height: 62px;
  }

  .hero__ctas .btn {
    width: 100%;
  }

  .chip--got {
    right: -4px;
  }

  .orb--a {
    left: -10px;
  }
}

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

  .mock,
  .chip--got {
    animation: none;
  }

  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
