:root {
  --ink: #1e2522;
  --muted: #5c6762;
  --paper: #f7fbfa;
  --white: #ffffff;
  --rose: #d95858;
  --rose-dark: #bd4343;
  --teal: #2b8f84;
  --sage: #d6eadf;
  --gold: #f3c969;
  --blue: #e8f1fb;
  --line: rgba(30, 37, 34, 0.14);
  --shadow: 0 18px 48px rgba(30, 37, 34, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Yu Gothic",
    "Hiragino Sans", Arial, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.18rem;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
  font-weight: 800;
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 900;
}

.language-control select {
  min-height: 42px;
  padding: 0 34px 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
}

.header-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 17px;
  color: var(--ink);
  background: var(--white);
  border-radius: 999px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(18, 25, 22, 0.82) 0%, rgba(18, 25, 22, 0.58) 48%, rgba(18, 25, 22, 0.16) 100%),
    linear-gradient(180deg, rgba(18, 25, 22, 0.22), rgba(18, 25, 22, 0.12));
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 12vh;
  content: "";
  background: linear-gradient(180deg, rgba(247, 251, 250, 0), var(--paper));
}

.hero-content {
  width: min(780px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding-top: 88px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rose);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4.2rem, 13vw, 10rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.28;
}

p {
  margin: 0;
  color: var(--muted);
}

.hero-copy {
  width: min(680px, 100%);
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1.12rem, 2.2vw, 1.55rem);
}

.hero-actions,
.final-layout,
.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.hello-button:hover,
.intent-tab:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--rose);
  box-shadow: 0 14px 32px rgba(217, 88, 88, 0.28);
}

.button-primary:hover {
  background: var(--rose-dark);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.trust-strip span {
  padding: 9px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.section,
.signup-band,
.final-cta {
  padding: clamp(64px, 9vw, 116px) clamp(18px, 4vw, 54px);
}

.section-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.signup-band {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
}

.signup-layout > div > p:last-child,
.copy-block p,
.center-copy p {
  margin-top: 18px;
  max-width: 650px;
  font-size: 1.08rem;
}

.join-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.join-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
}

.join-form input,
.join-form select {
  width: 100%;
  height: 54px;
  padding: 0 14px;
  color: var(--ink);
  background: #f8fbf8;
  border: 1px solid rgba(30, 37, 34, 0.18);
  border-radius: 8px;
  outline: none;
}

.join-form input:focus,
.join-form select:focus,
.language-control select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43, 143, 132, 0.18);
}

.form-button,
.form-note {
  grid-column: 1 / -1;
}

.form-note {
  font-size: 0.92rem;
}

.split-section {
  background: linear-gradient(180deg, var(--paper), var(--blue));
}

.local-section {
  background: #fffaf1;
}

.split-layout,
.visual-layout,
.local-layout,
.safety-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 7vw, 86px);
  align-items: center;
}

.local-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.local-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 30px;
}

.local-controls label {
  display: grid;
  gap: 8px;
  font-weight: 900;
}

.local-controls select {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.local-controls select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43, 143, 132, 0.18);
}

.local-button {
  min-width: 190px;
}

.local-panel {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.local-stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.local-stat span {
  color: var(--rose);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 0.95;
}

.local-stat p {
  font-weight: 900;
}

.local-card {
  padding: 18px;
  background: #f8fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.local-card h3,
.local-card p + p {
  margin-top: 8px;
}

.local-label {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.local-status {
  font-weight: 900;
}

.copy-block {
  min-width: 0;
}

.intent-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.intent-tab {
  min-width: 96px;
  height: 44px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 900;
}

.intent-tab.active {
  color: var(--ink);
  background: var(--gold);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.profile-card,
.feature-card,
.story-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.profile-body {
  display: grid;
  min-height: 250px;
  gap: 18px;
  align-content: space-between;
  padding: 20px;
}

.profile-body p,
.feature-card p,
.story-card p {
  margin-top: 10px;
  font-size: 0.98rem;
}

.hello-button {
  width: 100%;
  min-height: 46px;
  color: var(--white);
  background: var(--teal);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.hello-button.sent {
  color: var(--ink);
  background: var(--gold);
}

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

.confidence-section p {
  color: rgba(255, 255, 255, 0.74);
}

.center-copy {
  text-align: center;
}

.center-copy p {
  margin-right: auto;
  margin-left: auto;
}

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 42px;
}

.feature-card {
  min-height: 240px;
  padding: 26px;
  color: var(--ink);
  box-shadow: none;
}

.feature-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  place-items: center;
  color: var(--ink);
  background: var(--sage);
  border-radius: 8px;
  font-weight: 900;
}

.visual-section {
  background: #eef7f4;
}

.visual-layout {
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
}

.phone-frame {
  width: min(370px, 100%);
  min-height: 620px;
  margin: 0 auto;
  padding: 18px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78)),
    url("https://images.pexels.com/photos/34761/old-people-couple-together-connected.jpg?auto=compress&cs=tinysrgb&w=900") center / cover no-repeat;
  border: 10px solid var(--ink);
  border-radius: 34px;
  box-shadow: 0 28px 70px rgba(30, 37, 34, 0.24);
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 8px;
}

.phone-top span {
  width: 34px;
  height: 6px;
  background: rgba(30, 37, 34, 0.18);
  border-radius: 999px;
}

.chat-list {
  display: grid;
  gap: 14px;
  margin-top: 300px;
}

.message {
  max-width: 86%;
  padding: 13px 14px;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(30, 37, 34, 0.12);
}

.incoming {
  justify-self: start;
  background: var(--white);
}

.outgoing {
  justify-self: end;
  color: var(--white);
  background: var(--rose);
}

.text-link {
  display: inline-flex;
  margin-top: 26px;
  color: var(--rose-dark);
  font-weight: 900;
}

.text-link::after {
  content: ">";
  margin-left: 8px;
}

.stories-section {
  background: var(--white);
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 36px;
}

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

.story-card {
  box-shadow: none;
}

.story-card img {
  width: 100%;
  aspect-ratio: 1.1 / 1;
  object-fit: cover;
}

.story-card h3,
.story-card p {
  padding-right: 20px;
  padding-left: 20px;
}

.story-card h3 {
  padding-top: 20px;
}

.story-card p {
  padding-bottom: 22px;
}

.safety-section {
  background: #f4f7ff;
}

.safety-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.safety-image {
  min-height: 520px;
  background:
    linear-gradient(180deg, rgba(30, 37, 34, 0), rgba(30, 37, 34, 0.18)),
    url("https://images.pexels.com/photos/8422663/pexels-photo-8422663.jpeg?auto=compress&cs=tinysrgb&w=1400") center / cover no-repeat;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-weight: 900;
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--teal);
}

