:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #111;
  --gold: #d5aa4a;
  --gold-light: #ffe38b;
  --text: #fff7e6;
  --muted: #c6b894;
  --line: rgba(213, 170, 74, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(0, 0, 0, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  font-weight: 900;
  font-size: 25px;
  box-shadow: 0 0 22px rgba(213, 170, 74, 0.24);
}

.brand strong {
  display: block;
  color: var(--gold-light);
  font-size: 18px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 3vw, 34px);
  color: #e8d7a8;
  font-size: 15px;
}

nav a {
  padding: 10px 0;
  border-bottom: 1px solid transparent;
}

nav a:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #070707;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.32) 48%, rgba(0, 0, 0, 0.72)),
    linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0) 34%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 36px));
  margin: 0 clamp(18px, 7vw, 92px) clamp(54px, 10vw, 104px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  color: var(--gold-light);
  font-size: clamp(50px, 9vw, 104px);
  line-height: 0.95;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}

h2 {
  margin-bottom: 18px;
  color: #fff1b8;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.05;
}

h3 {
  margin-bottom: 8px;
  color: #ffe6a0;
  font-size: 21px;
}

.hero-copy p:not(.eyebrow),
.signup-copy p,
.about p,
.app-copy p,
.features article p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.primary-btn,
.form-panel button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border: 0;
  border-radius: 4px;
  background: linear-gradient(180deg, #ffe18a, #b47a1f);
  color: #120c02;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(213, 170, 74, 0.22);
}

.signup,
.about,
.app-section,
.features {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 6vw, 76px);
}

.signup {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 460px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: linear-gradient(rgba(5, 5, 5, 0.68), rgba(5, 5, 5, 0.86)), url("assets/gold-bg.jpg") center/cover;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.form-panel {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(0, 0, 0, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-message {
  padding: 12px 14px;
  border-radius: 6px;
  line-height: 1.6;
}

.form-message p {
  margin: 0;
}

.form-message.success {
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.12);
  color: #baf7ce;
}

.form-message.error {
  border: 1px solid rgba(255, 99, 99, 0.42);
  background: rgba(255, 99, 99, 0.12);
  color: #ffd0d0;
}

label {
  display: grid;
  gap: 8px;
  color: #f4df9f;
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 232, 166, 0.26);
  border-radius: 4px;
  background: #101010;
  color: var(--text);
  font: inherit;
  padding: 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(213, 170, 74, 0.16);
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
  background: #080808;
}

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

.stats div {
  min-height: 124px;
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  text-align: center;
}

.stats strong {
  display: block;
  color: var(--gold-light);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.stats span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.app-section {
  display: grid;
  grid-template-columns: minmax(260px, 460px) minmax(0, 1fr);
  gap: clamp(34px, 8vw, 100px);
  align-items: center;
  background: radial-gradient(circle at 22% 30%, rgba(213, 170, 74, 0.18), transparent 34%), #050505;
}

.phone-wrap {
  justify-self: center;
  width: min(100%, 360px);
  filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.7));
}

.payment {
  display: inline-grid;
  gap: 4px;
  margin-top: 16px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
}

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

.payment strong {
  color: var(--gold-light);
  font-size: 32px;
}

.payment small {
  color: #d4c59b;
}

.features {
  background: #0a0a0a;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
  text-align: left;
}

.feature-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
}

.feature-grid img {
  width: 100%;
  aspect-ratio: 287 / 323;
  object-fit: cover;
}

.feature-grid h3,
.feature-grid p {
  padding-inline: 18px;
}

.feature-grid h3 {
  margin-top: 18px;
}

.feature-grid p {
  margin-bottom: 20px;
  font-size: 15px;
}

.contact-actions {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 30;
  display: grid;
  gap: 14px;
  transform: translateY(-50%);
}

.contact-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 156px;
  min-height: 56px;
  padding: 0 20px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
  animation: contact-shake 5s ease-in-out infinite;
}

.contact-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-btn:nth-child(2) {
  animation-delay: 0.45s;
}

.contact-btn::before {
  content: "W";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #101010;
  font-size: 14px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1), 0 8px 18px rgba(0, 0, 0, 0.2);
}

.contact-btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0) 38%);
  opacity: 0.9;
}

.contact-btn:hover,
.contact-btn:focus-visible {
  animation-play-state: paused;
  transform: translateX(-4px);
  border-color: rgba(255, 255, 255, 0.55);
}

.contact-btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.whatsapp {
  background: linear-gradient(135deg, #28e06d, #0a8f47);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 24px rgba(37, 211, 102, 0.36);
}

.telegram {
  background: linear-gradient(135deg, #54c8ff, #1380cf);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5), 0 0 24px rgba(42, 171, 238, 0.36);
}

.telegram::before {
  content: "TG";
  font-size: 12px;
}

@keyframes contact-shake {
  0%,
  78%,
  100% {
    transform: translateX(0) rotate(0deg);
  }

  81% {
    transform: translateX(-5px) rotate(-2deg);
  }

  84% {
    transform: translateX(4px) rotate(2deg);
  }

  87% {
    transform: translateX(-3px) rotate(-1deg);
  }

  90% {
    transform: translateX(2px) rotate(1deg);
  }
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 6vw, 76px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #030303;
}

footer strong {
  color: var(--gold-light);
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  nav {
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .hero {
    min-height: 720px;
  }

  .signup,
  .about,
  .app-section {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  body {
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 21px;
  }

  nav {
    font-size: 14px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-media img {
    object-position: center top;
  }

  .hero-copy {
    margin-bottom: 42px;
  }

  .contact-actions {
    display: grid;
    top: auto;
    right: 14px;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: auto;
    width: auto;
    max-width: none;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    overflow: visible;
    backdrop-filter: none;
  }

  .contact-btn {
    width: 54px;
    min-width: 54px;
    max-width: none;
    height: 54px;
    min-height: 54px;
    padding: 0;
    gap: 0;
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.48);
  }

  .contact-btn span {
    display: none;
  }

  .contact-btn::before {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    font-size: 13px;
  }

  .telegram::before {
    font-size: 11px;
  }

  @media (max-width: 360px) {
    .contact-actions {
      right: 10px;
    }

    .contact-btn {
      width: 50px;
      min-width: 50px;
      height: 50px;
      min-height: 50px;
    }
  }

  .hero-copy p:not(.eyebrow),
  .signup-copy p,
  .about p,
  .app-copy p {
    font-size: 16px;
  }

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

  footer {
    flex-direction: column;
  }
}
