:root {
  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --surface-alt: #F0EFEA;
  --ink: #121417;
  --ink-secondary: #495057;
  --ink-muted: #7A828A;
  --line: #E2E1DC;
  --line-strong: #C8C6BE;
  --accent: #184A5A;
  --accent-hover: #113743;
  --accent-soft: rgba(24, 74, 90, 0.07);
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
}

/* Hide HTML Hub injected back-pill on standalone commercial pages */
html body #htmlhub-nav {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 247, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  height: 58px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.brand-en {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding-left: 9px;
  border-left: 1px solid var(--line-strong);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.domain-tag {
  font-size: 12.5px;
  color: var(--ink-secondary);
  font-weight: 500;
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  height: 34px;
  padding: 0 14px;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: var(--ink);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 12.5px;
}

/* Container */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px 92px;
}

/* Hero */
.hero {
  padding: 60px 0 46px;
  border-bottom: 1px solid var(--ink);
  animation: fadeRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: end;
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.hero-desc {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.75;
}

.hero-desc strong {
  color: var(--ink);
  font-weight: 600;
}

/* Portal Track Blocks (for index.html) */
.portal-list {
  display: flex;
  flex-direction: column;
}

.portal-row {
  padding: 48px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: center;
}

.portal-meta-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.portal-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.portal-summary {
  margin: 0 0 18px;
  color: var(--ink-secondary);
  font-size: 14.5px;
  line-height: 1.72;
}

.scope-items {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.scope-items li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-secondary);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.scope-items li strong {
  color: var(--ink);
  font-weight: 600;
}

.scope-items li span {
  color: var(--ink-muted);
  font-size: 12.5px;
  flex-shrink: 0;
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Browser / App Window Frame for Real Screenshots */
.shot-frame {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.shot-frame:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}

.shot-bar {
  height: 28px;
  padding: 0 12px;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.shot-dots {
  display: flex;
  gap: 5px;
}

.shot-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
  display: block;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot-caption {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

/* Dedicated Page Sections (gov / media / enterprise) */
.feature-section {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
  align-items: start;
}

.f-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 8px;
}

.f-title {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.f-lead {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 14.5px;
  line-height: 1.75;
}

.shot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.shot-single {
  margin-bottom: 28px;
}

.points-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  padding-top: 20px;
  gap: 28px;
}

.point-col h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.point-col p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.68;
}

/* Process / Architecture Diagram Strip (for capabilities without public screenshots) */
.pipeline-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pipe-step {
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}

.pipe-idx {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
}

.pipe-step strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}

.pipe-step span {
  display: block;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

/* Footer / Engagement Section */
.engage-footer {
  padding-top: 52px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.engage-footer h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 650;
}

.engage-footer p {
  margin: 0;
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.72;
}

.modes-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.mode-item strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
}

.mode-item span {
  display: block;
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.copyright {
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 16, 18, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  cursor: zoom-out;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1360px, 96vw);
  max-height: 90vh;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  background: #FFFFFF;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: var(--ink);
  color: #FFFFFF;
  font-size: 13px;
  padding: 9px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 110;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes fadeRise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 860px) {
  .header-inner { padding: 0 18px; }
  .domain-tag { display: none; }
  .container { padding: 0 18px 64px; }
  .hero { padding: 38px 0 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .portal-row { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .feature-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 22px; }
  .shot-pair { grid-template-columns: 1fr; gap: 16px; }
  .points-grid { grid-template-columns: 1fr; gap: 16px; }
  .pipeline-strip { grid-template-columns: 1fr 1fr; gap: 16px; padding: 18px; }
  .engage-footer { grid-template-columns: 1fr; gap: 24px; padding-top: 38px; }
  .modes-list { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 520px) {
  .brand-en { display: none; }
  .pipeline-strip { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .btn, .lightbox, .toast { display: none !important; }
  .feature-section { opacity: 1 !important; transform: none !important; }
  body { background: #FFFFFF; }
}
