@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700&display=swap");

:root {
  --bg: #1f1f1f;
  --bg-elevated: #181818;
  --bg-card: #242424;
  --bg-card-hover: #2a2a2a;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --text: #f3f5f7;
  --muted: #a1a1a1;
  --muted-dim: #888;
  --muted-faint: #666;
  --muted-ghost: #555;
  --accent: #4ecdc4;
  --accent-soft: rgba(78, 205, 196, 0.1);
  --accent-border: rgba(78, 205, 196, 0.3);
  --gradient: linear-gradient(135deg, #ffc084 0%, #ff9a5b 35%, #fb5d3a 65%, #9a2323 100%);
  --font: "Noto Sans TC", "PingFang TC", "Helvetica Neue", sans-serif;
  --max: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(31, 31, 31, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-header .logo img {
  height: 1.75rem;
  width: auto;
}

.site-header nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}

.site-header nav a:hover,
.site-header nav a.active {
  color: var(--text);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.lang-pill:hover {
  border-color: #555;
  color: var(--text);
  text-decoration: none;
}

.nav-mobile {
  display: flex;
  gap: 1rem;
}

.nav-mobile a {
  font-size: 0.75rem;
  color: var(--muted-faint);
  text-decoration: none;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--text);
}

@media (min-width: 768px) {
  .site-header nav {
    display: flex;
  }

  .nav-mobile {
    display: none;
  }
}

/* ——— Footer ——— */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  margin-top: auto;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.5rem 1.5rem;
}

.site-footer__row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.site-footer__row > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .site-footer__row {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .site-footer__row > div:first-child {
    align-items: flex-start;
    width: auto;
  }
}

.site-footer .logo {
  display: inline-flex;
  text-decoration: none;
}

.site-footer .logo img {
  height: 1.75rem;
  width: auto;
}

.site-footer__tagline {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-faint);
}

.site-footer__links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
}

.site-footer__links a {
  color: var(--muted-faint);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--muted);
}

.site-footer__copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #242424;
  text-align: center;
  font-size: 0.75rem;
  color: #444;
}

/* ——— Layout shell ——— */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.section {
  position: relative;
  padding: 5rem 0;
}

.section--hero {
  padding: 5rem 0 6rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .section {
    padding: 7rem 0;
  }

  .section--hero {
    padding: 7rem 0 8rem;
  }
}

.container {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ——— Landing ——— */
.glow {
  pointer-events: none;
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
}

.glow--orange {
  top: -8rem;
  left: 25%;
  width: 700px;
  height: 500px;
  opacity: 0.07;
  background: radial-gradient(ellipse, #ff9a5b 0%, transparent 70%);
}

.glow--teal {
  top: 50%;
  right: 0;
  width: 400px;
  height: 400px;
  opacity: 0.05;
  background: radial-gradient(ellipse, #4ecdc4 0%, transparent 70%);
}

.hero-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1.25rem;
}

.section-tag span {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.hero-title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title .line {
  display: block;
}

.hero-title .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-tagline {
  margin: 0 0 2rem;
  max-width: 28rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: default;
  transition: opacity 0.15s, border-color 0.15s, background 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient);
  color: #1a1a1a;
}

.btn--primary:hover {
  opacity: 0.9;
}

.btn--ghost {
  border: 1px solid var(--border-strong);
  background: #2a2a2a;
  color: var(--text);
  font-weight: 500;
}

.btn--ghost:hover {
  border-color: #555;
  background: #333;
}

.btn-badge {
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
}

.btn--primary .btn-badge {
  background: rgba(0, 0, 0, 0.2);
}

.btn--ghost .btn-badge {
  background: #333;
  color: #777;
}

/* Phone frame — matches design PhoneMockup (393×852 @ 0.66) */
.phone-wrap {
  display: flex;
  justify-content: center;
  position: relative;
}

@media (min-width: 768px) {
  .phone-wrap {
    justify-content: flex-end;
  }
}

.phone {
  --phone-scale: 0.8;
  position: relative;
  width: calc(393px * var(--phone-scale));
  height: calc(852px * var(--phone-scale));
  border-radius: 2.5rem;
  overflow: hidden;
}

@media (max-width: 420px) {
  .phone {
    --phone-scale: 0.6;
  }
}

.phone img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: top center;
  pointer-events: none;
}

.home-phone {
  --phone-scale: 1;
}

.home-phone img {
  object-position: initial;
}

.phone-glow {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 12rem;
  height: 6rem;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.3;
  background: linear-gradient(135deg, #ff9a5b, #fb5d3a);
  pointer-events: none;
}

.section-head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 1.75rem;
  transition: border-color 0.15s, background 0.15s;
}

.feature-card:hover {
  border-color: #3a3a3a;
  background: var(--bg-card-hover);
}

.feature-card__icon {
  font-size: 2.25rem;
  margin-bottom: 1.25rem;
  line-height: 1;
}

.feature-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted-dim);
}

