/* Landing page (Views/Home/Index): hero and demo generator, offers, System Builder, pricing, contact form. */

.grid-bg { background-image: radial-gradient(circle, #1E3A7322 1px, transparent 1px); background-size: 22px 22px; }

section { padding: 76px 0; }
section[id] { scroll-margin-top: var(--nav-height); }
section.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.band-top { border-bottom: 0; }
.kicker { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: var(--rust-deep); letter-spacing: 0.02em; }
.sec-title { font-size: clamp(25px, 3vw, 33px); font-weight: 800; letter-spacing: -0.015em; margin-top: 8px; max-width: 620px; }
.sec-sub { color: var(--muted); font-size: 15px; max-width: 560px; margin-top: 12px; }

/* Hero */
.hero { padding: 56px 0 70px; position: relative; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: var(--blue); background: #EAF0FC; border: 1px solid #C9D9F5; padding: 6px 12px; border-radius: 4px; margin-bottom: 22px; }
.hero-eyebrow::before { content: "●"; color: var(--mint); font-size: 9px; }
.hero h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; max-width: 760px; }
.hero h1 span { color: var(--blue-bright); }
.hero p.lead { font-size: 16.5px; color: var(--muted); max-width: 560px; margin-top: 20px; line-height: 1.6; }

/* Instant demo generator */
.demogen { margin-top: 44px; border: 1.5px solid var(--ink); border-radius: 14px; background: #fff; padding: 28px; position: relative; }
.dg-label { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.03em; margin-bottom: 14px; }
.dg-row { display: flex; gap: 12px; flex-wrap: wrap; }
.dg-input { flex: 1; min-width: 220px; border: 1.5px solid var(--line); border-radius: 8px; padding: 13px 16px; font-size: 15px; outline: none; background: #fff; }
.dg-input:focus { border-color: var(--blue-bright); }
.dg-btn { background: var(--ink); color: #fff; border: none; border-radius: 8px; padding: 13px 24px; font-size: 14.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.dg-btn:hover { background: var(--blue-deep); }
.dg-cats { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.dg-cat { font-size: 13px; font-weight: 500; border: 1.5px solid var(--line); border-radius: 100px; padding: 7px 15px; cursor: pointer; background: #fff; }
.dg-cat.active { border-color: var(--ink); background: var(--ink); color: #fff; }

.browser-mock { margin-top: 22px; border: 1.5px solid var(--ink); border-radius: 10px; overflow: hidden; display: none; }
.browser-mock.show { display: block; animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.browser-top { background: #EDEEF2; padding: 9px 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.bdot { width: 8px; height: 8px; border-radius: 50%; background: #C7C9D1; }
.burl { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--muted); background: #fff; border-radius: 4px; padding: 3px 10px; margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bpreview { padding: 26px 24px; min-height: 200px; }
.bp-loading { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: var(--muted); }
.bp-hero { padding: 26px 22px; border-radius: 8px; margin-bottom: 14px; }
.bp-hero h4 { font-size: 21px; font-weight: 800; color: #fff; font-family: 'Archivo', sans-serif; overflow-wrap: anywhere; }
.bp-hero p { font-size: 12.5px; color: rgba(255, 255, 255, 0.85); margin-top: 6px; }
.bp-hero button { margin-top: 14px; background: #fff; border: none; padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.bp-items { display: flex; gap: 10px; flex-wrap: wrap; }
.bp-item { flex: 1; min-width: 120px; border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px; }
.bp-item .n { font-size: 12.5px; font-weight: 600; }
.bp-item .p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.dg-footline { margin-top: 16px; font-size: 12.5px; color: var(--muted); display: none; }
.dg-footline.show { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.dg-footline a { color: var(--rust); font-weight: 600; text-decoration: none; }

.hero-stats { display: flex; gap: 34px; margin-top: 38px; flex-wrap: wrap; }
.hstat { font-family: 'IBM Plex Mono', monospace; }
.hstat b { display: block; font-size: 19px; color: var(--blue-bright); }
.hstat span { font-size: 11.5px; color: var(--muted); }

/* Two ways to work with us */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.path-card { position: relative; border: 1.5px solid var(--ink); border-radius: 4px; padding: 32px; background: #fff; }
.path-card::before, .path-card::after { content: ""; position: absolute; width: 10px; height: 10px; border: 1.5px solid var(--ink); }
.path-card::before { top: -1.5px; left: -1.5px; border-right: none; border-bottom: none; }
.path-card::after { bottom: -1.5px; right: -1.5px; border-left: none; border-top: none; }
.path-card.build { background: var(--ink); color: #fff; border-color: var(--ink); }
.path-tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; color: var(--rust); }
.path-card.build .path-tag { color: #FF9D66; }
.path-card h3 { font-size: 23px; margin-top: 14px; margin-bottom: 10px; font-weight: 800; }
.path-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 18px; }
.path-card.build p { color: #B9C0D4; }
.path-card ul { list-style: none; font-size: 13.8px; }
.path-card li { padding: 8px 0; border-top: 1px solid var(--line); }
.path-card.build li { border-top: 1px solid rgba(255, 255, 255, 0.15); }
.path-card li:first-child { border-top: none; }
.path-card li::before { content: "→ "; color: var(--rust); font-weight: 700; }
.path-card.build li::before { color: #FF9D66; }

/* What we build */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 44px; }
.svc-card { background: #fff; padding: 26px 22px; }
.svc-tag { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: var(--blue-bright); margin-bottom: 12px; }
.svc-card h4 { font-size: 16px; margin-bottom: 7px; font-weight: 700; }
.svc-card p { font-size: 13px; color: var(--muted); }

/* System Builder */
.canvas-toolbar { display: flex; align-items: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.tbtn { background: var(--ink); color: #fff; border: none; padding: 10px 17px; border-radius: 6px; font-size: 13px; font-weight: 600; cursor: pointer; }
.tbtn.ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--line); }
.canvas-hint { font-size: 12px; color: var(--muted); font-family: 'IBM Plex Mono', monospace; }
.dual-canvas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.canvas-col { min-width: 0; }
.canvas-col-label { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.canvas-col-label span { font-weight: 400; color: #8b90a0; }
.map-canvas { position: relative; width: 100%; height: 420px; border: 1.5px dashed var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
/* landing.js lays the map out at a size where nothing overlaps, then scales this stage down to the canvas width. */
.map-stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-nodes { position: absolute; inset: 0; }
.map-node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; justify-content: center; text-align: center; border-radius: 50%; font-size: 12px; font-weight: 600; padding: 8px; cursor: text; box-shadow: 0 3px 10px rgba(20, 23, 31, 0.12); line-height: 1.25; }
.map-node:focus-within { box-shadow: 0 0 0 3px rgba(36, 85, 214, 0.35), 0 3px 10px rgba(20, 23, 31, 0.12); }
.map-node.system { width: 122px; height: 122px; background: var(--ink); color: #fff; font-size: 14px; z-index: 3; }
.map-node.page { width: 94px; height: 94px; background: var(--rust); color: #fff; z-index: 2; }
.map-node.feature { width: 68px; height: 68px; background: #fff; border: 2px solid var(--blue-bright); color: var(--ink); font-size: 10.5px; z-index: 1; }
.node-label { display: block; max-width: 100%; max-height: 100%; overflow: hidden; outline: none; overflow-wrap: anywhere; }
.node-del { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; padding: 0; border-radius: 50%; background: #fff; border: 1px solid var(--line); font-size: 11px; line-height: 16px; display: none; cursor: pointer; color: var(--muted); font-weight: 700; }
.node-add { position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--blue-bright); color: #fff; font-size: 14px; line-height: 22px; display: none; cursor: pointer; font-weight: 700; }
.map-canvas.pannable { cursor: grab; }
.map-canvas.dragging { cursor: grabbing; }
.map-zoom { position: absolute; top: 8px; right: 8px; z-index: 5; display: flex; align-items: center; gap: 2px; padding: 2px; background: rgba(255, 255, 255, 0.92); border: 1.5px solid var(--line); border-radius: 6px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; cursor: default; }
.map-zoom button { min-width: 26px; height: 24px; padding: 0 6px; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font-weight: 600; cursor: pointer; }
.map-zoom button:hover:not(:disabled) { background: #F4F5F8; }
.map-zoom button:disabled { color: #B7BAC5; cursor: default; }
.map-zoom-level { min-width: 40px; text-align: center; color: var(--muted); }
.map-zoom .map-zoom-fit { border-left: 1px solid var(--line); border-radius: 0 4px 4px 0; }
.map-node:hover .node-del, .map-node:focus-within .node-del { display: block; }
.map-node.page:hover .node-add, .map-node.page:focus-within .node-add { display: block; }

.summary-block { margin-top: 26px; }
.summary-text { white-space: pre-wrap; background: #F4F5F8; border: 1.5px solid var(--line); border-radius: 8px; padding: 18px 20px; font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; line-height: 1.7; max-height: 360px; overflow: auto; color: var(--ink); }
.summary-actions { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; align-items: center; }

/* Pricing */
.pricing-wrap { background: var(--ink); border-radius: 14px; padding: 48px 40px; margin-top: 44px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.price-card { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 8px; padding: 26px 22px; }
.price-card.hi { background: rgba(217, 99, 30, 0.1); border-color: var(--rust); }
.price-name { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; color: #FF9D66; }
.price-val { font-family: 'Archivo', sans-serif; font-size: 27px; font-weight: 800; margin: 10px 0 4px; color: #fff; }
.price-val span { font-size: 13px; font-weight: 500; color: #9199B0; }
.price-desc { font-size: 12.5px; color: #AEB4C6; margin-bottom: 16px; }
.price-card ul { list-style: none; font-size: 12.8px; }
.price-card li { padding: 5px 0; color: #E6E8F0; }
.price-card li::before { content: "+ "; color: var(--mint); font-weight: 700; font-family: 'IBM Plex Mono', monospace; }

/* Why us */
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.why-item { border-left: 3px solid var(--blue-bright); padding-left: 18px; }
.why-item h4 { font-size: 15px; margin-bottom: 6px; font-weight: 700; }
.why-item p { font-size: 13px; color: var(--muted); }

/* Contact */
.cta-band { background: var(--blue-deep); border-radius: 14px; padding: 60px 44px; text-align: center; color: #fff; }
.cta-band h2 { font-size: clamp(24px, 3.2vw, 34px); max-width: 600px; margin: 0 auto 14px; font-weight: 800; }
.cta-band .cta-sub { color: #B9C0D4; max-width: 460px; margin: 0 auto 32px; font-size: 15px; }
.cta-band .cta-alt { margin-top: 28px; font-size: 13.5px; color: #B9C0D4; }
.cta-band .cta-alt a { color: #fff; font-weight: 600; }

.contact-form, .cf-success { max-width: 720px; margin: 0 auto; text-align: left; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.cf-full { grid-column: 1 / -1; }
.cf-field label { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; letter-spacing: 0.03em; color: #B9C0D4; margin-bottom: 6px; }
.cf-optional { font-weight: 500; color: #8D95AD; }
.cf-field input, .cf-field select, .cf-field textarea { width: 100%; background: #fff; color: var(--ink); border: 1.5px solid transparent; border-radius: 8px; padding: 12px 14px; font-size: 15px; outline: none; }
.cf-field textarea { resize: vertical; min-height: 100px; }
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { border-color: #FF9D66; box-shadow: 0 0 0 3px rgba(255, 157, 102, 0.25); }
.cf-field [aria-invalid="true"] { border-color: #FF8A70; }
.cf-error { font-size: 12.5px; color: #FFB4A1; margin-top: 5px; }
.cf-error:empty { display: none; }
.cf-hint { font-size: 12.5px; color: #8D95AD; margin-top: -8px; }
.cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.cf-attachments { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.cf-attach-label { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; font-weight: 600; color: #B9C0D4; margin-right: 2px; }
.cf-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 100px; padding: 4px 5px 4px 12px; font-size: 12.5px; color: #E6E8F0; max-width: 100%; }
.cf-chip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf-chip button { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.16); color: #fff; font-size: 12px; line-height: 20px; cursor: pointer; }
.cf-chip button:hover { background: rgba(255, 255, 255, 0.3); }

.cf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.cf-submit { background: var(--rust); color: #fff; border: 0; padding: 14px 24px; border-radius: 8px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.cf-submit:hover { background: var(--rust-deep); }
.cf-submit:disabled { opacity: 0.7; cursor: wait; }
.cf-status { font-size: 13px; color: #FFB4A1; }
.cf-status.pending { color: #B9C0D4; }
.cf-consent { font-size: 11.5px; color: #8D95AD; margin-top: 14px; }

.cf-success { border: 1px solid rgba(63, 166, 107, 0.6); background: rgba(63, 166, 107, 0.12); border-radius: 10px; padding: 22px 24px; font-size: 15px; outline: none; }
.cf-success-mark { color: var(--mint); font-weight: 700; margin-right: 6px; }

/* Vietnamese runs longer than English, so its design uses slightly smaller type. */
html[lang="vi"] .hero h1 { font-size: clamp(30px, 4.4vw, 47px); line-height: 1.12; max-width: 780px; }
html[lang="vi"] .hero p.lead { font-size: 16px; }
html[lang="vi"] .sec-title { font-size: clamp(24px, 2.9vw, 32px); }
html[lang="vi"] .path-card h3 { font-size: 22px; }
html[lang="vi"] .path-card p { font-size: 14px; }
html[lang="vi"] .path-card ul { font-size: 13.5px; }
html[lang="vi"] .svc-card h4 { font-size: 15.5px; }
html[lang="vi"] .svc-card p { font-size: 12.8px; }
html[lang="vi"] .price-val { font-size: 25px; }
html[lang="vi"] .price-desc { font-size: 12.3px; }
html[lang="vi"] .price-card ul { font-size: 12.6px; }
html[lang="vi"] .why-item h4 { font-size: 14.5px; }
html[lang="vi"] .why-item p { font-size: 12.8px; }
html[lang="vi"] .cta-band h2 { font-size: clamp(23px, 3vw, 32px); }

@media (max-width: 860px) {
    .paths, .why-list { grid-template-columns: 1fr; }
    .svc-grid { grid-template-columns: 1fr 1fr; }
    .price-grid { grid-template-columns: 1fr; }
    .map-canvas { height: 380px; }
    .dual-canvas { grid-template-columns: 1fr; }
    .dg-row { flex-direction: column; }
    .cf-grid { grid-template-columns: 1fr; }
    /* The form needs the width more than the band needs its padding. */
    .cta-band { padding: 48px 24px; }
}
