/* FenYe marketing site — Teable-inspired grid & refined details */
:root {
  --fy-canvas: #fafafa;
  --fy-surface: #ffffff;
  --fy-ink: #18181b;
  --fy-ink-muted: #71717a;
  --fy-ink-soft: #a1a1aa;
  --fy-line: #f0f0f0;
  --fy-line-strong: #ebebeb;
  --fy-border: #e4e4e7;
  --fy-primary: #18181b;
  --fy-primary-hover: #27272a;
  --fy-accent-soft: #f4f4f5;
  --fy-success: #059669;
  --fy-radius: 6px;
  --fy-radius-lg: 8px;
  --fy-radius-xl: 10px;
  --fy-shadow-soft: 0 10px 40px -12px rgba(0, 0, 0, 0.06),
    0 4px 12px -4px rgba(0, 0, 0, 0.04);
  --fy-shadow-lift: 0 22px 50px -24px rgba(0, 0, 0, 0.18),
    0 8px 20px -10px rgba(0, 0, 0, 0.08);
  --fy-grid: rgba(24, 24, 27, 0.065);
  --fy-font: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  --fy-max: 68rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fy-font);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--fy-ink);
  background: var(--fy-canvas);
  -webkit-font-smoothing: antialiased;
}

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

::selection {
  background: rgba(24, 24, 27, 0.12);
  color: var(--fy-ink);
}

.fy-muted {
  color: var(--fy-ink-muted);
}

/* —— Grid backdrop (Teable-like) —— */
.fy-grid-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.fy-grid-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-color: #fff;
  background-image:
    linear-gradient(to right, var(--fy-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--fy-grid) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: center top;
  /* Soft edge fade so the grid dissolves into the page */
  -webkit-mask-image: radial-gradient(
    ellipse 85% 70% at 50% 28%,
    #000 18%,
    rgba(0, 0, 0, 0.55) 48%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 85% 70% at 50% 28%,
    #000 18%,
    rgba(0, 0, 0, 0.55) 48%,
    transparent 78%
  );
}
.fy-grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 40% at 50% 0%, rgba(255, 255, 255, 0.85), transparent 70%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.35) 0%,
      rgba(250, 250, 250, 0.55) 42%,
      var(--fy-canvas) 100%
    );
}

/* Logo */
.fy-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.fy-logo__img {
  display: block;
  height: 1.35rem;
  width: auto;
}
.fy-logo__text {
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}

/* Buttons */
.fy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
  background: transparent;
  color: inherit;
  font-family: inherit;
}
.fy-btn,
.fy-btn:visited {
  text-decoration: none;
}
.fy-btn--primary,
.fy-btn--primary:visited {
  color: #fff;
}
.fy-btn--secondary,
.fy-btn--secondary:visited {
  color: var(--fy-ink);
}
.fy-btn--ghost,
.fy-btn--ghost:visited {
  color: var(--fy-ink-muted);
}
.fy-btn--primary {
  background: var(--fy-primary);
  border-color: var(--fy-primary);
}
.fy-btn--primary:hover {
  background: var(--fy-primary-hover);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(24, 24, 27, 0.45);
}
.fy-btn--secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--fy-border);
  backdrop-filter: blur(6px);
}
.fy-btn--secondary:hover {
  background: #fff;
  border-color: #d4d4d8;
  color: var(--fy-ink);
}
.fy-btn--ghost {
  background: transparent;
}
.fy-btn--ghost:hover {
  color: var(--fy-ink);
  background: rgba(244, 244, 245, 0.9);
}
.fy-btn--sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}
.fy-btn--lg {
  padding: 0.65rem 1.15rem;
  font-size: 0.875rem;
}
.fy-btn:focus-visible {
  outline: 2px solid var(--fy-ink);
  outline-offset: 2px;
}
.fy-btn--primary:active {
  transform: translateY(1px);
}

.fy-card {
  background: var(--fy-surface);
  border: 1px solid var(--fy-line);
  border-radius: var(--fy-radius-lg);
  box-shadow: var(--fy-shadow-soft);
}

/* Header */
.fy-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(228, 228, 231, 0.75);
}
.fy-header__inner {
  max-width: var(--fy-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 3.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
}
.fy-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}
.fy-nav {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
}
.fy-nav a,
.fy-nav a:visited {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--fy-ink-muted);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
}
.fy-nav a:hover {
  color: var(--fy-ink);
  background: rgba(244, 244, 245, 0.95);
}
.fy-nav a:focus-visible {
  outline: 2px solid var(--fy-ink);
  outline-offset: 2px;
}
@media (min-width: 900px) {
  .fy-header__inner {
    grid-template-columns: 1fr auto 1fr;
  }
  .fy-nav {
    display: flex;
  }
}

