/* Talai official — framed hierarchy system (unique to talaiai.cn) */
:root {
  --bg: #0a070c;
  --bg-elev: #120e16;
  --bg-panel: #17121d;
  --line: rgba(255, 236, 246, 0.14);
  --line-mid: rgba(255, 180, 210, 0.28);
  --line-accent: rgba(255, 77, 154, 0.55);
  --accent: #ff4d9a;
  --accent-soft: #ff8fbf;
  --text: #f7eef4;
  --muted: #b5a3b0;
  --ink: #1a1018;
  --radius: 6px;
  --wrap: min(1240px, calc(100% - 2.5rem));
  --font-display: "Syne", "Noto Sans SC", sans-serif;
  --font-body: "Manrope", "Noto Sans SC", sans-serif;
  --shadow-frame: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 77, 154, 0.16), transparent 55%),
    radial-gradient(900px 500px at 10% 20%, rgba(120, 40, 90, 0.22), transparent 50%),
    linear-gradient(180deg, #0d0911 0%, var(--bg) 40%, #0b080f 100%);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.tx-page-frame {
  pointer-events: none;
  position: fixed;
  inset: 10px;
  z-index: 50;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 6px rgba(10, 7, 12, 0.35);
}

.tx-page-frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 77, 154, 0.18);
}

.tx-wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* Corner marks for border hierarchy */
.tx-corner {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tx-corner::before,
.tx-corner::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--accent-soft);
  border-style: solid;
  opacity: 0.85;
}

.tx-corner::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}

.tx-corner::after {
  right: -1px;
  bottom: -1px;
  border-width: 0 2px 2px 0;
}

.tx-frame {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(18, 14, 22, 0.72);
  box-shadow: var(--shadow-frame);
}

.tx-frame--accent {
  border-color: var(--line-accent);
}

.tx-frame--pad {
  padding: 8px;
  background: var(--bg-elev);
}

.tx-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--accent-soft);
}

/* Header */
.tx-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(10, 7, 12, 0.78);
  border-bottom: 1px solid var(--line);
}

.tx-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
}

.tx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.tx-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line-mid);
}

.tx-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.tx-nav a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.tx-nav a:hover {
  color: var(--text);
}

.tx-nav__cta {
  padding: 4px !important;
  border: 1px solid var(--line-mid) !important;
  background: rgba(10, 7, 12, 0.35) !important;
  color: var(--text) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.tx-nav__cta > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255, 143, 191, 0.3);
  background: linear-gradient(180deg, rgba(255, 77, 154, 0.18), rgba(255, 77, 154, 0.06));
  font-size: 0.9rem;
}

.tx-burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  place-items: center;
  gap: 6px;
  flex-direction: column;
}

.tx-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.tx-hero {
  position: relative;
  min-height: auto;
  padding: 3.25rem 0 3.75rem;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 77, 154, 0.06), transparent 42%),
    radial-gradient(700px 360px at 85% 20%, rgba(255, 77, 154, 0.12), transparent 60%);
}

.tx-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.95fr);
  gap: 2.75rem;
  align-items: center;
}

.tx-hero__copy {
  max-width: 34rem;
}

