@font-face {
  font-family: "Lingmao Sans";
  src: local("Arial");
  font-display: swap;
}

:root {
  --ink: #111111;
  --muted: #7f7e79;
  --soft: #ededf3;
  --yellow: #ffe12b;
  --blue: #4d61f3;
  --white: #ffffff;
  --radius: 16px;
  --max: 1228px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Lingmao Sans", Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: 8px; background: var(--yellow); transition: top .2s; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 50; height: 92px; max-width: 100%; padding: 15px 24px; display: grid; grid-template-columns: 250px 1fr 310px; align-items: center; background: rgba(255,255,255,.93); backdrop-filter: blur(12px); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 1px 20px rgba(0,0,0,.06); }
.brand { display: inline-flex; align-items: center; width: max-content; gap: 12px; }
.brand-mark { width: 56px; height: 56px; display: grid; place-items: center; flex: 0 0 auto; }
.brand-mark img { width: 52px; height: 52px; object-fit: contain; image-rendering: auto; }
.brand-word { font-size: 29px; line-height: 1; font-weight: 900; letter-spacing: -1.5px; white-space: nowrap; }
.main-nav { justify-self: center; display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 700; }
.main-nav a, .header-actions > a:not(.button) { position: relative; }
.main-nav a::after, .header-actions > a:not(.button)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--ink); transition: right .2s; }
.main-nav a:hover::after, .header-actions > a:hover::after { right: 0; }
.ai-link span { position: absolute; left: 20px; top: -21px; padding: 2px 5px; background: var(--yellow); border-radius: 2px; font-size: 10px; transform: rotate(-15deg); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 27px; font-size: 15px; font-weight: 700; }
.button { min-width: 148px; min-height: 61px; display: inline-grid; place-items: center; padding: 0 26px; border: 2px solid transparent; border-radius: 10px; color: var(--ink); background: transparent; font-size: 17px; font-weight: 800; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.1); }
.button-yellow { background: var(--yellow); }
.button-outline { border-color: var(--ink); }
.button-small { min-width: 126px; min-height: 58px; padding: 0 18px; }
.button-light-outline { border-color: white; color: white; }
.menu-toggle { display: none; }

.hero { min-height: 552px; padding: 74px 20px 90px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 17px; font-weight: 700; }
.meta-loop { color: var(--blue); font: 700 34px/1 Arial, sans-serif; transform: rotate(-8deg); }
.hero h1 { max-width: 1010px; margin: 0; font-size: clamp(54px, 6vw, 78px); line-height: .98; letter-spacing: -4.5px; }
.hero > p { max-width: 650px; margin: 28px 0 17px; color: var(--muted); font-size: 20px; line-height: 1.15; font-weight: 700; }
.button-row { display: flex; justify-content: center; gap: 18px; }
.trust-row { display: flex; justify-content: center; gap: 30px; margin-top: 25px; font-size: 13px; }