/* Hero */
.fy-hero {
  border-bottom: 1px solid var(--fy-line);
}
.fy-hero__inner {
  max-width: var(--fy-max);
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.25rem;
  text-align: center;
}
.fy-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.95rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--fy-ink-muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--fy-border);
  border-radius: 9999px;
  backdrop-filter: blur(6px);
}
.fy-hero__brand {
  margin: 0 auto;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  max-width: 14em;
  background: linear-gradient(180deg, #18181b 0%, #3f3f46 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fy-hero__lead {
  margin: 0.95rem auto 0;
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.65;
  max-width: 28rem;
  color: var(--fy-ink);
}
.fy-hero__sub {
  margin: 0.65rem auto 0;
  max-width: 30rem;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  line-height: 1.75;
  color: var(--fy-ink-muted);
}
.fy-hero__cta {
  margin-top: 1.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}
.fy-hero__prompt-wrap {
  margin-top: 2.15rem;
}
.fy-hero__stage {
  max-width: var(--fy-max);
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
}

/* Prompt bar */
.fy-prompt {
  max-width: 34rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.45rem 0.45rem 0.95rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--fy-border);
  border-radius: 0.5rem;
  box-shadow: var(--fy-shadow-soft);
  text-align: left;
  font-size: 0.75rem;
  color: var(--fy-ink-muted);
  backdrop-filter: blur(8px);
}
.fy-prompt__icon {
  color: var(--fy-ink-soft);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.fy-prompt span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .fy-prompt {
    flex-wrap: wrap;
    padding: 0.65rem;
  }
  .fy-prompt span {
    flex: 1 1 calc(100% - 2rem);
    white-space: normal;
    line-height: 1.45;
  }
  .fy-prompt .fy-btn {
    margin-left: auto;
  }
}

/* Product mock */
.fy-mock {
  max-width: 52rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--fy-border);
  border-radius: var(--fy-radius-xl);
  overflow: hidden;
  box-shadow: var(--fy-shadow-lift);
}
.fy-mock__bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.7rem 1rem;
  background: linear-gradient(180deg, #fcfcfc, #f7f7f8);
  border-bottom: 1px solid var(--fy-line);
}
.fy-mock__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #d4d4d8;
}
.fy-mock__dot:nth-child(1) {
  background: #fca5a5;
}
.fy-mock__dot:nth-child(2) {
  background: #fcd34d;
}
.fy-mock__dot:nth-child(3) {
  background: #86efac;
}
.fy-mock__label {
  margin-left: 0.45rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--fy-ink-soft);
  letter-spacing: 0.01em;
}
.fy-mock__body {
  padding: 1.15rem;
  background: var(--fy-canvas);
  display: grid;
  gap: 0.65rem;
}
.fy-insight {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--fy-line);
  border-radius: 0.5rem;
  background: #fff;
}
.fy-insight__n {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 9999px;
  background: var(--fy-ink);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.fy-insight__title {
  margin: 0;
  font-weight: 600;
  font-size: 0.8125rem;
  line-height: 1.45;
  letter-spacing: -0.015em;
}
.fy-insight__meta {
  margin: 0.3rem 0 0;
  font-size: 0.6875rem;
  color: var(--fy-ink-soft);
}
.fy-insight__q {
  margin: 0.45rem 0 0;
  padding: 0.4rem 0.55rem;
  background: var(--fy-accent-soft);
  border-radius: 0.3rem;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: var(--fy-ink-muted);
}
.fy-mock__hint {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px dashed var(--fy-border);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.6875rem;
  color: var(--fy-ink-muted);
}
.fy-mock__hint .ph {
  color: var(--fy-ink-soft);
}

/* Sections */
.fy-band {
  border-top: 1px solid var(--fy-line);
}
.fy-band--white {
  background: #fff;
  border-bottom: 1px solid var(--fy-line);
}
.fy-section {
  max-width: var(--fy-max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.fy-section__head {
  max-width: 36rem;
  padding-bottom: 0.15rem;
}
.fy-section__head--center {
  margin: 0 auto;
  text-align: center;
}
.fy-band--white .fy-feature {
  box-shadow: none;
  background: var(--fy-canvas);
}
.fy-band--white .fy-feature:hover {
  background: #fff;
  box-shadow: var(--fy-shadow-soft);
}
.fy-section__kicker {
  margin: 0 0 0.5rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fy-ink-soft);
}
.fy-section__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}
.fy-section__lead {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  line-height: 1.75;
  color: var(--fy-ink-muted);
}

/* Grids */
.fy-steps {
  margin-top: 2.75rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .fy-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .fy-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.fy-feats {
  margin-top: 2.75rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .fy-feats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.fy-uses {
  margin-top: 2.75rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .fy-uses {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .fy-uses {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Feature / step cards */
.fy-feature {
  background: #fff;
  border: 1px solid var(--fy-line);
  border-radius: var(--fy-radius-lg);
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: var(--fy-shadow-soft);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.fy-feature:hover {
  border-color: #d4d4d8;
  box-shadow: var(--fy-shadow-lift);
  transform: translateY(-2px);
}
.fy-feature__icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.35rem;
  background: var(--fy-accent-soft);
  border: 1px solid var(--fy-line);
  color: var(--fy-ink);
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
}
.fy-feature__step {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fy-ink-soft);
}
.fy-feature h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.fy-feature p {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  line-height: 1.7;
  color: var(--fy-ink-muted);
}

/* Security split */
.fy-sec {
  display: grid;
  gap: 2.25rem;
  align-items: start;
}
@media (min-width: 768px) {
  .fy-sec {
    grid-template-columns: 1.25fr 1fr;
    gap: 2.75rem;
  }
}
.fy-sec__list {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}
.fy-sec__list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.fy-sec__list .ph {
  color: var(--fy-success);
  margin-top: 0.12rem;
  flex-shrink: 0;
}
.fy-sec__card {
  padding: 1.5rem 1.4rem;
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, rgba(24, 24, 27, 0.04), transparent 55%),
    #fff;
}
.fy-sec__card-kicker {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fy-ink-soft);
}
.fy-sec__card-title {
  margin: 0.4rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.fy-sec__card-body {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--fy-ink-muted);
}

/* Pricing */
.fy-price {
  margin-top: 2.5rem;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .fy-price {
    grid-template-columns: 1fr 1fr;
  }
}
.fy-price__card {
  background: #fff;
  border: 1px solid var(--fy-line);
  border-radius: var(--fy-radius-lg);
  padding: 1.4rem 1.3rem 1.35rem;
  box-shadow: var(--fy-shadow-soft);
}
.fy-price__card--pro {
  border-color: #d4d4d8;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(24, 24, 27, 0.04), transparent 55%),
    #fff;
}
.fy-price__amount {
  margin: 0.35rem 0 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.fy-price__amount span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fy-ink-muted);
}
.fy-price__desc {
  margin: 0.45rem 0 0;
  font-size: 0.8125rem;
  color: var(--fy-ink-muted);
}
.fy-price__list {
  margin: 1.1rem 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.fy-price__list li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.8125rem;
  color: var(--fy-ink-muted);
  line-height: 1.45;
}
.fy-price__list .ph {
  color: var(--fy-ink);
  margin-top: 0.1rem;
}
.fy-btn--block {
  width: 100%;
}
.fy-price__packs {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--fy-border);
  border-radius: var(--fy-radius-lg);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}
.fy-price__packs-title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
}
.fy-price__pack-row {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.75rem;
  color: var(--fy-ink-muted);
}

