:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f1f5fa;
  --line: #dce3ec;
  --line-strong: #cbd5e1;
  --text: #18212f;
  --muted: #657287;
  --blue: #2f6fed;
  --blue-dark: #2059ca;
  --blue-soft: #eaf1ff;
  --green: #22b573;
  --shadow: 0 26px 70px rgba(36, 62, 101, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, "Segoe UI", "Microsoft YaHei UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.section { padding: 104px 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(203, 213, 225, .82); background: rgba(255,255,255,.84); backdrop-filter: blur(18px); }
.nav-wrap { height: 70px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 760; letter-spacing: -.02em; }
.brand img { border-radius: 9px; box-shadow: 0 7px 18px rgba(47,111,237,.2); }
.brand b { padding: 4px 7px; border-radius: 5px; background: var(--blue-soft); color: var(--blue); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 27px; margin-left: auto; color: var(--muted); font-size: 14px; }
.desktop-nav a:hover { color: var(--blue); }
.menu-toggle, .mobile-nav { display: none; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 21px; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 700; transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--blue); box-shadow: 0 12px 26px rgba(47,111,237,.22); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { border-color: var(--line); background: rgba(255,255,255,.74); color: #445268; }
.button-secondary:hover { border-color: #aebbd0; background: white; box-shadow: 0 9px 24px rgba(36,62,101,.08); }
.button-small { min-height: 41px; padding-inline: 16px; font-size: 13px; }

.hero { position: relative; min-height: calc(100vh - 70px); display: grid; align-items: center; overflow: hidden; padding: 90px 0 100px; background: linear-gradient(180deg, #fbfcfe 0%, #f2f6fb 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(#dfe7f2 1px, transparent 1px), linear-gradient(90deg, #dfe7f2 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to right, transparent 4%, black 55%, transparent 98%); }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(2px); }
.orb-one { width: 460px; height: 460px; right: 7%; top: 7%; background: radial-gradient(circle, rgba(93,151,255,.2), rgba(93,151,255,0) 68%); }
.orb-two { width: 330px; height: 330px; left: -110px; bottom: -110px; background: radial-gradient(circle, rgba(43,196,152,.11), transparent 68%); }
.hero-grid { position: relative; display: grid; grid-template-columns: .78fr 1.22fr; gap: 66px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 21px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.eyebrow span { width: 25px; height: 2px; background: var(--blue); }
h1 { margin: 0; font-size: clamp(46px, 5vw, 68px); line-height: 1.1; letter-spacing: -.055em; }
h1 em { color: var(--blue); font-style: normal; }
.hero-lead { max-width: 570px; margin: 25px 0 0; color: var(--muted); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; gap: 11px; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 22px; color: #65758b; font-size: 13px; }
.hero-facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(34,181,115,.1); }

.hero-visual { position: relative; min-width: 0; }

.product-facts { border-block: 1px solid var(--line); background: white; }
.facts-row { min-height: 91px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.facts-row div { padding: 4px 28px; border-right: 1px solid var(--line); }
.facts-row div:first-child { padding-left: 0; }
.facts-row div:last-child { border-right: 0; }
.facts-row span, .facts-row strong { display: block; }
.facts-row span { margin-bottom: 7px; color: #77859a; font-size: 12px; letter-spacing: .05em; }
.facts-row strong { font-size: 15px; }

.kicker { margin: 0 0 14px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.eyebrow, .kicker { display: none !important; }
.section-heading { max-width: 760px; margin-bottom: 46px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading h2, .boundary-card h2, .download-copy h2 { margin: 0; font-size: clamp(34px, 4.3vw, 53px); line-height: 1.16; letter-spacing: -.045em; }
.section-heading > p:last-child, .download-copy > p { margin: 20px 0 0; color: #5f6f84; font-size: 16px; line-height: 1.8; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; background: white; }
.feature-card { position: relative; min-height: 270px; padding: 27px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 180ms ease, transform 180ms ease; }
.feature-card:nth-child(3n) { border-right: 0; }
.feature-card:nth-child(n+4) { border-bottom: 0; }
.feature-card:hover { z-index: 2; background: #f8faff; transform: translateY(-3px); }
.feature-card > span { position: absolute; top: 26px; right: 26px; color: #a8b3c2; font-family: "Cascadia Code", Consolas, monospace; font-size: 9px; }
.icon-box { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 35px; border-radius: 10px; background: var(--blue-soft); }
.icon-box img { filter: invert(40%) sepia(88%) saturate(1497%) hue-rotate(202deg) brightness(94%); }
.feature-card h3 { margin: 0; font-size: 18px; }
.feature-card p { margin: 12px 0 0; color: #66758a; font-size: 14px; line-height: 1.75; }

.workflow-section { border-block: 1px solid var(--line); background: white; }

.boundary-section { padding-top: 58px; padding-bottom: 58px; }
.boundary-card { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; padding: 52px; border: 1px solid #cddbf0; border-radius: 17px; background: linear-gradient(120deg, #f6f9ff, #edf4ff); }

.download-section { padding-top: 48px; }
.download-card { display: grid; grid-template-columns: 1.15fr .85fr; gap: 76px; padding: 57px; border: 1px solid #d4dfed; border-radius: 18px; background: white; box-shadow: var(--shadow); }
.download-actions { display: flex; gap: 11px; margin-top: 28px; }
.download-meta { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #f7f9fc; }
.product-mark { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.product-mark img { border-radius: 13px; box-shadow: 0 9px 23px rgba(47,111,237,.18); }
.product-mark small, .product-mark strong { display: block; }
.product-mark small { color: var(--blue); font-size: 10px; font-weight: 750; letter-spacing: .1em; }
.product-mark strong { margin-top: 5px; font-size: 17px; }
.download-meta dl { margin: 12px 0 0; }
.download-meta dl div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid #e3e8ef; font-size: 13px; }
.download-meta dl div:last-child { border-bottom: 0; }
.download-meta dt { color: #8390a2; }
.download-meta dd { margin: 0; color: #536176; text-align: right; }

.faq-section { padding-top: 45px; }
.faq-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 98px; align-items: start; }
.faq-layout .section-heading { position: sticky; top: 110px; margin: 0; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 24px 42px 24px 0; color: #334155; font-size: 16px; font-weight: 650; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span::before, .faq-list summary span::after { content: ""; position: absolute; top: 50%; right: 4px; width: 14px; height: 1px; background: #8a97aa; transition: transform 180ms ease; }
.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0); }
.faq-list details p { margin: -4px 45px 23px 0; color: #65758b; font-size: 14px; line-height: 1.8; }

.site-footer { border-top: 1px solid var(--line); background: white; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 42px; padding-block: 52px 24px; }
.footer-brand p { margin: 13px 0 0; color: #6e7c90; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: start; gap: 20px; padding-top: 10px; color: #647287; font-size: 13px; }
.footer-links button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: var(--blue); }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 25px; padding-top: 21px; border-top: 1px solid var(--line); color: #8793a4; font-size: 11px; }

.modal { width: min(520px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line-strong); border-radius: 14px; background: white; color: var(--text); box-shadow: 0 30px 90px rgba(36,62,101,.25); }
.modal::backdrop { background: rgba(31,42,58,.28); backdrop-filter: blur(5px); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 21px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-head button { width: 31px; height: 31px; border: 0; border-radius: 7px; background: #f2f5f9; color: #7c899b; font-size: 20px; cursor: pointer; }
.modal-body { padding: 22px; color: #69778c; font-size: 12px; line-height: 1.8; }
.error-page { min-height: 100vh; display: grid; place-items: center; padding: 32px; text-align: center; background: linear-gradient(180deg, #fbfcfe, #eef4fb); }
.error-page > div { max-width: 620px; }
.error-page img { margin-inline: auto; border-radius: 18px; box-shadow: 0 16px 38px rgba(47,111,237,.2); }
.error-page .kicker { margin-top: 24px; }
.error-page h1 { font-size: clamp(36px, 7vw, 62px); }
.error-page > div > p:not(.kicker) { margin: 20px 0 29px; color: var(--muted); }

/* V2 product surfaces */
.hero-product-card { position: relative; aspect-ratio: 16 / 10; overflow: hidden; padding: 0; border: 1px solid #cfd9e7; border-radius: 18px; background: #eef3f9; box-shadow: var(--shadow); transform: perspective(1300px) rotateY(-3deg) rotateX(1deg); }
.hero-product-card > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; background: #eef3f9; }

.showcase-section .section-heading { margin-bottom: 35px; }

.demo-section { border-block: 1px solid #d7e3f3; background: linear-gradient(180deg, #ffffff, #f3f7fd); }
.demo-media { overflow: hidden; margin: 0; border: 1px solid #ced9e7; border-radius: 18px; background: #202a37; box-shadow: 0 26px 65px rgba(36,62,101,.14); }
.demo-media video,
.demo-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #202a37; }
.library-demo-video { width: 100%; }
.demo-section .demo-media img { aspect-ratio: 16 / 10; object-fit: contain; }

.workflow-track { position:relative; display:grid; grid-template-columns:repeat(5,1fr); margin:0; padding:0; list-style:none; }
.workflow-track::before { content:""; position:absolute; top:26px; left:9%; right:9%; height:1px; background:linear-gradient(90deg,#9dbcf3,#d6e1ee); }
.workflow-track li { position:relative; z-index:1; text-align:center; }
.workflow-track span { width:52px; height:52px; display:grid; place-items:center; margin:0 auto 20px; border:1px solid #b8cae7; border-radius:50%; background:white; color:var(--blue); font-family:"Cascadia Code",Consolas,monospace; font-size:11px; box-shadow:0 5px 16px rgba(47,111,237,.08); }
.workflow-track strong { font-size:16px; }.workflow-track p { margin:7px 0 0; color:#738196; font-size:13px; }
.compact-grid .feature-card { min-height:230px; }.compact-grid .icon-box { margin-bottom:28px; }

.boundary-flow { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; gap:10px; align-items:center; }
.boundary-flow > div { padding:18px; border:1px solid #d7e3f3; border-radius:9px; background:rgba(255,255,255,.72); }.boundary-flow span,.boundary-flow strong { display:block; }.boundary-flow span { color:var(--blue); font-family:"Cascadia Code",Consolas,monospace; font-size:10px; }.boundary-flow strong { margin-top:7px; font-size:14px; }.boundary-flow > i { color:#9babc0; font-style:normal; }.boundary-flow > p { grid-column:1/-1; margin:13px 0 0; color:#627186; font-size:13px; line-height:1.75; }
.download-actions { flex-wrap:wrap; align-items:center; }.text-link { color:#607087; font-size:13px; }.text-link:hover { color:var(--blue); }
.changelog-section { padding-top:35px; background:white; }
.changelog-layout { display:grid; grid-template-columns:.8fr 1.2fr; gap:90px; align-items:start; }.changelog-layout .section-heading { margin:0; }
.release-card { padding:30px; border:1px solid var(--line); border-radius:13px; background:#f8faff; }.release-head { display:flex; justify-content:space-between; gap:20px; color:#6f7d91; font-size:12px; }.release-head span { color:var(--blue); font-family:"Cascadia Code",Consolas,monospace; font-weight:700; }.release-card h3 { margin:24px 0 0; font-size:21px; }.release-card ul { margin:16px 0 22px; padding-left:18px; color:#5f6f84; font-size:14px; line-height:1.9; }.release-card a { color:var(--blue); font-size:13px; font-weight:700; }

@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .nav-wrap > .button { margin-left: auto; }
  .menu-toggle { position: relative; width: 40px; height: 40px; display: block; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: white; }
  .menu-toggle span { position: absolute; left: 50%; width: 18px; height: 1px; margin-left: -9px; background: #66758a; transform-origin: center; transition: top 180ms ease, transform 180ms ease, opacity 180ms ease; }
  .menu-toggle span:nth-child(1) { top: 13px; }.menu-toggle span:nth-child(2) { top: 19px; }.menu-toggle span:nth-child(3) { top: 25px; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }
  .mobile-nav { display: grid; padding: 8px max(24px, calc((100% - 1180px)/2)) 18px; border-top: 1px solid var(--line); background: rgba(255,255,255,.98); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: 13px 0; border-bottom: 1px solid var(--line); color: #607086; font-size: 14px; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { width: min(800px, 100%); }
  .facts-row { grid-template-columns: 1fr 1fr; padding-block: 12px; }
  .facts-row div { padding: 14px 20px; }
  .facts-row div:nth-child(2) { border-right: 0; }
  .boundary-card, .download-card, .faq-layout { grid-template-columns: 1fr; gap: 48px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .feature-card:nth-child(2n) { border-right: 0; }
  .feature-card:nth-child(n+4) { border-bottom: 1px solid var(--line); }
  .feature-card:nth-child(n+5) { border-bottom: 0; }
  .faq-layout .section-heading { position: static; }
  .changelog-layout { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 32px, 1180px); }
  .nav-wrap { height: 64px; }
  .brand img { width: 33px; height: 33px; }
  .nav-wrap > .button { display: none; }
  .section { padding: 76px 0; }
  .hero { padding: 66px 0 78px; }
  h1 { font-size: 33px; }
  .hero-lead { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-facts { gap: 9px 14px; }
  .hero-product-card { padding: 4px; border-radius: 12px; transform: none; }
  .facts-row { grid-template-columns: 1fr; }
  .facts-row div { padding: 13px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .facts-row div:last-child { border-bottom: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card:nth-child(n) { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .feature-card:last-child { border-bottom: 0; }
  .boundary-card, .download-card { padding: 31px 21px; }
  .download-actions { flex-direction: column; }
  .download-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; }
  .showcase-section .section-heading { margin-bottom: 28px; }
  .demo-media { border-radius: 11px; }
  .workflow-track { grid-template-columns: 1fr; gap: 0; }
  .workflow-track::before { top: 20px; bottom: 20px; left: 23px; right: auto; width: 1px; height: auto; }
  .workflow-track li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 12px 0; text-align: left; }
  .workflow-track span { width: 46px; height: 46px; margin: 0; }
  .workflow-track p { margin-top: 4px; }
  .boundary-flow { grid-template-columns: 1fr; }
  .boundary-flow > i { text-align: center; transform: rotate(90deg); }
  .boundary-flow > p { grid-column: 1; }
  .changelog-layout { gap: 30px; }
  .release-card { padding: 24px 20px; }
  .download-actions { align-items: stretch; }
  .download-actions .text-link { padding: 6px 0; }
}

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