.tx-hero__stage {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.tx-hero-shots {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: min(100%, 460px);
  padding: 14px;
  border: 1px solid var(--line-mid);
  background: rgba(12, 8, 16, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 0 7px rgba(10, 7, 12, 0.5);
}

.tx-hero__badge {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.82rem;
  color: var(--accent-soft);
}

.tx-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.6rem, 8vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 10%, #ffd0e6 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tx-title-in 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.tx-hero__lead {
  margin: 0.95rem 0 0.5rem;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tx-hero__desc {
  margin: 0 0 0.7rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.tx-hero__desc + .tx-hero__desc {
  margin-top: -0.1rem;
}

.tx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.tx-hero__meta {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  max-width: 24rem;
}

.tx-hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(10, 7, 12, 0.45);
  color: var(--muted);
  font-size: 0.88rem;
}

.tx-hero__meta strong {
  color: var(--text);
  font-weight: 700;
  min-width: 4.2rem;
}

.tx-btn-shell {
  display: inline-flex;
  padding: 5px;
  border: 1px solid var(--line-mid);
  background: rgba(10, 7, 12, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.tx-btn-shell:hover {
  border-color: var(--line-accent);
  transform: translateY(-1px);
}

.tx-btn-shell--ghost {
  border-color: var(--line);
}

.tx-btn-shell--lg {
  padding: 6px;
}

.tx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.94rem;
  width: 100%;
}

.tx-btn--primary {
  color: var(--text);
  border-color: rgba(255, 143, 191, 0.35);
  background: linear-gradient(180deg, rgba(255, 77, 154, 0.22), rgba(255, 77, 154, 0.08));
}

.tx-btn--ghost {
  border-color: var(--line);
  background: rgba(18, 14, 22, 0.65);
  color: var(--muted);
}

.tx-btn-shell:hover .tx-btn--ghost {
  color: var(--text);
}

.tx-btn--lg {
  min-height: 50px;
  padding-inline: 1.5rem;
  font-size: 1rem;
}

/* Hero hard-edged shots — balanced pair */
.tx-hardshot {
  position: relative;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  background: #000;
  overflow: hidden;
}

.tx-hardshot img {
  width: 100%;
  aspect-ratio: 9 / 17.2;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Product row — large cards, 4 visible, drag for more */
.tx-row-wrap {
  margin-top: 0.35rem;
  overflow: visible;
  padding-top: 0.35rem;
}

.tx-row {
  display: flex;
  gap: 1rem;
  align-items: end;
  padding: 3rem 0.25rem 0.6rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 77, 154, 0.45) rgba(255, 255, 255, 0.06);
}

.tx-row.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

.tx-row::-webkit-scrollbar {
  height: 6px;
}

.tx-row::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

.tx-row::-webkit-scrollbar-thumb {
  background: rgba(255, 77, 154, 0.45);
}

.tx-row__item {
  --h: 1;
  flex: 0 0 calc((100% - 3.2rem) / 4.35);
  margin: 0;
  transform: translateY(calc(var(--h) * -16px));
  scroll-snap-align: start;
}

.tx-row__frame {
  position: relative;
  padding: 8px;
  border: 2px solid var(--line-mid);
  background: var(--bg-elev);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 14px 32px rgba(0, 0, 0, 0.34),
    0 0 0 5px rgba(10, 7, 12, 0.4);
  pointer-events: none;
}

.tx-row__frame img {
  width: 100%;
  aspect-ratio: 9 / 17;
  object-fit: cover;
  object-position: top center;
  display: block;
  border: 1px solid var(--line);
  background: #000;
}

.tx-row__item figcaption {
  margin-top: 0.55rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
  background: rgba(18, 14, 22, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-row__hint {
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Sections */
.tx-section {
  padding: 5.5rem 0;
  border-bottom: 1px solid var(--line);
}

.tx-section--tight {
  padding-bottom: 4.5rem;
}

.tx-section__head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.tx-section__head h2 {
  margin: 0.85rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.tx-section__head p {
  margin: 0;
  color: var(--muted);
}

.tx-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tx-panel {
  position: relative;
  padding: 1.35rem 1.25rem 1.4rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 77, 154, 0.05), transparent 40%),
    var(--bg-panel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 0 6px rgba(10, 7, 12, 0.35);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.tx-panel:hover {
  border-color: var(--line-accent);
  transform: translateY(-3px);
}

.tx-panel__index {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line-mid);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent-soft);
  font-weight: 700;
}

.tx-panel h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.tx-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Trust */
.tx-trust__box {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.5rem;
  padding: 1.75rem;
  background:
    linear-gradient(135deg, rgba(255, 77, 154, 0.08), transparent 45%),
    var(--bg-elev);
}

.tx-trust__copy h2 {
  margin: 0.85rem 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.tx-trust__copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 38rem;
}

.tx-trust__list {
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.tx-trust__list li {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  background: rgba(10, 7, 12, 0.35);
  color: var(--muted);
  font-size: 0.92rem;
}

.tx-trust__side {
  display: grid;
  place-items: center;
}

.tx-trust__card {
  width: min(100%, 240px);
  padding: 1.5rem 1.1rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  background: var(--bg-panel);
}

.tx-trust__card img {
  border-radius: 16px;
  border: 1px solid var(--line-mid);
  margin-bottom: 0.45rem;
}

.tx-trust__card strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.tx-trust__card span {
  color: var(--muted);
  font-size: 0.88rem;
}

.tx-trust__domain {
  margin-top: 0.45rem !important;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line-accent);
  color: var(--accent-soft) !important;
  font-weight: 700;
}

/* Reviews */
.tx-reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.tx-review {
  position: relative;
  padding: 1.2rem 1.15rem 1.25rem;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.tx-review__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.tx-review__top strong {
  display: block;
  font-size: 0.98rem;
}

.tx-review__top time {
  color: var(--muted);
  font-size: 0.8rem;
}

.tx-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-mid);
  background: linear-gradient(145deg, rgba(255, 77, 154, 0.35), rgba(40, 20, 35, 0.8));
  font-weight: 700;
}

.tx-review p {
  margin: 0;
  color: #e8d8e2;
  font-size: 0.95rem;
}

/* CTA */
.tx-cta {
  padding: 4.5rem 0 5rem;
}

.tx-cta__box {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 77, 154, 0.12), transparent 55%),
    var(--bg-elev);
}

.tx-cta__box h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.tx-cta__box p {
  margin: 0 0 1.35rem;
  color: var(--muted);
}

/* Footer */
.tx-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 1.8rem;
  background: rgba(8, 5, 10, 0.85);
}

.tx-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.tx-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.tx-footer__brand img {
  border-radius: 6px;
  border: 1px solid var(--line);
}

.tx-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.tx-footer a {
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem;
  color: var(--accent-soft);
  font-size: 0.88rem;
}

/* Reveal motion */
.tx-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.tx-reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes tx-title-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .tx-hero__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .tx-hero__stage {
    justify-content: center;
  }

  .tx-hero-shots {
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .tx-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tx-trust__box {
    grid-template-columns: 1fr;
  }

  .tx-row {
    gap: 0.85rem;
  }

  .tx-row__item {
    flex-basis: calc((100% - 1.9rem) / 3.25);
    transform: translateY(calc(var(--h) * -12px));
  }
}

@media (max-width: 760px) {
  :root {
    --wrap: min(1180px, calc(100% - 1.5rem));
  }

  .tx-page-frame {
    inset: 6px;
  }

  .tx-burger {
    display: grid;
  }

  .tx-nav {
    position: fixed;
    top: 68px;
    left: 6px;
    right: 6px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    background: rgba(12, 8, 16, 0.96);
    padding: 0.5rem;
    z-index: 45;
  }

  .tx-nav.is-open {
    display: flex;
  }

  .tx-nav a {
    padding: 0.85rem 0.9rem;
    border: 1px solid transparent;
  }

  .tx-nav a:hover {
    border-color: var(--line);
    background: rgba(255, 77, 154, 0.08);
  }

  .tx-hero {
    padding-top: 3rem;
    min-height: auto;
  }

  .tx-hero__title {
    font-size: clamp(3.4rem, 16vw, 5rem);
  }

  .tx-feature-grid,
  .tx-reviews {
    grid-template-columns: 1fr;
  }

  .tx-hero-shots {
    width: min(100%, 340px);
    gap: 8px;
    padding: 10px;
  }

  .tx-hardshot {
    padding: 0;
  }

  .tx-row__item {
    flex-basis: calc((100% - 0.7rem) / 2);
    transform: translateY(calc(var(--h) * -10px));
  }

  .tx-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .tx-reveal {
    opacity: 1;
    transform: none;
  }
}