/* Preview panel */
.preview-panel {
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  background: #1e1e1e;
}

.preview-grid {
  display: grid;
}

@media (min-width: 768px) {
  .preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.preview-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: radial-gradient(ellipse at center, rgba(255, 154, 91, 0.06) 0%, transparent 70%);
}

.preview-copy {
  border-top: 1px solid var(--border);
  padding: 2.5rem;
}

@media (min-width: 768px) {
  .preview-copy {
    border-top: none;
    border-left: 1px solid var(--border);
    padding: 3.5rem;
  }
}

.preview-copy h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
}

.preview-copy > p {
  margin: 0 0 2rem;
  color: var(--muted-dim);
  line-height: 1.7;
}

.preview-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.preview-points li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 0.45rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffc084, #fb5d3a);
}

/* Download CTA */
.download-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  padding: 3rem 1.5rem;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(255, 192, 132, 0.08) 0%,
    rgba(251, 93, 58, 0.08) 50%,
    rgba(78, 205, 196, 0.06) 100%
  );
  border: 1px solid rgba(255, 154, 91, 0.15);
}

@media (min-width: 768px) {
  .download-banner {
    padding: 4rem;
  }
}

.download-banner .glow-top {
  pointer-events: none;
  position: absolute;
  top: -5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 24rem;
  height: 12rem;
  border-radius: 999px;
  opacity: 0.2;
  filter: blur(48px);
  background: linear-gradient(135deg, #ff9a5b, #fb5d3a);
}

.download-banner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
}

.download-banner > .relative > p,
.download-banner .download-sub {
  margin: 0 0 2.5rem;
  color: var(--muted-dim);
}

.download-banner .cta-row {
  justify-content: center;
}

.download-links {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted-faint);
}

.download-links a {
  color: var(--accent);
}

/* ——— Legal / content pages ——— */
.page {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .page {
    padding: 6rem 1.5rem 6rem;
  }
}

.page--wide {
  max-width: 48rem;
}

.page h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

.page h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}

.page p,
.page li {
  color: #999;
}

.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.page-header .meta {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-ghost);
}

.page-header p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.privacy-intro {
  margin: 0 0 2.5rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #999;
}

.privacy-sections {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.privacy-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #212121;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .privacy-card {
    padding: 1.75rem;
  }
}

.privacy-card h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.privacy-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #999;
}

.privacy-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.privacy-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #999;
}

.privacy-card li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 0.45rem;
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffc084, #fb5d3a);
}

.privacy-card li + p,
.privacy-card ul + p {
  margin-top: 0.75rem;
}

.meta {
  color: var(--muted-faint);
  font-size: 0.9rem;
}

.lang-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.lang-bar a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 0.875rem;
}

.lang-bar a:hover {
  color: var(--text);
  text-decoration: none;
}

.lang-bar a.active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* Support */
.contact-card {
  margin-bottom: 3rem;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: linear-gradient(
    135deg,
    rgba(255, 192, 132, 0.05) 0%,
    rgba(78, 205, 196, 0.05) 100%
  );
  padding: 2rem;
}

.contact-card h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: var(--text);
}

.contact-card p {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--accent);
  text-decoration: none;
}

.email-chip:hover {
  border-color: rgba(78, 205, 196, 0.6);
  background: rgba(78, 205, 196, 0.2);
  text-decoration: none;
}

.contact-card .meta {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-ghost);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-list details {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #212121;
  overflow: hidden;
}

.faq-list details:hover {
  border-color: #333;
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--muted-ghost);
  border-bottom: 2px solid var(--muted-ghost);
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.faq-list details[open] summary::after {
  transform: rotate(225deg);
}

.faq-list details p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid transparent;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
}

.faq-list details[open] p {
  border-top-color: var(--border);
  padding-top: 1rem;
  margin-top: 0;
}

/* Invite */
.invite {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.invite h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
}

.invite .cta-row {
  justify-content: center;
  margin: 1.5rem 0;
}

.invite .btn {
  cursor: pointer;
}

.invite .btn--primary {
  color: #1a1a1a;
}

.invite .meta a {
  color: var(--accent);
}
