@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Manrope:wght@600;700;800&display=swap&subset=vietnamese');

/* P-Solution Studio: dark theme. Drop-in replacement, same class names as the previous stylesheet. */
:root {
  color-scheme: dark;
  --bg: #0a0f1f;
  --bg-subtle: #0e1530;
  --bg-muted: #121a33;
  --card: #121a33;
  --slate-900: #ffffff;
  --slate-800: #e8edfb;
  --slate-700: #d5ddf5;
  --slate-600: #b9c4e3;
  --slate-500: #8fa0cc;
  --slate-400: #6f81b0;
  --border: #243257;
  --border-strong: #34457a;
  --accent: #5b7cff;
  --accent-hover: #7c9bff;
  --accent-soft: rgba(91, 124, 255, 0.14);
  --teal: #2dd4bf;
  --teal-soft: rgba(45, 212, 191, 0.12);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 28px -8px rgba(0, 0, 0, 0.45);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  color: var(--slate-600);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .brand, .footer-title {
  font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* Navigation */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 15, 31, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 20px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; color: #fff; letter-spacing: -0.01em; font-size: 18px; line-height: 1;
}
.brand > span:last-child { display: block; line-height: 1; }
.brand:hover { color: #fff; }
.brand small {
  display: block; font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px; font-weight: 500; color: var(--slate-600);
  letter-spacing: 0.34em; margin-top: 7px; line-height: 1;
}
/* New logo mark (blocks and connectors forming a P). The old inline icon is hidden, so no HTML edits are needed. */
.brand-logo {
  width: 44px; height: 44px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='4 3 82 88'%3E%3Cg stroke='white' stroke-width='5' stroke-linecap='round' fill='none'%3E%3Cpath d='M21 19H69M21 48H69M21 19V77M69 19V48'/%3E%3C/g%3E%3Cg fill='white'%3E%3Crect x='10' y='8' width='22' height='22' rx='5'/%3E%3Crect x='10' y='37' width='22' height='22' rx='5'/%3E%3Crect x='58' y='8' width='22' height='22' rx='5'/%3E%3Crect x='58' y='37' width='22' height='22' rx='5'/%3E%3C/g%3E%3Crect x='10' y='66' width='22' height='22' rx='5' fill='%232DD4BF'/%3E%3C/svg%3E") center / contain no-repeat;
}
.brand-logo svg { display: none; }
nav { display: flex; align-items: center; gap: 32px; }
nav a {
  color: var(--slate-600); font-weight: 500; font-size: 15px; line-height: 1;
  padding: 10px 0; position: relative; white-space: nowrap;
}
nav a:hover { color: #fff; }
nav a.active { color: #fff; font-weight: 600; }
nav a.active::after {
  content: ""; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--teal); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; height: 42px;
  background: var(--bg-muted); padding: 4px; border-radius: 10px;
  border: 1px solid var(--border); font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
}
.lang-switch a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 7px; color: var(--slate-600); font-weight: 500; }
.lang-switch a:hover { color: #fff; }
.lang-switch a.selected { background: var(--accent); color: var(--bg); font-weight: 600; }
.nav-cta {
  display: inline-flex; align-items: center; height: 42px; white-space: nowrap;
  background: #fff; color: var(--bg); padding: 0 20px;
  border-radius: 10px; font-size: 14px; font-weight: 600;
  transition: all 0.18s ease;
}
.nav-cta:hover { background: var(--accent); color: var(--bg); transform: translateY(-1px); }
.menu {
  display: none; background: var(--bg-muted); border: 1px solid var(--border);
  border-radius: 8px; padding: 7px 11px; font-size: 18px; color: #fff; cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 96px 0 92px;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(36, 50, 87, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 50, 87, 0.35) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.18fr 0.92fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--teal); background: var(--teal-soft);
  border: 1px solid rgba(45, 212, 191, 0.3);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

h1 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1; color: #fff;
  margin: 0 0 24px; letter-spacing: -0.03em; font-weight: 800;
}
h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.15; color: #fff;
  margin: 0 0 16px; letter-spacing: -0.025em; font-weight: 800;
}
h3 { font-size: 20px; color: #fff; margin: 0 0 10px; letter-spacing: -0.015em; font-weight: 700; }

.hero p { font-size: 18px; color: var(--slate-600); margin: 0 0 32px; max-width: 580px; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--bg);
  padding: 14px 26px; border-radius: 12px;
  font-weight: 600; font-size: 15px; border: 1px solid var(--accent);
  cursor: pointer; transition: all 0.18s ease;
}
.btn:hover {
  background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg);
  transform: translateY(-1px);
}
.btn.secondary { background: transparent; color: #fff; border: 1px solid var(--border-strong); }
.btn.secondary:hover { background: var(--bg-muted); border-color: var(--slate-400); color: #fff; }

/* Delivery framework card */
.blueprint-card {
  background: var(--card);
  color: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}
.blueprint-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px;
  background: #0d1329;
  border-bottom: 1px solid var(--border);
}
.window-dots { display: flex; gap: 6px; }
.window-dots span { width: 9px; height: 9px; border-radius: 50%; background: #34457a; }
.window-dots span:nth-child(3) { background: var(--teal); }
.blueprint-badge {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; font-weight: 600; color: #9db4ff;
  background: var(--accent-soft); border: 1px solid rgba(124, 155, 255, 0.3);
  padding: 2px 9px; border-radius: 5px; letter-spacing: 0.05em;
}
.blueprint-body { padding: 24px; }
.blueprint-title {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--slate-500); margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.arch-stack { display: grid; gap: 11px; position: relative; }
.arch-node {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-left: 3.5px solid #3a4f99;
  padding: 14px 16px; border-radius: 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  transition: all 0.2s ease;
}
.arch-node:nth-child(2) { border-left-color: #4c66d6; }
.arch-node:nth-child(3) { border-left-color: var(--accent); }
.arch-node:nth-child(4) { border-left-color: var(--teal); }
.arch-node:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.arch-node-left { display: flex; align-items: center; gap: 12px; }
.arch-step-num {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; font-weight: 700; color: #9db4ff;
  background: var(--accent-soft); border: 1px solid rgba(124, 155, 255, 0.25);
  padding: 3px 8px; border-radius: 6px;
}
.arch-node:nth-child(4) .arch-step-num { color: var(--teal); background: var(--teal-soft); border-color: rgba(45, 212, 191, 0.3); }
.arch-node strong { font-size: 14px; color: #fff; font-weight: 700; display: block; }
.arch-node span {
  font-size: 12px; color: var(--slate-600); text-align: right; font-weight: 500;
}
.arch-node-left span { background: none; }
.blueprint-footer {
  margin-top: 18px; padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 9px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; font-weight: 600; color: var(--slate-700);
}
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--teal); background: var(--teal-soft); border: 1px solid rgba(45, 212, 191, 0.35);
  padding: 3px 10px; border-radius: 999px; font-weight: 600;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

/* Trust strip */
.trust-strip { padding: 22px 0; background: var(--bg-subtle); border-bottom: 1px solid var(--border); }
.trust-items {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 13.5px; color: var(--slate-600); font-weight: 500;
}
.trust-item { display: flex; align-items: center; gap: 8px; }
.trust-item svg { color: var(--teal); flex-shrink: 0; }

/* Sections */
section { padding: 88px 0; }
.section-soft { background: var(--bg-subtle); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.page-hero {
  padding: 80px 0 60px;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(36, 50, 87, 0.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 50, 87, 0.35) 1px, transparent 1px);
  background-size: 48px 48px, 48px 48px;
  border-bottom: 1px solid var(--border);
}
.page-hero p { font-size: 18px; color: var(--slate-600); max-width: 700px; margin: 0; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--slate-600); font-size: 17px; margin: 0; }
.tag {
  display: inline-block; font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  color: #9db4ff; background: var(--accent-soft);
  border: 1px solid rgba(124, 155, 255, 0.25);
  padding: 4px 10px; border-radius: 6px; margin-bottom: 14px;
}

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid.two { grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 30px;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.grid .card:nth-child(3n+1) { border-top-color: var(--accent); }
.grid .card:nth-child(3n+2) { border-top-color: var(--teal); }
.grid .card:nth-child(3n+3) { border-top-color: var(--accent); }
.grid.two .card:nth-child(n) { border-top-color: var(--border-strong); }
.grid.two .card:nth-child(4n+1), .grid.two .card:nth-child(4n+4) { border-top-color: var(--accent); }
.grid.two .card:nth-child(4n+2), .grid.two .card:nth-child(4n+3) { border-top-color: var(--teal); }
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.card.featured { border-color: rgba(124, 155, 255, 0.55); background: #141e3d; }
.card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--accent-soft); color: #9db4ff;
  border: 1px solid rgba(124, 155, 255, 0.25);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card p { color: var(--slate-600); margin: 0 0 16px; font-size: 15px; }
.card ul { margin: 4px 0 22px; padding: 0; list-style: none; color: var(--slate-700); font-size: 14.2px; }
.card li { position: relative; padding-left: 20px; margin-bottom: 9px; }
.card li::before { content: "â€¢"; position: absolute; left: 4px; color: var(--teal); font-weight: 700; }
.card-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 14.5px; color: #9db4ff;
}
.card-link:hover { gap: 9px; color: #fff; }

.price-block { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.price { font-family: 'Manrope', 'Inter', sans-serif; font-size: 22px; font-weight: 800; color: #fff; }
.price small { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: var(--slate-500); }
.duration {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: var(--slate-500); margin-top: 4px; margin-bottom: 0 !important;
}

/* Split and panels */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 52px; align-items: start; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li {
  position: relative; padding-left: 30px; margin-bottom: 14px;
  font-weight: 500; color: var(--slate-700); font-size: 15.5px;
}
.checklist li::before {
  content: "âœ“"; position: absolute; left: 0; top: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal);
  border: 1px solid rgba(45, 212, 191, 0.3);
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.feature-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 34px;
  box-shadow: var(--shadow-md);
}
.feature-panel h3 { font-size: 22px; margin-bottom: 14px; }
.feature-panel p { color: var(--slate-600); font-size: 15px; margin-bottom: 16px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step {
  background: var(--card); border: 1px solid var(--border);
  border-top: 3px solid #3a4f99;
  border-radius: var(--radius-md); padding: 26px; position: relative;
}
.step:nth-child(2) { border-top-color: #4c66d6; }
.step:nth-child(3) { border-top-color: var(--accent); }
.step:nth-child(4) { border-top-color: var(--teal); }
.step-badge {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 600;
  color: #9db4ff; margin-bottom: 12px; display: block;
}
.step p { color: var(--slate-600); font-size: 14.5px; margin: 0; }

/* CTA banner */
.cta {
  background: var(--card);
  color: #fff; border-radius: 24px;
  padding: 52px; display: flex; justify-content: space-between; align-items: center; gap: 32px;
  border: 1px solid var(--border);
}
.cta h2 { color: #fff; margin: 0 0 10px; font-size: clamp(24px, 2.8vw, 34px); }
.cta p { color: var(--slate-600); margin: 0; font-size: 16px; max-width: 580px; }
.cta .btn { background: var(--accent); color: var(--bg); border-color: var(--accent); flex-shrink: 0; font-weight: 700; }
.cta .btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--bg); }

.notice {
  font-size: 13.5px; color: var(--slate-600); margin-top: 28px;
  background: var(--bg-muted); border-left: 3px solid var(--teal);
  padding: 16px 20px; border-radius: 0 8px 8px 0;
}
.notice strong { color: #fff; }

/* Contact form */
.contact-box { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 52px; align-items: start; }
.form {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow-md); display: grid; gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { font-size: 13.5px; font-weight: 600; color: #fff; display: block; margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); font: inherit; font-size: 14.5px; color: #fff;
  background: var(--bg); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input::placeholder, .form textarea::placeholder { color: var(--slate-400); }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 124, 255, 0.25);
}
.form textarea { min-height: 124px; resize: vertical; }

/* Footer */
footer {
  background: var(--bg-subtle); color: var(--slate-600);
  padding: 64px 0 36px; border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  padding-bottom: 44px; border-bottom: 1px solid var(--border);
}
.footer-title {
  color: #fff; font-weight: 700; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
footer a { display: block; color: var(--slate-600); margin-bottom: 10px; font-size: 14px; }
footer a:hover { color: #fff; }
footer p { font-size: 14px; margin: 0 0 10px; line-height: 1.6; }
.copyright {
  padding-top: 28px; display: flex; justify-content: space-between;
  font-size: 13px; color: var(--slate-500); flex-wrap: wrap; gap: 12px;
}

@media (max-width: 960px) {
  .hero-grid, .split, .contact-box, .grid, .grid.two, .steps, .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0; }
  nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 20px 28px;
    border-bottom: 1px solid var(--border); align-items: flex-start; gap: 14px;
    box-shadow: var(--shadow-md);
  }
  nav.open { display: flex; }
  .nav-cta { display: none; }
  .menu { display: block; }
}

/* Homepage visual (architecture diagram) */
.visual {
  margin: 0; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md);
  overflow-x: auto;
}
.visual img { display: block; width: 100%; height: auto; min-width: 720px; }
.visual figcaption {
  margin-top: 16px; font-size: 13px; color: var(--slate-500);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Two plain sections in a row share one gap instead of doubling it */
section:not(.section-soft):not(.hero):not(.page-hero) + section:not(.section-soft) { padding-top: 0; }