/* =========================================================
   PulamAI — Website Design System (v1 prototype)
   Brand: Purple #3632B6 · Teal green #4EC2A8 · Navy #111126
   ========================================================= */
:root {
  --purple: #3632B6;
  --purple-600: #2C29A0;
  --purple-300: #8E8BEA;
  --purple-50: #EEEEFB;
  --green: #4EC2A8;
  --green-600: #1F7764;
  --green-50: #E6F7F3;
  --navy: #111126;
  --navy-800: #191936;
  --navy-700: #232347;
  --bg-soft: #F5F6FA;
  --text: #25263A;
  --muted: #73758A;
  --line: #E4E5EE;
  --white: #FFFFFF;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(17,17,38,.06);
  --shadow: 0 10px 30px -12px rgba(17,17,38,.18);
  --shadow-lg: 0 30px 60px -20px rgba(17,17,38,.35);

  --container: 1200px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--white);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }
.section { padding: 112px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy); color: #C9CAE0; }
.section--dark h2, .section--dark h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--purple);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green); border-radius: 2px; }
.section--dark .eyebrow, .hero .eyebrow { color: var(--green); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section--dark .section-head p { color: #A9AAC6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  font-family: inherit; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--green); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(78,194,168,.7); }
.btn--primary:hover { background: #66CCB5; transform: translateY(-1px); }
.btn--purple { background: var(--purple); color: var(--white); box-shadow: 0 10px 24px -10px rgba(54,50,182,.7); }
.btn--purple:hover { background: var(--purple-600); transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255,255,255,.28); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--outline { border-color: var(--line); color: var(--text); background: var(--white); }
.btn--outline:hover { border-color: var(--purple); color: var(--purple); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--purple); font-size: .95rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.logo img { height: 46px; width: auto; }
.logo .on-light { display: none; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav > a, .nav .has-menu > button {
  color: #D7D8EC; font-weight: 600; font-size: .95rem; padding: 10px 14px; border-radius: 999px;
  background: none; border: 0; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.nav > a:hover, .nav .has-menu > button:hover { color: var(--white); background: rgba(255,255,255,.07); }
.nav .has-menu { position: relative; }
.nav .has-menu svg { width: 14px; height: 14px; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: 640px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; opacity: 0; visibility: hidden; transition: .2s;
  border: 1px solid var(--line);
}
.has-menu:hover .mega, .has-menu:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a { display: flex; gap: 14px; padding: 14px; border-radius: 14px; color: var(--text); }
.mega a:hover { background: var(--bg-soft); }
.mega .mi { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--purple-50); color: var(--purple); }
.mega .mi svg { width: 20px; height: 20px; }
.mega strong { display: block; font-size: .95rem; }
.mega span { font-size: .84rem; color: var(--muted); line-height: 1.45; }
.header-cta { display: flex; gap: 12px; align-items: center; }
.header-cta .btn { padding: 11px 20px; font-size: .92rem; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; }

.site-header.scrolled, .site-header.light { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-color: var(--line); }
.site-header.scrolled .logo .on-dark, .site-header.light .logo .on-dark { display: none; }
.site-header.scrolled .logo .on-light, .site-header.light .logo .on-light { display: block; }
.site-header.scrolled .nav > a, .site-header.scrolled .nav .has-menu > button,
.site-header.light .nav > a, .site-header.light .nav .has-menu > button { color: var(--text); }
.site-header.scrolled .nav > a:hover, .site-header.light .nav > a:hover,
.site-header.scrolled .nav .has-menu > button:hover, .site-header.light .nav .has-menu > button:hover { background: var(--bg-soft); color: var(--purple); }
.site-header.scrolled .menu-toggle, .site-header.light .menu-toggle { color: var(--text); }
.nav a[aria-current="page"] { color: var(--green) !important; }
.site-header.scrolled .nav a[aria-current="page"], .site-header.light .nav a[aria-current="page"] { color: var(--purple) !important; }

.site-header.menu-open { backdrop-filter: none; background: var(--navy) !important; border-color: transparent; }
.site-header.menu-open .logo .on-dark { display: block !important; }
.site-header.menu-open .logo .on-light { display: none !important; }
.site-header.menu-open .menu-toggle { color: var(--white) !important; }

.nav .nav-cta { display: none; }
.nav.open .nav-cta { display: inline-flex; margin-top: 20px; color: var(--navy) !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; background: var(--navy); color: #C9CAE0; overflow: hidden;
  padding: 116px 0 84px; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 80% 30%, rgba(54,50,182,.45), transparent 70%),
    radial-gradient(500px 360px at 95% 90%, rgba(78,194,168,.16), transparent 70%),
    radial-gradient(500px 400px at 0% 100%, rgba(54,50,182,.25), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }
.hero h1 { color: var(--white); margin: 18px 0 20px; }
.hero h1 .accent { color: var(--green); }
.hero .lead { font-size: 1.2rem; max-width: 560px; color: #B7B8D4; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-trust div { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: #A9AAC6; font-weight: 600; }
.hero-trust svg { width: 18px; height: 18px; color: var(--green); }

/* Hero visual: connected systems */
.system-map { position: relative; aspect-ratio: 1 / 0.92; width: min(100%, 540px); justify-self: end; }
.system-map svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.system-map .flow { stroke-dasharray: 4 10; animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.node {
  position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px;
  padding: 11px 16px 11px 12px; border-radius: 14px; background: rgba(35,35,71,.82); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1); color: var(--white); font-weight: 700; font-size: .88rem; white-space: nowrap;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); animation: float 6s ease-in-out infinite;
}
.node i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(54,50,182,.55); color: #C5C3FF; }
.node i svg { width: 16px; height: 16px; }
.node small { display: block; font-weight: 500; font-size: .72rem; color: #9C9DBD; }
.node.g i { background: rgba(78,194,168,.18); color: var(--green); }
.node:nth-child(odd) { animation-delay: -3s; }
@keyframes float { 0%,100% { margin-top: 0 } 50% { margin-top: -8px } }
.core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 150px; height: 150px; border-radius: 50%;
  display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #2a2a5c, #15152e);
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 14px rgba(54,50,182,.12), 0 0 0 30px rgba(54,50,182,.06), 0 0 80px rgba(78,194,168,.25);
}
.core img { width: 62px; }
.core::after {
  content: ""; position: absolute; inset: -46px; border-radius: 50%; border: 1px dashed rgba(78,194,168,.35); animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pulse-chip {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--text); border-radius: 999px; padding: 10px 18px 10px 12px; font-weight: 700; font-size: .85rem;
  box-shadow: var(--shadow-lg); white-space: nowrap;
}
.pulse-chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(78,194,168,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(78,194,168,0); } 100% { box-shadow: 0 0 0 0 rgba(78,194,168,0); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px;
  transition: transform .25s, box-shadow .25s, border-color .25s; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); font-size: .98rem; margin-top: 10px; }
.icon-badge {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--purple-50); color: var(--purple);
}
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge.green { background: var(--green-50); color: var(--green-600); }

.challenge-card .num { position: absolute; top: 26px; right: 28px; font-weight: 800; font-size: .85rem; color: #C6C7D6; }
.challenge-close {
  margin-top: 44px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 32px;
}
.challenge-close p { font-size: 1.1rem; font-weight: 600; color: var(--text); max-width: 640px; }
.challenge-close p em { font-style: normal; color: var(--purple); }

/* Services */
.service-card { display: flex; flex-direction: column; padding: 36px; }
.service-card h3 { font-size: 1.3rem; }
.service-card ul { list-style: none; padding: 0; margin: 20px 0 26px; display: grid; gap: 9px; }
.service-card li { display: flex; gap: 10px; font-size: .93rem; color: var(--text); align-items: flex-start; }
.service-card li svg { flex: none; width: 17px; height: 17px; color: var(--green-600); margin-top: 4px; }
.service-card .link-arrow { margin-top: auto; }
.service-card.featured { background: linear-gradient(160deg, var(--purple) 0%, #26237f 100%); border-color: transparent; color: #DAD9FA; }
.service-card.featured h3 { color: var(--white); }
.service-card.featured p, .service-card.featured li { color: #DAD9FA; }
.service-card.featured li svg { color: var(--green); }
.service-card.featured .icon-badge { background: rgba(255,255,255,.12); color: var(--green); }
.service-card.featured .link-arrow { color: var(--green); }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--green); color: var(--navy); position: absolute; top: 30px; right: 30px; }
.managed-strip {
  margin-top: 24px; display: flex; align-items: center; gap: 24px; padding: 26px 32px; border-radius: var(--radius-lg);
  background: var(--navy); color: #B7B8D4; flex-wrap: wrap;
}
.managed-strip .icon-badge { margin: 0; background: rgba(78,194,168,.14); color: var(--green); }
.managed-strip h3 { color: var(--white); font-size: 1.1rem; }
.managed-strip > div:nth-child(2) { flex: 1; min-width: 240px; }
.managed-strip p { font-size: .95rem; }

/* AI opportunities (tabs + flow) */
.opps { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: stretch; }
.opp-tabs { display: grid; gap: 10px; align-content: start; }
.opp-tab {
  text-align: left; display: flex; gap: 14px; align-items: center; width: 100%; padding: 16px 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); color: #C9CAE0; cursor: pointer; font-family: inherit; font-size: .98rem; font-weight: 700;
  transition: .2s;
}
.opp-tab i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.06); flex: none; }
.opp-tab i svg { width: 18px; height: 18px; }
.opp-tab:hover { background: rgba(255,255,255,.06); }
.opp-tab[aria-selected="true"] { background: var(--white); color: var(--text); border-color: var(--white); }
.opp-tab[aria-selected="true"] i { background: var(--purple); color: var(--white); }
.opp-panel {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-700)); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg); padding: 40px; position: relative; overflow: hidden;
}
.opp-panel[hidden] { display: none; }
.opp-panel h3 { font-size: 1.6rem; }
.opp-panel > p { margin-top: 10px; color: #A9AAC6; max-width: 620px; }
.flow-steps { display: flex; align-items: stretch; gap: 0; margin-top: 36px; flex-wrap: wrap; row-gap: 18px; }
.flow-step {
  flex: 1 1 0; min-width: 120px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 18px 16px; position: relative;
}
.flow-step + .flow-step { margin-left: 28px; }
.flow-step + .flow-step::before {
  content: ""; position: absolute; left: -24px; top: 50%; width: 20px; height: 2px;
  background: linear-gradient(90deg, var(--purple-300), var(--green));
}
.flow-step + .flow-step::after { content: ""; position: absolute; left: -8px; top: calc(50% - 4px); border: 5px solid transparent; border-left-color: var(--green); }
.flow-step i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(54,50,182,.55); color: #CFCDFF; margin-bottom: 12px; }
.flow-step i svg { width: 17px; height: 17px; }
.flow-step.ai i { background: var(--green); color: var(--navy); }
.flow-step.human i { background: #F4B740; color: var(--navy); }
.flow-step strong { display: block; color: var(--white); font-size: .92rem; }
.flow-step span { display: block; font-size: .8rem; color: #9C9DBD; line-height: 1.45; margin-top: 4px; }
.flow-legend { display: flex; gap: 20px; margin-top: 26px; font-size: .8rem; color: #9C9DBD; flex-wrap: wrap; }
.flow-legend span { display: inline-flex; align-items: center; gap: 8px; }
.flow-legend b { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.opp-cta { margin-top: 48px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--radius-lg); border: 1px dashed rgba(78,194,168,.45); }
.opp-cta p { color: var(--white); font-size: 1.2rem; font-weight: 700; }

/* Industries */
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ind-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; color: #DAD9FA; transition: transform .25s, box-shadow .25s; }
.ind-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ind-card.lg { grid-column: span 2; }
.ind-card .art { position: absolute; inset: 0; z-index: 0; }
.ind-card > *:not(.art) { position: relative; z-index: 1; }
.ind-card h3 { color: var(--white); font-size: 1.5rem; margin: 10px 0 8px; }
.ind-card p { font-size: .95rem; max-width: 420px; }
.ind-card .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--white); border: 1px solid rgba(255,255,255,.14); }
.ind-card .kicker { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); }
.ind-health { background: linear-gradient(150deg, #1d1b6e, var(--purple)); }
.ind-logi { background: linear-gradient(150deg, #0f2f2a, #136447); }
.ind-small { background: var(--white); border: 1px solid var(--line); color: var(--muted); min-height: 240px; justify-content: space-between; }
.ind-small h3 { color: var(--text); font-size: 1.2rem; }
.ind-small .kicker { color: var(--purple); }
.ind-more { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; color: var(--muted); font-weight: 600; font-size: .95rem; }
.ind-more .pill { padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--text); font-weight: 700; font-size: .88rem; }
.ind-more .pill:hover { border-color: var(--purple); color: var(--purple); }

/* Work / case studies */
.work-card { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--white); }
.work-card + .work-card { margin-top: 28px; }
.work-visual { min-height: 400px; position: relative; overflow: hidden; display: grid; place-items: center; padding: 40px; }
.work-body { padding: 48px; display: flex; flex-direction: column; }
.status-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.status { font-size: .74rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.own { background: var(--purple-50); color: var(--purple); }
.status.live { background: var(--green-50); color: var(--green-600); }
.status.dev { background: #FFF5DF; color: #B07A00; }
.work-body h3 { font-size: 1.9rem; }
.work-body .sub { color: var(--muted); margin-top: 10px; }
.cs-steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; }
.cs-steps li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; font-size: .94rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cs-steps li:last-child { border-bottom: 0; }
.cs-steps b { color: var(--text); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }
.cs-steps span { color: var(--muted); }
.tech-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.tech { font-size: .78rem; font-weight: 700; padding: 6px 11px; border-radius: 8px; background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); }
.verify-note { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; }
.verify-note svg { width: 15px; height: 15px; flex: none; margin-top: 3px; }

/* Device mockups (pure CSS) */
.mock-window { width: 100%; max-width: 440px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; font-size: .72rem; color: var(--text); }
.mock-window .tb { display: flex; gap: 6px; padding: 10px 12px; background: #F0F1F6; border-bottom: 1px solid var(--line); }
.mock-window .tb span { width: 9px; height: 9px; border-radius: 50%; background: #D5D6E0; }
.mock-body { display: grid; grid-template-columns: 90px 1fr; min-height: 250px; }
.mock-side { background: var(--navy); padding: 12px 10px; display: grid; gap: 8px; align-content: start; }
.mock-side b { height: 8px; border-radius: 4px; background: rgba(255,255,255,.14); display: block; }
.mock-side b.on { background: var(--green); }
.mock-main { padding: 14px; display: grid; gap: 10px; align-content: start; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpis div { border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.mock-kpis b { display: block; height: 6px; width: 60%; border-radius: 3px; background: #E2E3EC; margin-bottom: 6px; }
.mock-kpis i { display: block; height: 12px; width: 40%; border-radius: 3px; background: var(--purple); }
.mock-row { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.mock-row .av { width: 20px; height: 20px; border-radius: 50%; background: var(--purple-50); flex: none; }
.mock-row .ln { flex: 1; height: 6px; border-radius: 3px; background: #E2E3EC; }
.mock-row .pill { font-size: .6rem; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: var(--green-50); color: var(--green-600); }
.mock-wave { display: flex; align-items: center; gap: 3px; height: 34px; padding: 0 10px; border-radius: 8px; background: var(--purple-50); }
.mock-wave span { flex: 1; background: var(--purple); border-radius: 2px; }
.phone { width: 170px; height: 340px; border-radius: 28px; background: #0b0b1a; padding: 9px; box-shadow: var(--shadow-lg); position: relative; }
.phone .scr { width: 100%; height: 100%; border-radius: 21px; background: var(--white); overflow: hidden; display: flex; flex-direction: column; }
.phone .map { flex: 1; background:
  linear-gradient(90deg, transparent 48%, #dfe6e3 48% 52%, transparent 52%),
  linear-gradient(0deg, transparent 58%, #dfe6e3 58% 62%, transparent 62%),
  linear-gradient(35deg, transparent 47%, #e8ece9 47% 51%, transparent 51%), #f3f6f4; position: relative; }
.phone .route { position: absolute; inset: 0; }
.phone .sheet { padding: 12px; display: grid; gap: 7px; }
.phone .sheet b { height: 7px; border-radius: 4px; background: #E2E3EC; display: block; }
.phone .sheet .cta { height: 26px; border-radius: 8px; background: var(--green); }
.phones { display: flex; align-items: center; }
.phone.second { transform: translateY(34px) rotate(6deg); margin-left: -36px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; counter-reset: step; }
.process::before { content: ""; position: absolute; top: 31px; left: 10%; right: 10%; height: 2px; background: linear-gradient(90deg, var(--purple), var(--green)); opacity: .35; }
.p-step { text-align: center; position: relative; padding: 0 6px; }
.p-step .ring { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; background: var(--white); border: 2px solid var(--purple-50); color: var(--purple); position: relative; box-shadow: var(--shadow-sm); transition: .25s; }
.p-step:hover .ring { background: var(--purple); color: var(--white); border-color: var(--purple); }
.p-step .ring svg { width: 24px; height: 24px; }
.p-step .ring::after { counter-increment: step; content: "0" counter(step); position: absolute; top: -6px; right: -10px; font-size: .68rem; font-weight: 800; background: var(--green); color: var(--navy); border-radius: 999px; padding: 2px 7px; }
.p-step h3 { font-size: 1.15rem; }
.p-step p { font-size: .9rem; color: var(--muted); margin-top: 8px; }
.journey { margin-top: 64px; display: grid; grid-template-columns: repeat(3, 1fr); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.journey > div { padding: 28px 30px; background: var(--white); position: relative; }
.journey > div + div { border-left: 1px solid var(--line); }
.journey small { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green-600); }
.journey h4 { font-size: 1.1rem; margin: 6px 0 6px; }
.journey p { font-size: .9rem; color: var(--muted); }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-item { padding: 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.why-item .icon-badge { background: rgba(78,194,168,.14); color: var(--green); }
.why-item p { font-size: .93rem; color: #A9AAC6; margin-top: 8px; }
.quote-block { font-size: 1.5rem; font-weight: 700; color: var(--white); line-height: 1.4; letter-spacing: -.01em; margin-top: 28px; }
.quote-block span { color: var(--green); }

/* Final CTA */
.cta-band {
  border-radius: 32px; padding: 72px; position: relative; overflow: hidden; color: #DAD9FA;
  background: linear-gradient(130deg, #2b2896 0%, var(--purple) 55%, #3e5fc4 100%);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center;
}
.cta-band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(78,194,168,.18); }
.cta-band h2 { color: var(--white); }
.cta-band p { margin-top: 16px; font-size: 1.1rem; }
.cta-paths { display: grid; gap: 12px; position: relative; z-index: 1; }
.cta-path { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); color: var(--white); font-weight: 700; transition: .2s; }
.cta-path:hover { background: var(--white); color: var(--text); }
.cta-path i { width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.cta-path:hover i { background: var(--purple-50); color: var(--purple); }
.cta-path i svg { width: 18px; height: 18px; }
.cta-path small { display: block; font-weight: 500; font-size: .82rem; opacity: .8; }
.cta-path .go { margin-left: auto; width: 18px; height: 18px; }

/* Footer */
.site-footer { background: var(--navy); color: #9C9DBD; padding: 88px 0 32px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.site-footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a:hover { color: var(--green); }
.footer-brand img { height: 46px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 320px; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--white); }
.socials a:hover { background: var(--green); color: var(--navy); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* WhatsApp floating */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: var(--white); display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* Inner page hero */
.page-hero { background: var(--navy); color: #B7B8D4; padding: 136px 0 88px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 380px at 85% 20%, rgba(54,50,182,.5), transparent 70%), radial-gradient(400px 300px at 100% 100%, rgba(78,194,168,.14), transparent 70%); }
.page-hero h1 { color: var(--white); margin: 18px 0 20px; font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.page-hero .lead { font-size: 1.15rem; max-width: 640px; }
.crumbs { font-size: .85rem; color: #8B8CAB; display: flex; gap: 8px; align-items: center; }
.crumbs a:hover { color: var(--white); }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 500; color: var(--purple); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin-top: 12px; }

/* Forms */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: .88rem; }
.field label .req { color: #D14343; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .98rem; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--white); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(54,50,182,.12); }
.field textarea { min-height: 120px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.path-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 28px; }
.path-opt { position: relative; }
.path-opt input { position: absolute; opacity: 0; }
.path-opt label { display: block; cursor: pointer; padding: 18px; border-radius: 16px; border: 1.5px solid var(--line); transition: .2s; height: 100%; }
.path-opt label i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-soft); color: var(--purple); margin-bottom: 12px; }
.path-opt label i svg { width: 18px; height: 18px; }
.path-opt label strong { display: block; font-size: .95rem; }
.path-opt label small { color: var(--muted); font-size: .8rem; line-height: 1.4; display: block; margin-top: 4px; }
.path-opt input:checked + label { border-color: var(--purple); background: var(--purple-50); box-shadow: 0 0 0 3px rgba(54,50,182,.1); }
.path-opt input:checked + label i { background: var(--purple); color: var(--white); }
.path-opt input:focus-visible + label { outline: 3px solid var(--green); outline-offset: 2px; }
.contact-side { display: grid; gap: 16px; align-content: start; }
.contact-tile { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.contact-tile .icon-badge { margin: 0; width: 44px; height: 44px; flex: none; }
.contact-tile strong { display: block; }
.contact-tile span { color: var(--muted); font-size: .9rem; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 14px; display: flex; gap: 8px; align-items: center; }
.form-note svg { width: 15px; height: 15px; color: var(--green-600); }
.form-success { display: none; text-align: center; padding: 40px 10px; }
.form-success.show { display: block; }

/* Design-system page */
.swatch { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.swatch .c { height: 110px; }
.swatch .m { padding: 14px 16px; font-size: .85rem; }
.swatch .m b { display: block; }
.swatch .m code { color: var(--muted); }
.type-row { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.type-row small { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.sitemap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.sm-col { border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); overflow: hidden; }
.sm-col h4 { padding: 14px 18px; background: var(--navy); color: var(--white); font-size: .95rem; display: flex; justify-content: space-between; }
.sm-col h4 code { color: var(--green); font-size: .78rem; font-weight: 600; }
.sm-col ul { list-style: none; margin: 0; padding: 10px; display: grid; gap: 4px; }
.sm-col li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: .88rem; }
.sm-col li:hover { background: var(--bg-soft); }
.sm-col li code { color: var(--muted); font-size: .75rem; }
.ph { font-size: .66rem; font-weight: 800; padding: 2px 7px; border-radius: 6px; flex: none; }
.ph1 { background: var(--green-50); color: var(--green-600); }
.ph2 { background: var(--purple-50); color: var(--purple); }
.ph3 { background: #F1F1F5; color: var(--muted); }

/* Vertical flow variant */
.flow-steps.vertical { flex-direction: column; }
.flow-steps.vertical .flow-step + .flow-step { margin-left: 0; margin-top: 22px; }
.flow-steps.vertical .flow-step + .flow-step::before { left: 28px; top: -20px; width: 2px; height: 16px; background: linear-gradient(180deg, var(--purple-300), var(--green)); }
.flow-steps.vertical .flow-step + .flow-step::after { left: 24px; top: -8px; border: 5px solid transparent; border-top-color: var(--green); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header-cta .btn--ghost-sm { display: none; }
  .menu-toggle { display: block; }
  .nav.open { display: flex; position: fixed; top: 80px; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; background: var(--navy); padding: 24px; gap: 4px; overflow: auto; }
  .nav.open > a, .nav.open .has-menu > button { color: var(--white) !important; font-size: 1.1rem; padding: 14px 12px; }
  .nav.open .mega { position: static; transform: none; opacity: 1; visibility: visible; width: auto; grid-template-columns: 1fr; box-shadow: none; display: none; background: var(--navy-800); border-color: transparent; }
  .nav.open .has-menu:focus-within .mega, .nav.open .has-menu.expanded .mega { display: grid; }
  .nav.open .mega a { color: var(--white); }
  .nav.open .mega a:hover { background: rgba(255,255,255,.05); }
  .nav.open .mega span { color: #9C9DBD; }
  .hero-grid, .page-hero-grid { grid-template-columns: 1fr; }
  .system-map { max-width: 560px; margin: 20px auto 0; width: 100%; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .opps { grid-template-columns: 1fr; }
  .opp-tabs { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .why { grid-template-columns: 1fr; gap: 48px; }
  .cta-band { grid-template-columns: 1fr; padding: 56px 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .sitemap { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .section { padding: 80px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .work-card { grid-template-columns: 1fr; }
  .work-visual { min-height: 300px; }
  .work-body { padding: 32px; }
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { top: 0; bottom: 0; left: 31px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--purple), var(--green)); }
  .p-step { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; text-align: left; padding: 0 0 28px; }
  .p-step .ring { margin: 0; grid-row: span 2; }
  .p-step h3 { align-self: end; }
  .journey { grid-template-columns: 1fr; }
  .journey > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .why-list { grid-template-columns: 1fr; }
  .form-grid, .path-picker { grid-template-columns: 1fr; }
  .cs-steps li { grid-template-columns: 1fr; gap: 4px; }
  .flow-steps { flex-direction: column; }
  .flow-step + .flow-step { margin-left: 0; margin-top: 22px; }
  .flow-step + .flow-step::before { left: 28px; top: -20px; width: 2px; height: 16px; }
  .flow-step + .flow-step::after { left: 24px; top: -8px; border: 5px solid transparent; border-top-color: var(--green); }
  .sitemap { grid-template-columns: 1fr; }
  .type-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 36px); }
  .hero { padding: 128px 0 72px; }
  .hero-ctas .btn { width: 100%; }
  .header-cta .btn { display: none; }
  .grid-4, .ind-grid { grid-template-columns: 1fr; }
  .ind-card.lg { grid-column: auto; }
  .ind-card { min-height: 320px; }
  .node { font-size: .72rem; padding: 7px 10px 7px 8px; gap: 7px; }
  .node i { width: 24px; height: 24px; }
  .node small { display: none; }
  .core { width: 104px; height: 104px; }
  .core img { width: 44px; }
  .core::after { inset: -28px; }
  .card, .service-card { padding: 26px; }
  .opp-panel { padding: 26px; }
  .opp-tabs { display: flex; overflow-x: auto; gap: 8px; margin: 0 -18px; padding: 0 18px 6px; scrollbar-width: none; }
  .opp-tab { flex: none; width: auto; padding: 10px 14px; font-size: .88rem; }
  .opp-tab i { width: 30px; height: 30px; }
  .cta-band { padding: 44px 24px; border-radius: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 24px; }
  .page-hero { padding: 128px 0 72px; }
}

/* Product logos in case studies */
.work-body .product-logo img { height: 56px; width: auto; }
.work-links { display: flex; gap: 24px; flex-wrap: wrap; }
.mock-window .tb { align-items: center; }
.mock-window .tb .url { width: auto; height: auto; border-radius: 6px; background: var(--white); margin-left: 10px; padding: 2px 10px; font-style: normal; font-size: .62rem; color: var(--muted); }
.mock-brand { width: 28px; height: 28px; border-radius: 8px; margin-bottom: 6px; }

/* Real app screenshots inside phone frames */
.phone .scr img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.work-visual .phone { width: 200px; height: 410px; }
.work-body .product-logo img[src*="hellotruck"] { height: 44px; }
@media (max-width: 600px) { .work-visual .phone { width: 150px; height: 308px; } }

/* Form states */
.form-error { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: #FDECEC; color: #A32020; font-size: .92rem; font-weight: 600; }
.field [aria-invalid="true"] { border-color: #D14343; box-shadow: 0 0 0 4px rgba(209,67,67,.1); }
.btn:disabled { opacity: .7; cursor: progress; }

.footer-address { font-style: normal; margin-top: 18px; font-size: .88rem; line-height: 1.7; color: #9C9DBD; }
.footer-address strong { color: #C9CAE0; }
.footer-address a { color: #C9CAE0; }

/* ---------- Content pages: articles, city cards ---------- */
.prose { max-width: 760px; margin: 0 auto; font-size: 1.08rem; line-height: 1.8; color: var(--text); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.7rem; margin-top: 2em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose a { color: var(--purple); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--green); background: var(--bg-soft); border-radius: 0 14px 14px 0; color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--bg-soft); font-weight: 700; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: .9rem; color: #A9AAC6; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 16px; height: 16px; }
.article-cta { max-width: 760px; margin: 56px auto 0; padding: 30px 32px; border-radius: var(--radius-lg); background: var(--navy); color: #B7B8D4; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.article-cta h3 { color: var(--white); font-size: 1.25rem; }
.article-cta p { font-size: .95rem; margin-top: 4px; }
.post-card { display: flex; flex-direction: column; }
.post-card .kicker { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); }
.post-card h3 { margin: 10px 0 0; font-size: 1.2rem; }
.post-card .link-arrow { margin-top: auto; padding-top: 20px; }
.city-card h3 { display: flex; align-items: center; gap: 10px; }
.city-card .tag-hq { font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--green); color: var(--navy); padding: 3px 9px; border-radius: 999px; }
.city-card ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); font-size: .95rem; }
.city-card li + li { margin-top: 4px; }
