@charset "UTF-8";

:root {
  color-scheme: light;
  --blue: #1260e8;
  --blue-dark: #0d4dcb;
  --ink: #101c38;
  --body: #53617b;
  --muted: #8290ac;
  --line: #e3eaf5;
  --pale: #f6f9ff;
  --feedback-time: 160ms;
  --feedback-ease: ease-out;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: max(640px, 100svh);
  display: grid;
  grid-template-rows: 76px 1fr 66px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
  line-height: 1.65;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
button, a, .feature { transition: color var(--feedback-time) var(--feedback-ease), background-color var(--feedback-time) var(--feedback-ease), border-color var(--feedback-time) var(--feedback-ease), box-shadow var(--feedback-time) var(--feedback-ease), transform var(--feedback-time) var(--feedback-ease); }
button:active, a:active { transform: translateY(1px); }
button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
::selection { background: #d7e7ff; }
h1, h2, h3, p { margin: 0; }
.container { width: min(1440px, calc(100% - 96px)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -90px; left: 20px; background: var(--blue); color: white; padding: 10px 20px; }
.skip-link:focus { top: 10px; }

.header { position: relative; z-index: 10; }
.header-inner { min-height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { flex-shrink: 0; display: inline-flex; align-items: center; gap: 11px; font-size: 25px; font-weight: 650; letter-spacing: .2px; white-space: nowrap; line-height: 1; }
.brand svg { width: 34px; height: 38px; flex: 0 0 auto; }
.navigation { display: flex; align-items: center; gap: 32px; margin-left: 50px; font-size: 14px; }
.navigation button, .text-button { padding: 0; background: none; }
.navigation a, .navigation button { white-space: nowrap; border-radius: 4px; }
.navigation a:hover, .navigation button:hover, .text-button:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 25px; }
.button { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 27px; border: 1px solid transparent; border-radius: 5px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.primary { color: #fff; background: var(--blue); box-shadow: 0 2px 4px #0750c810; }
.primary:hover { background: var(--blue-dark); box-shadow: 0 3px 10px #1260e820; }
.secondary { color: var(--blue); background: #fff; border-color: var(--blue); }
.secondary:hover { background: #f0f6ff; }
.header-start { height: 38px; padding-inline: 20px; }
.menu-toggle { display: none; background: none; padding: 5px; }
.menu-toggle svg, .dialog-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; display: block; }

main.container { display: grid; grid-template-rows: minmax(250px, .94fr) minmax(300px, 1fr); min-height: 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: center; gap: 35px; padding: 18px 44px 22px; min-width: 0; }
.hero-copy { min-width: 0; }
.hero-copy h1 { text-wrap: balance; }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: 2px; margin-bottom: 19px; }
h1 { font-size: clamp(32px, 2.78vw, 42px); font-weight: 650; letter-spacing: -.7px; line-height: 1.35; white-space: nowrap; }
h1 span { color: var(--blue); }
.hero-subtitle { margin-top: 13px; color: var(--body); font-size: 19px; font-weight: 400; }
.hero-subtitle i, .hero-benefits i { font-style: normal; margin-inline: 4px; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-benefits { font-size: 12px; color: #596882; margin-left: 6px; white-space: nowrap; }
.connection-visual { position: relative; display: block; width: 100%; max-width: 480px; max-height: 285px; justify-self: end; overflow: visible; }
.connection-map { display: block; width: 100%; height: auto; max-height: inherit; overflow: visible; }
.map-label { font-size: 12px; fill: #243650; font-family: inherit; font-weight: 600; }
.map-label .hub-label { fill: #fff; font-size: 14px; font-weight: 600; letter-spacing: 1px; }
.signal { stroke-dasharray: 8 92; animation: network-flow 4.5s linear infinite; }
.signal-web { stroke: #4384f3; }
.signal-telegram { stroke: #22acc6; animation-delay: -1.5s; }
.signal-api { stroke: #9870e1; animation-delay: -3s; }
@keyframes network-flow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .network-flow { display: none; } }

.features { display: flex; flex-direction: column; padding-inline: 44px; padding-top: 7px; padding-bottom: 40px; min-width: 0; }
.features h2 { text-align: center; font-size: 23px; font-weight: 650; letter-spacing: -.4px; line-height: 1.45; margin-bottom: 24px; }
.feature-title-gap { display: inline-block; width: .85em; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); flex: 1; gap: 16px; }
.feature { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-content: center; align-items: center; gap: 8px 14px; padding: 16px 20px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.feature > div { display: contents; }
@media (hover: hover) and (pointer: fine) {
  .feature:hover { transform: translateY(-2px); border-color: #9dbff4; background: #fbfdff; box-shadow: 0 5px 16px #254c8710; }
  .menu-toggle:hover, .demo-tabs button:hover { color: var(--blue); background: var(--pale); }
  .brand:hover { opacity: .85; }
}
.feature:focus-visible { border-color: var(--blue); background: #f7faff; box-shadow: 0 5px 16px #254c8710; }
.feature:active { transform: translateY(0); border-color: var(--blue); background: #f1f6ff; box-shadow: none; }
.primary:active { background: #0b43b5; box-shadow: none; }
.secondary:active { background: #e6efff; }
.navigation :is(a, button):active, .text-button:active { color: var(--blue-dark); }
.feature p { grid-column: 1 / -1; }
.feature-icon { width: 30px; height: 30px; fill: none; stroke: var(--blue); stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; margin-top: 1px; overflow: visible; }
.feature h3 { font-size: 18px; font-weight: 600; line-height: 1.5; margin-bottom: 0; white-space: nowrap; }
.feature p { font-size: 13px; color: var(--body); line-height: 1.8; text-wrap: pretty; }

.footer-band { display: grid; background: #252b35; color: #eef2f7; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-left, .footer-right { display: flex; align-items: center; }
.footer-brand { font-size: 19px; gap: 8px; }
.footer-brand svg { width: 27px; height: 30px; }
.footer-note { margin-left: 23px; padding-left: 23px; border-left: 1px solid #515966; color: #dde3ec; font-size: 11px; line-height: 1.4; }
.footer-right { color: #dde3ec; font-size: 11px; gap: 17px; }
.footer-right button { padding-left: 17px; border-left: 1px solid #515966; line-height: 1.25; }

/* Native dialog keeps the homepage within one screen without hiding information. */
dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 48px); max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 12px; padding: 28px; color: var(--ink); background: #fff; box-shadow: 0 25px 100px #122a5426; }
dialog::backdrop { background: #14243d55; backdrop-filter: blur(4px); }
dialog.is-demo { width: min(720px, calc(100% - 32px)); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.dialog-header h2 { font-size: 22px; line-height: 1.45; font-weight: 600; }
.dialog-close { min-width: 44px; min-height: 44px; display: grid; place-items: center; flex-shrink: 0; padding: 6px; border-radius: 5px; background: none; color: #637089; margin: -4px; }
.dialog-close:hover { color: var(--blue); background: var(--pale); }
#dialog-content { color: var(--body); line-height: 1.8; }
.dialog-lead { font-size: 14px; margin-bottom: 20px; }
.dialog-note { font-size: 12px; background: var(--pale); border-radius: 5px; padding: 12px 14px; margin-top: 18px; }
.dialog-done { margin-top: 24px; }
.guide-steps { padding-left: 23px; }
.guide-steps li { padding-left: 7px; margin-bottom: 16px; }
.guide-steps li::marker { color: var(--blue); }
.guide-steps h3, .info-block h3 { color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 5px; }
.guide-steps p, .info-block p { font-size: 13px; }
.info-block + .info-block { margin-top: 20px; }
.info-block code { display: block; padding: 12px; margin-top: 10px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; overflow-wrap: anywhere; color: var(--blue-dark); background: var(--pale); }
.demo-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.demo-tabs button { background: none; color: var(--body); border-bottom: 2px solid transparent; padding: 8px 0; font-size: 13px; }
.demo-tabs button[aria-selected="true"] { color: var(--blue); border-color: var(--blue); }
.demo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.demo-stats > div { border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.demo-stats span { display: block; font-size: 12px; }
.demo-stats strong { display: block; font-size: 25px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.demo-stats small { font-size: 11px; font-weight: 400; margin-left: 5px; }
.demo-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
.demo-table th { font-weight: 400; color: #8190a7; background: var(--pale); }
.demo-table td, .demo-table th { padding: 12px 9px; border-bottom: 1px solid var(--line); }
.demo-table td:first-child { color: var(--ink); }
.demo-table td small { display: block; color: #8190a7; font-size: 10px; }
.status { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 4px; white-space: nowrap; }
.status.completed { color: #168663; background: #e9f7f0; }
.status.pending { color: #af7411; background: #fff5df; }
.status.progress { color: #1760d6; background: #edf4ff; }
.noscript-note { padding: 12px 20px; margin: 0; color: var(--body); text-align: center; background: var(--pale); }

@media (min-width: 1001px) {
  body { min-height: 640px; height: max(640px, 100svh); }
}
@media (min-width: 1600px) {
  body { grid-template-rows: 80px 1fr 70px; }
  .hero, .features { padding-inline: 48px; }
  .connection-visual { max-width: 510px; max-height: 300px; }
  .feature { padding: 20px 24px; }
}
@media (min-width: 1001px) and (max-height: 740px) {
  body { grid-template-rows: 66px 1fr 54px; }
  main.container { grid-template-rows: minmax(220px, .98fr) minmax(294px, 1fr); }
  .hero { padding-block: 12px; }
  .eyebrow { margin-bottom: 13px; }
  .hero-actions { margin-top: 22px; }
  .connection-visual { max-height: 239px; }
  .features { padding-block: 2px 28px; }
  .features h2 { margin-bottom: 16px; }
  .feature { padding-block: 10px; gap: 6px 12px; }
}
@media (min-width: 1001px) and (min-height: 601px) and (max-height: 660px) {
  .connection-visual { max-width: 350px; max-height: 200px; }
}
@media (max-width: 1250px) and (min-width: 1001px) {
  .container { width: calc(100% - 64px); }
  .features { padding-inline: 18px; }
  .hero { gap: 14px; padding-inline: 18px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  h1 { font-size: 32px; }
  .hero-subtitle { font-size: 17px; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { padding-inline: 19px; }
  .hero-benefits { font-size: 11px; margin-left: 0; }
  .feature { gap: 6px 10px; padding-inline: 14px; }
  .feature-icon { width: 29px; height: 29px; }
  .feature h3 { font-size: 17px; }
  .feature p { font-size: 12px; }
}
@media (max-width: 1000px) {
  body { min-height: 100svh; grid-template-rows: 70px 1fr auto; }
  .container { width: calc(100% - 48px); }
  .header-inner { gap: 18px; }
  .navigation { gap: 16px; margin-left: 0; font-size: 13px; }
  .header-actions { gap: 18px; }
  .brand { font-size: 22px; gap: 8px; }
  .brand svg { width: 30px; height: 34px; }
  main.container { grid-template-rows: auto auto; }
  .hero { padding: 38px 10px; gap: 14px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  h1 { font-size: 29px; }
  .hero-subtitle { font-size: 16px; }
  .eyebrow { font-size: 10px; margin-bottom: 15px; }
  .hero-actions { gap: 12px; margin-top: 23px; }
  .hero-benefits { flex-basis: 100%; margin-left: 0; }
  .hero-actions .button { padding-inline: 20px; min-height: 44px; }
  .features { padding-block: 10px 36px; padding-inline: 10px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
  .feature { gap: 10px 14px; padding: 20px; }
  .feature h3 { font-size: 17px; }
  .footer { padding-block: 19px; gap: 15px; }
  .footer-note { margin-left: 15px; padding-left: 15px; font-size: 10px; }
  .footer-brand { font-size: 17px; }
  .footer-right { gap: 12px; font-size: 10px; }
  .footer-right button { padding-left: 12px; }
}
@media (max-width: 700px) {
  body { grid-template-rows: 64px 1fr auto; }
  .container { width: calc(100% - 40px); }
  .header-inner { gap: 10px; }
  .container { width: auto; margin-left: max(20px, env(safe-area-inset-left)); margin-right: max(20px, env(safe-area-inset-right)); }
  .header .brand { font-size: 20px; }
  .header .brand svg { width: 27px; height: 30px; }
  .header-actions { gap: 11px; }
  .login { min-height: 44px; padding-inline: 6px; font-size: 13px; }
  .header-start { display: none; }
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; }
  .navigation { display: none; position: absolute; z-index: 10; left: 0; right: 0; top: 100%; padding: 8px max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left)); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 9px 15px #142c4a08; }
  .navigation.is-open { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .navigation a, .navigation button { min-height: 44px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
  .hero { grid-template-columns: 1fr; padding: 28px 0 20px; gap: 12px; }
  h1 { font-size: clamp(26px, 6.9vw, 34px); letter-spacing: -.7px; white-space: normal; }
  h1 span { display: inline-block; }
  .hero-subtitle { font-size: 15px; margin-top: 10px; }
  .hero-subtitle i { margin-inline: 2px; }
  .eyebrow { margin-bottom: 12px; font-size: 11px; letter-spacing: 1.7px; }
  .hero-actions { margin-top: 22px; gap: 13px; }
  .hero-benefits { font-size: 12px; padding-top: 1px; }
  .hero-actions .button { flex: 1 1 0; max-width: 180px; min-height: 44px; }
  .connection-visual { width: min(100%, 320px); height: auto; aspect-ratio: 510 / 290; justify-self: center; }
  .features { padding-top: 8px; padding-bottom: 32px; padding-inline: 0; }
  .features h2 { text-align: center; font-size: 20px; margin-bottom: 20px; }
  .feature-grid { gap: 10px; }
  .feature { display: block; padding: 16px 14px; border-radius: 10px; }
  .feature-icon { width: 27px; height: 27px; margin-bottom: 9px; }
  .feature h3 { font-size: 15px; margin-bottom: 7px; }
  .feature p { font-size: 13px; line-height: 1.75; }
  .footer { flex-direction: column; align-items: flex-start; padding-top: 18px; padding-bottom: max(18px, env(safe-area-inset-bottom)); gap: 10px; }
  .footer-left { width: 100%; flex-wrap: wrap; row-gap: 12px; }
  .footer-brand { font-size: 17px; }
  .footer-brand svg { width: 24px; height: 27px; }
  .footer-note { font-size: 11px; padding-left: 12px; margin-left: 12px; }
  .footer-right { width: 100%; font-size: 11px; }
  .footer-right button { min-width: 44px; min-height: 44px; border-left: 0; padding: 0; }
  .footer-right > span { margin-right: auto; }
  dialog { padding: 20px; max-height: calc(100svh - 32px); max-height: calc(100dvh - 32px); overflow-wrap: anywhere; }
  .dialog-header h2 { font-size: 20px; }
  .dialog-lead { font-size: 13px; }
  .demo-tabs { gap: 16px; }
  .demo-tabs button { min-height: 44px; }
  .demo-stats { gap: 7px; }
  .demo-stats > div { padding: 8px; }
  .demo-stats span { font-size: 12px; }
  .demo-stats strong { font-size: 22px; }
  .demo-table { font-size: 12px; }
  .demo-table td, .demo-table th { padding: 10px 5px; }
  .status { font-size: 10px; padding-inline: 5px; }
}
/* Narrow phones favor readable rows over cramped two-column cards. */
@media (max-width: 359px) {
  .container { margin-left: max(16px, env(safe-area-inset-left)); margin-right: max(16px, env(safe-area-inset-right)); }
  .header-actions { gap: 4px; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .feature { display: grid; gap: 8px 14px; padding: 16px; }
  .feature-icon { margin-bottom: 0; }
  .feature h3 { margin-bottom: 4px; }
  .footer-note { flex-basis: 100%; margin: 0; padding: 0; border: 0; }
  dialog { padding: 16px; }
  .demo-stats > div { padding: 8px 5px; }
}
/* Short windows and landscape phones retain readable content with normal scrolling. */
@media (min-width: 701px) and (max-height: 600px) {
  body { height: auto; min-height: 100svh; }
  main.container { grid-template-rows: auto auto; }
  .hero { min-height: 260px; padding-block: 24px; }
  .footer { min-height: 60px; }
}
@media (min-width: 701px) and (max-width: 1000px) and (orientation: landscape) {
  .container { margin-left: max(24px, env(safe-area-inset-left)); margin-right: max(24px, env(safe-area-inset-right)); width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { transition: none !important; animation: none !important; }
}

/* Supplied BizPal artwork; the original PNG is preserved. */
.brand .brand-logo { display: block; width: 135px; height: auto; max-width: 100%; }
.footer-brand .brand-logo { width: 116px; background: transparent; }
.footer .text-button:hover, .footer .text-button:active { color: #fff; }
.footer a:focus-visible, .footer button:focus-visible { outline-color: #9fc5ff; }
@media (max-width: 700px) {
  .header .brand .brand-logo { width: 110px; }
  .footer-brand .brand-logo { width: 104px; }
}
