:root {
  --bg: #f4f8ff;
  --surface: #ffffff;
  --ink: #0b1b3a;
  --muted: #5a6b8c;
  --line: #dbe5f5;
  --blue: #2563eb;
  --cyan: #06b6d4;
  --violet: #7c3aed;
  --green: #10b981;
  --grad: linear-gradient(120deg, #2563eb, #06b6d4);
  --shadow: 0 20px 50px -20px rgba(37, 99, 235, 0.28);
  font-family: Inter, 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); }
.landing { overflow-x: hidden; line-height: 1.6; background: var(--bg); }
.landing * { min-width: 0; }
.landing a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.section-pad { padding: 104px 0; }
h1, h2, h3, p { margin: 0; }

.hero-stage {
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(6, 182, 212, 0.18), transparent 70%),
    radial-gradient(ellipse 50% 50% at 5% 0%, rgba(37, 99, 235, 0.14), transparent 70%),
    linear-gradient(#eef4ff, #f4f8ff);
  border-bottom: 1px solid var(--line);
}
.hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(37, 99, 235, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(#000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(#000 30%, transparent 95%);
  pointer-events: none;
}
.hero-stage > * { position: relative; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand-light { font-weight: 400; color: var(--muted); }
.brand-dot { color: var(--cyan); }
.brand-logo { border-radius: 8px; }
.desktop-nav { display: flex; gap: 32px; font-size: 14px; color: var(--muted); }
.desktop-nav a:hover { color: var(--blue); }
.header-link {
  display: inline-flex; gap: 8px; padding: 9px 18px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--blue);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.header-link:hover { border-color: var(--blue); box-shadow: var(--shadow); }

.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding: 72px 0 56px; }
.eyebrow, .section-kicker {
  display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; color: var(--blue);
}
.eyebrow-line { width: 32px; height: 2px; background: var(--grad); }
.hero h1 { margin-top: 22px; font-size: clamp(40px, 5.2vw, 68px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800; }
.hero h1 span { color: var(--ink); }
.hero h1 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-description { margin-top: 26px; max-width: 560px; font-size: 18px; color: var(--muted); }
.hero-description strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px;
  font: inherit; font-weight: 600; border-radius: 12px; border: 0; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-primary { background: var(--grad); color: #fff !important; box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.55); }
.button-text { color: var(--blue) !important; padding-left: 0; padding-right: 0; }
.button-text span { transition: transform 0.2s; }
.button-text:hover span { transform: translate(3px, -3px); }
.hero-platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.platform-chip { padding: 6px 14px; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); border-radius: 999px; }

.hero-art { position: relative; padding: 28px 0 28px 20px; }
.mock-window { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow), 0 0 0 8px rgba(255, 255, 255, 0.5); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f8fbff; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd8ee; }
.mock-bar span { margin-left: 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.mock-body { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 320px; }
.mock-chat, .mock-page { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mock-chat { border-right: 1px solid var(--line); background: #fbfdff; }
.mock-body small { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--blue); }
.bubble { margin: 0; padding: 9px 12px; font-size: 12px; line-height: 1.45; border-radius: 12px; max-width: 92%; }
.bubble.user { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { background: #eaf1ff; color: var(--ink); border-bottom-left-radius: 4px; }
.typing { display: inline-flex; gap: 4px; padding: 8px 12px; background: #eaf1ff; border-radius: 12px; align-self: flex-start; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; }
.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpis div { padding: 8px; background: #f2f7ff; border: 1px solid var(--line); border-radius: 10px; }
.kpis b { display: block; font-size: 16px; }
.kpis span { font-size: 10px; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 8px; background: #f2f7ff; border-radius: 10px; }
.bars i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(var(--cyan), var(--blue)); }
.mock-row { display: flex; justify-content: space-between; padding: 7px 10px; font-size: 12px; border: 1px solid var(--line); border-radius: 8px; }
.mock-row em { font-style: normal; font-weight: 600; color: #e0573a; }
.source-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 12px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite;
}
.source-chip span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.chip-erp { top: 0; left: -6px; }
.chip-crm { top: 12%; right: -8px; animation-delay: -1.5s; }
.chip-wms { bottom: 4%; left: -12px; animation-delay: -3s; }
.chip-db { bottom: -6px; right: 8%; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-8px); } }

.stage-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 28px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--muted); border-top: 1px solid var(--line); }
.stage-bottom a { color: var(--blue); }

.section-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 56px; }
.landing h2 { margin-top: 14px; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; }
.landing h2 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-heading > p, .platform-intro > p:not(.section-kicker), .faq-heading > p, .download-copy > p:not(.section-kicker), .experience-copy > p:not(.section-kicker) { color: var(--muted); font-size: 17px; }

.teams-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: stretch; }
.team-card { padding: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; transition: transform 0.25s, box-shadow 0.25s; }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--blue); }
.team-tag.alt { color: var(--violet); }
.team-symbol { margin: 22px 0 18px; display: grid; place-items: center; width: 52px; height: 52px; font-size: 24px; border-radius: 14px; background: #eaf1ff; }
.team-card:last-child .team-symbol { background: #f1eaff; }
.team-card h3 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
.team-card p { margin-top: 14px; color: var(--muted); }
.team-card ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.team-card li { padding-left: 26px; position: relative; }
.team-card li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.team-link { display: grid; place-items: center; }
.team-link span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; color: #fff; background: var(--grad); box-shadow: var(--shadow); }

.experience-section { background: linear-gradient(#eaf2ff, #f4f8ff); border-block: 1px solid var(--line); }
.experience-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.experience-copy p:not(.section-kicker) { margin-top: 20px; }
.inline-link { display: inline-block; margin-top: 26px; font-weight: 600; color: var(--blue) !important; }
.roadmap { display: grid; gap: 0; }
.road-step { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; }
.road-step.next { border-style: dashed; border-color: #9db8ee; background: rgba(255, 255, 255, 0.65); }
.road-badge { display: inline-block; padding: 3px 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: #fff; background: var(--grad); border-radius: 999px; }
.road-step.next .road-badge { background: var(--violet); }
.road-step h3 { margin-top: 14px; font-size: 22px; letter-spacing: -0.02em; }
.road-step p { margin-top: 8px; color: var(--muted); }
.road-line { width: 2px; height: 36px; margin: 0 auto; background: repeating-linear-gradient(var(--blue) 0 6px, transparent 6px 12px); }

.platform-layout { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 64px; align-items: start; }
.platform-intro > p:not(.section-kicker) { margin-top: 20px; }
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.capability-card { display: flex; flex-direction: column; gap: 18px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.capability-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #b4c9f2; }
.capability-icon { display: grid; place-items: center; width: 44px; height: 44px; font-size: 20px; border-radius: 12px; }
.capability-icon.blue { color: var(--blue); background: #e6efff; }
.capability-icon.cyan { color: #0891b2; background: #dff7fb; }
.capability-icon.violet { color: var(--violet); background: #efe7ff; }
.capability-icon.green { color: #059669; background: #dcf7ec; }
.capability-index { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); }
.capability-card h3 { margin-top: 6px; font-size: 19px; letter-spacing: -0.01em; }
.capability-card p { margin-top: 8px; font-size: 15px; color: var(--muted); }

.journey-section { background: var(--surface); border-block: 1px solid var(--line); }
.journey-heading { text-align: center; margin-bottom: 56px; }
.journey-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step-number { font-size: 14px; font-weight: 800; color: var(--blue); }
.step-line { height: 2px; margin: 14px 0 20px; background: var(--line); }
.step-line span { display: block; width: 40%; height: 100%; background: var(--grad); }
.journey-step h3 { font-size: 22px; }
.journey-step p { margin-top: 8px; color: var(--muted); }

.faq-layout { display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 64px; }
.faq-heading > p { margin-top: 20px; }
.faq-list { display: grid; gap: 12px; align-content: start; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq-item summary { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--blue); transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 20px; color: var(--muted); }

.download-section { background: linear-gradient(160deg, #e3eeff, #dff6fb); border-top: 1px solid var(--line); }
.download-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.download-copy p:not(.section-kicker) { margin-top: 18px; }
.download-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; padding: 8px 16px; font-size: 14px; color: var(--muted); background: rgba(255, 255, 255, 0.75); border-radius: 999px; }
.download-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.download-panel { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.panel-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--blue); }
.panel-decoration { color: var(--cyan); }
.download-panel h3 { margin: 14px 0 18px; font-size: 24px; letter-spacing: -0.02em; }
.platform-options { display: grid; gap: 10px; }
.platform-options.is-empty, .loading-options { padding: 14px; font-size: 14px; color: var(--muted); }
.platform-option { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; font: inherit; text-align: left; color: var(--ink); background: #f7faff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.platform-option:hover { border-color: #9db8ee; }
.platform-option.selected { border-color: var(--blue); background: #eaf1ff; }
.option-icon { display: grid; place-items: center; width: 36px; height: 36px; font-size: 18px; color: var(--blue); background: #fff; border-radius: 10px; }
.option-label { display: flex; flex: 1; flex-direction: column; }
.option-label small { color: var(--muted); }
.option-check { opacity: 0; color: var(--blue); font-weight: 700; }
.platform-option.selected .option-check { opacity: 1; }
.download-button { width: 100%; margin-top: 18px; background: var(--grad); color: #fff !important; }
.download-button.is-disabled { background: #cfd9ea; color: #6b7a96 !important; cursor: not-allowed; pointer-events: none; }
.panel-footnote { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }

.site-footer { padding: 32px 0; background: var(--surface); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer .brand { color: var(--ink); font-size: 16px; }

@media (max-width: 1000px) {
  .hero, .experience-layout, .platform-layout, .faq-layout, .download-layout, .section-heading { grid-template-columns: 1fr; gap: 40px; }
  .teams-grid { grid-template-columns: 1fr; }
  .team-link { padding: 4px 0; }
  .journey-track { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .section-pad { padding: 72px 0; }
  .desktop-nav { display: none; }
  .capability-grid, .journey-track { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .source-chip { display: none; }
  .hero-art { padding: 0; }
  .stage-bottom > span { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .team-card { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-auth { cursor: pointer; font-family: inherit; background: var(--grad); color: #fff; border-color: transparent; }
.header-auth:hover { border-color: transparent; }
.im-note { margin-top: 18px; padding: 12px 16px; font-size: 13px; line-height: 1.6; color: var(--muted); background: #eef5ff; border: 1px solid var(--line); border-radius: 12px; }
.im-note strong { color: var(--blue); }
.login-dialog { width: min(420px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); background: var(--surface); }
.login-dialog::backdrop { background: rgba(15, 23, 42, 0.45); }
.login-form { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.login-form h3 { font-size: 24px; letter-spacing: -0.02em; }
.login-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.login-form input { padding: 10px 12px; font: inherit; font-weight: 400; border: 1px solid var(--line); border-radius: 10px; }
.login-form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
#login-credentials, #login-totp, #register-fields { display: flex; flex-direction: column; gap: 14px; }
.login-form [hidden] { display: none !important; }
.login-close { position: absolute; top: 14px; right: 18px; font-size: 24px; line-height: 1; color: var(--muted); background: none; border: 0; cursor: pointer; }
.login-hint, .login-footnote { font-size: 13px; color: var(--muted); }
.login-footnote { line-height: 1.6; }
.link-button { padding: 0; font: inherit; color: var(--blue); background: none; border: 0; cursor: pointer; }
.login-error { font-size: 13px; color: #c0392b; }
.login-form .download-button { margin-top: 4px; border: 0; cursor: pointer; font: inherit; }
.login-form .download-button:disabled { opacity: 0.6; cursor: progress; }
.totp-qr { width: 160px; height: 160px; align-self: center; }
.header-actions [hidden] { display: none; }
.paradigm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.paradigm-grid .team-card { padding: 32px; }
.paradigm-grid .team-card h3 { font-size: 22px; }
.team-tag.green { color: #059669; }
.paradigm-grid .team-card:nth-child(3) .team-symbol { background: #dcf7ec; }
.paradigm-grid .team-card:nth-child(2) .team-symbol { background: #f1eaff; }
.paradigm-grid .team-card:nth-child(1) .team-symbol { background: #eaf1ff; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-grid .capability-card { justify-content: space-between; }
.versus { padding-top: 14px; font-size: 13px !important; color: var(--muted); border-top: 1px dashed var(--line); }
.versus b { color: var(--blue); }
.inquiry-points { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink); }
.inquiry-points li { padding-left: 26px; position: relative; }
.inquiry-points li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.inquiry-form { display: flex; flex-direction: column; gap: 14px; }
.inquiry-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.inquiry-form input, .inquiry-form textarea { padding: 10px 12px; font: inherit; font-weight: 400; resize: vertical; border: 1px solid var(--line); border-radius: 10px; }
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.inquiry-form h3 { margin: 6px 0 4px; }
.inquiry-form .download-button { margin-top: 4px; border: 0; cursor: pointer; font: inherit; }
.inquiry-form .download-button:disabled { opacity: 0.6; cursor: progress; }
.inquiry-status { padding: 10px 14px; font-size: 13px; color: #047857; background: #dcf7ec; border-radius: 10px; }
.inquiry-status.is-error { color: #c0392b; background: #fdecea; }
.inquiry-status[hidden] { display: none; }
@media (max-width: 1000px) { .paradigm-grid, .feature-grid { grid-template-columns: 1fr; } }
.client-section { border-top: 1px solid var(--line); background: var(--bg); }
.header-link[hidden] { display: none; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-actions span { padding: 5px 10px; font-size: 11px; font-weight: 600; color: var(--blue); background: #eaf1ff; border: 1px solid var(--line); border-radius: 999px; }
.mock-chat small:nth-of-type(2) { margin-top: 6px; }

.header-download { align-items: center; gap: 8px; padding: 6px 16px 6px 8px; color: var(--ink); }
.header-download .os-icon {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(37, 99, 235, 0.1); color: var(--blue);
}
.header-download .os-icon svg { width: 15px; height: 15px; }
.header-download[data-os="windows"] .os-icon { background: rgba(0, 120, 212, 0.12); color: #0078d4; }
.header-download[data-os="darwin"] .os-icon { background: rgba(11, 27, 58, 0.08); color: var(--ink); }
.header-download[data-os="linux"] .os-icon { background: rgba(245, 158, 11, 0.16); color: #b45309; }