.rules-showcase { width: calc(100% - 48px); max-width: var(--max); height: 770px; margin: 0 auto 44px; padding: 66px 8% 0; overflow: hidden; border-radius: var(--radius); background: var(--soft); }
.section-heading.centered { text-align: center; }
.section-heading h2, .suggested > h2 { margin: 0; font-size: clamp(42px, 5vw, 60px); line-height: 1.04; letter-spacing: -3px; }
.section-heading p { max-width: 690px; margin: 34px auto 48px; color: var(--muted); font-size: 20px; line-height: 1.18; font-weight: 700; }
.rule-builder { max-width: 920px; margin: auto; padding: 30px 24px 22px; border-radius: 12px; background: white; box-shadow: 0 5px 30px rgba(17,17,17,.03); }
.rule-title-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; padding: 0 10px 24px; border-bottom: 1px solid #ececec; }
.trend-icon { font-size: 38px; }
.rule-title-row strong { display: block; font-size: 19px; }
.rule-title-row small { display: block; margin-top: 3px; color: #989898; font-size: 14px; }
.rule-tools { display: flex; gap: 16px; font-size: 22px; }
.rule-body { display: flex; gap: 18px; margin: 23px 0; padding: 18px; background: #f6f6f6; }
.logic-pill { width: 24px; border-radius: 10px; color: white; background: var(--blue); display: grid; place-items: center; writing-mode: vertical-rl; font-size: 12px; }
.conditions { flex: 1; background: white; }
.conditions > div { display: grid; grid-template-columns: 28px 1.2fr 1fr 40px 1fr; align-items: center; min-height: 58px; border-bottom: 1px solid #e9e9e9; }
.conditions span, .conditions strong, .conditions b { padding: 0 15px; font-size: 14px; }
.drag { color: #aaa; }
.preview-label { color: #9c9c9c; letter-spacing: 1.4px; }

.feature-grid { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin: 0 0 46px; }
.feature-row.reverse .feature-visual { order: 2; }
.feature-visual { min-height: 540px; border-radius: var(--radius); overflow: hidden; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.feature-visual img { width: 84%; max-height: 82%; object-fit: contain; border-radius: 8px; box-shadow: 0 13px 35px rgba(0,0,0,.06); }
.tall-card img { width: 90%; }
.feature-copy { padding: 20px; }
.feature-copy h2 { margin: 0 0 28px; font-size: clamp(40px, 4.5vw, 58px); line-height: 1.02; letter-spacing: -3px; }
.feature-copy p { max-width: 500px; margin: 0; color: var(--muted); font-size: 21px; line-height: 1.18; font-weight: 700; }

.suggested { max-width: var(--max); margin: 0 auto; padding: 98px 24px 92px; }
.suggested > h2 { margin-bottom: 50px; text-align: center; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.content-card img { width: 100%; aspect-ratio: 1.78; object-fit: cover; border-radius: 13px; transition: transform .25s; }
.content-card > a:first-child { display: block; overflow: hidden; border-radius: 13px; }
.content-card > a:first-child:hover img { transform: scale(1.025); }
.content-card h3 { min-height: 56px; margin: 18px 8px 24px; font-size: 19px; line-height: 1.16; }
.tag { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 9px; font-size: 14px; font-weight: 700; }

.cta { padding: 98px 24px 102px; color: white; background: #141414; text-align: center; }
.cta > p { margin: 0 0 20px; color: var(--yellow); font-weight: 800; }
.cta h2 { margin: 0 0 34px; font-size: clamp(48px, 6vw, 72px); line-height: .98; letter-spacing: -4px; }
.cta .trust-row { color: #d5d5d5; }
.site-footer { padding: 80px max(24px, calc((100vw - var(--max)) / 2)); color: white; background: #141414; border-top: 1px solid #393939; }
.site-footer .brand-word { color: white; }
.footer-brand { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 65px; }
.footer-brand p { margin: 0; color: #bdbdbd; font-size: 22px; font-weight: 700; text-align: right; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px; }
.footer-links h3 { margin: 0 0 18px; color: #858585; font-size: 14px; }
.footer-links a { display: block; width: max-content; margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.footer-links a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 65px; padding-top: 24px; border-top: 1px solid #393939; color: #858585; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; padding: 15px 22px; border-radius: 10px; color: white; background: #171717; box-shadow: 0 10px 40px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transform: translate(-50%, 20px); transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: 210px 1fr; }
  .main-nav { display: none; }
  .header-actions { gap: 18px; }
  .feature-row { gap: 30px; }
}

@media (max-width: 760px) {
  .site-header { height: 74px; padding: 10px 16px; grid-template-columns: 1fr auto; }
  .brand-mark { width: 45px; height: 45px; }
  .brand-mark img { width: 42px; height: 42px; }
  .brand-word { font-size: 23px; letter-spacing: -1px; }
  .header-actions { display: none; }
  .menu-toggle { width: 46px; height: 46px; display: grid; place-content: center; gap: 7px; border: 0; border-radius: 50%; background: var(--yellow); }
  .menu-toggle > span:not(.sr-only) { width: 21px; height: 2px; background: var(--ink); transition: transform .2s; }
  .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(-4.5px) rotate(-45deg); }
  .main-nav { position: absolute; left: 0; right: 0; top: 74px; display: none; padding: 24px; background: white; box-shadow: 0 18px 26px rgba(0,0,0,.08); flex-direction: column; align-items: flex-start; gap: 21px; }
  .main-nav.is-open { display: flex; }
  .ai-link span { left: 25px; }
  .hero { min-height: 525px; padding: 70px 20px 64px; }
  .hero h1 { font-size: 54px; letter-spacing: -3px; }
  .hero > p { font-size: 18px; }
  .button-row { width: 100%; flex-direction: column; align-items: stretch; }
  .button { width: 100%; }
  .trust-row { flex-direction: column; gap: 8px; }
  .rules-showcase { width: calc(100% - 24px); height: 670px; padding: 45px 18px 0; }
  .section-heading h2 { font-size: 42px; letter-spacing: -2px; }
  .section-heading p { margin: 24px auto 34px; font-size: 17px; }
  .rule-builder { min-width: 650px; transform: scale(.72); transform-origin: top left; }
  .feature-grid { padding: 0 12px; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 25px; margin-bottom: 74px; }
  .feature-row.reverse .feature-visual { order: 0; }
  .feature-visual { min-height: 430px; }
  .feature-copy { padding: 4px 12px; }
  .feature-copy h2 { font-size: 43px; letter-spacing: -2px; }
  .feature-copy p { font-size: 18px; }
  .suggested { padding: 50px 16px 72px; }
  .suggested > h2 { margin-bottom: 32px; font-size: 45px; }
  .content-grid { grid-template-columns: 1fr; gap: 48px; }
  .content-card h3 { min-height: auto; }
  .cta h2 { font-size: 50px; letter-spacing: -3px; }
  .cta { padding: 75px 18px; }
  .site-footer { padding: 60px 20px 40px; }
  .footer-brand { flex-direction: column; gap: 35px; }
  .footer-brand p { text-align: left; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .footer-bottom { gap: 20px; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
