:root {
  --ink: #0b1520;
  --ink-soft: #1a2736;
  --navy: #1e3a5f;
  --copper: #c45c26;
  --copper-soft: #d97845;
  --mist: #eef2f6;
  --paper: #f7f8fa;
  --line: rgba(11, 21, 32, 0.12);
  --muted: rgba(11, 21, 32, 0.62);
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(11, 21, 32, 0.18);
  --font-display: "Syne", "Noto Sans TC", sans-serif;
  --font-serif: "Noto Serif TC", "Songti TC", serif;
  --font-sans: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 6vw;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.site-nav.is-solid {
  background: rgba(11, 21, 32, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

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

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 21, 32, 0.35) 0%, rgba(11, 21, 32, 0.28) 38%, rgba(11, 21, 32, 0.88) 100%),
    radial-gradient(ellipse at 20% 20%, rgba(196, 92, 38, 0.22), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 6vw 12vh;
  max-width: 920px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  opacity: 0;
  animation: riseIn 0.9s ease 0.15s forwards;
}

.hero-brand {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 12vw, 7.5rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.92;
  opacity: 0;
  animation: riseIn 0.95s ease 0.28s forwards;
}

.hero-title {
  margin: 0 0 16px;
  max-width: 16ch;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  animation: riseIn 0.95s ease 0.42s forwards;
}

.hero-desc {
  margin: 0 0 28px;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
  opacity: 0;
  animation: riseIn 0.95s ease 0.55s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 0;
  animation: riseIn 0.95s ease 0.68s forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--copper);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--copper-soft);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.section {
  padding: 96px 6vw;
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--copper);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  line-height: 1.25;
}

.section-text {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about {
  background:
    linear-gradient(135deg, rgba(30, 58, 95, 0.06), transparent 40%),
    var(--mist);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-points {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.about-point strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

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

.about-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
}

.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.apps {
  background: var(--paper);
}

.app-list {
  display: grid;
  gap: 56px;
}

.app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.app-row:nth-child(even) .app-copy {
  order: 2;
}

.app-row:nth-child(even) .app-visual {
  order: 1;
}

.app-visual {
  border-radius: 28px;
  overflow: hidden;
  min-height: 340px;
  box-shadow: var(--shadow);
}

.app-visual img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.app-row:hover .app-visual img {
  transform: scale(1.04);
}

.app-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(30, 58, 95, 0.08);
  color: var(--navy);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.app-name {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.app-desc {
  margin: 0 0 18px;
  color: var(--muted);
}

.app-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.app-links a {
  color: var(--navy);
  border-bottom: 1px solid rgba(30, 58, 95, 0.35);
  padding-bottom: 2px;
  font-size: 0.95rem;
}

.app-links a:hover {
  color: var(--copper);
  border-bottom-color: var(--copper);
}

.contact {
  background: var(--ink);
  color: var(--white);
}

.contact .section-text {
  color: rgba(255, 255, 255, 0.72);
}

.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.site-footer {
  background: #070e16;
  color: rgba(255, 255, 255, 0.7);
  padding: 36px 6vw 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-brand span {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer-col h4 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-copy {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -1%, 0);
  }
}

@media (max-width: 960px) {
  .about-grid,
  .app-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .app-row:nth-child(even) .app-copy,
  .app-row:nth-child(even) .app-visual {
    order: initial;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero-content {
    padding-bottom: 10vh;
  }

  .about-visual,
  .about-visual img,
  .app-visual,
  .app-visual img {
    min-height: 280px;
  }
}