.final-cta {
  background:
    linear-gradient(90deg, rgba(217, 88, 88, 0.11), rgba(43, 143, 132, 0.13)),
    var(--paper);
}

.final-layout {
  justify-content: space-between;
}

.final-layout h2 {
  max-width: 780px;
}

.site-footer {
  padding: 42px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: var(--ink);
}

.footer-inner {
  display: flex;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: start;
  justify-content: space-between;
  gap: 26px;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-overview {
  max-width: 420px;
}

.footer-overview h3 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 1.08rem;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 900;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  width: min(1180px, 100%);
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.68);
}

.legal-page {
  background: var(--paper);
}

.legal-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--white);
  background: var(--ink);
}

.legal-header .language-control {
  justify-self: end;
}

.legal-main {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 4vw, 54px);
}

.legal-article {
  width: min(900px, 100%);
  margin: 0 auto;
  padding: clamp(26px, 5vw, 54px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal-article h1 {
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.legal-updated {
  margin-top: 14px;
  font-weight: 800;
}

.legal-content {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.legal-content h2 {
  margin: 14px 0 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.legal-content p {
  font-size: 1.05rem;
}

.store-page {
  min-height: 100vh;
  background:
    linear-gradient(140deg, rgba(217, 88, 88, 0.12), rgba(43, 143, 132, 0.16)),
    var(--paper);
}

.store-main {
  padding: clamp(42px, 8vw, 96px) clamp(18px, 4vw, 54px);
}

.store-hero {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 58px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.store-hero h1 {
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(2.7rem, 7vw, 5.4rem);
}

.store-hero > p:not(.eyebrow):not(.store-note) {
  max-width: 680px;
  margin-top: 18px;
  font-size: 1.12rem;
}

.store-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.store-button {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(30, 37, 34, 0.18);
}

.store-button.google {
  background: var(--teal);
}

.store-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 8px;
}

.store-button small,
.store-button strong {
  display: block;
}

.store-button small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.store-button strong {
  font-size: 1.2rem;
}

.store-note {
  margin-top: 20px;
  font-size: 0.95rem;
}

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

  .nav-links {
    display: none;
  }
}

@media (max-width: 900px) {
  .signup-layout,
  .split-layout,
  .visual-layout,
  .local-layout,
  .safety-layout {
    grid-template-columns: 1fr;
  }

  .profile-grid,
  .feature-row,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    display: grid;
    grid-template-columns: minmax(126px, 0.45fr) minmax(0, 0.55fr);
  }

  .profile-card img {
    height: 100%;
    aspect-ratio: auto;
  }

  .profile-body {
    min-height: 0;
  }

  .safety-image {
    min-height: 360px;
  }
}

@media (max-width: 700px) {
  .site-header {
    grid-template-columns: auto auto;
    min-height: 66px;
    gap: 10px;
    padding: 12px 14px;
  }

  .language-control {
    order: 3;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .language-control select {
    width: 100%;
  }

  .header-cta {
    justify-self: end;
    padding: 0 13px;
    font-size: 0.9rem;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .hero {
    min-height: 92svh;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-left: 14px;
    padding-top: 126px;
  }

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

  .button {
    width: 100%;
  }

  .trust-strip span {
    flex: 1 1 120px;
    text-align: center;
  }

  .join-form {
    grid-template-columns: 1fr;
  }

  .local-controls {
    grid-template-columns: 1fr;
  }

  .local-button {
    min-width: 0;
  }

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

  .profile-card img {
    aspect-ratio: 4 / 3;
  }

  .phone-frame {
    min-height: 560px;
  }

  .chat-list {
    margin-top: 250px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .store-actions {
    grid-template-columns: 1fr;
  }
}
