:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --ink: #1b2559;
  --muted: #667085;
  --line: #e4e7ec;
  --brand: #ff5a36;
  --brand-dark: #d9471f;
  --navy: #1b2559;
  --maxw: 960px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family:
    -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}

a {
  color: var(--brand);
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

header.top {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

h1,
h2,
h3,
.brandName {
  font-family: "Huninn", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 20px;
  font-size: 15px;
}

nav a:hover {
  color: var(--brand);
}

.hero {
  padding: 56px 0 48px;
  text-align: center;
}

.hero .mark {
  width: 96px;
  height: 96px;
  margin: 0 auto 8px;
  display: block;
}

.hero .mark.appIcon {
  border-radius: 22px;
}

.hero .brandName {
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero .brandName span {
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 4px;
  margin-left: 10px;
}

.hero h1 {
  font-size: 40px;
  margin: 0 0 12px;
  line-height: 1.25;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
  margin: 0 auto;
  max-width: 640px;
}

.badge {
  display: inline-block;
  background: #ffe9e3;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 32px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

section {
  padding: 32px 0;
}

section h2 {
  font-size: 26px;
  margin: 0 0 16px;
}

.doc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  margin: 32px 0;
}

.doc h1 {
  font-size: 30px;
  margin: 0 0 6px;
}

.doc h2 {
  font-size: 20px;
  margin: 28px 0 8px;
}

.doc p,
.doc li {
  font-size: 15.5px;
}

.doc .meta {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}

table.info {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
}

table.info th,
table.info td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.info th {
  width: 160px;
  color: var(--muted);
  font-weight: 600;
}

footer {
  background: var(--navy);
  padding: 32px 0 48px;
  color: #c9cfe6;
  font-size: 14px;
}

footer img {
  height: 32px;
  width: auto;
  display: block;
  margin-bottom: 12px;
}

footer .cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

footer a {
  color: #ffffff;
  margin-right: 16px;
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 30px;
  }

  nav a {
    margin-left: 12px;
    font-size: 14px;
  }

  footer .cols {
    grid-template-columns: 1fr;
  }

  .doc {
    padding: 22px;
  }
}

.tagline {
  font-family: "Huninn", "Noto Sans TC", sans-serif;
  color: var(--brand);
  font-size: 17px;
  letter-spacing: 1px;
  margin: 0 0 12px;
}

.hero .tagline,
.card .tagline {
  color: var(--brand);
}

.card .tagline {
  font-size: 15px;
  margin: -4px 0 8px;
}

/* Etuni 公司頁 */
.pixel {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.hero .mark.pixel {
  border-radius: 20px;
  border: 1px solid var(--line);
}

.hero .brandName span {
  letter-spacing: 1px;
}

.card.product {
  display: block;
  color: inherit;
  text-decoration: none;
  position: relative;
}

a.card.product:hover {
  border-color: var(--brand);
}

.card .appIcon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: block;
  margin-bottom: 14px;
}

.card .status {
  display: inline-block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-dark);
  background: #ffe9e3;
  border-radius: 999px;
  padding: 2px 10px;
}

/* Etuni 公司頁：深色星空 */
body.etuni {
  --bg: #011646;
  --card: #0a2159;
  --ink: #f4f6ff;
  --muted: #aab5d8;
  --line: #22386e;
  --brand: #fd6603;
  --brand-dark: #ffb27a;
  --navy: #f4f6ff;
  color-scheme: dark;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240' width='240' height='240' shape-rendering='crispEdges'%3E%3Crect x='20' y='30' width='4' height='4' fill='%232A3F7A'/%3E%3Crect x='96' y='12' width='4' height='4' fill='%231E3266'/%3E%3Crect x='150' y='70' width='6' height='6' fill='%232A3F7A'/%3E%3Crect x='210' y='40' width='4' height='4' fill='%231E3266'/%3E%3Crect x='60' y='120' width='4' height='4' fill='%231E3266'/%3E%3Crect x='180' y='150' width='4' height='4' fill='%232A3F7A'/%3E%3Crect x='30' y='200' width='6' height='6' fill='%231E3266'/%3E%3Crect x='120' y='210' width='4' height='4' fill='%232A3F7A'/%3E%3Crect x='228' y='190' width='4' height='4' fill='%231E3266'/%3E%3Crect x='140' y='120' width='4' height='4' fill='%2334497F'/%3E%3Crect x='144' y='120' width='4' height='4' fill='%2334497F'/%3E%3Crect x='136' y='120' width='4' height='4' fill='%2334497F'/%3E%3Crect x='140' y='124' width='4' height='4' fill='%2334497F'/%3E%3Crect x='140' y='116' width='4' height='4' fill='%2334497F'/%3E%3Crect x='70' y='60' width='4' height='4' fill='%232A3F7A'/%3E%3Crect x='74' y='60' width='4' height='4' fill='%232A3F7A'/%3E%3Crect x='66' y='60' width='4' height='4' fill='%232A3F7A'/%3E%3Crect x='70' y='64' width='4' height='4' fill='%232A3F7A'/%3E%3Crect x='70' y='56' width='4' height='4' fill='%232A3F7A'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  image-rendering: pixelated;
}

body.etuni header.top {
  background: rgba(1, 22, 70, 0.85);
  backdrop-filter: blur(4px);
}

body.etuni .hero .mark.pixel {
  border: 0;
  border-radius: 0;
}

body.etuni .badge,
body.etuni .card .status {
  background: rgba(253, 102, 3, 0.18);
  color: #ffb27a;
}

body.etuni .card,
body.etuni .doc {
  background: rgba(10, 33, 89, 0.85);
}

body.etuni footer {
  background: #000d2e;
  border-top: 1px solid var(--line);
}
