:root {
  color-scheme: light;
  --bg: #fff8e9;
  --paper: #fffdf7;
  --ink: #071b1b;
  --muted: #4d6363;
  --line: rgba(7, 27, 27, 0.12);
  --cyan: #00d7ff;
  --mint: #00f0a8;
  --yellow: #ffe04b;
  --coral: #ff5f7e;
  --violet: #7a5cff;
  --shadow: rgba(27, 63, 78, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 215, 255, 0.38), transparent 18rem),
    radial-gradient(circle at 88% 10%, rgba(255, 224, 75, 0.58), transparent 20rem),
    radial-gradient(circle at 78% 72%, rgba(255, 95, 126, 0.24), transparent 22rem),
    linear-gradient(135deg, #ffffff 0%, var(--bg) 48%, #e7fff7 100%);
  font-family: "Sora", "Avenir Next", "Trebuchet MS", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 27, 27, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(7, 27, 27, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.52), transparent 70%);
  z-index: -2;
}

body[data-lang="zh-Hant"] {
  font-family: "Sora", "Noto Serif TC", "PingFang TC", sans-serif;
}

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

.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(28px);
  opacity: 0.66;
  z-index: -1;
}

.ambient-one {
  width: 20rem;
  height: 20rem;
  left: -8rem;
  bottom: 16rem;
  background: rgba(0, 240, 168, 0.32);
}

.ambient-two {
  width: 18rem;
  height: 18rem;
  right: -5rem;
  bottom: 7rem;
  background: rgba(122, 92, 255, 0.22);
}

.site-header,
main,
.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

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

.brand-logo {
  width: 54px;
  height: 50px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: #f6fcf6;
  box-shadow: 0 18px 34px rgba(0, 215, 255, 0.18);
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

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

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 16px 38px rgba(27, 63, 78, 0.08);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.nav-links a {
  border-radius: 999px;
  padding: 9px 12px;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(0, 215, 255, 0.16);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: end;
}

.github-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border-radius: 999px;
  padding: 0 15px;
  color: #051615;
  background: linear-gradient(135deg, var(--yellow), var(--mint));
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(0, 240, 168, 0.22);
}

.language-switch {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

select {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 46px 0 74px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #006d62;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 830px;
  margin-bottom: 20px;
  font-size: clamp(3.5rem, 8vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

h1,
h2 {
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.1vw, 4.3rem);
  line-height: 0.96;
  letter-spacing: -0.058em;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.hero-lede {
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.55;
}

.split p,
.promise li,
.product-copy p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 0.93rem;
  font-weight: 900;
}

.primary {
  color: #071b1b;
  background: linear-gradient(135deg, var(--yellow), #ff9c3f);
  box-shadow: 0 20px 42px rgba(255, 156, 63, 0.24);
}

.secondary {
  border: 1px solid rgba(7, 27, 27, 0.1);
  background: rgba(255, 255, 255, 0.72);
}

.hero-card,
.section,
.cards article {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58)),
    rgba(255, 255, 255, 0.7);
  box-shadow: 0 28px 80px var(--shadow);
  backdrop-filter: blur(20px);
}

.hero-card {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  border-radius: 36px;
  padding: 28px;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -32% -18% auto;
  height: 72%;
  background:
    radial-gradient(circle at 35% 45%, rgba(0, 215, 255, 0.42), transparent 42%),
    radial-gradient(circle at 70% 30%, rgba(255, 224, 75, 0.52), transparent 44%);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto 24px 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 215, 255, 0.7), transparent);
}

.hero-card-top {
  position: relative;
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 250px;
}

.hero-logo {
  width: 132px;
  height: 120px;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 28px;
  background: #f6fcf6;
  box-shadow: 0 24px 52px rgba(0, 215, 255, 0.24);
}

.card-label {
  margin-bottom: 10px;
  color: #006d62;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-card-top strong {
  display: block;
  max-width: 260px;
  font-size: clamp(1.8rem, 4vw, 3.15rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.signal-list {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.signal-list span {
  border: 1px solid rgba(7, 27, 27, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-weight: 900;
}

.section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(26px, 4vw, 52px);
  align-items: start;
  margin: 0 0 18px;
  border-radius: 32px;
  padding: clamp(26px, 4vw, 44px);
}

.product-callout {
  border-color: rgba(0, 215, 255, 0.28);
}

.product-copy {
  display: grid;
  gap: 18px;
}

.product-copy p {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  border-bottom: 3px solid var(--cyan);
  color: #006d62;
  font-weight: 900;
}

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

.cards article {
  min-height: 250px;
  border-radius: 28px;
  padding: 28px;
}

.cards article:nth-child(1) {
  background: linear-gradient(145deg, rgba(255, 224, 75, 0.32), rgba(255, 255, 255, 0.74));
}

.cards article:nth-child(2) {
  background: linear-gradient(145deg, rgba(0, 215, 255, 0.25), rgba(255, 255, 255, 0.74));
}

.cards article:nth-child(3) {
  background: linear-gradient(145deg, rgba(255, 95, 126, 0.22), rgba(255, 255, 255, 0.74));
}

.card-number {
  display: inline-flex;
  margin-bottom: 44px;
  color: #006d62;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.cards p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.promise {
  margin-bottom: 70px;
}

.promise ul {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.promise li {
  border-left: 3px solid var(--coral);
  padding-left: 16px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 28px 0 44px;
  color: var(--muted);
}

.site-footer p {
  margin: 6px 0 0;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    position: static;
  }

  .nav-links,
  .header-actions {
    flex-wrap: wrap;
    justify-content: start;
  }

  .hero,
  .section,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    min-width: 0;
  }

  .language-switch span {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-card-top {
    grid-template-columns: 1fr;
  }

  .section,
  .cards article,
  .hero-card {
    border-radius: 24px;
    padding: 24px;
  }
}
