:root {
  --ink: #18313a;
  --muted: #5f7379;
  --line: #dce8e5;
  --paper: #fffdf7;
  --surface: #f4faf7;
  --teal: #08766b;
  --teal-dark: #055c55;
  --mint: #dff6ed;
  --sun: #ffd66b;
  --coral: #ef7d65;
  --blue: #5a7fbf;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(24, 49, 58, 0.11);
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans TC', system-ui, sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

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

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

/* Shared */

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

/* MARK: Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 232, 229, 0.86);
  background: rgba(255, 253, 247, 0.9);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--teal-dark);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(8, 118, 107, 0.17);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

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

@media (max-width: 980px) {
  .nav {
    display: none;
  }
}

/* Main */

.section {
  padding: 86px 0;
}

.section-muted {
  background: var(--surface);
}

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

.section-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 900;
}

/* MARK: Main - Hero */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 0;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

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

.button:active {
  transform: scale(0.98);
}

.button-primary {
  padding: 0.75rem 1.5rem;
  background: var(--teal);
  color: #f3fffb;
  box-shadow: 0 18px 24px rgba(8, 118, 107, 0.2);
}

.button-secondary {
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--teal-dark);
}

.button-primary-lg {
  min-height: 60px;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #f3fffb;
  font-size: 1.05rem;
  box-shadow: 0 22px 34px rgba(8, 118, 107, 0.24);
}

.button-secondary-lg {
  min-height: 60px;
  padding: 1rem 2rem;
  border: 1px solid rgba(8, 118, 107, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--teal-dark);
  font-size: 1.05rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 7rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 214, 107, 0.28), transparent 28%),
    radial-gradient(circle at 88% 22%, rgba(90, 127, 191, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fffb 0%, var(--paper) 100%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-title {
  max-width: 56rem;
  margin: 0 0 2rem;
  color: var(--ink);
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-description {
  max-width: 44rem;
  margin: 0 0 3rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.store-link {
  cursor: pointer;
}

.store-img {
  width: 180px;
  height: 60px;
}

/* MARK: Main - Problem */

.problem-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: stretch;
}

.quote-panel,
.clarity-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(24, 49, 58, 0.08);
}

.quote-panel {
  padding: 34px;
}

.quote-panel p {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.45;
}

.quote-panel span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 700;
}

.clarity-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.clarity-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  padding: 24px;
  background: var(--white);
}

.clarity-row-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--mint);
  color: var(--teal-dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 900;
}

@media (max-width: 980px) {
  .problem-layout {
    grid-template-columns: 1fr;
  }
}

/* MARK: Main - features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.feature-card {
  grid-column: span 2;
  min-height: 270px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(24, 49, 58, 0.07);
}

.feature-card:nth-child(4),
.feature-card:nth-child(5) {
  grid-column: span 3;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #eaf7f2;
  color: var(--teal-dark);
}

.feature-card:nth-child(2) .icon-box,
.feature-card:nth-child(5) .icon-box {
  background: #edf2ff;
  color: var(--blue);
}

.feature-card:nth-child(3) .icon-box,
.feature-card:nth-child(4) .icon-box {
  background: #fff1e8;
  color: var(--coral);
}

.feature-card small {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
}

.feature-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.35;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* MARK: Main - scenarios */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.audience-item {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(24, 49, 58, 0.06);
}

.audience-item::before {
  display: block;
  width: 26px;
  height: 5px;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--sun);
  content: '';
}

.audience-item:nth-child(2n)::before {
  background: var(--teal);
}

.audience-item:nth-child(3n)::before {
  background: var(--coral);
}

@media (max-width: 720px) {
  .audience-grid {
    grid-template-columns: 1fr;
  }
}

/* MARK: Main - security */

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.security-item {
  display: flex;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(24, 49, 58, 0.06);
}

.check {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--sun);
  color: #18313a;
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 720px) {
  .security-grid {
    grid-template-columns: 1fr;
  }
}

/* MARK: Main - CTA */

.cta {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  background: var(--paper);
}

.cta::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 118, 107, 0.08), transparent 34%),
    linear-gradient(270deg, rgba(255, 214, 107, 0.18), transparent 36%);
  content: '';
}

.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: 3rem;
  border: 1px solid rgba(8, 118, 107, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 247, 0.9)), var(--white);
  box-shadow: 0 24px 60px rgba(24, 49, 58, 0.12);
}

.cta-inner::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 9rem;
  height: 9rem;
  border-bottom-left-radius: 9999px;
  border-top-right-radius: 1700px;
  background: rgba(8, 118, 107, 0.08);
  content: '';
}

.cta h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.2;
}

.cta p {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: flex-end;
}

.cta .button-primary {
  background: var(--teal);
  color: #f3fffb;
}

.cta .button-secondary {
  background: #fff8df;
  color: var(--ink);
}

@media (max-width: 980px) {
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 4rem 0 5rem;
  }

  .hero-actions,
  .cta-actions {
    width: 100%;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .cta {
    padding: 4rem 0;
  }

  .cta-inner {
    padding: 2rem;
    border-radius: 18px;
  }
}

/* MARK: Footer */

.site-footer {
  position: relative;
  width: 100%;
  padding: 4.5rem 0 0;
  overflow: hidden;
  background: linear-gradient(180deg, #0f766e 0%, #115e59 100%);
  color: #f8fffe;
}

.site-footer::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 16rem;
  height: 16rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  transform: translate(35%, -45%);
  filter: blur(48px);
  pointer-events: none;
}

.site-footer-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-bottom: 4rem;
}

.footer-main {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: 3rem 6rem;
  align-items: start;
  margin-bottom: 4rem;
}

.footer-newsletter h4,
.footer-link-group h5 {
  margin: 0 0 1rem;
  font-family: 'Lexend', sans-serif;
}

.footer-newsletter h4 {
  font-size: 1.3rem;
  font-weight: 700;
}

.footer-newsletter p {
  margin: 0 0 1.75rem;
  color: rgba(204, 251, 241, 0.72);
  font-size: 0.95rem;
  line-height: 1.9;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.footer-link-group h5 {
  color: #67e8f9;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-link-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link-group li + li {
  margin-top: 0.75rem;
}

.footer-link-group a {
  color: rgba(248, 250, 252, 0.92);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-link-group a:hover {
  color: #99f6e4;
}

.footer-social {
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-social a {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(4, 47, 46, 0.18);
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.footer-social a:hover {
  background: #ffffff;
  color: #134e4a;
  transform: translateY(-2px);
}

.footer-social-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.footer-bottom {
  width: 100%;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: center;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
}

.language-switcher a {
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  color: rgba(240, 253, 250, 0.9);
  font-family: 'Lexend', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.language-switcher a.is-active {
  background: #ffffff;
  color: #134e4a;
}

.footer-copy {
  margin: 0;
  color: rgba(204, 251, 241, 0.52);
  font-family: 'Lexend', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

@media (max-width: 768px) {
  .site-footer {
    padding-top: 3.75rem;
  }

  .site-footer-inner {
    padding-bottom: 3rem;
  }

  .footer-brand {
    margin-bottom: 3rem;
  }

  .footer-main {
    gap: 2.5rem;
    margin-bottom: 3rem;
  }

  .footer-newsletter {
    text-align: center;
  }

  .footer-links-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    gap: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
  }
}
