:root {
  --teal: #009f9f;
  --teal-dark: #006f73;
  --orange: #f57412;
  --ink: #172128;
  --muted: #586872;
  --line: #d6e0e4;
  --soft: #eff6f6;
  --warm: #fff4e9;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; }
body { min-width: 0; margin: 0; overflow-x: clip; color: var(--ink); background: var(--white); font-family: "Segoe UI", Arial, sans-serif; letter-spacing: 0; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: var(--white); background: var(--ink); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; top: 0; right: 0; left: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 72px; padding: 0 clamp(22px, 5vw, 76px); background: rgba(255, 255, 255, 0.96); border-bottom: 1px solid rgba(23, 33, 40, 0.1); }
.brand { grid-column: 1; justify-self: start; }
.brand img { width: 204px; height: auto; }
nav { grid-column: 2; display: flex; align-items: center; justify-self: center; gap: 0; padding: 4px; background: #f4f8f8; border: 1px solid #cbdadd; border-radius: 12px; box-shadow: 0 5px 16px rgba(23, 33, 40, 0.05); font-size: 14px; font-weight: 650; }
nav a { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 13px; color: #34434b; border-right: 1px solid #cbdadd; }
nav a:hover { color: var(--teal-dark); background: #e8f4f4; }
nav a:first-child { border-radius: 8px 0 0 8px; }
nav a:nth-last-child(2) { border-right: 0; border-radius: 0 8px 8px 0; }
.nav-icon { flex: 0 0 16px; width: 16px; height: 16px; background: currentColor; -webkit-mask-position: center; mask-position: center; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; }
.icon-compare { -webkit-mask-image: url("./ui-icons/git-compare-arrows.svg"); mask-image: url("./ui-icons/git-compare-arrows.svg"); }
.icon-network { -webkit-mask-image: url("./ui-icons/network.svg"); mask-image: url("./ui-icons/network.svg"); }
.icon-blocks { -webkit-mask-image: url("./ui-icons/blocks.svg"); mask-image: url("./ui-icons/blocks.svg"); }
.icon-bot { -webkit-mask-image: url("./ui-icons/bot.svg"); mask-image: url("./ui-icons/bot.svg"); }
.icon-user { -webkit-mask-image: url("./ui-icons/user-round.svg"); mask-image: url("./ui-icons/user-round.svg"); }
.nav-cta { margin-left: 5px; padding: 0 15px; color: var(--white) !important; background: var(--ink); border-right: 0; border-radius: 8px; }
.nav-cta:hover { color: var(--white); background: var(--teal-dark); }
.menu-button { display: none; flex: 0 0 42px; width: 42px; height: 42px; padding: 9px; border: 0; background: transparent; cursor: pointer; }
.menu-button span { display: block; height: 2px; margin: 5px 0; background: var(--ink); }

.hero { display: flex; align-items: center; min-height: min(820px, 88vh); padding: 118px clamp(22px, 7vw, 112px) 72px; background-color: #f4fafb; background-image: image-set(url("./hanbai-ai-erp-hero.webp") type("image/webp"), url("./hanbai-ai-erp-hero.png") type("image/png")); background-position: center center; background-size: cover; }
.hero-content { min-width: 0; width: min(650px, 52vw); }
.kicker { margin: 0 0 13px; color: var(--teal-dark); font-size: 12px; font-weight: 800; line-height: 1.4; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(54px, 7vw, 96px); line-height: 0.94; font-weight: 780; }
h2 { margin-bottom: 18px; font-size: clamp(32px, 4.2vw, 58px); line-height: 1.04; font-weight: 740; }
h3 { margin-bottom: 8px; font-size: 21px; line-height: 1.2; }
p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.hero-content, .section-heading, .intro-copy, .agent-statement, .agent-facts, .faq-list { overflow-wrap: anywhere; }
.hero-lead { max-width: 625px; color: #27383f; font-size: clamp(18px, 2vw, 23px); line-height: 1.5; text-shadow: 0 1px 10px #fff; }
.hero-lead strong { color: var(--teal-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 5px; font-size: 15px; font-weight: 750; }
.button.primary { color: var(--white); background: var(--orange); }
.button.primary:hover { background: #d95d00; }
.button.secondary { color: var(--ink); background: rgba(255, 255, 255, 0.94); border-color: #b8c8ce; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin: 27px 0 0; padding: 0; list-style: none; color: #34434b; font-size: 14px; font-weight: 700; }
.hero-proof li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--teal); border-radius: 50%; }

.band { background: var(--soft); }
.intro, .architecture, .agents, .contact { padding: 86px clamp(22px, 7vw, 112px); }
.intro { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr); gap: clamp(34px, 7vw, 110px); align-items: start; }
.section-heading { max-width: 720px; }
.section-heading.wide { max-width: 900px; }
.intro-copy p:first-child { color: var(--ink); font-size: 21px; }

.comparison, .capabilities, .faq { padding: 96px clamp(22px, 7vw, 112px); }
.comparison-grid { margin-top: 42px; border-top: 3px solid var(--ink); }
.comparison-head, .comparison-row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding: 20px 18px; border-bottom: 1px solid var(--line); }
.comparison-head { color: var(--muted); font-size: 14px; }
.comparison-head strong { color: var(--teal-dark); }
.comparison-row span, .comparison-row strong { font-size: 16px; line-height: 1.5; }
.comparison-row span { color: #687780; font-weight: 500; }
.comparison-row strong { color: #1e373b; }

.architecture { display: grid; grid-template-columns: minmax(280px, 0.8fr) minmax(400px, 1.2fr); gap: clamp(40px, 7vw, 105px); }
.flow { margin: 0; padding: 0; list-style: none; border-top: 1px solid #b9cccf; }
.flow li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid #b9cccf; }
.flow li > span { color: var(--orange); font-size: 14px; font-weight: 800; }
.flow strong { font-size: 20px; }
.flow p { margin: 5px 0 0; font-size: 15px; }

.capability-list { margin-top: 40px; border-top: 1px solid var(--line); }
.capability-list article { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 20px; max-width: 980px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.capability-number { color: var(--teal); font-size: 13px; font-weight: 800; }
.capability-list p { max-width: 760px; margin-bottom: 0; }

.agents { display: grid; grid-template-columns: minmax(300px, 1.15fr) minmax(300px, 0.85fr); gap: clamp(40px, 7vw, 110px); }
.agent-statement h2 { max-width: 760px; }
.machine-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; }
.machine-links a { color: var(--teal-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 4px; }
.agent-facts { margin: 0; border-top: 3px solid var(--teal-dark); }
.agent-facts div { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 18px; padding: 17px 0; border-bottom: 1px solid #b9cccf; }
.agent-facts dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.agent-facts dd { margin: 0; color: var(--ink); font-size: 15px; font-weight: 750; }

.faq { display: grid; grid-template-columns: minmax(260px, 0.7fr) minmax(400px, 1.3fr); gap: clamp(36px, 7vw, 110px); }
.faq-list { border-top: 2px solid var(--ink); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 22px 42px 22px 0; cursor: pointer; font-size: 18px; font-weight: 720; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; top: 18px; right: 4px; color: var(--orange); font-size: 25px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { padding: 0 40px 20px 0; }

.contact { display: flex; align-items: center; justify-content: space-between; gap: 40px; background: var(--warm); border-top: 1px solid #f0d5bd; }
.contact h2 { max-width: 850px; margin-bottom: 0; }
.contact .button { flex: 0 0 auto; }
footer { display: grid; grid-template-columns: 180px 1fr auto; gap: 28px; align-items: center; padding: 34px clamp(22px, 5vw, 76px); background: #172128; }
footer img { filter: brightness(0) invert(1); }
footer p { margin: 0; color: #b8c7cd; font-size: 13px; }

@media (max-width: 1120px) {
  .site-header { min-height: 64px; }
  .brand img { width: 172px; }
  .menu-button { display: block; grid-column: 3; justify-self: end; }
  nav { position: fixed; top: 64px; right: 0; bottom: 0; left: 0; display: none; align-content: start; align-items: stretch; gap: 0; padding: 18px 22px; background: var(--white); border: 0; border-radius: 0; box-shadow: none; }
  nav.open { display: grid; }
  nav a, nav a:first-child, nav a:nth-last-child(2) { min-height: 0; padding: 16px 2px; border-right: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .nav-cta { margin: 14px 0 0; padding: 14px; justify-content: center; text-align: center; border-bottom: 0; border-radius: 5px; }
  .hero { min-height: 760px; padding-top: 104px; background-position: 60% center; }
  .hero-content { width: min(620px, 78vw); }
  .intro, .architecture, .agents, .faq { grid-template-columns: 1fr; }
  .contact { align-items: flex-start; flex-direction: column; }
  footer { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { position: relative; align-items: flex-start; min-height: 760px; padding-top: 94px; background-position: 69% center; }
  .hero::before { content: ""; position: absolute; inset: 64px 0 0; background: rgba(255, 255, 255, 0.62); }
  .hero-content { position: relative; width: 100%; }
  h1 { font-size: 56px; }
  .hero-lead { font-size: 18px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero-proof { display: grid; gap: 10px; }
  .intro, .architecture, .agents, .contact, .comparison, .capabilities, .faq { padding-top: 66px; padding-bottom: 66px; }
  .comparison-head { display: none; }
  .comparison-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .comparison-row span::before { content: "Tradicional: "; color: var(--muted); font-weight: 750; }
  .comparison-row strong::before { content: "Hanbai: "; color: var(--teal-dark); }
  .capability-list article { grid-template-columns: 42px 1fr; }
  .agent-facts div { grid-template-columns: 1fr; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