/* CTA */
.fy-cta-band {
  border-top: 1px solid var(--fy-line);
}
.fy-cta-band .fy-section {
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}
.fy-cta {
  text-align: center;
}
.fy-cta__panel {
  padding: 3.25rem 1.5rem;
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(24, 24, 27, 0.045), transparent),
    #fff;
  border-radius: var(--fy-radius-xl);
}
.fy-cta__panel .fy-section__title {
  margin-left: auto;
  margin-right: auto;
}
.fy-cta__lead {
  margin: 0.6rem auto 0;
  max-width: 26rem;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--fy-ink-muted);
}
.fy-cta__actions {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

/* Footer */
.fy-footer {
  background: #fff;
  border-top: 1px solid var(--fy-line);
  padding: 3.25rem 1.5rem 1.5rem;
}
.fy-footer__inner {
  max-width: var(--fy-max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .fy-footer__inner {
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 2.5rem;
  }
}
.fy-footer__blurb {
  font-size: 0.75rem;
  line-height: 1.65;
  max-width: 16rem;
  margin: 0.7rem 0 0;
  color: var(--fy-ink-muted);
}
.fy-footer h4 {
  margin: 0 0 0.7rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fy-ink-soft);
}
.fy-footer__inner > div > a,
.fy-footer__inner > div > a:visited {
  display: block;
  font-size: 0.8125rem;
  color: var(--fy-ink-muted);
  margin-top: 0.4rem;
  text-decoration: none;
  transition: color 0.15s ease;
}
.fy-footer__inner > div > a:hover {
  color: var(--fy-ink);
}
.fy-footer__bottom {
  max-width: var(--fy-max);
  margin: 2.25rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--fy-line);
  font-size: 0.6875rem;
  color: var(--fy-ink-soft);
  text-align: center;
  letter-spacing: 0.01em;
}

/* Motion */
@keyframes fy-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fy-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.fy-anim-up {
  animation: fy-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fy-anim-up-delay-1 {
  animation-delay: 0.07s;
}
.fy-anim-up-delay-2 {
  animation-delay: 0.14s;
}
.fy-anim-up-delay-3 {
  animation-delay: 0.22s;
}
.fy-anim-in {
  animation: fy-in 0.75s ease both;
  animation-delay: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
  .fy-anim-up,
  .fy-anim-in,
  .fy-feature {
    animation: none;
    transition: none;
  }
  .fy-feature:hover {
    transform: none;
  }
}
