@charset "utf-8";

:root {
  --ink: #17201d;
  --muted: #5d6963;
  --paper: #f7fbf8;
  --surface: #ffffff;
  --line: #dbe6df;
  --green: #137a4c;
  --green-dark: #0c5d39;
  --coral: #d94f3d;
  --gold: #e2aa27;
  --teal: #1f8a95;
  --shadow: 0 18px 42px rgba(23, 32, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Microsoft JhengHei", "PingFang TC", Arial, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  gap: 14px;
  color: #ffffff;
  background: rgba(15, 22, 20, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 10px;
  color: var(--ink);
  background: #ffffff;
  border-radius: 8px;
  font-weight: 900;
}

.brand-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  max-width: 240px;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.hero {
  position: relative;
  min-height: 84vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 15, 13, 0.86) 0%, rgba(8, 15, 13, 0.52) 48%, rgba(8, 15, 13, 0.22) 100%),
    linear-gradient(0deg, rgba(8, 15, 13, 0.74) 0%, rgba(8, 15, 13, 0.04) 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 0 clamp(48px, 9vh, 92px) clamp(18px, 7vw, 96px);
  padding-top: 120px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 4.25rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.store-link:hover,
.button:focus-visible,
.store-link:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 14px 28px rgba(19, 122, 76, 0.28);
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.section .button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #ffffff;
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading h2,
.release-note h2 {
  margin: 0;
  color: var(--ink);
  font-size: 2.8rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.section-heading p:last-child,
.release-note p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 26px rgba(23, 32, 29, 0.07);
}

.featured-app {
  grid-column: span 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  background: #eef8f2;
}

.app-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(23, 32, 29, 0.08);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.platform {
  margin: 18px 0 4px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.featured-app .platform {
  margin-top: 0;
}

.app-card h3 {
  margin: 0;
  font-size: 1.33rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.app-card p:not(.platform) {
  margin: 12px 0 0;
  color: var(--muted);
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.store-link {
  min-width: 128px;
  color: #ffffff;
}

.store-link.android {
  background: var(--green-dark);
}

.store-link.ios {
  background: var(--ink);
}

.release-note {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 54px;
  padding: 36px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: #ffffff;
  background: #17201d;
}

.site-footer p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 3.15rem;
  }

  .section-heading h2,
  .release-note h2 {
    font-size: 2.25rem;
  }

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

  .featured-app {
    grid-column: span 2;
  }

  .release-note {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    min-height: 0;
  }

  .brand-mark {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 0.95rem;
  }

  .brand-name {
    max-width: 150px;
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .section-heading h2,
  .release-note h2 {
    font-size: 1.9rem;
  }

  .site-nav {
    gap: 4px;
  }

  .site-nav a {
    padding: 7px 9px;
    font-size: 0.95rem;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-content {
    width: calc(100% - 36px);
    margin: 0 auto 44px;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .store-actions {
    flex-direction: column;
  }

  .button,
  .store-link {
    width: 100%;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }

  .featured-app {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .featured-app .platform {
    margin-top: 18px;
  }

  .release-note {
    padding: 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
